-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMapControls.scss
More file actions
66 lines (56 loc) · 1.61 KB
/
MapControls.scss
File metadata and controls
66 lines (56 loc) · 1.61 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
// Base styles for map controls
%control-container {
position: absolute;
display: flex;
flex-direction: column;
gap: var(--spacing-medium);
// Hide empty portal containers to prevent unwanted spacing
> div:empty {
display: none;
}
}
// Desktop layout - top right
.map-controls-container.desktop.top-right {
@extend %control-container;
top: var(--spacing-medium);
right: var(--spacing-medium);
}
// Desktop layout - bottom right
.map-controls-container.desktop.bottom-right {
@extend %control-container;
bottom: calc(3 * var(--spacing-medium));
right: calc(1 * var(--spacing-medium));
}
// Kiosk layout - top right
.map-controls-container.kiosk.top-right {
@extend %control-container;
top: var(--spacing-medium);
right: var(--spacing-medium);
}
// Kiosk layout - bottom right
.map-controls-container.kiosk.bottom-right {
@extend %control-container;
bottom: calc(3 * var(--spacing-medium));
right: calc(1 * var(--spacing-medium));
}
// Hide bottom controls when the floor selector is expanded to prevent occlusion
.map-controls-container--floor-selector-open {
visibility: hidden;
pointer-events: none;
}
// Mobile layout, two columns aligned to the top left and right
.mobile-column {
@extend %control-container;
top: var(--spacing-medium);
&.map-controls-left-column {
left: var(--spacing-medium);
}
&.map-controls-right-column {
right: var(--spacing-medium);
}
&.map-controls-right-bottom {
top: auto;
bottom: calc(6 * var(--spacing-medium));
right: var(--spacing-medium);
}
}