-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathto-do-list.css
74 lines (66 loc) · 1.18 KB
/
to-do-list.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
body{
background-color: #262626;
margin: 0;
padding: 0;
font-family: "Montserrat", sans-serif;
}
ul{
margin: 0;
padding: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #0C4C76;
padding: 10px 20px;
width: 600px;
border: 1px solid grey;
}
ul li{
list-style: none;
position: relative;
padding: 10px 0;
border-bottom: 1px solid rgba(0,0,0,0.2);
}
ul li:last-child{
border-bottom: none;
}
ul li label{
font-size: 60px;
color: #fff;
padding-left: 90px;
cursor: pointer;
}
ul li label input{
opacity: 0;
cursor: pointer;
}
ul li label .check{
position: absolute;
top: 20px;
left: 25px;
width: 50px;
height: 50px;
background-color: #000;
display: block;
box-sizing: border-box;
border: 2px solid #fff;
border-radius: 12px;
}
ul li label .check:before{
content: "";
position: absolute;
top: 9px;
left: 9px;
right: 9px;
bottom: 9px;
background: #F08080;
border-radius: 2px;
transition: .5s;
transform: translateX(520px);
}
ul li label input:checked ~ .check:before{
background: #FA8072;
box-shadow: 0 0 15px #FA8072;
transform: translateX(0);
}