-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
126 lines (109 loc) · 2.36 KB
/
style.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
117
118
119
120
121
122
123
124
125
126
body {
width: 300px;
font-family: Arial, sans-serif;
}
.header {
text-align: center;
margin-bottom: 20px;
color: #3498db;
}
.remove-all-button {
background-color: #ff0000;
color: #ffffff;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.remove-all-button:hover {
background-color: #cc0000;
transform: scale(1.05);
}
.task-list-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px;
margin-bottom: 8px;
background-color: #f2f2f2;
border-radius: 4px;
transition: transform 0.3s ease, opacity 0.3s ease, text-decoration 0.3s ease;
}
@keyframes selectTask {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
@keyframes heartbeat {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
.task-list-item.selected {
background-color: #f2f2f2;
animation: selectTask 0.3s ease-in-out;
}
.task-list-item.removing {
transform: translateX(100%);
opacity: 0;
text-decoration: line-through;
animation: heartbeat 0.5s ease-in-out;
}
.task-list-item:hover {
transform: translateX(5px);
}
.task-form input {
width: 70%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
.task-form button {
padding: 8px 12px;
background-color: #3498db;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: flex;
align-items: center;
margin: 5px 0;
border-bottom: 1px solid #ddd;
padding-bottom: 5px;
}
.task-checkbox {
margin-right: 10px;
}
.footer {
text-align: center;
margin-top: 20px;
}
.add-button {
background-color: #007bff;
color: #ffffff;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.add-button:hover {
background-color: #0056b3;
transform: scale(1.05);
}