-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
135 lines (117 loc) · 2.31 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Poppins", sans-serif;
background: #f4f6fd;
display: flex;
flex-direction: column;
min-height: 100dvh;
}
h1 {
color: #020417;
text-align: center;
margin-block: 1.5rem;
}
.container {
max-width: 400px;
margin-inline: auto;
}
.todo-form {
background: #fff;
padding: 16px;
border-radius: 8px;
box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.1);
display: flex;
overflow: hidden;
margin-bottom: 1rem;
}
.todo-form input {
width: 100%;
flex: 1;
padding: 8px 16px;
font-size: 1.25rem;
border: none;
outline: none;
}
.todo-form button {
padding: 8px;
background: #2643c4;
color: #fff;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
#statusText {
padding: 8px;
text-align: center;
color: #373b5e;
}
#todoList {
list-style: none;
}
.todo-item {
background: #fff;
color: #373b5e;
font-weight: 500;
font-size: 1rem;
padding: 12px 16px;
border-radius: 8px;
box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.1);
margin-top: 8px;
display: flex;
align-items: center;
gap: 8px;
}
.todo-item span {
flex: 1;
}
.todo-item .remove-button {
border: none;
background: transparent;
width: 24px;
height: 24px;
cursor: pointer;
display: none;
color: red;
}
/* Show remove button on mobile */
@media (hover: none) and (pointer: coarse) {
.todo-item .remove-button {
display: block;
}
}
.todo-item:hover .remove-button {
display: block;
}
.todo-item input[type="checkbox"]:checked + span {
text-decoration: line-through;
color: #9d9ab4;
}
.todo-item input[type="checkbox"] {
cursor: pointer;
appearance: none;
width: 24px;
height: 24px;
border: 2px solid violet;
border-radius: 50%;
position: relative;
}
.todo-item input[type="checkbox"]:checked {
border-color: #adbaeb;
background: #adbaeb;
}
.todo-item input[type="checkbox"]:checked::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path stroke="white" stroke-width="3" fill="none" d="M6,12 L10,16 L18,8" /></svg>');
}