OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 html { | 5 html { |
6 height: 100%; | 6 height: 100%; |
7 } | 7 } |
8 | 8 |
9 body { | 9 body { |
| 10 display: -webkit-box; |
10 height: 100%; | 11 height: 100%; |
11 margin: 0; | 12 margin: 0; |
12 overflow: hidden; | |
13 } | 13 } |
14 | 14 |
15 /* Header */ | 15 /* Header */ |
16 | 16 |
17 header { | 17 header { |
18 -webkit-padding-start: 16px; | 18 -webkit-padding-start: 16px; |
| 19 background-color: #F1F1F1; |
19 } | 20 } |
20 | 21 |
21 #print-preview #navbar-container { | 22 #print-preview #navbar-container { |
22 -webkit-box-orient: vertical; | 23 -webkit-box-orient: vertical; |
23 -webkit-user-select: none; | 24 -webkit-user-select: none; |
| 25 background-color: white; |
24 display: -webkit-box; | 26 display: -webkit-box; |
| 27 position: relative; |
25 width: 310px; | 28 width: 310px; |
26 } | 29 } |
27 | 30 |
28 #print-preview #navbar-content-title { | 31 #print-preview #navbar-content-title { |
29 cursor: default; | 32 cursor: default; |
30 text-align: start; | 33 text-align: start; |
31 } | 34 } |
32 | 35 |
33 #print-header { | |
34 -webkit-padding-end: 14px; | |
35 padding-bottom: 10px; | |
36 padding-top: 10px; | |
37 } | |
38 | |
39 #print-summary { | |
40 color: rgb(83, 99, 125); | |
41 display: block; | |
42 min-height: 30px; | |
43 } | |
44 | |
45 /* Settings */ | 36 /* Settings */ |
46 | 37 |
47 #settings { | 38 #settings { |
48 -webkit-box-flex: 1; | 39 -webkit-box-flex: 1; |
49 -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .3); | 40 -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .3); |
50 background: white; | 41 background: white; |
| 42 display: table; |
51 overflow-y: auto; | 43 overflow-y: auto; |
52 padding-top: 2px; | 44 padding-top: 2px; |
| 45 width: 100%; |
53 } | 46 } |
54 | 47 |
55 .two-column { | 48 .two-column { |
56 display: table-row; | 49 display: table-row; |
57 } | 50 } |
58 | 51 |
59 .right-column { | 52 .right-column { |
60 -webkit-padding-end: 16px; | 53 -webkit-padding-end: 16px; |
61 display: table-cell; | 54 display: table-cell; |
62 width: auto; | 55 width: auto; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 -webkit-line-box-contain: block; | 89 -webkit-line-box-contain: block; |
97 margin: 0; | 90 margin: 0; |
98 margin-bottom: 10px; | 91 margin-bottom: 10px; |
99 } | 92 } |
100 | 93 |
101 h1 { | 94 h1 { |
102 color: #808080; | 95 color: #808080; |
103 font-weight: 300; | 96 font-weight: 300; |
104 } | 97 } |
105 | 98 |
106 .preview-link-button { | 99 #print-preview .navbar-link { |
107 -webkit-padding-start: 16px; | 100 -webkit-margin-start: 16px; |
| 101 margin-top: 10px; |
108 outline: 0; | 102 outline: 0; |
109 padding-top: 10px; | 103 padding: 0; |
110 text-align: start; | 104 text-align: start; |
111 text-decoration: none; | 105 text-decoration: none; |
112 } | 106 } |
113 | 107 |
114 .preview-link-button:hover:not(:disabled) { | 108 #print-preview .navbar-link:hover:not(:disabled) { |
115 text-decoration: underline; | 109 text-decoration: underline; |
116 } | 110 } |
117 | 111 |
118 .preview-link-button:disabled { | 112 #print-preview .navbar-link:disabled { |
119 color: rgba(0, 0, 0, .5); | 113 color: rgba(0, 0, 0, .5); |
120 cursor: default; | 114 cursor: default; |
121 text-shadow: none; | 115 text-shadow: none; |
122 } | 116 } |
123 | 117 |
124 button.loading { | 118 button.loading { |
125 cursor: progress; | 119 cursor: progress; |
126 } | 120 } |
127 | 121 |
128 #print-preview button.default { | 122 #print-preview button.default { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 height: 0 !important; | 214 height: 0 !important; |
221 opacity: 0; | 215 opacity: 0; |
222 overflow: hidden; | 216 overflow: hidden; |
223 padding-top: 0; | 217 padding-top: 0; |
224 position: static; | 218 position: static; |
225 visibility: visible; | 219 visibility: visible; |
226 } | 220 } |
227 | 221 |
228 /* Individual settings sections */ | 222 /* Individual settings sections */ |
229 | 223 |
230 #print-pages-div { | |
231 -webkit-box-align: center; | |
232 -webkit-box-orient: horizontal; | |
233 display: -webkit-box; | |
234 } | |
235 | |
236 #individual-pages { | |
237 -webkit-box-flex: 1; | |
238 -webkit-margin-start: 5px; | |
239 display: block; | |
240 } | |
241 | |
242 #collate-option { | |
243 -webkit-padding-start: 16px; | |
244 display: inline-block; | |
245 } | |
246 | |
247 #copies { | |
248 position: relative; | |
249 width: 2.75em; | |
250 } | |
251 | |
252 #copies.invalid { | |
253 background: rgb(255, 240, 240); | |
254 color: rgb(140, 20, 20); | |
255 } | |
256 | |
257 #increment, | |
258 #decrement { | |
259 -webkit-padding-end: 0; | |
260 -webkit-padding-start: 0; | |
261 font-weight: 600; | |
262 margin: 0; | |
263 min-width: 0; | |
264 position: relative; | |
265 width: 2em; | |
266 } | |
267 | |
268 #increment:focus, | |
269 #decrement:focus, | |
270 #copies:focus { | |
271 z-index: 1; | |
272 } | |
273 | |
274 #increment { | |
275 -webkit-margin-start: -5px; | |
276 border-radius: 0; | |
277 } | |
278 | |
279 #decrement { | |
280 -webkit-margin-start: -5px; | |
281 border-bottom-left-radius: 0; | |
282 border-bottom-right-radius: 3px; | |
283 border-top-left-radius: 0; | |
284 border-top-right-radius: 3px; | |
285 } | |
286 | |
287 html[dir='rtl'] #decrement { | |
288 border-bottom-left-radius: 3px; | |
289 border-bottom-right-radius: 0; | |
290 border-top-left-radius: 3px; | |
291 border-top-right-radius: 0; | |
292 } | |
293 | |
294 #system-dialog-link { | |
295 -webkit-margin-start: 16px; | |
296 margin-top: 10px; | |
297 padding: 0; | |
298 } | |
299 | |
300 /* PDF view */ | |
301 | |
302 #print-preview #mainview { | |
303 -webkit-margin-start: 310px; | |
304 -webkit-padding-start: 0; | |
305 -webkit-user-select: none; | |
306 background-color: #ccc; | |
307 overflow: hidden; | |
308 } | |
309 | |
310 #pdf-viewer { | |
311 /* pluginFadeInTransitionDuration = 200ms */ | |
312 -webkit-transition: opacity 200ms linear; | |
313 /* pluginFadeInTransitionDelay = overlayFadeOutTransitionDuration = 100ms */ | |
314 -webkit-transition-delay: 100ms; | |
315 height: 100%; | |
316 opacity: 1; | |
317 width: 100%; | |
318 } | |
319 | |
320 #pdf-viewer.invisible { | |
321 /* pluginFadeOutTransitionDuration = 100ms */ | |
322 -webkit-transition: opacity 100ms linear; | |
323 /* pluginFadeOutTransitionDelay = 250ms */ | |
324 -webkit-transition-delay: 250ms; | |
325 opacity: 0; | |
326 } | |
327 | |
328 #no-plugin { | |
329 padding: 20px; | |
330 } | |
331 | |
332 /* TODO(estade): this should be in a shared location but I'm afraid of the | 224 /* TODO(estade): this should be in a shared location but I'm afraid of the |
333 * damage it could do. */ | 225 * damage it could do. */ |
334 [hidden] { | 226 [hidden] { |
335 display: none !important; | 227 display: none !important; |
336 } | 228 } |
337 | 229 |
338 #overlay-layer { | |
339 -webkit-transition: opacity 200ms linear; | |
340 /* overlayFadeInTransitionDelay = pluginFadeOutTransitionDelay + | |
341 * pluginFadeOutTransitionDuration = 350ms */ | |
342 -webkit-transition-delay: 350ms; | |
343 -webkit-user-select: none; | |
344 background: #ccc; | |
345 height: 100%; | |
346 margin: 0; | |
347 opacity: 1; | |
348 position: absolute; | |
349 width: 100%; | |
350 } | |
351 | |
352 #overlay-layer.invisible { | |
353 /* overlayFadeOutTransitionDuration = 100ms */ | |
354 -webkit-transition: opacity 100ms linear; | |
355 opacity: 0; | |
356 pointer-events: none; | |
357 } | |
358 | |
359 #messages { | |
360 color: #404040; | |
361 font-size: 1.1em; | |
362 position: relative; | |
363 text-align: center; | |
364 text-shadow: 0 1px 0 rgba(255, 255, 255, .5); | |
365 top: 50%; | |
366 } | |
367 | |
368 @-webkit-keyframes dancing-dots-jump { | 230 @-webkit-keyframes dancing-dots-jump { |
369 0% { top: 0; } | 231 0% { top: 0; } |
370 55% { top: 0; } | 232 55% { top: 0; } |
371 60% { top: -10px; } | 233 60% { top: -10px; } |
372 80% { top: 3px; } | 234 80% { top: 3px; } |
373 90% { top: -2px; } | 235 90% { top: -2px; } |
374 95% { top: 1px; } | 236 95% { top: 1px; } |
375 100% { top: 0; } | 237 100% { top: 0; } |
376 } | 238 } |
377 | 239 |
378 #loading { | 240 span.jumping-dots > span { |
379 -webkit-margin-end: -3px; | |
380 } | |
381 | |
382 .message-with-dots span span { | |
383 -webkit-animation: dancing-dots-jump 1800ms infinite; | 241 -webkit-animation: dancing-dots-jump 1800ms infinite; |
384 padding: 1px; | 242 padding: 1px; |
385 position: relative; | 243 position: relative; |
386 } | 244 } |
387 | 245 |
388 .message-with-dots span span:nth-child(2) { | 246 span.jumping-dots > span:nth-child(2) { |
389 -webkit-animation-delay: 100ms; | 247 -webkit-animation-delay: 100ms; |
390 } | 248 } |
391 | 249 |
392 .message-with-dots span span:nth-child(3) { | 250 span.jumping-dots > span:nth-child(3) { |
393 -webkit-animation-delay: 300ms; | 251 -webkit-animation-delay: 300ms; |
394 } | 252 } |
395 | 253 |
396 #error-action-area { | |
397 margin-top: 10px; | |
398 } | |
399 | |
400 /* TODO(estade): unfork this code. */ | 254 /* TODO(estade): unfork this code. */ |
401 .button-strip { | 255 .button-strip { |
402 <if expr="not pp_ifdef('toolkit_views')"> | 256 <if expr="not pp_ifdef('toolkit_views')"> |
403 -webkit-box-direction: reverse; | 257 -webkit-box-direction: reverse; |
404 </if> | 258 </if> |
405 -webkit-box-orient: horizontal; | 259 -webkit-box-orient: horizontal; |
406 -webkit-box-pack: end; | 260 -webkit-box-pack: end; |
407 display: -webkit-box; | 261 display: -webkit-box; |
408 } | 262 } |
409 | 263 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 } | 298 } |
445 | 299 |
446 #intentionally-blank { | 300 #intentionally-blank { |
447 color: black; | 301 color: black; |
448 display: inline-block; | 302 display: inline-block; |
449 font-style: italic; | 303 font-style: italic; |
450 padding: 0 10px; | 304 padding: 0 10px; |
451 text-align: center; | 305 text-align: center; |
452 text-decoration: none; | 306 text-decoration: none; |
453 } | 307 } |
OLD | NEW |