-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
107 lines (91 loc) · 1.72 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
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8f9fa;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
width: 80%;
max-width: 600px;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
margin-top: 0;
color: #333;
font-size: 2.5rem;
margin-bottom: 20px;
}
.todo-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
input[type="text"] {
flex: 1;
padding: 15px;
border: 2px solid #ddd;
border-radius: 30px;
margin-right: 10px;
font-size: 1.1rem;
outline: none;
transition: border-color 0.3s ease;
}
input[type="text"]::placeholder {
color: #aaa;
}
input[type="text"]:focus {
border-color: #4CAF50;
}
button {
padding: 10px 20px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #45a049;
}
.add-task-btn {
background-color: #007bff;
}
.add-task-btn:hover {
background-color: #0056b3;
}
.clear-all-btn {
background-color: #dc3545;
}
.clear-all-btn:hover {
background-color: #c82333;
}
ul {
list-style-type: none;
padding: 0;
}
li {
padding: 15px;
background-color: #f9f9f9;
border-radius: 10px;
margin-bottom: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.completed {
text-decoration: line-through;
color: #888;
}
footer {
text-align: center;
margin-top: 20px;
color: #888;
}