-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathDefaultMapPopup.module.css
More file actions
48 lines (47 loc) · 1.12 KB
/
DefaultMapPopup.module.css
File metadata and controls
48 lines (47 loc) · 1.12 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
@media (prefers-color-scheme: dark) {
.popup {
background-color: black;
}
}
@media (prefers-color-scheme: light) {
.popup {
background-color: white;
}
}
/* todo: this was just copy-pasted from https://openlayers.org/en/latest/examples/popup.html.
the popup looks ugly still, but at the very minimum the background color needs to be set to make it visible.
the popup design needs an overhaul anyway... https://github.com/graphhopper/graphhopper-maps/issues/136
*/
.popup {
position: absolute;
bottom: 12px;
left: -50px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
padding: 0 15px 0 15px;
border-radius: 10px;
border: 1px solid #cccccc;
font-size: small;
width: 110px;
}
.popup:after,
.popup:before {
top: 100%;
border: solid transparent;
content: ' ';
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.popup:after {
border-top-color: white;
border-width: 10px;
left: 48px;
margin-left: -10px;
}
.popup:before {
border-top-color: #cccccc;
border-width: 11px;
left: 48px;
margin-left: -11px;
}