dragula+css实现模仿Docket的待办事项应用代码
代码语言:html
所属分类:布局界面
代码描述:dragula+css实现模仿Docket的待办事项应用代码,分为待办、办理中、已经完成、垃圾箱四类,可以新增待办,可以拖拽四个状态类别的文字改变状态。
代码标签: dragula css 模仿Docket 待办事项 应用 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=Arimo:400,700|Roboto+Slab:400,700");
:root {
font-size: calc(0.5vw + 1vh);
}
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
min-width: 420px;
background: #060818;
color: #fff;
background: linear-gradient(15deg, #d33f34 50%, #a61322 50.1%);
height: 100vh;
scale: 0.1;
animation: zoom-in 1s normal forwards ease-in-out;
}
@keyframes zoom-in {
0% {
scale: 0.1;
}
100% {
scale: 1;
}
}
h1,
h4 {
font-family: "Arimo", sans-serif;
line-height: 1.3;
}
header h1 {
font-size: 5.4rem;
margin: 4rem auto;
}
span {
font-size: 3rem;
}
p {
font-family: "Roboto Slab", serif;
}
a,
a:link,
a:active,
a:visited {
color: #0066aa;
text-decoration: none;
border-bottom: #000013 0.16rem solid;
}
a:hover {
color: #000013;
border-bottom: #0066aa 0.16rem solid;
}
header,
footer {
width: 40rem;
margin: 2rem auto;
text-align: center;
}
.add-task-container {
width: 50%;
justify-content: space-between;
display: flex;
margin: 0 auto;
padding: 10px;
position: relative;
background: #0e1726;
overflow: hidden;
border-radius: 10px;
border: 1px solid #1b2e4b;
box-shadow: 18px 20px 10.3px -23px rgb(0 0 0 / 15%);
font-size: 18px;
}
.main-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.columns {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
margin: 1.6rem auto;
width: 80%;
color: #bfc9d4;
}
.column {
width: 100%;
flex: 1;
margin: 0 10px;
position: relative;
background: #0e1726;
overflow: hidden;
border-radius: 10px;
border: 1px solid #1b2e4b;
box-shadow: 18px 20px 10.3px -23px rgb(0 0 0 / 15%);
}
.column-header {
font-size: 17px;
border-bottom: #000013 0.2rem solid;
}
.column-header h4 {
text-align: center;
}
.task-list {
min-height: 3rem;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
li {
list-style-type: none;
}
.column-button {
text-align: center;
padding: 0.1rem;
}
.button {
font-family: "Arimo", sans-serif;
font-weight: 700;
border: #000013 0.14rem solid;
border-radius: 0.2rem;
color: #000013;
padding: 0.6rem 1rem;
margin-bottom: 0.3rem;
cursor: pointer;
}
.delete-button {
background-color: #ff4444;
margin: 0.1rem auto 0.6rem auto;
}
.delete-button:hover {
background-color: #fa7070;
}
.add-button {
background-color: #ffcb1e;
padding: 0 1rem;
height: 3.8rem;
width: 10rem;
margin-top: 0.6rem;
}
.add-button:hover {
background-color: #ffdd6e;
}
.task {
background: #1b2e4b;
margin: 0.4rem;
height: 4rem;
display: flex;
-webkit-box-p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0