-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodo.css
More file actions
211 lines (180 loc) · 3.56 KB
/
todo.css
File metadata and controls
211 lines (180 loc) · 3.56 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
body {
font-family: "Poppins", sans-serif;
background-image:url(pngtree-tropical-beach-house-with-palm-trees-and-crystal-clear-water-image_16189424.jpg);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.todo-container {
position: relative;
background: linear-gradient(135deg, #87CEEB, #4682B4);
padding:0px 25px 30px;
border-radius: 16px;
width: 360px;
box-shadow: 0 8px 20px oklch(0% 0 0 / 0.1);
}
.todo-container h1 {
text-align: center;
margin-bottom: 20px;
color: brown;
font-family: 'Dancing Script', cursive;
}
.logo {
color: orangered;
font-weight: bold;
font-size: 3rem;
font-family: cursive;
}
.input-section {
display: flex;
flex-direction: row;
gap: 8px;
margin-bottom: 20px;
font-family: cursive;
}
#todo-input {
flex: 1;
padding: 10px;
border: 2px solid #ddd;
border-radius: 10px;
font-size: 16px;
font-family: cursive;
outline: none;
transition: border 0.3s ease;
}
#todo-input:focus {
border-color: #5a67d8;
}
#add-btn {
background: blue;
color: white;
border: none;
border-radius: 8px;
padding: 10px 16px;
cursor: pointer;
font-weight: 500;
transition: background 0.3s ease;
}
#add-btn:hover {
background: #434190;
}
#todo-list {
list-style: none;
padding: 0;
margin: 0;
}
#todo-list li {
background: linear-gradient(150deg,white, lightblue);
padding: 12px 14px;
border-bottom: gray solid 1px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
display: flex;
flex-direction: column;
gap: 10px;
position: relative;
transition: transform 0.2s, background 0.2s ease;
}
#todo-list li:first-child {
border-radius: 8px 8px 0 0;
}
#todo-list li:last-child {
border-radius: 0 0 8px 8px;
border-bottom: none;
}
#todo-list li:only-child {
border-radius: 8px;
border-bottom: none;
}
#todo-list li:hover {
background: whitesmoke;
box-shadow: 0 2px 70px rgba(0, 0, 0, 0.8);
}
#todo-list li span {
font-family: 'Poppins', sans-serif;
font-size: 19px;
cursor: pointer;
color: green;
overflow: hidden;
word-wrap: break-word;
hyphens: auto;
}
#todo-list li.done span {
text-decoration: line-through;
color: #999;
}
#todo-list li small {
font-size: 13px;
color: #777;
}
#todo-list li button {
position: absolute;
top: 20px;
right: 10px;
background: none;
border: none;
cursor: pointer;
font-size: 1.1rem;
transition: color 0.3s ease;
color: red;
}
#todo-list li button:hover {
transform: scale(1.2);
}
#splash-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #87CEEB, #4682B4);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
opacity: 1;
transition: opacity 1s ease-out;
}
#splash-screen.hidden {
opacity: 0;
pointer-events: none;
}
.splash-content {
text-align: center;
color: white;
}
.splash-content h1 {
font-family: 'Dancing Script', cursive;
font-size: 3rem;
margin-bottom: 20px;
overflow: hidden;
white-space: nowrap;
border-right: 2px solid;
animation: typing 2s steps(10) forwards;
}
@keyframes typing {
from {width: 0;}
to {width: 100%;}
}
.splash-content .logo {
color: orangered;
font-weight: bold;
}
.splash-content p {
font-size: 1.2rem;
margin-bottom: 20px;
}
.spinner {
width: 40px;
height: 40px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-top: 4px solid white;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}