-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.css
More file actions
90 lines (77 loc) · 1.35 KB
/
Copy pathApp.css
File metadata and controls
90 lines (77 loc) · 1.35 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
#root {
max-width: 600px;
margin: 0 auto;
padding: 2rem;
}
.todo-app {
background-color: #f5f5f5;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 100%;
}
h1 {
color: #333;
text-align: center;
margin-bottom: 20px;
}
.add-todo {
display: flex;
margin-bottom: 20px;
}
.add-todo input {
flex-grow: 1;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px 0 0 4px;
font-size: 16px;
}
.add-todo button {
padding: 10px 15px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 0 4px 4px 0;
cursor: pointer;
font-size: 16px;
}
.add-todo button:hover {
background-color: #45a049;
}
.todo-list {
list-style-type: none;
padding: 0;
}
.todo-list li {
display: flex;
align-items: center;
padding: 12px;
background-color: white;
border-radius: 4px;
margin-bottom: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.todo-list li.completed span {
text-decoration: line-through;
color: #888;
}
.todo-list li input[type="checkbox"] {
margin-right: 10px;
cursor: pointer;
}
.todo-list li span {
flex-grow: 1;
font-size: 16px;
color: #333;
}
.todo-list li button {
padding: 5px 10px;
background-color: #f44336;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.todo-list li button:hover {
background-color: #d32f2f;
}