-
Notifications
You must be signed in to change notification settings - Fork 53
/
index.css
239 lines (203 loc) · 4.42 KB
/
index.css
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
@import url(node_modules/bootstrap/dist/css/bootstrap.min.css);
@import url(node_modules/maplibre-gl/dist/maplibre-gl.css);
@import url(lib/components/admin/call-taker.css);
@import url(lib/components/app/app.css);
@import url(lib/components/map/map.css);
@import url(lib/components/form/form.css);
@import url(lib/components/narrative/narrative.css);
@import url(lib/components/narrative/default/itinerary.css);
@import url(lib/components/mobile/mobile.css);
@import url(lib/components/user/nav-login-button.css);
@import url(lib/components/viewers/viewers.css);
@import url(lib/bike-rental.css);
@import url(react-sliding-pane/dist/react-sliding-pane.css);
/* Hide IE/Edge clear button in text input fields. */
input[type="text"]::-ms-clear {
display: none;
}
/* New app menu */
.app-menu-icon {
background: none;
border: none;
cursor: pointer;
display: flex;
flex-direction: column;
height: 15px;
justify-content: space-between;
padding: 0;
position: absolute;
top: 16px;
transition: all 1s ease;
width: 21px;
z-index: 10;
}
@media only screen and (max-width: 768px) {
#locale-selector-wrapper {
display: none;
}
.app-menu-icon {
left: 15px;
}
}
.app-menu-icon .menu-line {
border-bottom: 3px solid #ffffff;
display: block;
position: relative;
transition: all 0.5s ease;
width: 100%;
}
.app-menu-icon[aria-expanded="true"] .menu-line.top {
transform: rotate(45deg);
top: 7px;
}
.app-menu-icon[aria-expanded="true"] .menu-line.bottom {
transform: rotate(-45deg);
bottom: 5px;
}
.app-menu-icon[aria-expanded="true"] .menu-line.middle {
display: none;
}
.slide-pane {
transition: all 0.2s ease-in-out;
}
.slide-pane_from_left {
margin: 52px auto 0 0;
/* Keep pane from overflowing on smaller screens */
height: calc(100% - 52px);
}
.slide-pane__content {
padding: 6px 0;
}
.slide-pane__overlay {
z-index: 1000;
}
.app-menu {
margin: 0;
padding: 0.5rem 0;
}
.app-menu img,
.app-menu svg {
max-height: 1em;
margin: 0 2rem;
vertical-align: middle;
width: 1em;
}
.app-menu a,
.app-menu button {
background: none;
border: none;
color: inherit;
cursor: pointer;
display: flex;
font-size: 20px;
padding: 0.5rem 0;
text-decoration: none;
width: 100%;
}
/* Prevents hover styles from getting triggered on mobile */
@media (hover: hover) {
.app-menu a:hover,
.app-menu button:hover {
color: #4c97f5;
}
}
.app-menu a:focus,
.app-menu button:focus {
background-color: #ddd;
outline: 2px solid #4c97f5;
outline-offset: -2px;
}
.app-menu button[aria-selected="true"],
.sort-option button[aria-selected="true"],
#locale-selector button[aria-selected="true"] {
font-weight: bold;
}
.skip-nav-button {
color: initial;
position: fixed;
top: -30px;
}
.skip-nav-button:focus {
padding: 7px 24px;
top: 7px;
z-index: 100;
}
.view-switcher {
display: none;
}
@media (min-width: 768px) {
.view-switcher {
display: flex;
}
}
.expand-menu-chevron {
flex-grow: 1;
text-align: end;
}
.dropdown-header {
font-size: inherit;
line-height: normal;
color: inherit;
white-space: nowrap;
}
.sub-menu-container {
border-top: 1px solid #cccccc;
margin-top: 0.5rem;
padding-left: 2rem;
}
.app-menu .app-menu-divider {
border-bottom: 1px solid #ccc;
padding: 1rem 0;
}
/* Header image or title */
/* If an icon is used, visually-hide the title (but keep it visible to screen readers). */
.with-icon div.navbar-title {
height: 0;
overflow: hidden;
width: 0;
}
/* Buttons */
button.header,
button.step,
.clear-button-formatting {
background: transparent;
color: inherit;
border: 0;
text-align: inherit;
text-decoration: none;
padding: 0;
margin: 0;
}
.clear-button-formatting:active {
background: none;
box-shadow: none;
}
.clear-button-formatting:focus {
background: none;
}
.clear-button-formatting:hover {
background: none;
}
button.header,
button.step {
width: 100%;
}
.overflow-ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.map-container .leaflet-top {
/* we need to override this z-index so that the +/- map controls appear below
the geocoder search results */
z-index: 999;
}
/* Bootstrap adds a bottom margin to all labels,
but we don't want that in the map layer selector when it is collapsed. */
.maplibregl-map .layers-list label {
margin-bottom: 0;
}
.maplibregl-map .layers-list.fake-mobile-hover label,
.maplibregl-map .layers-list:hover label {
margin-bottom: 5px;
}