div+css实现待办事项任务管理ui效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现待办事项任务管理ui效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700'>
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'>
<style>
.body {
z-index: 1;
position: relative;
background: #FFF;
width: 300px;
height: 500px;
border-radius: 6px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
margin: 40px auto;
overflow: hidden;
}
.app {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.app-overlay {
z-index: 3;
position: absolute;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.2);
display: block;
width: 200%;
height: 200%;
transform: translate(-50%, -50%);
visibility: hidden;
opacity: 0;
transition: 0.3s ease;
cursor: pointer;
}
.app-menu {
z-index: 4;
position: absolute;
top: 0;
left: -50%;
display: flex;
flex-direction: column;
justify-content: space-between;
background: #FFF;
width: 70%;
height: 100%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
visibility: hidden;
opacity: 0;
transition: 0.3s ease;
overflow: hidden;
}
.app-menu ul:last-child li {
border: 0;
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.app-menu__item {
width: 100%;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
color: #999;
}
.app-menu__item--active {
color: #666;
}
.app-menu__item:hover a {
background: #FFF;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
transform: scale(1.1);
color: #666;
}
.app-menu__item a {
display: block;
width: 100%;
padding: 15px 20px;
box-sizing: border-box;
color: inherit;
text-decoration: none;
transition: 0.3s ease;
}
.app-header {
z-index: 1;
position: relative;
padding: 20px 0 10px;
text-align: center;
}
.app-header__icon {
position: absolute;
bottom: 10px;
left: 10px;
cursor: pointer;
}
.app-header__icon span {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
.app-header__icon span:before, .app-header__icon span:after {
content: "";
display: block;
width: 8px;
height: 8px;
borde.........完整代码请登录后点击上方下载按钮下载查看
网友评论0