-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
125 lines (109 loc) · 1.82 KB
/
style.css
File metadata and controls
125 lines (109 loc) · 1.82 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
/* Reset some defaults */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
}
body {
background: #f3f4f6;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
padding: 40px 20px;
min-height: 100vh;
}
h1 {
font-size: 2.2rem;
margin-bottom: 20px;
color: #111827;
}
/* Input & buttons section */
div {
margin-bottom: 20px;
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
}
input[type="text"] {
padding: 10px 14px;
font-size: 1rem;
border: 2px solid #d1d5db;
border-radius: 8px;
outline: none;
min-width: 220px;
transition: all 0.2s ease;
}
input[type="text"]:focus {
border-color: #2563eb;
box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
}
button {
padding: 10px 16px;
font-size: 1rem;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
}
/* Button Colors */
#add_todo_btn {
background: #2563eb;
color: white;
}
#add_todo_btn:hover {
background: #1d4ed8;
}
#delete_all_todo_btn {
background: #dc2626;
color: white;
}
#delete_all_todo_btn:hover {
background: #b91c1c;
}
.todo_item i {
margin-left: 10px;
cursor: pointer;
font-size: 1.3rem;
transition: color 0.2s ease;
}
/* Edit Icon */
.editIcon {
color: #f59e0b;
}
.editIcon:hover {
color: #d97706;
}
/* Delete Icon */
.deleteIcon {
color: #ef4444;
}
.deleteIcon:hover {
color: #b91c1c;
}
/* Todo List */
ul {
list-style: none;
width: 100%;
max-width: 500px;
}
.todo_item {
background: white;
padding: 12px 16px;
margin-bottom: 10px;
border-radius: 10px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.todo_item span {
flex: 1;
font-size: 1rem;
color: #374151;
}
.todo_item button {
margin-left: 8px;
}