-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToDoList.css
More file actions
96 lines (84 loc) · 1.61 KB
/
ToDoList.css
File metadata and controls
96 lines (84 loc) · 1.61 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
91
92
93
94
95
96
/* Container Styles */
.todo-list {
width: 100%;
max-width: 400px;
margin: 50px auto;
padding: 20px;
background-color: #f8f9fa;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
font-family: Arial, sans-serif;
}
/* Header Styles */
h1 {
text-align: center;
color: #343a40;
margin-bottom: 20px;
}
/* Input Container Styles */
.input-container {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
input {
flex: 1;
padding: 10px;
border: 2px solid #6c757d;
border-radius: 4px;
margin-right: 10px;
font-size: 16px;
}
button {
padding: 10px 15px;
border: none;
background-color: #28a745;
color: white;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #218838;
}
/* Task List Styles */
ul {
list-style-type: none;
padding: 0;
}
li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
border: 1px solid #ced4da;
border-radius: 4px;
margin-bottom: 10px;
transition: background-color 0.3s ease;
}
li:hover {
background-color: #e9ecef;
}
/* Completed Task Styles */
li.completed span {
text-decoration: line-through;
color: #6c757d;
}
/* Button Styles */
li button {
background-color: #dc3545;
padding: 5px 10px;
border-radius: 4px;
color: white;
cursor: pointer;
border: none;
transition: background-color 0.3s ease;
}
li button:hover {
background-color: #c82333;
}
span {
flex: 1;
cursor: pointer;
}