css实现简洁代办任务管理代码
代码语言:html
所属分类:布局界面
代码描述:css实现简洁代办任务管理代码,可进行分类,移除、背景模糊、编辑等操作。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"
rel="stylesheet"
/>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap-icons.1.5.css">
<style>
#main:has(#task-1:checked) {
--task-1: 1;
}
#main:has(#task-1:checked) #item-1 {
height: 0rem;
margin-bottom: 0;
opacity: 0.3;
}
#main:has(#task-2:checked) {
--task-2: 1;
}
#main:has(#task-2:checked) #item-2 {
height: 0rem;
margin-bottom: 0;
opacity: 0.3;
}
#main:has(#task-3:checked) {
--task-3: 1;
}
#main:has(#task-3:checked) #item-3 {
height: 0rem;
margin-bottom: 0;
opacity: 0.3;
}
#main:has(#task-4:checked) {
--task-4: 1;
}
#main:has(#task-4:checked) #item-4 {
height: 0rem;
margin-bottom: 0;
opacity: 0.3;
}
#main:has(#task-5:checked) {
--task-5: 1;
}
#main:has(#task-5:checked) #item-5 {
height: 0rem;
margin-bottom: 0;
opacity: 0.3;
}
#main:has(#task-6:checked) {
--task-6: 1;
}
#main:has(#task-6:checked) #item-6 {
height: 0rem;
margin-bottom: 0;
opacity: 0.3;
}
#main:has(#task-7:checked) {
--task-7: 1;
}
#main:has(#task-7:checked) #item-7 {
height: 0rem;
margin-bottom: 0;
opacity: 0.3;
}
#main:has(#task-8:checked) {
--task-8: 1;
}
#main:has(#task-8:checked) #item-8 {
height: 0rem;
margin-bottom: 0;
opacity: 0.3;
}
body {
margin: 0;
font-family: "Inter", sans-serif;
background-color: #040a24;
}
#main:has(#show-finished:checked) #list > li {
height: 100px;
margin-bottom: 0.4rem;
}
#wrapper {
--color-code: 0, 26, 188;
--color-design: 78, 186, 177;
--color-other: 193, 88, 200;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
perspective: 2000px;
padding-top: 8rem;
padding-bottom: 8rem;
}
#wrapper h1 {
font-size: 3.25rem;
line-height: 1.2;
transform: translateZ(20px);
}
#wrapper h2 {
font-size: 1.125rem;
padding-top: 2.5rem;
transform: translateZ(10px);
}
#wrapper h6 {
font-size: 1rem;
opacity: 0.6;
padding-bottom: 2.5rem;
transform: translateZ(10px);
}
#wrapper h1,
#wrapper h2,
#wrapper h6 {
color: #fff;
font-weight: bold;
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
margin: 0;
transform-style: preserve-3d;
}
.task-checkbox {
display: flex;
justify-content: center;
align-items: center;
border: 1px solid #bababa;
appearance: none;
width: 20px;
height: 20px;
margin: 0;
border-radius: 4px;
transition: background-color 0.15s;
margin-right: 1rem;
cursor: pointer;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.05);
}
.task-checkbox::after {
transform: translateY(0.1rem);
opacity: 0;
transition: 0.15s;
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.1' height='11.2' viewBox='0 0 14.1 11.2' style='enable-background:new 0 0 14.1 11.2' xml:space='preserve'%3E%3Cg%3E%3Cpath style='fill:%23fff' d='M5.1 11.2 0 6.1 2.1 4l3 2.9L12 0l2.1 2.1z'/%3E%3C/g%3E%3C/svg%3E%0A");
}
.task-checkbox:checked {
background-color: #bababa;
}
.task-checkbox:checked::after {
opacity: 1;
}
#card {
display: flex;
flex-dir.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0