/
style.css
145 lines (112 loc) · 2.38 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/* variables */
:root {
--font-color: #2d3436;
--body-bg-color: #f7f1e3;
--container-bg-color: #55efc4;
--todo-bg-color: #00b894;
--done-bg-color: #2ed573;
--svg-normal-color: #2d3436;
--svg-hover-color: #0984e3;
--svg-complete-color: #0984e3;
--svg-remove-color: #d63031;
--svg-remove-hover-color: #ff4757;
}
* {
font-family: 'Josefin Sans', sans-serif;
padding: 0;
margin: 0;
color: var(--font-color);
}
body {
background-color: var(--body-bg-color);
display: flex;
justify-content: center;
}
#container {
background-color: var(--container-bg-color);
padding: 2%;
min-height: 30vh;
min-width: 30vw;
width: auto;
height: auto;
margin-top: 10vh;
margin-bottom: 10vh;
border-radius: 5%;
}
h2 {
margin-bottom: 40px;
margin-top: 40px;
display: inline-block;
}
/* this one will add the underline that you can see in the screenshot */
h2::after {
content: "";
border-bottom: 5px solid black;
display: block;
width: auto;
}
header {
display: flex;
justify-content: space-between;
}
/* give some simple styling to our `input` tag */
header input {
min-height: 40px;
width: 100%;
border: none;
padding-left: 5%;
background-color: var(--body-bg-color);
}
header button {
min-width: 40px;
background: none;
border: none;
font-size: 2rem;
}
li {
width: 100%;
display: flex;
align-items: center;
background-color: var(--todo-bg-color);
padding: 2%;
box-sizing: border-box;
border-radius: 10px;
margin-bottom: 20px;
}
li .buttons {
min-width: 100px;
margin-left: auto;
display: inline;
}
li .buttons button {
background: none;
min-width: 40px;
border: none;
font-size: 2rem;
}
/* apply a different style to the completed tasks */
.completed li {
background-color: var(--done-bg-color);
}
.completed .complete svg path {
fill: var(--svg-complete-color);
}
svg {
max-width: 25px;
}
/* define the normal color */
svg path {
fill: var(--svg-normal-color);
}
/* change the color when we hover the icons*/
button:hover svg path {
fill: var(--svg-hover-color);
}
/* make the remove icon red*/
.remove svg path {
fill: var(--svg-remove-color);
}
/* make the remove icon a different color on hover */
.remove:hover svg path {
fill: var(--svg-remove-hover-color);
}