-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyTodo.css
70 lines (60 loc) · 1.25 KB
/
MyTodo.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
.app-container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #f5f5f5;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
border-radius: 4px;
}
h1 {
text-align: center;
margin-top: 0;
}
.input-container {
display: flex;
margin-bottom: 20px;
}
.input-container input {
flex: 1;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
.input-container button {
padding: 8px 16px;
margin-left: 8px;
background-color: #4caf50;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
.todo-list {
list-style: none;
padding: 0;
}
.todo-list li {
display: flex;
align-items: center;
padding: 8px;
margin-bottom: 8px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
}
.todo-list li.completed {
text-decoration: line-through;
opacity: 0.5;
}
.todo-list input[type="checkbox"] {
margin-right: 8px;
}
.todo-list button {
padding: 4px 8px;
background-color: #f44336;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
margin-left: auto;
}