-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle2.css
More file actions
229 lines (197 loc) · 3.99 KB
/
style2.css
File metadata and controls
229 lines (197 loc) · 3.99 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Jost', sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: url('./images/background.jpg') no-repeat center center / cover;
padding: 20px;
}
.container {
width: 100%;
max-width: 500px;
}
.todo-app {
width: 100%;
padding: 2rem;
border-radius: 20px;
background: rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
gap: 30px;
}
.todo-app h1 {
font-size: 2rem;
text-align: center;
color: #ffffff;
background: linear-gradient(to right, #e2cbd1, #e09467);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.input-area {
width: 100%;
display: flex;
gap: 10px;
}
.input-area input {
flex: 1;
padding: 12px 18px;
font-size: 1rem;
border: none;
outline: none;
border-radius: 25px;
background: rgba(255, 255, 255, 0.15);
color: #ffffff;
backdrop-filter: blur(5px);
}
.input-area input::placeholder {
color: #dddddd;
}
.input-area button {
padding: 10px;
border-radius: 50%;
font-size: 1.2rem;
color: #fff;
background: rgba(255, 111, 145, 0.4);
border: 2px solid rgba(255, 255, 255, 0.18);
cursor: pointer;
transition: all 0.2s ease-in-out;
}
.input-area button:hover {
background: #ff6f91;
transform: scale(1.1);
}
.todos-container {
width: 100%;
}
#task-list {
width: 100%;
max-height: 300px;
overflow-y: auto;
padding: 10px;
border-radius: 15px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
}
#task-list li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
margin-bottom: 8px;
transition: background 0.3s ease;
background: rgba(255, 255, 255, 0.05);
}
#task-list li:hover {
background: rgba(255, 255, 255, 0.15);
}
/* Checkbox Styling */
input[type="checkbox"] {
appearance: none;
width: 20px;
height: 20px;
border: 2px solid #ff6f91;
border-radius: 50%;
cursor: pointer;
position: relative;
transition: all 0.2s ease;
background-color: transparent;
}
input[type="checkbox"]:checked {
background-color: #ff6f91;
border-color: #ff6f91;
}
input[type="checkbox"]::after {
content: '';
position: absolute;
top: 2px;
left: 6px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
display: none;
}
input[type="checkbox"]:checked::after {
display: block;
}
/* Task Text */
#task-list li span {
color: #fff;
font-size: 1rem;
margin-left: 12px;
font-weight: 600;
}
/* Button Group */
#task-list li button {
background: transparent;
border: none;
font-size: 1.1rem;
cursor: pointer;
padding: 6px;
transition: color 0.3s ease, transform 0.2s ease;
}
#task-list li button:nth-child(1) {
color: #ffc3a0;
}
#task-list li button:nth-child(1):hover {
color: #ff9f80;
transform: scale(1.2);
}
#task-list li button:nth-child(2) {
color: #ff6f91;
}
#task-list li button:nth-child(2):hover {
color: #ff3c6d;
transform: scale(1.2);
}
#task-list::-webkit-scrollbar {
width: 6px;
}
#task-list::-webkit-scrollbar-thumb {
background: rgba(255, 111, 145, 0.6);
border-radius: 5px;
}
.empty-image {
width: 100%;
max-width: 250px;
opacity: 0.8;
display: block;
margin: 0 auto 20px;
}
@media (max-width: 500px) {
.todo-app {
padding: 1.5rem;
}
.input-area {
flex-direction: column;
}
.input-area input {
width: 100%;
}
.input-area button {
margin-left: 0;
margin-top: 10px;
border-radius: 12px;
width: 100%;
}
#task-list li {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
}