-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.css
116 lines (97 loc) · 1.81 KB
/
task.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
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #f7f7f7;
}
header {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
}
header h1 {
margin: 0;
}
main {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
}
.task-input-container {
display: flex;
align-items: center;
margin-bottom: 20px;
}
#task-input {
width: 70%;
padding: 10px;
font-size: 18px;
border: 1px solid #ccc;
border-radius: 5px;
}
#add-task-btn {
background-color: #4CAF50;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
margin-left: 10px;
}
#add-task-btn:hover {
background-color: #3e8e41;
}
.task-display-panel {
background-color: #fff;
padding: 20px;
border: 1px solid #ccc;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.task-display-panel h2 {
margin-top: 0;
}
#task-list {
list-style: none;
padding: 0;
margin: 20px;
}
#task-list li {
padding: 10px;
border-bottom: 1px solid #ccc;
display: flex;
justify-content: space-between;
align-items: center;
}
#task-list li:last-child {
border-bottom: none;
}
.task-text {
flex-grow: 1;
}
.task-actions {
display: flex;
align-items: center;
}
.task-actions button {
background-color: #fff;
border: none;
padding: 5px 10px;
cursor: pointer;
}
.task-actions button:hover {
background-color: #f0f0f0;
}
.completed {
text-decoration: line-through;
color: #999;
}
.delete-btn {
margin-left: 10px;
color: red;
}
.delete-btn:hover {
color: #fff;
background-color: red;
}