纯css3制作网站后台管理面板


Posted in HTML / CSS onDecember 30, 2014
软件名称:
纯css3制作的后台管理面板效果源码
软件大小:
19KB
更新时间:
2014-10-22立即下载

HTML结构

复制代码
代码如下:

<div class="admin-panel clearfix">
<div class="slidebar">
<div class="logo">
<a href=""></a>
</div>
<ul>
<li><a href="#dashboard" id="targeted">dashboard</a></li>
<li><a href="#posts">posts</a></li>
<li><a href="#media">media</a></li>
<li><a href="#pages">pages</a></li>
<li><a href="#links">links</a></li>
<li><a href="#comments">comments</a></li>
<li><a href="#widgets">widgets</a></li>
<li><a href="#plugins">plugins</a></li>
<li><a href="#users">users</a></li>
<li><a href="#tools">tools</a></li>
<li><a href="#settings">settings</a></li>
</ul>
</div>
<div class="main">
<ul class="topbar clearfix">
<li><a href="#">q</a></li>
<li><a href="#">p</a></li>
<li><a href="#">o</a></li>
<li><a href="#">f</a></li>
<li><a href="#">n</a></li>
</ul>
<div class="mainContent clearfix">
<div id="dashboard">
<h2 class="header"><span class="icon"></span>Dashboard</h2>
<div class="monitor">
<h4>Right Now</h4>
<div class="clearfix">
<ul class="content">
<li>content</li>
<li class="posts"><span class="count">179</span><a href="">posts</a></li>
<li class="pages"><span class="count">13</span><a href="">pages</a></li>
<li class="categories"><span class="count">21</span><a href="">categories</a></li>
<li class="tags"><span class="count">305</span><a href="">tags</a></li>
</ul>
<ul class="discussions">
<li>discussions</li>
<li class="comments"><span class="count">353</span><a href="">comments</a></li>
<li class="approved"><span class="count">319</span><a href="">approved</a></li>
<li class="pending"><span class="count">0</span><a href="">pending</a></li>
<li class="spam"><span class="count">34</span><a href="">spam</a></li>
</ul>
</div>
<p>Theme <a href="">Twenty Eleven</a> with <a href="">3 widgets</a></p>
</div>
<div class="quick-press">
<h4>Quick Press</h4>
<form action="" method="post">
<input type="text" name="title" placeholder="Title"/>
<input type="text" name="content" placeholder="Content"/>
<input type="text" name="tags" placeholder="Tags"/>
<button type="button" class="save">l</button>
<button type="button" class="delet">m</button>
<button type="submit" class="submit" name="submit">Publish</button>
</form>
</div>
</div>
<div id="posts">
<h2 class="header">posts</h2>
</div>
<div id="media">
<h2 class="header">media</h2>
</div>
<div id="pages">
<h2 class="header">pages</h2>
</div>
<div id="links">
<h2 class="header">links</h2>
</div>
<div id="comments">
<h2 class="header">comments</h2>
</div>
<div id="widgets">
<h2 class="header">widgets</h2>
</div>
<div id="plugins">
<h2 class="header">plugins</h2>
</div>
<div id="users">
<h2 class="header">users</h2>
</div>
<div id="tools">
<h2 class="header">tools</h2>
</div>
<div id="settings">
<h2 class="header">settings</h2>
</div>
</div>
<ul class="statusbar">
<li><a href=""></a></li>
<li><a href=""></a></li>
<li class="profiles-setting"><a href="">s</a></li>
<li class="logout"><a href="">k</a></li>
</ul>
</div>
</div>

CSS 代码

复制代码
代码如下:

