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-direction: column;
width: 25rem;
height: 45rem;
position: relative;
background-color: #f7f7f7;
border-radius: 2rem;
}
#card::after {
content: "";
position: absolute;
width: calc(100% - 2.5rem);
height: 1.5rem;
background: linear-gradient(0deg, #f7f7f7, transparent);
bottom: 0.8rem;
pointer-events: none;
left: 8px;
right: 8px;
margin: auto;
border-radius: 1rem;
transform-style: preserve-3d;
transform: translateZ(40px);
}
#header {
flex-grow: 1;
flex-shrink: 0;
height: 18rem;
position: relative;
border-radius: 2rem;
box-shadow: 0px 0px 3rem rgba(0, 0, 0, 0.5);
margin-bottom: 0.5rem;
z-index: 1;
transform: translateZ(40px);
background-blend-mode: multiply;
background: #253abc url(//repo.bfw.wiki/bfwrepo/image/634f71a6d2293.png);
background-size: cover;
background-position: center;
}
#header .title {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
padding-left: 2.5rem;
padding-right: 2.5rem;
position: relative;
z-index: 1;
}
#main {
--count: calc(var(--task-1, 0) + var(--task-2, 0) + var(--task-3, 0) + var(--task-4, 0) + var(--task-5, 0) + var(--task-6, 0) + var(--task-7, 0) + var(--task-8, 0) + 0);
counter-reset: css-counter var(--count, 0);
height: 27rem;
padding: 0.8rem;
position: relative;
overflow: hidden;
transform: translateZ(40px);
border-radius: 2rem;
}
#main::before {
content: counter(css-counter);
position: absolute;
font-weight: bold;
font-size: 0.875rem;
margin-left: 0.4rem;
}
#main::after {
content: "";
position: absolute;
height: 1.2rem;
background: linear-gradient(180deg, #f7f7f7, transparent);
top: 2.25rem;
pointer-events: none;
width: calc(100% - 2.5rem);
right: 0;
left: 0;
margin: auto;
}
#stats {
margin-left: 1rem;
display: flex;
justify-content: space-between;
font-size: 0.875rem;
margin-bottom: 1rem;
margin-left: 1.4rem;
}
#stats label {
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
#stats label span {
margin-right: 0.5rem;
}
#stats label input {
appearance: none;
width: 26px;
height: 16px;
background-color: rgba(6, 18, 64, 0.3);
border-radius: 2rem;
position: relative;
display: inherit;
align-items: inherit;
}
#stats label input:checked {
background-color: #061240;
}
#stats lab.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0