Commit | Line | Data |
---|---|---|
a2676cef 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/. */ | |
4 | ||
5 | .light-button { | |
6 | color: #333333; | |
7 | background-color: #ffffff; | |
8 | } | |
9 | ||
10 | .dark-button { | |
11 | color: #eeeeee; | |
12 | background-color: #333333; | |
13 | } | |
14 | ||
15 | .sepia-button { | |
16 | color: #5b4636; | |
17 | background-color: #f4ecd8; | |
18 | } | |
19 | ||
20 | .sans-serif-button { | |
21 | font-family: Helvetica, Arial, sans-serif; | |
22 | } | |
23 | ||
24 | .serif-button { | |
25 | font-family: Georgia, "Times New Roman", serif; | |
26 | } | |
27 | ||
28 | /* Loading/error message */ | |
29 | ||
30 | #reader-message { | |
31 | margin-top: 40px; | |
32 | display: none; | |
33 | text-align: center; | |
34 | width: 100%; | |
35 | font-size: 0.9em; | |
36 | } | |
37 | ||
38 | /* Header */ | |
39 | ||
40 | .header { | |
41 | text-align: start; | |
42 | display: none; | |
43 | } | |
44 | ||
45 | .domain { | |
46 | font-size: 0.9em; | |
47 | line-height: 1.48em; | |
48 | padding-bottom: 4px; | |
49 | font-family: Helvetica, Arial, sans-serif; | |
50 | text-decoration: none; | |
51 | border-bottom: 1px solid; | |
52 | color: #0095dd; | |
53 | } | |
54 | ||
55 | .header > h1 { | |
56 | font-size: 1.6em; | |
57 | line-height: 1.25em; | |
58 | width: 100%; | |
59 | margin: 30px 0; | |
60 | padding: 0; | |
61 | } | |
62 | ||
63 | .header > .credits { | |
64 | font-size: 0.9em; | |
65 | line-height: 1.48em; | |
0282321d | 66 | margin: 0 0 10px 0; |
a2676cef RK |
67 | padding: 0; |
68 | font-style: italic; | |
69 | } | |
70 | ||
0282321d RK |
71 | .header > .meta-data { |
72 | font-size: 0.65em; | |
73 | margin: 0 0 15px 0; | |
74 | } | |
75 | ||
a2676cef RK |
76 | /*======= Controls toolbar =======*/ |
77 | ||
78 | .toolbar { | |
79 | font-family: Helvetica, Arial, sans-serif; | |
80 | position: fixed; | |
81 | height: 100%; | |
82 | top: 0; | |
83 | left: 0; | |
84 | margin: 0; | |
85 | padding: 0; | |
86 | list-style: none; | |
87 | background-color: #fbfbfb; | |
88 | -moz-user-select: none; | |
89 | border-right: 1px solid #b5b5b5; | |
987dae1b | 90 | z-index: 1; |
a2676cef RK |
91 | } |
92 | ||
93 | .button { | |
94 | display: block; | |
95 | background-size: 24px 24px; | |
96 | background-repeat: no-repeat; | |
97 | color: #333; | |
98 | background-color: #fbfbfb; | |
99 | height: 40px; | |
100 | padding: 0; | |
101 | } | |
102 | ||
103 | .toolbar .button { | |
104 | width: 40px; | |
105 | background-position: center; | |
106 | margin-right: -1px; | |
107 | border-top: 0; | |
108 | border-left: 0; | |
109 | border-right: 1px solid #b5b5b5; | |
110 | border-bottom: 1px solid #c1c1c1; | |
111 | } | |
112 | ||
113 | .button[hidden] { | |
114 | display: none; | |
115 | } | |
116 | ||
117 | .dropdown { | |
118 | text-align: center; | |
119 | list-style: none; | |
120 | margin: 0; | |
121 | padding: 0; | |
122 | } | |
123 | ||
124 | .dropdown li { | |
125 | margin: 0; | |
126 | padding: 0; | |
127 | } | |
128 | ||
7729765c | 129 | /*======= Popup =======*/ |
a2676cef RK |
130 | |
131 | .dropdown-popup { | |
132 | min-width: 300px; | |
133 | text-align: start; | |
134 | position: absolute; | |
135 | left: 48px; /* offset to account for toolbar width */ | |
136 | z-index: 1000; | |
137 | background-color: #fbfbfb; | |
138 | visibility: hidden; | |
139 | border-radius: 4px; | |
140 | border: 1px solid #b5b5b5; | |
141 | border-bottom-width: 0; | |
0282321d | 142 | box-shadow: 0 1px 3px #c1c1c1; |
a2676cef RK |
143 | } |
144 | ||
7729765c RK |
145 | .keep-open .dropdown-popup { |
146 | z-index: initial; | |
147 | } | |
148 | ||
a2676cef RK |
149 | .dropdown-popup > hr { |
150 | display: none; | |
151 | } | |
152 | ||
153 | .open > .dropdown-popup { | |
154 | visibility: visible; | |
155 | } | |
156 | ||
157 | .dropdown-arrow { | |
158 | position: absolute; | |
159 | top: 30px; /* offset arrow from top of popup */ | |
160 | left: -16px; | |
0282321d | 161 | width: 16px; |
a2676cef RK |
162 | height: 24px; |
163 | background-image: url("chrome://global/skin/reader/RM-Type-Controls-Arrow.svg"); | |
164 | display: block; | |
165 | } | |
166 | ||
7729765c RK |
167 | /*======= Font style popup =======*/ |
168 | ||
a2676cef RK |
169 | #font-type-buttons, |
170 | #font-size-buttons, | |
dae45075 RK |
171 | #color-scheme-buttons, |
172 | #content-width-buttons, | |
173 | #line-height-buttons { | |
a2676cef RK |
174 | display: flex; |
175 | flex-direction: row; | |
176 | } | |
177 | ||
178 | #font-type-buttons > button:first-child { | |
179 | border-top-left-radius: 3px; | |
180 | } | |
181 | #font-type-buttons > button:last-child { | |
182 | border-top-right-radius: 3px; | |
183 | } | |
184 | #color-scheme-buttons > button:first-child { | |
185 | border-bottom-left-radius: 3px; | |
186 | } | |
187 | #color-scheme-buttons > button:last-child { | |
188 | border-bottom-right-radius: 3px; | |
189 | } | |
190 | ||
191 | #font-type-buttons > button, | |
192 | #font-size-buttons > button, | |
dae45075 RK |
193 | #color-scheme-buttons > button, |
194 | #content-width-buttons > button, | |
195 | #line-height-buttons > button { | |
a2676cef RK |
196 | text-align: center; |
197 | border: 0; | |
198 | } | |
199 | ||
200 | #font-type-buttons > button, | |
dae45075 RK |
201 | #font-size-buttons > button, |
202 | #content-width-buttons > button, | |
203 | #line-height-buttons > button { | |
a2676cef RK |
204 | width: 50%; |
205 | background-color: transparent; | |
206 | border-left: 1px solid #B5B5B5; | |
207 | border-bottom: 1px solid #B5B5B5; | |
208 | } | |
209 | ||
210 | #color-scheme-buttons > button { | |
211 | width: 33.33%; | |
212 | font-size: 14px; | |
213 | } | |
214 | ||
215 | #color-scheme-buttons > .dark-button { | |
216 | margin-top: -1px; | |
217 | height: 61px; | |
218 | } | |
219 | ||
220 | #font-type-buttons > button:first-child, | |
dae45075 RK |
221 | #font-size-buttons > button:first-child, |
222 | #content-width-buttons > button:first-child, | |
223 | #line-height-buttons > button:first-child { | |
a2676cef RK |
224 | border-left: 0; |
225 | } | |
226 | ||
227 | #font-type-buttons > button { | |
228 | display: inline-block; | |
229 | font-size: 62px; | |
230 | height: 100px; | |
231 | } | |
232 | ||
233 | #font-size-buttons > button, | |
dae45075 RK |
234 | #color-scheme-buttons > button, |
235 | #content-width-buttons > button, | |
236 | #line-height-buttons > button { | |
a2676cef RK |
237 | height: 60px; |
238 | } | |
239 | ||
240 | #font-type-buttons > button:active:hover, | |
241 | #font-type-buttons > button.selected, | |
242 | #color-scheme-buttons > button:active:hover, | |
243 | #color-scheme-buttons > button.selected { | |
244 | box-shadow: inset 0 -3px 0 0 #fc6420; | |
245 | } | |
246 | ||
247 | #font-type-buttons > button:active:hover, | |
248 | #font-type-buttons > button.selected { | |
249 | border-bottom: 1px solid #FC6420; | |
250 | } | |
251 | ||
252 | /* Make the serif button content the same size as the sans-serif button content. */ | |
253 | #font-type-buttons > button > .description { | |
254 | color: #666; | |
255 | font-size: 12px; | |
256 | margin-top: -5px; | |
257 | } | |
258 | ||
259 | /* Font sizes are different per-platform, so we need custom CSS to line them up. */ | |
a2676cef RK |
260 | #font-type-buttons > .sans-serif-button > .name { |
261 | margin-top: 2px; | |
262 | } | |
263 | ||
264 | #font-type-buttons > .sans-serif-button > .description { | |
265 | margin-top: -4px; | |
266 | } | |
267 | ||
268 | #font-type-buttons > .serif-button > .name { | |
269 | font-size: 63px; | |
270 | } | |
a2676cef RK |
271 | |
272 | .button:hover, | |
273 | #font-size-buttons > button:hover, | |
dae45075 RK |
274 | #font-type-buttons > button:hover, |
275 | #content-width-buttons > button:hover, | |
276 | #line-height-buttons > button:hover { | |
a2676cef RK |
277 | background-color: #ebebeb; |
278 | } | |
279 | ||
280 | .dropdown.open, | |
281 | .button:active, | |
282 | #font-size-buttons > button:active, | |
dae45075 RK |
283 | #font-size-buttons > button.selected, |
284 | #content-width-buttons > button:active, | |
285 | #content-width-buttons > button.selected, | |
286 | #line-height-buttons > button:active, | |
287 | #line-height-buttons > button.selected { | |
a2676cef RK |
288 | background-color: #dadada; |
289 | } | |
290 | ||
291 | /* Only used on Android */ | |
292 | #font-size-sample { | |
293 | display: none; | |
294 | } | |
295 | ||
296 | .minus-button, | |
dae45075 RK |
297 | .plus-button, |
298 | .content-width-minus-button, | |
299 | .content-width-plus-button, | |
300 | .line-height-minus-button, | |
301 | .line-height-plus-button { | |
a2676cef RK |
302 | background-color: transparent; |
303 | border: 0; | |
304 | background-size: 18px 18px; | |
305 | background-repeat: no-repeat; | |
306 | background-position: center; | |
307 | } | |
308 | ||
a2676cef RK |
309 | /*======= Toolbar icons =======*/ |
310 | ||
a2676cef RK |
311 | .close-button { |
312 | background-image: url("chrome://global/skin/reader/RM-Close-24x24.svg#close"); | |
313 | height: 68px; | |
314 | background-position: center 8px; | |
315 | } | |
316 | ||
317 | .close-button:hover { | |
318 | background-image: url("chrome://global/skin/reader/RM-Close-24x24.svg#close-hover"); | |
319 | background-color: #d94141; | |
320 | border-bottom: 1px solid #d94141; | |
321 | border-right: 1px solid #d94141; | |
322 | } | |
323 | ||
324 | .close-button:hover:active { | |
325 | background-image: url("chrome://global/skin/reader/RM-Close-24x24.svg#close-hover"); | |
326 | background-color: #AE2325; | |
327 | border-bottom: 1px solid #AE2325; | |
328 | border-right: 1px solid #AE2325; | |
329 | } | |
330 | ||
331 | .style-button { | |
332 | background-image: url("chrome://global/skin/reader/RM-Type-Controls-24x24.svg"); | |
333 | } | |
334 | ||
a2676cef RK |
335 | .minus-button { |
336 | background-image: url("chrome://global/skin/reader/RM-Minus-24x24.svg"); | |
337 | } | |
338 | ||
339 | .plus-button { | |
340 | background-image: url("chrome://global/skin/reader/RM-Plus-24x24.svg"); | |
341 | } | |
342 | ||
dae45075 RK |
343 | .content-width-minus-button { |
344 | background-size: 42px 16px; | |
345 | background-image: url("chrome://global/skin/reader/RM-Content-Width-Minus-42x16.svg"); | |
346 | } | |
347 | ||
348 | .content-width-plus-button { | |
349 | background-size: 44px 16px; | |
350 | background-image: url("chrome://global/skin/reader/RM-Content-Width-Plus-44x16.svg"); | |
351 | } | |
352 | ||
353 | .line-height-minus-button { | |
354 | background-size: 34px 14px; | |
355 | background-image: url("chrome://global/skin/reader/RM-Line-Height-Minus-38x14.svg"); | |
356 | } | |
357 | ||
358 | .line-height-plus-button { | |
359 | background-size: 34px 24px; | |
360 | background-image: url("chrome://global/skin/reader/RM-Line-Height-Plus-38x24.svg"); | |
361 | } | |
362 | ||
a2676cef RK |
363 | @media print { |
364 | .toolbar { | |
365 | display: none !important; | |
366 | } | |
a2676cef | 367 | } |