Commit | Line | Data |
---|---|---|
a7393a71 RK |
1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
23cd2dcc RK |
4 | |
5 | body { | |
6 | font-family: sans-serif; | |
b47b4a65 | 7 | margin: 0; |
68afcd96 | 8 | background: url("loading.png") repeat; |
b47b4a65 RK |
9 | } |
10 | ||
11 | h1 { | |
12 | display: none; | |
13 | } | |
14 | ||
8f9306c5 RK |
15 | .hidden { |
16 | display: none; | |
17 | } | |
18 | ||
6d5072d8 RK |
19 | .debugHide { |
20 | display: none; | |
21 | } | |
22 | ||
23 | /* Main window UI areas */ | |
24 | #map, #track { | |
25 | position: fixed; | |
26 | border: 0; | |
27 | top: 0; | |
28 | left: 0; | |
29 | right: 0; | |
30 | bottom: 0; | |
31 | } | |
32 | ||
33 | #map { | |
34 | z-index: 1; | |
35 | } | |
36 | ||
37 | #track { | |
38 | z-index: 3; | |
39 | } | |
40 | ||
41 | .autoFade { | |
c5378747 | 42 | position: absolute; |
c5378747 | 43 | z-index: 5; |
7a549148 RK |
44 | transition-property: opacity; |
45 | transition-duration: .2s; | |
46 | } | |
47 | ||
6d5072d8 | 48 | .autoFade.hidden { |
7a549148 RK |
49 | opacity: 0; |
50 | transition-duration: 1s; | |
8f9306c5 | 51 | display: block; |
7a549148 RK |
52 | } |
53 | ||
8389557a RK |
54 | #menuArea { |
55 | /* width: 30em; */ | |
56 | left: 1%; | |
57 | top: 1em; | |
58 | } | |
59 | ||
60 | #zoomArea { | |
61 | right: 1%; | |
62 | top: 1em; | |
63 | text-align: center; | |
64 | } | |
65 | ||
6d5072d8 RK |
66 | .autoFade > input[type="button"], |
67 | .autoFade > .controlButton { | |
858b60b8 | 68 | font-size: 1.2em; |
ac45368e RK |
69 | font-weight: bold; |
70 | width: 2em; | |
71 | height: 2em; | |
72 | border-radius: 2em; | |
858b60b8 RK |
73 | background-color: rgba(255, 255, 255, .25); |
74 | background-image: radial-gradient(circle 1.5em, #FFFFFF, transparent); | |
ac45368e | 75 | color: #0000FF; |
ed4c478c | 76 | border: none; |
28200143 RK |
77 | padding: 0; |
78 | margin: 0; | |
ed4c478c RK |
79 | } |
80 | ||
81 | #zoomArea > input[type="button"] { | |
ac45368e RK |
82 | border: 2px solid #0000FF; |
83 | } | |
84 | ||
6d5072d8 RK |
85 | .autoFade > input[type="button"]:hover, |
86 | .autoFade > .controlButton:hover { | |
ac45368e RK |
87 | background-color: rgba(255, 255, 255, .8); |
88 | } | |
89 | ||
6d5072d8 RK |
90 | .autoFade > input[type="button"]:active, |
91 | .autoFade > .controlButton:active { | |
ac45368e RK |
92 | background-color: rgba(255, 255, 127, .8); |
93 | } | |
94 | ||
6d5072d8 RK |
95 | .autoFade > input[type="button"]:focus, |
96 | .autoFade > .controlButton:focus { | |
858b60b8 RK |
97 | background-color: rgba(255, 255, 255, .5); |
98 | } | |
99 | ||
8389557a RK |
100 | #fullscreenArea { |
101 | right: 1%; | |
102 | bottom: 2em; | |
103 | text-align: center; | |
104 | } | |
105 | ||
b395419b | 106 | #zoomLevel { |
858b60b8 RK |
107 | /* background-color: rgba(255, 255, 255, .8); */ |
108 | background-image: radial-gradient(circle 1.5em, #FFFFFF, transparent); | |
109 | border-radius: .5em; | |
110 | padding: .5em .2em; | |
ac45368e | 111 | margin: 2px 0; |
b395419b RK |
112 | } |
113 | ||
6d5072d8 RK |
114 | #action { |
115 | position: absolute; | |
116 | bottom: 5px; | |
117 | left: .5em; | |
118 | margin: 0; | |
119 | z-index: 3; | |
120 | background-color: rgba(255, 255, 255, .8); | |
121 | border-radius: 3px; | |
122 | padding: 0 3px; | |
123 | } | |
124 | ||
125 | #actionimg { | |
126 | vertical-align: text-bottom; | |
127 | } | |
128 | ||
129 | #copyright { | |
130 | bottom: 5px; | |
131 | right: .5em; | |
132 | margin: 0; | |
133 | font-size: .8em; | |
134 | opacity: .66; | |
135 | z-index: 2; | |
136 | background-color: rgba(255, 255, 255, 1); | |
137 | border-radius: 3px; | |
138 | padding: 0 3px; | |
139 | } | |
140 | ||
141 | #copyright.hidden { | |
142 | opacity: 0; | |
143 | display: block; | |
144 | } | |
145 | ||
146 | .overlayArea:-moz-system-metric(touch-enabled), | |
147 | .menuDrawer:-moz-system-metric(touch-enabled) { | |
148 | font-size: 3mozmm; | |
149 | } | |
150 | ||
151 | .overlayArea input[type="button"], | |
152 | .overlayArea button, | |
153 | .overlayArea select, | |
154 | .menuDrawer input[type="button"], | |
155 | .menuDrawer button, | |
156 | .menuDrawer input[type="text"], | |
157 | .menuDrawer input[type="number"], | |
158 | .menuDrawer select { | |
159 | font-size: inherit; | |
160 | } | |
161 | ||
162 | /* Menu Drawers */ | |
123b3142 RK |
163 | .menuDrawer { |
164 | position: absolute; | |
165 | top: 0; | |
166 | bottom: 0; | |
6d5072d8 | 167 | overflow: auto; |
e2424f35 | 168 | transform: translateX(calc(-40ch - 1ch)); /* account for padding */ |
123b3142 | 169 | width: 40ch; |
4a6b0232 | 170 | max-width: 95%; /* make sure we don't overflow the screen */ |
b47b4a65 | 171 | border: 0; |
123b3142 RK |
172 | padding: 0 .5ch; /* account for legend */ |
173 | margin: 0; | |
174 | z-index: 10; | |
e2424f35 | 175 | transition-property: transform; |
123b3142 RK |
176 | transition-duration: 1s; |
177 | transition-timing-function: ease; | |
b47b4a65 RK |
178 | } |
179 | ||
123b3142 | 180 | .menuDrawer:not(.hidden) { |
e2424f35 | 181 | transform: translateX(0); |
123b3142 RK |
182 | } |
183 | ||
184 | @media screen and (max-width: 330px) { | |
185 | .menuDrawer { | |
186 | left: calc(-300px - 1ch); /* account for padding */ | |
187 | width: 300px; | |
188 | } | |
189 | } | |
190 | ||
e180feb4 | 191 | .menuDrawer p { |
db2008ca RK |
192 | margin: .5em 0; |
193 | } | |
194 | ||
195 | /* Menu title */ | |
123b3142 RK |
196 | .menuDrawer > h2 { |
197 | font-size: 1.2em; | |
198 | font-weight: bold; | |
199 | margin: .5em 0; | |
db2008ca | 200 | background-color: #CCCCCC; |
123b3142 | 201 | color: #404040; |
b47b4a65 | 202 | border-radius: 3px; |
123b3142 RK |
203 | padding: 2px; |
204 | } | |
205 | ||
206 | .menuDrawer > h2 > img { | |
207 | vertical-align: text-top; | |
208 | height: 1.2em; | |
b47b4a65 RK |
209 | } |
210 | ||
46c03176 RK |
211 | /* For optical conveniece, display an "x" for closing. */ |
212 | .menuDrawer > h2:after { | |
213 | content: '\00D7'; /* multiplication sign */ | |
214 | display: inline-block; | |
215 | vertical-align: text-top; | |
216 | float: right; | |
217 | margin-top: 0; | |
218 | margin-right: .2em; | |
219 | font-size: .75em; | |
220 | } | |
221 | ||
6d5072d8 RK |
222 | .dialogHelp { |
223 | margin: .5em 0; | |
224 | font-size: .8em; | |
225 | opacity: .66; | |
226 | } | |
227 | ||
228 | #trackData { | |
229 | margin: 0; | |
230 | } | |
231 | ||
232 | #trackDialogArea { | |
233 | border-top: 2px solid; | |
234 | border-bottom: 2px solid; | |
235 | padding: 3px 0; | |
236 | } | |
237 | ||
238 | #uploadDesc { | |
239 | max-width: 95%; | |
240 | } | |
241 | ||
242 | /* Secondary UI: menu drawers, full screen overlays, etc. */ | |
243 | .secondaryUI { | |
244 | background-color: rgba(15, 15, 15, .9); | |
245 | color: #CCCCCC; | |
246 | } | |
247 | ||
db2008ca | 248 | /* Custom checkbox design */ |
6d5072d8 | 249 | .secondaryUI input[type="checkbox"] { |
db2008ca RK |
250 | display: none; |
251 | } | |
252 | ||
6d5072d8 | 253 | .secondaryUI input[type="checkbox"] + label:before { |
db2008ca RK |
254 | content: '\00A0'; /* non-breaking space */ |
255 | display: inline-block; | |
256 | width: 1.2em; | |
257 | height: 1.2em; | |
258 | margin-right: .3em; | |
259 | text-align: center; | |
260 | vertical-align: middle; | |
261 | background-color: rgba(204, 204, 204, .2); | |
262 | border: 1px solid #CCCCCC; | |
263 | border-radius: 3px; | |
264 | } | |
265 | ||
6d5072d8 | 266 | .secondaryUI input[type="checkbox"]:hover + label:before { |
db2008ca RK |
267 | background-color: rgba(204, 204, 204, .4); |
268 | border: 1px solid #FFFFFF; | |
269 | } | |
6d5072d8 | 270 | .secondaryUI input[type="checkbox"]:hover + label { |
db2008ca RK |
271 | color: #FFFFFF; |
272 | position:relative; | |
273 | height: 1.2em; | |
274 | } | |
275 | ||
6d5072d8 | 276 | .secondaryUI input[type="checkbox"]:active + label:before { |
db2008ca RK |
277 | background-color: rgba(204, 204, 255, .3); |
278 | border: 1px solid #FFCCAA; | |
279 | } | |
6d5072d8 | 280 | .secondaryUI input[type="checkbox"]:active + label { |
db2008ca RK |
281 | color: #FFCCAA; |
282 | } | |
283 | ||
6d5072d8 | 284 | .secondaryUI input[type="checkbox"]:checked + label:before { |
db2008ca RK |
285 | content: '\2714'; /* tick mark */ |
286 | } | |
287 | ||
288 | /* Custom button design */ | |
6d5072d8 RK |
289 | .secondaryUI input[type="button"], |
290 | .secondaryUI button { | |
db2008ca RK |
291 | text-align: center; |
292 | vertical-align: middle; | |
293 | background-image: none; | |
294 | background-color: rgba(204, 204, 204, .2); | |
295 | color: #CCCCCC; | |
296 | padding: 1px .5em; | |
297 | border: 1px solid #CCCCCC; | |
298 | border-radius: 3px; | |
299 | } | |
300 | ||
6d5072d8 RK |
301 | .secondaryUI input[type="button"]:disabled, |
302 | .secondaryUI button:disabled { | |
8f9306c5 RK |
303 | background-color: rgba(204, 204, 204, .1); |
304 | color: rgba(204, 204, 204, .5); | |
305 | border: 1px solid rgba(255, 255, 255, .5); | |
306 | } | |
307 | ||
6d5072d8 RK |
308 | .secondaryUI input[type="button"]:not(:disabled):hover, |
309 | .secondaryUI button:not(:disabled):hover { | |
db2008ca RK |
310 | background-color: rgba(204, 204, 204, .4); |
311 | border: 1px solid #FFFFFF; | |
312 | } | |
313 | ||
6d5072d8 RK |
314 | .secondaryUI input[type="button"]:not(:disabled):active, |
315 | .secondaryUI button:not(:disabled):active { | |
db2008ca RK |
316 | background-color: rgba(204, 204, 255, .3); |
317 | color: #FFCCAA; | |
318 | padding-top: 2px; | |
319 | padding-right: calc(.5em - 1px); | |
320 | padding-bottom: 0; | |
321 | padding-left: calc(.5em + 1px); | |
322 | } | |
323 | ||
324 | /* Custom select design */ | |
6d5072d8 | 325 | .secondaryUI select { |
db2008ca RK |
326 | text-align: left; |
327 | vertical-align: middle; | |
328 | background-image: none; | |
329 | background-color: rgba(204, 204, 204, .2); | |
330 | color: #CCCCCC; | |
331 | padding: 0 .5em; | |
332 | border: 1px solid #CCCCCC; | |
333 | border-radius: 3px; | |
334 | } | |
335 | ||
6d5072d8 | 336 | .secondaryUI select:hover { |
db2008ca RK |
337 | background-color: rgba(204, 204, 204, .4); |
338 | border: 1px solid #FFFFFF; | |
339 | } | |
340 | ||
6d5072d8 | 341 | .secondaryUI select:active { |
db2008ca RK |
342 | background-color: rgba(204, 204, 255, .3); |
343 | color: #FFCCAA; | |
344 | } | |
345 | ||
6d5072d8 | 346 | .secondaryUI option:checked:not(:hover) { |
db2008ca RK |
347 | background-color: rgba(204, 204, 204, .1); |
348 | } | |
349 | ||
6d5072d8 | 350 | .secondaryUI option:hover { |
db2008ca RK |
351 | background-color: #CCCCCC; |
352 | color: #404040; | |
353 | } | |
354 | ||
6d5072d8 RK |
355 | /* Custom textbox design */ |
356 | .secondaryUI input[type="text"], | |
357 | .secondaryUI input[type="number"] { | |
e180feb4 | 358 | font-size: 1em; |
65946832 RK |
359 | vertical-align: middle; |
360 | background-image: none; | |
361 | background-color: rgba(204, 204, 204, .7); | |
362 | color: #404040; | |
363 | padding: 1px .5em; | |
65946832 RK |
364 | border: 1px solid #CCCCCC; |
365 | border-radius: 3px; | |
366 | } | |
367 | ||
6d5072d8 | 368 | .secondaryUI input[type="text"] { |
65946832 RK |
369 | text-align: left; |
370 | } | |
371 | ||
6d5072d8 | 372 | .secondaryUI input[type="number"] { |
65946832 RK |
373 | text-align: right; |
374 | } | |
375 | ||
6d5072d8 RK |
376 | .secondaryUI input[type="text"]:disabled, |
377 | .secondaryUI input[type="number"]:disabled { | |
65946832 RK |
378 | background-color: rgba(204, 204, 204, .1); |
379 | color: rgba(204, 204, 204, .5); | |
380 | border: 1px solid rgba(255, 255, 255, .5); | |
381 | } | |
382 | ||
6d5072d8 RK |
383 | .secondaryUI input[type="text"]:not(:disabled):hover, |
384 | .secondaryUI input[type="number"]:not(:disabled):hover { | |
65946832 RK |
385 | border: 1px solid #FFFFFF; |
386 | } | |
387 | ||
6d5072d8 RK |
388 | .secondaryUI input[type="text"]:not(:disabled):focus, |
389 | .secondaryUI input[type="number"]:not(:disabled):focus { | |
65946832 RK |
390 | background-color: rgba(204, 204, 255, .8); |
391 | border: 1px solid #FFFFFF; | |
392 | color: #202020; | |
393 | } | |
394 | ||
6d5072d8 RK |
395 | /* custom style for paragraphs and links */ |
396 | .secondaryUI p.subTitle { | |
e180feb4 RK |
397 | margin: .75em 0 .5em; |
398 | font-weight: bold; | |
399 | } | |
400 | ||
6d5072d8 RK |
401 | .secondaryUI a:link { |
402 | color: #DDDDDD; | |
7a076538 RK |
403 | } |
404 | ||
6d5072d8 RK |
405 | .secondaryUI a:visited { |
406 | color: #AAAAAA; | |
ecde0af2 RK |
407 | } |
408 | ||
6d5072d8 RK |
409 | .secondaryUI a:hover { |
410 | color: #FFFFFF; | |
b5c85133 | 411 | } |
1e48ccb4 | 412 | |
e1c3d337 | 413 | /* dialog area - for loading error and welcome messages */ |
43255174 | 414 | #dialogArea { |
e1c3d337 | 415 | position: absolute; |
43255174 RK |
416 | top: 20%; |
417 | right: 0; | |
418 | left: 0; | |
e1c3d337 | 419 | width: 50ch; |
43255174 RK |
420 | max-width: 92%; |
421 | z-index: 10; | |
422 | background-color: rgba(255, 255, 255, .8); | |
423 | border: 0; | |
424 | margin: auto; | |
425 | padding: .5em; | |
426 | border-radius: 5px; | |
427 | } | |
428 | ||
429 | #dialogArea.hidden { | |
e1c3d337 | 430 | top: -1000%; |
8f9306c5 | 431 | display: block; |
43255174 RK |
432 | } |
433 | ||
e1c3d337 RK |
434 | .dialogTitle { |
435 | margin: 0 0 .5em; | |
436 | font-weight: bold; | |
437 | } | |
438 | ||
439 | .dialogButtonLine { | |
440 | text-align: center; | |
441 | } | |
442 | ||
6d5072d8 RK |
443 | /* full screen overlay - library, etc. */ |
444 | .fullScreenOverlay { | |
445 | position: absolute; | |
867ee0af RK |
446 | top: 1%; |
447 | bottom: 1%; | |
448 | right: 1%; | |
449 | left: 1%; | |
450 | z-index: 10; | |
6d5072d8 | 451 | background-color: rgba(15, 15, 15, 1.0); |
867ee0af RK |
452 | border: 0; |
453 | margin: auto; | |
454 | padding: .5em; | |
455 | border-radius: 5px; | |
456 | } | |
457 | ||
6d5072d8 | 458 | .fullScreenOverlay.hidden { |
28200143 | 459 | top: -1000%; |
867ee0af RK |
460 | bottom: auto; |
461 | height: 90%; | |
462 | display: block; | |
463 | } | |
464 | ||
6d5072d8 | 465 | .fullScreenOverlay > .closeButtonContainer { |
867ee0af | 466 | position: absolute; |
6d5072d8 | 467 | top: 0; |
867ee0af RK |
468 | right: 0; |
469 | margin: 0; | |
6d5072d8 | 470 | padding: 0.5em; |
867ee0af RK |
471 | text-align: right; |
472 | } | |
6d5072d8 RK |
473 | /* |
474 | .fullScreenOverlay > .closeButtonContainer > .closeButton { | |
475 | font-size: 2em; | |
d7ffc7b8 | 476 | } |
6d5072d8 | 477 | */ |
d7ffc7b8 | 478 | |
34402ca5 RK |
479 | .fullScreenOverlay p { |
480 | margin: 0.5em 0; | |
481 | } | |
482 | ||
483 | .fullScreenOverlay > p:first-child { | |
484 | margin-top: 0; | |
485 | /* leave space for close button */ | |
486 | margin-right: 1.5em; | |
487 | } | |
488 | ||
489 | #libTrackList { | |
490 | overflow: auto; | |
491 | /* 2em is top/bottom margin, and one line is shown above and below, with .5em margin each */ | |
492 | height: calc(100% - 5em); | |
493 | } | |
494 | ||
495 | #libTrackPages { | |
496 | margin-bottom: 0; | |
497 | } | |
498 | ||
6d5072d8 | 499 | /* small screen media adaptations */ |
0a41c294 RK |
500 | @media screen and (max-width: 500px), |
501 | screen and (max-height: 500px) { | |
f84a3fd4 RK |
502 | body { |
503 | font-size: 10px; | |
504 | } | |
336097e2 | 505 | #menuArea { |
8028e42b RK |
506 | top: 2px; |
507 | left: 2px; | |
0c08f848 | 508 | } |
336097e2 | 509 | #zoomArea { |
8028e42b RK |
510 | top: 2px; |
511 | right: 2px; | |
336097e2 | 512 | } |
c5378747 | 513 | #fullscreenArea { |
8028e42b | 514 | right: 2px; |
0a41c294 | 515 | bottom: 20px; |
c5378747 | 516 | } |
a9c9022b | 517 | #copyright { |
f84a3fd4 RK |
518 | bottom: 1px; |
519 | right: 1px; | |
1e48ccb4 RK |
520 | } |
521 | } |