-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtodo.css
373 lines (311 loc) · 9.21 KB
/
todo.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
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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
/* ----------( body )---------- */
/* Gradiant is used for background of the body */
body {
font-family: ubuntu;
position: relative;
max-height: 100vh;
max-width: 100vw;
/* ------( css code for gradiant background goes below )------ */
background: #2BC0E4; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #EAECC6, #2BC0E4); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #EAECC6, #2BC0E4); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
/* ----------( ^ body )---------- */
/* ------( wrapper )------ */
/* wrapper id is used to hold all the elements inside body */
#wrapper {
margin: 150px auto 0 auto;
background: #eeeeee;
max-width: 35vw;
min-width: 420px;
box-shadow: 7px 7px 16px 0px rgb(80, 80, 80);
border-radius: 18px;
}
/* ------( ^ wrapper )------ */
/* ------( h1 and add-todo-icon )------ */
/* h1 is used for title and add-todo-icon */
h1 {
margin: 0;
background: #00868b;
color: whitesmoke;
padding: 10px 2px 10px 5px;
font-weight: normal;
border-top-left-radius: 18px;
border-top-right-radius: 18px;
}
h1 span {
letter-spacing: 2px;
text-shadow: 3px 3px 5px black;
height: 60px;
line-height: 60px;
font-family: "Ubuntu";
}
/* ------( h1 i is used to toggle the visibilty of new todo input field )------ */
h1 i {
width: 60px;
height: 50px;
text-align: center;
float: right;
font-size: x-large;
padding: 20px 0 0 21px;
text-shadow: none;
}
h1 i:hover {
cursor: pointer;
font-size: 1.6rem;
text-shadow: 3px 3px 5px black;
}
/* ------( ^ h1 and add-todo-icon )------ */
/* ------( inputContainer )------ */
/* ------( input container holds all the element for adding new todo )------ */
#inputContainer {
display: none;
width: 100%;
height: 45px;
margin: 0;
padding: 0;
border: none;
box-sizing: border-box;
}
/* ------( this is the input field in the inputContainer )------ */
#inputContainer input {
height: 45px;
margin: 0;
padding: 10px 10px 10px 23px;
border: none;
font-size: medium;
background: white;
color: #6d6d6d;
text-decoration: none;
font-family: ubuntu;
}
#inputContainer input::placeholder {
color: #8e8e8e;
}
/* ------( this is the add new todo button in the inputContainer )------ */
#inputContainer button {
display: none;
height: 45px;
float: right;
margin: 0;
border: none;
padding: 10px;
background: white;
color: rgb(69, 143, 69);
font-weight: bold;
font-family: roboto;
letter-spacing: 1px;
cursor: pointer;
}
/* ------( creates effects on input field while input field has focus )------ */
#inputContainer input:focus {
border: none;
background: #e6f7ff;
outline: none;
text-decoration: none;
text-shadow: none;
font-size: 108%;
color: #303030;
}
/* ------( creates effects on button while input field got focus )------ */
#inputContainer input:focus + button {
background: #e6f7ff;
}
/* ------( creates effects on button while button is hover )------ */
#inputContainer button:hover {
background: #e6f7ff;
color: green;
font-size: 115%;
font-weight: bolder;
}
/* ------( creates effects on button while button got focus )------ */
#inputContainer button:focus {
border: none;
outline: none;
background: #e6f7ff;
color: green;
font-size: 115%;
font-weight: bolder;
}
/* ------( ^ inputContainer )------ */
/* ------( message flash )------ */
/* ------( this notifies user with a message )------ */
#message p {
display: none;
margin: -45px 0 0 36vw;
width: fit-content;
height: 45px;
padding: 12.5px ;
position: absolute;
box-sizing: border-box;
box-shadow: 4px 4px 8px 0px rgb(29, 28, 28);
}
/* ------( ^ message flash )------ */
/* ------( noList )------ */
/* ------( this creates effects for "No ToDO listed" window )------ */
#noList {
margin: 0;
height: 170px;
width: 35vw;
min-width: 420px;
padding: 10px;
line-height: 150px;
text-align: center;
font-family: "Bad Script";
letter-spacing: 2px;
background: rgba(171, 235, 235, 0.808);
color: rgb(0, 163, 163);
border-bottom-left-radius: 18px;
border-bottom-right-radius: 18px;
}
#noList span{
margin-right: 10px;
opacity: 0.9;
text-align: center;
}
#noList:hover {
cursor: pointer;
}
/* ------( ^ noList )------ */
/* ------( ulTodo )------ */
/* ------( this creates effetcs for all li in the ul )------ */
#ulTodo {
margin: 0;
padding: 0;
list-style-type: none;
}
#ulTodo li {
height: 51px;
line-height: 51px;
margin: 0;
padding-left: 0px;
}
#ulTodo li input[type='checkbox'] {
margin-left: 23px;
display: none;
opacity: 0;
}
#ulTodo li span {
margin: 0;
margin-left: 23px;
/*width: 60%;*/
color: rgb(43, 41, 41);
display: inline-block;
}
#ulTodo li:nth-child(2n) {
background: white;
}
#ulTodo li input[type="text"], #ulTodo li button {
display: none;
margin: 0;
padding: 0;
height: 45px;
line-height: 45px;
width: 0;
opacity: 0;
border: none;
background: white;
}
#ulTodo li input[type="text"] {
font-size: 1.4rem;
padding: 5px 5px 5px 20px;
outline: none;
letter-spacing: 1px;
}
#ulTodo li button {
color: rgb(4, 90, 90);
float: right;
outline: none;
}
#ulTodo li i {
display: none;
height: 0;
width: 0;
opacity: 0;
float: right;
}
#ulTodo li:hover {
box-shadow: 4px 4px 15px #00868b;
}
#ulTodo li:hover span {
margin-left: 10px;
cursor: pointer;
font-size: 105%;
font-weight: bold;
}
#ulTodo li:hover input[type='checkbox'] {
display: inline-block;
opacity: 1.0;
transition: width 3s;
transition-timing-function: linear;
cursor: pointer;
font-size: 105%;
}
#ulTodo li button:hover {
font-size: 105%;
font-weight: bolder;
letter-spacing: 1px;
color: rgb(0, 94, 0);
background: rgb(210, 248, 152);
cursor: pointer;
}
#ulTodo li:hover i {
display: inline-block;
width: 50px;
height: 30px;
line-height: 30px;
padding: 10px;
color: rgb(112, 112, 112);
opacity: 1.0;
text-align: center;
cursor: pointer;
}
#ulTodo li i:last-child:hover {
color: #23464d;
font-size: 125%;
font-weight: bolder;
}
#ulTodo li i:nth-last-of-type(2):hover {
height: 100%;
width: 50px;
background: rgb(233, 3, 3);
color: white;
font-size: 125%;
font-weight: bolder;
text-shadow: 3px 3px 6px black;
}
#ulTodo li:last-child {
color: yellow;
border-bottom-left-radius: 18px;
border-bottom-right-radius: 18px;
}
/* ------( ^ ulTodo )------ */
/* ---------------------------------------------------------------------------------------------------- */
/* ------( Library-Class goes here )------ */
/* ---------------------------------------------------------------------------------------------------- */
.boxShadow {
box-shadow: 4px 4px 15px #00868b;
}
.ji {
cursor: wait;
}
.scrolBar {
height: 255px;
overflow: auto;
}
.doneMessage {
color: #214f21;
text-align: center;
font-family: roboto;
font-style: italic;
font-weight: bolder;
background: #0cebeb; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #29ffc6, #20e3b2, #0cebeb); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #29ffc6, #20e3b2, #0cebeb); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.completedTodo {
color: rgb(126, 114, 114);
text-decoration-line: line-through;
opacity: 0.6;
}
/* ------( ^ Library-Class )------ */