Skip to content

Commit 519e904

Browse files
authored
Enhance styling for todo list and buttons
1 parent 567be66 commit 519e904

1 file changed

Lines changed: 35 additions & 2 deletions

File tree

‎Sprint-3/todo-list/style.css‎

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ h1 {
3838
border: 1px solid #ccc;
3939
}
4040

41+
#deadline-input {
42+
cursor: pointer;
43+
}
44+
4145
.todo-input button {
4246
padding: 10px 20px;
4347
font-size: 16px;
@@ -52,6 +56,22 @@ h1 {
5256
background-color: #45a049;
5357
}
5458

59+
/* Delete completed tasks button */
60+
#delete-completed-btn {
61+
padding: 10px 15px;
62+
margin-bottom: 20px;
63+
background-color: #e74c3c;
64+
color: white;
65+
border: none;
66+
border-radius: 6px;
67+
cursor: pointer;
68+
font-size: 14px;
69+
}
70+
71+
#delete-completed-btn:hover {
72+
background-color: #c0392b;
73+
}
74+
5575
.todo-list {
5676
list-style-type: none;
5777
padding-left: 0;
@@ -68,6 +88,10 @@ h1 {
6888
background-color: #fff;
6989
}
7090

91+
.todo-item:hover {
92+
background-color: #f9f9f9;
93+
}
94+
7195
.description {
7296
flex: 1;
7397
margin-right: 10px;
@@ -93,14 +117,23 @@ h1 {
93117
height: 32px;
94118
}
95119

96-
.complete-btn i {
120+
.actions button:hover {
121+
background-color: #eeeeee;
122+
border-radius: 5px;
123+
}
124+
125+
.complete-btn span {
97126
color: green;
98127
}
99128

100-
.delete-btn i {
129+
.delete-btn span {
101130
color: red;
102131
}
103132

133+
.todo-item.completed {
134+
background-color: #f5f5f5;
135+
}
136+
104137
.todo-item.completed .description {
105138
text-decoration: line-through;
106139
color: gray;

0 commit comments

Comments
 (0)