forked from OGUR4IK398/ToDoList
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
87 lines (69 loc) · 1.22 KB
/
style.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
75
76
77
78
79
80
81
82
83
84
85
86
body {
margin: auto;
}
.my-container {
display: flex;
flex-direction: column;
position: absolute;
left: 35%;
top: 30%;
width: 30%;
background-color: red;
}
.header {
display: flex;
}
.btn-add {
padding-left: 20px;
padding-right: 20px;
border-radius: 0px;
}
.task {
display: flex;
align-items: center;
justify-content: right;
height: 60px;
padding-left: 20px;
padding-right: 20px;
background-color: wheat;
border: 0.1px solid gray;
}
.chb {
display: none;
}
label {
position: relative;
margin: 0px;
}
span.checkbox {
width: 50px;
}
span::before, span::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
margin: auto;
}
span.checkbox::before {
width: 30px;
height: 30px;
background-color: white;
box-sizing: border-box;
border: 3px solid transparent;
transition: border-color .2s;
}
span.checkbox:hover::before {
border: 3px solid #F0FF76;
}
span.checkbox::after {
content: "\2713";
font-family: 'FontAwesome';
font-size: 25px;
top: -5px;
color: transparent;
transition: color .2s;
}
input[type="checkbox"]:checked + label span.checkbox::after {
color: green;
}