-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.scss
More file actions
125 lines (100 loc) · 2 KB
/
main.scss
File metadata and controls
125 lines (100 loc) · 2 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
$background-color: lightgrey;
@mixin nameable {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.nameable {
@include nameable();
}
@mixin z($name) {
@if index($z-indexes, $name) {
z-index: (length($z-indexes) - index($z-indexes, $name)) + 1;
} @else {
@warn 'There is no item "#{$name}" in this list; choose one of: #{$z-indexes}';
}
}
$z-indexes: (
"floating",
"directions",
"doors",
"raised",
"rooms",
"streets",
);
html {
overflow: hidden;
background-color: $background-color;
touch-action: none;
height: 100%;
height: -moz-available; /* WebKit-based browsers will ignore this. */
height: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
height: fill-available;
}
body {
margin:0;
min-height: 100vh;
position:fixed;
}
#map-container {
width: 100vw;
height: 100vh;
}
#map {
width: 900px;
height: 1000px;
position: absolute;
will-change:inherit;
}
map-room {
@include nameable;
@include z("rooms");
}
map-door {
@include z("doors");
}
map-street {
@include nameable;
@include z("streets");
}
#directions {
@include z("directions");
}
.highlight {
@include z("directions");
outline: 3px solid darkblue;
position: absolute;
}
direction-line {
@include z("directions");
}
.raised {
@include z("raised");
}
#floating {
@include z("floating");
position: absolute;
padding: 5px;
background-color: darken($background-color, 5);
border: darken($background-color, 10) 1px solid;
overflow-y: auto;
max-height: 100%;
}
#search {
@include z("floating");
background-color: darken($background-color, 5);
border: darken($background-color, 10) 1px solid;
}
.link {
color: rgb(0, 0, 238);
cursor: pointer;
text-decoration: underline;
}
#collapse {
visibility: visible;
}
pinch-zoom {
min-width: 100%;
min-height: 100%;
}