-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
141 lines (133 loc) · 2.94 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
*,
*::after,
*::before {
box-sizing: border-box;
padding: 0;
margin: 0;
}
:root {
--clr-primary: #dd5470;
--clr-secondary: #3d88af;
--clr-accent: #ebac3d;
--clr-accent-secondary: #2b456a;
--clr-done: mediumaquamarine;
--bg-primary: whitesmoke;
--text-clr: #fffefe;
}
html {
font-size: 26px;
font-family: sans-serif;
}
body {
margin: 0;
background-color: var(--bg-primary);
}
h1 {
font-size: 3rem;
color: var(--text-clr);
text-shadow: var(--clr-secondary) 4px 4px, var(--clr-accent) 8px 8px;
width: 100%;
text-align: center;
background-color: var(--clr-primary);
margin: 0;
margin-bottom: 1rem;
padding-top: 1.5rem;
padding-bottom: 3rem;
}
h2,
h3 {
font-size: 1rem;
margin-top: 2rem;
}
#app {
display: flex;
flex-direction: column;
align-items: center;
}
#filter-container {
display: flex;
flex-direction: column;
}
ul {
padding: 0;
margin: 0;
}
li {
list-style: none;
border-radius: 5px;
padding-inline: 0.5rem;
padding-block: 0.2rem;
background-color: var(--text-clr);
margin-bottom: 0.25rem;
}
button,
input[type="text"] {
padding-inline: 0.5rem;
padding-block: 0.5rem;
margin-left: 0.5rem;
border-radius: 5px;
font-size: 0.75rem;
border: solid transparent;
}
button {
border: 3px solid transparent;
background-color: var(--clr-secondary);
color: var(--text-clr);
font-weight: bold;
box-shadow: var(--clr-primary) 4px 4px;
margin-top: 1rem;
}
button:active {
border: 3px solid var(--clr-accent);
}
.radio-buttons {
border-radius: 50%;
appearance: none;
border-radius: 100%;
width: 1rem;
height: 1rem;
border: 3px solid var(--clr-accent-secondary);
cursor: pointer;
}
.radio-buttons:checked {
background-color: var(--clr-secondary);
border-color: var(--clr-accent);
}
.checkbox {
appearance: none;
width: 0.8rem;
height: 0.8rem;
border: 3px solid darkslategrey;
border-radius: 5px;
transform: translateY(0.15rem);
position: relative; /* Make the ::before pseudo-element relative to the checkbox */
}
.checkbox:checked {
background-color: var(--clr-done);
}
.checkbox::before {
content: ""; /* Ensure the pseudo-element has content */
position: absolute; /* Position the checkmark relative to the checkbox */
top: 0.1rem; /* Adjust position for centering */
left: 0.12rem; /* Adjust position for centering */
width: 0.4rem; /* Width of the checkmark */
height: 0.25rem; /* Height of the checkmark */
border-style: solid; /* Define border style */
border-width: 3px 3px 0 0; /* Border thickness and shape to create an angled line */
transform: rotate(130deg); /* Rotate the line to create a checkmark */
opacity: 0; /* Initially make it transparent */
}
.checkbox:checked::before {
opacity: 1; /* Make the checkmark visible when checkbox is checked */
color: white;
}
.done {
text-decoration: line-through;
}
p {
font-size: 0.75rem;
margin-top: 2rem;
padding: 0.5rem;
background-color: rgb(235, 233, 233);
border-radius: 10px;
}