-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtodo.css
More file actions
127 lines (111 loc) · 2.11 KB
/
Copy pathtodo.css
File metadata and controls
127 lines (111 loc) · 2.11 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
/* General styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f9f9f9;
color: #333;
text-align: center;
}
h1 {
background-color: #4CAF50;
color: white;
padding: 20px;
margin: 0;
border-bottom: 4px solid #3e8e41;
}
button {
cursor: pointer;
border: none;
background-color: #4CAF50;
color: white;
padding: 8px 12px;
font-size: 14px;
margin: 5px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #45a049;
}
/* Task input form */
#taskForm {
margin: 20px auto;
display: flex;
justify-content: center;
align-items: center;
}
#taskInput {
width: 300px;
padding: 10px;
margin-right: 10px;
border: 2px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
#taskInput:focus {
outline: none;
border-color: #4CAF50;
}
/* To-Do List Styles */
#todoList {
list-style: none;
padding: 0;
margin: 20px auto;
max-width: 400px;
text-align: left;
}
#todoList li {
background-color: white;
padding: 10px 15px;
margin: 5px 0;
border: 1px solid #ddd;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#todoList li input[type="checkbox"] {
margin-right: 15px;
cursor: pointer;
}
#todoList li span {
flex: 1;
font-size: 20px;
}
#todoList li button {
background-color: transparent;
color: #f44336; /* Trash can button color */
font-size: 18px;
padding: 5px;
border: none;
cursor: pointer;
transition: color 0.3s ease;
}
#todoList li button:hover {
color: #d32f2f;
}
/* Dropdown styling */
#listSelector {
padding: 8px;
font-size: 16px;
border: 2px solid #ccc;
border-radius: 5px;
margin: 10px 0;
}
#listSelector:focus {
outline: none;
border-color: #4CAF50;
}
@keyframes highlight {
0% {
background-color: #ffff99;
}
100% {
background-color: #f9f9f9;
}
}
.highlight {
animation: highlight 2s ease-in-out;
}