-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
68 lines (55 loc) · 1.13 KB
/
style.css
File metadata and controls
68 lines (55 loc) · 1.13 KB
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
body {
margin: 0;
padding: 0;
font-family: 'Open Sans', sans-serif;
}
html, body, #map {
height: 100%;
}
.hand-click {
cursor: pointer;
}
.legend label:hover {
color: yellow;
}
.legend {
background-color: #000;
border-radius: 3px;
box-shadow: 0 1px 2px rgba(0,0,0,0.10);
font-size: 95%;
padding: 10px;
opacity: 0.6;
position: absolute;
bottom: 5%;
right: 0%;
z-index: 3;
color: #fff;
}
.legend h4 {
margin: 0 0 10px;
color: #fff;
}
.legend label {
display: flex;
align-items: center;
cursor: pointer;
margin: 5px 0;
}
.legend input {
display: none;
margin-right: 10px;
}
.legend .color-box {
width: 20px;
height: 20px;
margin-right: 10px;
opacity: 1;
}
/* Change opacity when checkbox is unchecked */
.legend input:not(:checked) ~ .color-box {
opacity: 0.2; /* Darker or more transparent when not checked */
}
/* Change opacity when checkbox is checked */
.legend input:checked ~ .color-box {
opacity: 1; /* Full opacity when checked */
}