dragula实现一个可以拖拽工作进度的工作任务看板效果代码
代码语言:html
所属分类:拖放
代码描述:dragula实现一个可以拖拽工作进度的工作任务看板效果代码,可以新增工作任务,并拖拽任务到不同的进度类别中,还有垃圾站回收任务。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/dragula.min.css">
<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;
}
h1,
h4 {
font-family: "Arimo", sans-serif;
line-height: 1.3;
}
header h1 {
font-size: 2.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 {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
width: 20rem;
height: 5.3rem;
margin: auto;
background: #a8a8a8;
border: #000013 0.2rem solid;
border-radius: 0.2rem;
padding: 0.4rem;
}
.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;
}
.column {
width: 8.4rem;
margin: 0 0.6rem;
background: #a8a8a8;
border: #000013 0.2rem solid;
border-radius: 0.2rem;
}
.column-header {
padding: 0.1rem;
border-bottom: #000013 0.2rem solid;
}
.column-header h4 {
text-align: center;
}
.to-do-column .column-header {
background: #ff872f;
}
.doing-column .column-header {
background: #13a4d9;
}
.done-column .column-header {
background: #15d072;
}
.trash-column .column-header {
background: #ff4444;
}
.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 {
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0