body {
background-color: rgb(220,220,220);
padding: 0;
margin: 0;
font-size: 16px;
font-family: sans-serif;
}
.clearfix:after {
content: "";
display: block;
height: 0;
width: 0;
clear: both;
}
.admin-panel {
width: 990px;
margin: 50px auto;
}
/*slidebar侧边栏*/
.slidebar {
width: 20%;
min-height: 690px;
float: left;
border-right: 1px solid rgb(235,235,235);
background-color: rgb(247,247,247);
}
.slidebar .logo {
height: 145px;
border-bottom: 1px solid rgb(235,235,235);
}
.slidebar ul {
padding: 0;
margin:0;
}
.slidebar li {
list-style-type: none;
margin: 0;
position: relative;
}
.slidebar li:before {
content: "";
font-family: 'icomoon';
speak: none;
font-weight: normal;
font-variant: normal;
text-transform: none;
position: absolute;
display: block;
line-height: 40px;
color: rgb(102,102,102);
right: 20px;
-webkit-font-smoothing: antialiased;
}
/*插入icon图标*/
.slidebar li:nth-child(1):before {content: "\63";}
.slidebar li:nth-child(2):before {content: "\64";}
.slidebar li:nth-child(3):before {content: "\62";}
.slidebar li:nth-child(4):before {content: "\65";}
.slidebar li:nth-child(5):before {content: "\74";}
.slidebar li:nth-child(6):before {content: "\66";}
.slidebar li:nth-child(7):before {content: "\67";}
.slidebar li:nth-child(8):before {content: "\68";}
.slidebar li:nth-child(9):before {content: "\69";}
.slidebar li:nth-child(10):before {content: "\6a";}
.slidebar li:nth-child(11):before {content: "\75";}
.slidebar ul a {
color: rgb(140,140,140);
text-decoration: none;
font:16px/40px helvetica,verdana,sans-serif;
box-sizing:border-box;
border-bottom: 1px solid rgb(235,235,235);
display: block;
box-shadow:inset 0 1px 0 rgb(255,255,255);
text-indent: 20px;
text-transform: capitalize;
}
.slidebar li:hover a {
background-color: rgb(255,255,255);
box-shadow: 1px 0 0 rgb(255,255,255),inset 5px 0 0 -1px rgb(234,83,63);
}
/*main*/
.main {
float: left;
width: 79%;
height: 690px;
background-color: rgb(255,255,255);
position: relative;
font-family: helvetica,verdana,sans-serif;
}
.main .topbar {
border-bottom: 1px solid rgb(235,235,235);
margin: 0;
padding: 0;
}
/*topbar顶部按钮栏*/
.topbar li {
float: right;
list-style: none;
}
.topbar li:first-child {float: left;}
.topbar a {
font-family: 'icomoon';
display: block;
line-height: 50px;
width: 50px;
text-align: center;
text-decoration: none;
color: rgb(102,102,102);
border-left: 1px solid rgb(235,235,235);
}
.topbar a:hover {
background-color: rgb(247,247,247);
}
.topbar li:first-child a {
border: none;
border-right: 1px solid rgb(235,235,235);
}
/*mainContent*/
.mainContent h4 {
line-height: 1;
font-size: 18px;
margin: 1.3em 0 1em;
margin-left: 17px;
}
.mainContent>div {
position: absolute;
opacity: 0;
-webkit-transition:opacity 200ms linear;
-moz-transition:opacity 200ms linear;
-ms-transition:opacity 200ms linear;
transition:opacity 200ms linear;
}
/*通过opacity来切换不同的选项卡*/
.mainContent>div:target {
opacity: 1;
}
.mainContent h2 {
margin:1em 30px;
color: rgb(234,83,63);
font-size: 20px;
}
.mainContent h2:before {
font-family: 'icomoon';
content: attr(data-icon);
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
margin-right: 10px;
-webkit-font-smoothing: antialiased;
}
.mainContent div:nth-child(1) h2:before {content: "\63";}
.mainContent div:nth-child(2) h2:before {content: "\64";}
.mainContent div:nth-child(3) h2:before {content: "\62";}
.mainContent div:nth-child(4) h2:before {content: "\65";}
.mainContent div:nth-child(5) h2:before {content: "\74";}
.mainContent div:nth-child(6) h2:before {content: "\66";}
.mainContent div:nth-child(7) h2:before {content: "\67";}
.mainContent div:nth-child(8) h2:before {content: "\68";}
.mainContent div:nth-child(9) h2:before {content: "\69";}
.mainContent div:nth-child(10) h2:before {content: "\6a";}
.mainContent div:nth-child(11) h2:before {content: "\75";}
#dashboard>div {
border: 1px solid rgb(235,235,235);
margin-left: 30px;
float: left;
border-radius: 5px;
min-width: 345px;
height: 262px;
display: inline-block;
}
.monitor ul {
float: left;
padding: 0;
margin: 0 31px 0 17px;
}
.monitor li {
list-style:none;
font: 600 14px/28px helvetica,verdana,sans-serif;
color: rgb(102,102,102);
text-transform: capitalize;
}
.monitor li a {
color: rgb(102,102,102);
text-transform: capitalize;
text-decoration: none;
}
.monitor li:first-child {
border-bottom: 1px dotted rgb(153,153,153);
}
.discussions .comments {color: rgb(27,106,173);}
.discussions .approved {color: rgb(105,174,48);}
.discussions .pending {color: rgb(246,129,15);}
.discussions .spam {color: rgb(243,47,47);}
.monitor .count {
color: rgb(27,106,173);
text-align: right;
font-weight: 600;
margin-right: 15px;
min-width: 25px;
display: inline-block;
}
.monitor p {
color: rgb(128,128,128);
margin: 28px 0 18px 17px;
display: block;
font-weight: 600;
font-size: 12px;
}
.monitor p a {
text-decoration: none;
color:rgb(27,106,173);
}
.quick-press form {
margin:0 20px 0 13px;
}
.quick-press input[type="text"] {
display: block;
width: 100%;
-moz-box-sizing:border-box;
box-sizing:border-box;
height: 35px;
line-height: 15px;
padding: 10px 0;
margin:0 0 7px 0;
background-color: rgb(246,246,246);
outline: none;
border: none;
text-indent: 10px;
}
/*统一各浏览器下placeholder内的字体样式*/
.quick-press input[type="text"]::-webkit-input-placeholder {font-size: 14px;}
.quick-press input[type="text"]:-moz-input-placeholder {font-size: 14px;}
.quick-press input[type="text"]::-moz-input-placeholder {font-size: 14px;}
.quick-press input[type="text"]:-ms-input-placeholder {font-size: 14px;}
.quick-press button {
margin-top: 13px;
border-radius: 5px;
text-align: center;
line-height: 30px;
padding: 0;
}
.quick-press .save, .quick-press .delet {
font-family: 'icomoon';
width: 37px;
background: -webkit-linear-gradient(top,rgb(246,246,240),rgb(232,232,232));
background: -moz-linear-gradient(top,rgb(246,246,240),rgb(232,232,232));
background: -ms-linear-gradient(top,rgb(246,246,240),rgb(232,232,232));
background: linear-gradient(top,rgb(246,246,240),rgb(232,232,232));
border: 1px solid rgb(229,229,229);
color: rgb(102,102,102);
float: left;
margin-right: 5px;
}
.quick-press .save:hover, .quick-press .delet:hover {
background: -webkit-linear-gradient(top,rgb(232,232,232),rgb(246,246,240));
background: -moz-linear-gradient(top,rgb(232,232,232),rgb(246,246,240));
background: -ms-linear-gradient(top,rgb(232,232,232),rgb(246,246,240));
background: linear-gradient(top,rgb(232,232,232),rgb(246,246,240));
}
.quick-press .save:active, .quick-press .delet:active {
background: -webkit-linear-gradient(top,rgb(228,228,228),rgb(210,210,210));
background: -moz-linear-gradient(top,rgb(228,228,228),rgb(210,210,210));
background: -ms-linear-gradient(top,rgb(228,228,228),rgb(210,210,210));
background: linear-gradient(top,rgb(228,228,228),rgb(210,210,210));
}
.quick-press .submit {
float: right;
width: 70px;
border: 1px solid rgb(238,85,64);
color: #fff;
font-size: 16px;
background: -webkit-linear-gradient(top,rgb(245,101,82),rgb(234,83,63));
background: -moz-linear-gradient(top,rgb(245,101,82),rgb(234,83,63));
background: -ms-linear-gradient(top,rgb(245,101,82),rgb(234,83,63));
background: linear-gradient(top,rgb(245,101,82),rgb(234,83,63));
}
.quick-press .submit:hover {
background: -webkit-linear-gradient(top,rgb(220,85,70),rgb(210,65,53));
background: -moz-linear-gradient(top,rgb(220,85,70),rgb(210,65,53));
background: -ms-linear-gradient(top,rgb(220,85,70),rgb(210,65,53));
background: linear-gradient(top,rgb(220,85,70),rgb(210,65,53));
}
/*logo*/
.logo a {
width: 88px;
height: 88px;
display: inline-block;
position: relative;
left: 50%;
top: 50%;
margin: -45px 0 0 -45px;
border: 1px solid rgb(200,200,200);
border-radius: 50%;
background-color: rgb(214,214,214);
}
.logo a:before {
content: "A";
width: 70px;
height: 70px;
font: 50px/70px helvetica,verdana,sans-serif;
text-align: center;
position: absolute;
top: 8px;
left: 8px;
border-radius: 35px;
border: 1px solid rgb(210,210,210);
display: inline-block;
background: -webkit-linear-gradient(top,rgb(255,255,255),rgb(245,245,245));
background: -moz-linear-gradient(top,rgb(255,255,255),rgb(245,245,245));
background: -ms-linear-gradient(top,rgb(255,255,255),rgb(245,245,245));
background: linear-gradient(top,rgb(255,255,255),rgb(245,245,245));
}
/*statusbar底部功能按钮*/
.statusbar {
position: absolute;
bottom: 0;
border-top: 1px solid rgb(235,235,235);
width: 100%;
padding: 0;
margin: 0;
}
.statusbar li {
list-style: none;
}
.statusbar a {
color: rgb(102,102,102);
text-decoration: none;
text-align: center;
display: block;
}
.statusbar a:hover {
background-color: rgb(247,247,247);
}
.statusbar .profiles-setting, .statusbar .logout {
float: right;
}
.statusbar .profiles-setting a, .statusbar .logout a {
font-family: 'icomoon';
width: 49px;
height: 49px;
line-height: 50px;
border-left: 1px solid rgb(235,235,235);
}
@font-face {
font-family: 'icomoon';
src:url('fonts/icomoon.eot');
src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
url('fonts/icomoon.woff') format('woff'),
url('fonts/icomoon.ttf') format('truetype'),
url('fonts/icomoon.svg#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
HTML / CSS 相关文章推荐
css3中新增的样式使用示例附效果图
Aug 19 HTML / CSS
一款利用html5和css3实现的3D滚动特效的教程
Jan 04 HTML / CSS
css3实现蒙版弹幕功能
Jun 18 HTML / CSS
canvas像素画板的实现代码
Nov 21 HTML / CSS
分享一个页面平滑滚动小技巧(推荐)
Oct 23 HTML / CSS
html5通过canvas实现刮刮卡效果示例分享
Jan 27 HTML / CSS
浅谈html5 响应式布局
Dec 24 HTML / CSS
详解HTML5中的picture元素响应式处理图片
Jan 03 HTML / CSS
使用postMessage让 iframe自适应高度的方法示例
Oct 08 HTML / CSS
巧用 -webkit-box-reflect 倒影实现各类动效(小结)
Apr 22 HTML / CSS
css3属性选择器 “~”(波浪号) “,”(逗号) “+”(加号)和 “>”(大于号)
Apr 19 HTML / CSS
使用CSS实现六边形的图片效果
Aug 05 HTML / CSS
一款纯css3实现的鼠标悬停动画按钮
Dec 29 #HTML / CSS
一款纯css3制作的2015年元旦雪人动画特效教程
Dec 29 #HTML / CSS
一款利用css3的鼠标经过动画显示详情特效的实例教程
Dec 29 #HTML / CSS
纯css3实现照片墙效果
Dec 26 #HTML / CSS
纯css3实现走马灯效果
Dec 26 #HTML / CSS
纯CSS3实现的阴影效果
Dec 24 #HTML / CSS
使用CSS3实现圆角,阴影,透明
Dec 23 #HTML / CSS
You might like
优化PHP代码的53条建议
2008/03/27 PHP
php mssql 时间格式问题
2009/01/13 PHP
php 文章采集正则代码
2009/12/28 PHP
ThinkPHP使用心得分享-ThinkPHP + Ajax 实现2级联动下拉菜单
2014/05/15 PHP
Laravel 5 框架入门(四)完结篇
2015/04/09 PHP
深入了解PHP中的Array数组和foreach
2016/11/06 PHP
YUI 读码日记之 YAHOO.lang.is*
2008/03/22 Javascript
锋利的jQuery 第三章章节总结的例子
2010/03/23 Javascript
原生JavaScript编写俄罗斯方块
2015/03/30 Javascript
js性能优化技巧
2015/11/29 Javascript
限制复选框最多选择项的实现代码
2016/05/30 Javascript
ionic js 复选框 与普通的 HTML 复选框到底有没区别
2016/06/06 Javascript
如何解决IONIC页面底部被遮住无法向上滚动问题
2016/09/06 Javascript
jQuery Ajax传值到Servlet出现乱码问题的解决方法
2016/10/09 Javascript
Bootstrap基本插件学习笔记之模态对话框(16)
2016/12/08 Javascript
vue中如何使用ztree
2018/02/06 Javascript
浅析vue中的MVVM实现原理
2019/03/04 Javascript
浅谈Layui的eleTree树式选择器使用方法
2019/09/25 Javascript
基于vue+uniapp直播项目实现uni-app仿抖音/陌陌直播室功能
2019/11/12 Javascript
vue中的 $slot 获取插槽的节点实例
2019/11/12 Javascript
javascript设计模式 ? 备忘录模式原理与用法实例分析
2020/04/21 Javascript
解决antd 表单设置默认值initialValue后验证失效的问题
2020/11/02 Javascript
关于阿里云oss获取sts凭证 app直传 python的实例
2019/08/20 Python
python爬虫构建代理ip池抓取数据库的示例代码
2020/09/22 Python
python 实现倒计时功能(gui界面)
2020/11/11 Python
css3的transition属性详解
2014/12/15 HTML / CSS
Html5实现二维码扫描并解析
2016/01/20 HTML / CSS
戴尔美国官方折扣店:Dell Outlet
2018/02/13 全球购物
2015年元旦活动总结
2014/05/09 职场文书
大学生简短的自我评价
2014/09/12 职场文书
欢迎新生标语
2014/10/06 职场文书
刮痧观后感
2015/06/05 职场文书
2015年三好一满意工作总结
2015/07/24 职场文书
解决vue $http的get和post请求跨域问题
2021/06/07 Vue.js
MySQL的意向共享锁、意向排它锁和死锁
2022/07/15 MySQL
WIN10使用IIS部署ftp服务器详细教程
2022/08/05 Servers