-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
138 lines (115 loc) · 2.25 KB
/
index.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
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
padding: 20px;
justify-content: center;
line-height: 1.6;
}
#root {
width: 100%;
max-width: 500px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 20px;
}
/* Input Styling */
input[type="text"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
}
input[type="text"]:focus {
outline: none;
border-color: #4a90e2;
box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}
/* Button Styling */
button {
border: none;
padding: 10px 15px;
margin: 0 5px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease, transform 0.1s ease;
color: white;
}
button:hover {
transform: translateY(-1px);
}
/* Specific Button Styles */
.Edit {
background-color: #3498db; /* Bright blue */
}
.Edit:hover {
background-color: #2980b9;
}
.Delete {
background-color: #e74c3c; /* Vibrant red */
}
.Delete:hover {
background-color: #c0392b;
}
.Done {
background-color: #2ecc71; /* Green for positive action */
}
.Done:hover {
background-color: #27ae60;
}
/* Other existing styles remain the same */
/* Todo List Styling */
.todo-list {
margin-top: 20px;
}
.todo-list > div {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
border-bottom: 1px solid #eee;
}
.todo-list > div:last-child {
border-bottom: none;
}
.todo-list span {
flex-grow: 1;
margin-right: 10px;
}
.todo-list input[type="text"] {
flex-grow: 1;
margin-right: 10px;
}
div[data-done-todo="true"] {
background-color: green;
}
/* Responsive Adjustments */
@media (max-width: 600px) {
#root {
width: 95%;
padding: 10px;
}
button {
padding: 8px 12px;
font-size: 12px;
}
}