-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
119 lines (102 loc) · 1.78 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
:root {
--green: #1fb141;
--gray: #e0e0e0;
--light-gray: #f3f3f3;
--white: #ffffff;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: grid;
place-items: center;
min-height: 100vh;
font-family: "Inter", sans-serif;
background: var(--gray);
padding-inline: 16px;
}
button,
input[type="checkbox"] {
cursor: pointer;
}
.todo {
background: var(--white);
border-radius: 16px;
width: 100%;
max-width: 396px;
min-height: 640px;
padding: 40px 20px 20px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.todo-title {
font-size: 32px;
text-align: center;
padding-bottom: 20px;
border-bottom: 1px solid var(--light-gray);
margin-bottom: 20px;
}
.todo-actions {
display: flex;
justify-content: space-between;
}
.create-button {
border: none;
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--green);
color: var(--white);
font-size: 24px;
line-height: 0;
transition: 0.3s;
transition-timing-function: cubic-bezier(0.2, 1, 0.2, 1.4);
}
.create-button:hover {
transform: scale(1.1);
}
.todo-list {
list-style: none;
margin-top: 12px;
max-height: 444px;
overflow: auto;
}
.task {
padding: 16px;
background: var(--light-gray);
border-radius: 12px;
display: flex;
align-items: center;
gap: 8px;
}
.task + .task {
margin-top: 4px;
}
.task input[type="checkbox"] {
accent-color: var(--green);
}
.task p {
flex: 1;
outline: none;
}
.delete-button {
border: none;
width: 20px;
height: 20px;
background-color: var(--light-gray);
background-image: url("./assets/trash.svg");
background-repeat: no-repeat;
background-position: center;
}
@media (max-width: 400px) {
.todo {
padding-top: 20px;
}
.todo-title {
font-size: 24px;
}
.task p {
font-size: 14px;
}
}