-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
98 lines (98 loc) · 1.67 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
@import url("https://fonts.googleapis.com/css2?family=Itim&display=swap");
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Itim", cursive;
}
button {
appearance: none;
outline: none;
border: none;
background: none;
cursor: pointer;
}
body {
background-color: #242928;
color: #fff;
}
main {
min-height: 100vh;
display: flex;
justify-content: center;
padding: 2rem 1.5rem;
}
.app {
width: 100%;
max-width: 768px;
}
.app header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
.app header h1 {
color: #fff;
font-size: 24px;
font-weight: 400;
}
.app header button {
color: #fff;
font-size: 24px;
}
.item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.5rem;
border-radius: 1rem;
background-color: #1e1e1e;
box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
margin-bottom: 1.5rem;
}
.item:last-of-type {
margin-bottom: 0;
}
.item input[type="checkbox"] {
margin-right: 1rem;
}
.item input[type="text"] {
appearance: none;
border: none;
outline: none;
background: none;
font-family: 400;
color: #fff;
font-size: 20px;
flex: 1 1 0%;
margin-right: 1rem;
}
.item input[type="text"]:not:disabled {
border-bottom: 2px solid #fff;
}
.item.complete {
opacity: 0.7;
}
.item.item.complete input[type="text"] {
text-decoration: line-through;
}
.item:hover,
.item:focus-within {
outline: 2px solid #fff;
}
.actions button {
color: #fff;
margin-right: 1rem;
opacity: 0.8;
transform: 0.1s;
}
.actions button.remove-btn {
color: crimson;
}
.actions button:hover {
opacity: 1;
}
.actions button:last-of-type {
margin-right: 0;
}