try saving power by only drawing when we are actually visible
[lantea.git] / style / lantea.css
CommitLineData
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
5body {
6 font-family: sans-serif;
b47b4a65 7 margin: 0;
68afcd96 8 background: url("loading.png") repeat;
b47b4a65
RK
9}
10
11h1 {
12 display: none;
13}
14
43255174 15#dialogArea,
8389557a 16.overlayArea {
c5378747 17 position: absolute;
c5378747 18 z-index: 5;
7a549148
RK
19 transition-property: opacity;
20 transition-duration: .2s;
21}
22
43255174 23#dialogArea.hidden,
7a549148
RK
24.overlayArea.hidden {
25 opacity: 0;
26 transition-duration: 1s;
27}
28
43255174 29#dialogArea:-moz-system-metric(touch-enabled),
336097e2 30.overlayArea:-moz-system-metric(touch-enabled) {
ac788e28
RK
31 font-size: 3mozmm;
32}
33
43255174
RK
34#dialogArea input[type="button"]:-moz-system-metric(touch-enabled),
35#dialogArea input[type="text"]:-moz-system-metric(touch-enabled),
36#dialogArea select:-moz-system-metric(touch-enabled),
336097e2
RK
37.overlayArea input[type="button"]:-moz-system-metric(touch-enabled),
38.overlayArea select:-moz-system-metric(touch-enabled) {
9ef896ad 39 font-size: 3mozmm;
ac788e28
RK
40}
41
8389557a
RK
42#menuArea {
43 /* width: 30em; */
44 left: 1%;
45 top: 1em;
46}
47
48#zoomArea {
49 right: 1%;
50 top: 1em;
51 text-align: center;
52}
53
54#fullscreenArea {
55 right: 1%;
56 bottom: 2em;
57 text-align: center;
58}
59
b395419b
RK
60#zoomLevel {
61 background-color: rgba(255, 255, 255, .8);
62 border-radius: 3px;
63 padding: 0 3px;
64}
65
993fd081
RK
66#settingsArea,
67#trackArea {
b47b4a65
RK
68 display: none;
69 background-color: rgba(255, 255, 255, .8);
70 border: 0;
71 border-radius: 5px;
72}
73
993fd081
RK
74#settingsArea > legend,
75#trackArea > legend {
b47b4a65
RK
76 display: none;
77 background-color: rgba(255, 255, 255, .8);
78 border-radius: 3px;
79}
80
ac6286bd 81#map, #track {
4b1d0915 82 position: fixed;
b47b4a65 83 border: 0;
c5378747
RK
84 top: 0;
85 left: 0;
86 right: 0;
87 bottom: 0;
ecde0af2
RK
88}
89
90#map {
b47b4a65 91 z-index: 1;
23cd2dcc
RK
92}
93
ecde0af2
RK
94#track {
95 z-index: 3;
96}
97
68afcd96 98#action {
b395419b 99 position: absolute;
6b1e7340 100 bottom: 5px;
b395419b
RK
101 left: .5em;
102 margin: 0;
6b1e7340
RK
103 z-index: 3;
104 background-color: rgba(255, 255, 255, .8);
105 border-radius: 3px;
106 padding: 0 3px;
b395419b
RK
107}
108
68afcd96
RK
109#actionimg {
110 vertical-align: text-bottom;
111}
112
4b12da3a
RK
113.debugHide {
114 display: none;
115}
116
8389557a
RK
117.settingsSubTitle {
118 margin: .5em 0 0;
119 font-weight: bold;
120}
121
23cd2dcc 122#copyright {
6b1e7340 123 bottom: 5px;
23cd2dcc
RK
124 right: .5em;
125 margin: 0;
126 font-size: small;
6b1e7340
RK
127 opacity: .66;
128 z-index: 2;
129 background-color: rgba(255, 255, 255, 1);
130 border-radius: 3px;
131 padding: 0 3px;
23cd2dcc 132}
1e48ccb4 133
b5c85133
RK
134#copyright.hidden {
135 opacity: 0;
136}
1e48ccb4 137
43255174
RK
138#dialogArea {
139 top: 20%;
140 right: 0;
141 left: 0;
142 width: 30ch;
143 max-width: 92%;
144 z-index: 10;
145 background-color: rgba(255, 255, 255, .8);
146 border: 0;
147 margin: auto;
148 padding: .5em;
149 border-radius: 5px;
150}
151
152#dialogArea.hidden {
153 top: -100%;
154}
155
156.dialogTitle {
157 margin: 0 0 .5em;
158 font-weight: bold;
159}
160
161.dialogHelp {
162 margin: .5em 0;
163 font-size: small;
164 opacity: .66;
165}
166
1e48ccb4 167@media screen and (max-width: 500px) {
f84a3fd4
RK
168 body {
169 font-size: 10px;
170 }
336097e2 171 #menuArea {
20cd2fc1
RK
172 top: 1px;
173 left: 1px;
0c08f848 174 }
336097e2
RK
175 #zoomArea {
176 top: 1px;
177 right: 1px;
178 }
c5378747
RK
179 #fullscreenArea {
180 right: 1px;
181 bottom: 10px;
182 }
a9c9022b 183 #copyright {
f84a3fd4
RK
184 bottom: 1px;
185 right: 1px;
05d87bde 186 font-size: 8px;
1e48ccb4
RK
187 }
188}