-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsa-mapbox.scss
87 lines (72 loc) · 1.62 KB
/
psa-mapbox.scss
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
.mapbox {
.mapbox-gl-draw_polygon.active,
#freehand.active {
background-color: #aaddaa;
outline: 2px solid white;
}
.mapbox-gl-draw_polygon.active:hover,
#freehand.active:hover {
background-color: #ccffcc !important;
}
.mapboxgl-ctrl-group > .mapbox-gl-draw_trash {
display: none;
}
#psa-map:fullscreen .mapboxgl-marker * {
width: 4vw !important;
height: 4vh !important;
}
.mapboxgl-ctrl-geocoder {
min-width: 30rem;
max-width: 80%;
}
&.hasclear .mapboxgl-ctrl-geocoder::before {
content: '✖';
position: absolute;
left: calc(100% - 22px);
margin-top: 0.5rem;
}
.mapboxgl-ctrl-geocoder.clearHovered::before {
cursor: pointer;
background-color: #eee;
outline: 3px solid #eee;
border-radius: 50%;
}
.cursor {
display: none;
position: fixed;
color: #ddd;
pointer-events: none;
font-weight: bold;
font-size: 14px;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 1);
z-index: 9999; /* doesn't work for fullscreen mode */
}
// show lat/lon only when cursor is over map
&:hover:not(:has(.popup)):not(:has(.mapboxgl-control-container:hover)):not(:has([class^="_info"]:hover)) .cursor {
display: block;
}
.popup div {
background: #eee;
text-align: center;
}
dialog::backdrop {
background-color: rgba(0, 0, 0, 0.5);
}
dialog button {
float: right;
}
.mapboxgl-ctrl-compass {
display: none;
}
#MapHelp {
background: #ddd;
img {
height: 1.5rem;
transform: translatey(5px);
margin-left: 0.2rem;
}
}
// .mapboxgl-ctrl {
// background: #ddd;
// }
}