-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
158 lines (139 loc) · 2.49 KB
/
Copy pathstyle.css
File metadata and controls
158 lines (139 loc) · 2.49 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/* RESET */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
/* BACKGROUND */
.container {
min-height: 100vh;
width: 100%;
background: linear-gradient(135deg, #153677, #4e085f);
padding: 20px;
}
/* MAIN BOX */
.todo-app {
max-width: 500px;
background: #fff;
margin: 80px auto;
padding: 40px 30px;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
/* HEADER */
.todo-app h2 {
display: flex;
align-items: center;
color: #002765;
margin-bottom: 25px;
}
.todo-app img {
width: 30px;
margin-left: 10px;
}
/* INPUT BAR */
.row {
display: flex;
align-items: center;
background: #ececec;
border-radius: 30px;
padding-left: 20px;
margin-bottom: 20px;
transition: 0.3s;
}
.row:hover,
.row:focus-within {
background: #fff;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}
.row input {
border: none;
outline: none;
padding: 12px;
background: transparent;
font-size: 16px;
flex: 1;
}
.row button {
border: none;
outline: none;
padding: 14px 40px;
border-radius: 30px;
background: #ff5045;
color: white;
font-size: 16px;
cursor: pointer;
transition: 0.3s;
}
.row button:hover {
background: #e4453b;
}
/* TASK LIST */
.list-container {
list-style: none;
}
.list-container li {
padding: 14px 45px 14px 45px;
background: #f6f6f6;
margin-bottom: 12px;
border-radius: 10px;
font-size: 17px;
position: relative;
cursor: pointer;
transition: 0.2s;
}
.list-container li:hover {
background: #e9e9e9;
}
/* Unchecked circle icon */
.list-container li::before {
content: "";
height: 26px;
width: 26px;
border-radius: 50%;
background-image: url("images/unchecked.png");
background-size: cover;
background-position: center;
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
}
/* COMPLETED TASK */
.list-container li.completed {
text-decoration: line-through;
color: gray;
}
.list-container li.completed::before {
background-image: url("images/checked.png");
}
/* DELETE BUTTON */
.delete-btn {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
font-size: 22px;
color: #777;
cursor: pointer;
transition: 0.3s;
}
.delete-btn:hover {
color: #ff5045;
transform: translateY(-50%) scale(1.2);
}
/* FOOTER */
footer p {
text-align: center;
color: #eee;
margin-top: 40px;
font-size: 14px;
}
/* RESPONSIVE */
@media (max-width: 480px) {
.row button {
padding: 12px 20px;
font-size: 14px;
}
}