-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
120 lines (102 loc) · 1.83 KB
/
styles.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
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #5eead4;
border-radius: 5px;
}
.header {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
}
.header h1 {
margin: 0;
}
.status-message {
margin-bottom: 10px;
color: green;
display: none;
animation: fadeInOut 3s;
}
@keyframes fadeInOut {
0% { opacity: 0; }
10% { opacity: 1; }
90% { opacity: 1; }
100% { opacity: 0; }
}
form {
display: flex;
margin-bottom: 20px;
flex-wrap: wrap;
}
form input[type="text"],
form textarea {
flex: 1;
padding: 10px;
margin-right: 10px;
border-radius: 5px;
border: none;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
font-size: 16px;
line-height: 1.5;
}
form input[type="submit"] {
padding: 10px 20px;
background-color: #0d9488;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
line-height: 1.5;
}
.todo-item {
display: flex;
align-items: center;
padding: 10px;
background-color: white;
border-radius: 5px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
margin-bottom: 10px;
}
.todo-item h2 {
flex: 1;
margin-top: 0;
margin-bottom: 5px;
margin-left: 20px;
}
.todo-item p {
margin-top: 0;
margin-bottom: 10px;
}
.todo-item form {
display: flex;
margin-right: auto;
}
.todo-item button {
padding: 5px 10px;
background-color: #0d9488;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.checkbox-form {
margin-right: 10px;
}
.button-container {
margin-left: auto;
display: flex;
gap: 10px;
}
.todo-item button:hover {
background-color: #3e8e41;
}
label {
display: flex;
}
label input[type=checkbox]:checked + h2 {
text-decoration: line-through;
}