-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
243 lines (215 loc) · 4.69 KB
/
styles.css
File metadata and controls
243 lines (215 loc) · 4.69 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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
/* External CSS File */
.intro {
background-color: #f0f0f0;
padding: 20px;
text-align: center;
border-bottom: 1px solid #ccc;
}
.intro h1 {
color: #333;
font-size: 1.5em;
}
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 2px;
position: fixed;
bottom: 0;
width: 100%;
}
/* Default theme variables */
:root {
--background-color: #f0f0f0;
--primary-color: #007bff;
--primary-hover-color: #0056b3;
--text-color: #333;
--section-bg-color: white;
--task-bg-color: #f9f9f9;
--delete-button-color: #dc3545;
--delete-button-hover-color: #c82333;
}
/* Dark theme variables */
[data-theme="dark"] {
--background-color: #333;
--primary-color: #555;
--primary-hover-color: #777;
--text-color: #f0f0f0;
--section-bg-color: #444;
--task-bg-color: #555;
--delete-button-color: #aa0000;
--delete-button-hover-color: #cc0000;
}
/* Blue theme variables */
[data-theme="blue"] {
--background-color: #e0f7fa;
--primary-color: #00796b;
--primary-hover-color: #004d40;
--text-color: #fffcfc;
--section-bg-color: #b2ebf2;
--task-bg-color: #80deea;
--delete-button-color: #147e6c;
--delete-button-hover-color: #296b66;
}
/* Purple theme variables */
[data-theme="purple"] {
--background-color: #f9f4f9;
--primary-color: #c88bd3;
--primary-hover-color: #ba4be9;
--text-color: #ffffff;
--section-bg-color: #dcade4;
--task-bg-color: #ba68c8;
--delete-button-color: #7b1fa2;
--delete-button-hover-color: #5a1b7d;
}
body {
font-family: "Arial", sans-serif;
background-color: var(--background-color);
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
transition: background-color 0.3s;
}
.menu {
background-color: var(--primary-color);
width: 100%;
display: flex;
justify-content: center;
padding: 10px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.menu button {
background-color: var(--primary-color);
color: var(--text-color);
border: none;
padding: 10px 20px;
cursor: pointer;
margin: 0 10px;
font-size: 16px;
border-radius: 4px;
transition: background-color 0.3s, transform 0.2s;
}
.menu button:hover {
background-color: var(--primary-hover-color);
transform: scale(1.05);
}
.section {
background-color: var(--section-bg-color);
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 400px;
margin-top: 20px;
transition: all 0.3s;
}
h2 {
color: var(--text-color);
margin-bottom: 20px;
text-align: center;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
color: var(--text-color);
}
.form-group input {
width: calc(100% - 22px);
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
transition: border-color 0.3s;
}
.form-group input:focus {
border-color: var(--primary-color);
outline: none;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
button {
width: 100%;
padding: 10px;
border: none;
background-color: var(--primary-color);
color: var(--text-color);
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s, transform 0.2s;
}
button:hover {
background-color: var(--primary-hover-color);
transform: scale(1.05);
}
#taskListContent,
#deletedTaskContent {
margin-top: 20px;
}
.task {
background-color: var(--task-bg-color);
padding: 10px;
border-radius: 4px;
margin-bottom: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.2s;
}
.task:hover {
transform: scale(1.02);
}
.task button {
background-color: var(--delete-button-color);
margin-top: 10px;
}
.task button:hover {
background-color: var(--delete-button-hover-color);
}
.theme-switcher {
display: flex;
align-items: center;
gap: 10px;
background: var(--section-bg-color);
padding: 12px 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-top: 20px;
position: relative;
}
.theme-switcher h2 {
font-size: 15px;
font-weight: bold;
color: var(--text-color);
margin: 0;
}
.theme-switcher select {
appearance: none;
padding: 12px;
border: 1px solid var(--primary-color);
border-radius: 8px;
background-color: var(--background-color);
color: var(--text-color);
font-size: 14px;
transition: border-color 0.3s, box-shadow 0.3s;
width: 150px;
cursor: pointer;
position: relative;
z-index: 1;
}
.theme-switcher select:focus {
outline: none;
border-color: var(--primary-hover-color);
box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}
.theme-switcher select::after {
content: "\25BC";
position: absolute;
top: 50%;
right: 12px;
transform: translateY(-50%);
pointer-events: none;
color: var(--text-color);
font-size: 14px;
z-index: 0;
}