-
Notifications
You must be signed in to change notification settings - Fork 0
/
filter-style.css
71 lines (60 loc) · 1.29 KB
/
filter-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
#filter-wrapper {
margin-top: 5px;
flex: 4;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.filter {
width: 33.3%;
display: flex;
flex-direction: row;
overflow: hidden;
padding: 5px;
flex-grow: 1;
font-size: 1rem;
}
/* no data for italy --> filter hidden */
#filter-italien {
visibility: hidden;
}
.filter input {
display: none;
}
.filter input + label {
color: var(--text-gray);
font-weight: normal;
line-height: 2.4rem;
}
.filter input + label::before {
width: 2.4rem;
height: 2.4rem;
background-image: url("checkbox/unchecked.svg");
display: block;
content: "";
float: left;
margin-right: 10px;
cursor: pointer;
}
.filter:hover input + label {
color: var(--text-black);
font-weight: 200;
cursor: pointer;
}
.filter:hover input + label::before {
background-image: url("checkbox/unchecked-hover.svg");
}
.filter input:checked + label {
color: var(--text-gray);
font-weight: bold;
}
.filter input:checked + label::before {
background-image: url("checkbox/checked.svg");
}
.filter:hover input:checked + label {
color: var(--text-black);
font-weight: bold;
}
.filter:hover input:checked + label::before {
background-image: url("checkbox/checked-hover.svg");
}