-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
77 lines (67 loc) · 1.52 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
body {
font-family: Arial, sans-serif;
margin: 10px;
background-color: #f8f8f8;
}
.header {
text-align: center;
margin-bottom: 20px;
color: #4CAF50;
}
.input-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 300px; /* Set the width of the container to 300px (adjust as needed) */
height: 300px; /* Set the height of the container to 300px (adjust as needed) */
margin: 0 auto; /* Center the container horizontally */
}
#taskInput {
width: 80%;
padding: 10px;
margin-bottom: 5px;
}
#addTaskBtn {
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
}
ul {
list-style-type: none;
padding: 0;
}
li {
cursor: pointer;
padding: 5px;
margin-bottom: 10px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
}
li:hover {
background-color: #f2f2f2;
}
.deleteBtn {
background-color: #f44336;
color: white;
border: none;
cursor: pointer;
border-radius: 50%;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
margin-left: 5px;
opacity: 0;
transition: opacity 0.2s ease-in-out;
}
li:hover .deleteBtn {
opacity: 4;
}