div+css实现待办事项任务管理ui效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现待办事项任务管理ui效果代码

代码标签: 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;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px #5CA8E0;
  margin: 1px;
}
.app-header__title {
  color: #333;
  font-size: 18px;
  line-height: 1;
}
.app-body {
  z-index: 1;
  position: relative;
  height: 100%;
}
.app-tasks {
  height: 100%;
  padding: 10px 10px 100px;
  box-sizing: border-box;
  overflow: auto;
}
.app-tasks__item {
  background: #FFF;
  width: 100%;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}
.app-tasks__label {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
  padding: 15px 15px 15px 20px;
  box-sizing: border-box;
}
.app-tasks__label input {
  display: none;
}
.app-tasks__label input:checked ~ span {
  color: #999;
  text-decoration: line-through;
}
.app-tasks__label input:checked ~ .app-tasks__mark {
  background: #36D6B1;
}
.app-tasks__label span {
  order: 1;
  color: #666;
  transition: 0.3s ease;
}
.app-tasks__mark {
  order: 2;
  position: relative;
  background: #FFF;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}
.app-tasks__mark:before, .app-tasks__mark:after {
  content: "";
  position: absolute;
  display: block;
  background: #FFF;
  width: 10px;
  height: 1px;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.app-tasks__mark:before {
  transform-origin: right;
  transform: translate(-43%, -400%) rotate(-45deg);
}
.app-tasks__mark:after {
  width: 6px;
  transform-origin: left;
  transform: translate(-90%, -50%) rotate(45deg);
}
.app-panel {
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.3s ease;
}
.app-panel__overlay {
  position: absolute;
  bottom: 28px;
  left: 50%;
  background: #FFF;
  width: 56px;
  height: 56px;
  border-radius: 100%;
  transform: translateX(-50%);
  transition: 0.3s ease;
}
.app-panel form {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}
.app-panel form p {
  padding: 10px 0 0;
  color: #333;
  font-size: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3.........完整代码请登录后点击上方下载按钮下载查看

网友评论0