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-end: 14px; | 18 -webkit-padding-end: 14px; |
19 -webkit-padding-start: 16px; | 19 -webkit-padding-start: 16px; |
| 20 background-color: #F1F1F1; |
20 } | 21 } |
21 | 22 |
22 #print-preview #navbar-container { | 23 #print-preview #navbar-container { |
23 -webkit-border-end: 1px solid rgb(198, 201, 206); | 24 -webkit-border-end: 1px solid rgb(198, 201, 206); |
24 -webkit-box-orient: vertical; | 25 -webkit-box-orient: vertical; |
25 -webkit-user-select: none; | 26 -webkit-user-select: none; |
26 background-color: #f1f1f1; | 27 background-color: white; |
27 bottom: 0; | |
28 display: -webkit-box; | 28 display: -webkit-box; |
29 /* We set both left and right for the sake of RTL. */ | 29 position: relative; |
30 left: 0; | |
31 position: fixed; | |
32 right: 0; | |
33 top: 0; | |
34 width: 310px; | 30 width: 310px; |
35 z-index: 2; | 31 z-index: 2; |
36 } | 32 } |
37 | 33 |
38 #navbar-content-title { | 34 #navbar-content-title { |
39 color: #333; | 35 color: #333; |
40 font-size: 200%; | 36 font-size: 200%; |
41 font-weight: normal; | 37 font-weight: normal; |
42 margin: 0; | 38 margin: 0; |
43 padding-bottom: 14px; | 39 padding-bottom: 14px; |
44 padding-top: 13px; | 40 padding-top: 13px; |
45 text-shadow: white 0 1px 2px; | 41 text-shadow: white 0 1px 2px; |
46 } | 42 } |
47 | 43 |
48 #print-header { | |
49 padding-bottom: 10px; | |
50 padding-top: 10px; | |
51 } | |
52 | |
53 #print-summary { | |
54 color: rgb(83, 99, 125); | |
55 display: block; | |
56 min-height: 30px; | |
57 } | |
58 | |
59 /* Settings */ | 44 /* Settings */ |
60 | 45 |
61 #settings { | 46 #settings { |
62 -webkit-box-flex: 1; | |
63 -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .3); | 47 -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .3); |
64 background: white; | 48 background: white; |
65 overflow-y: auto; | 49 overflow-y: auto; |
66 padding-top: 2px; | 50 padding-top: 2px; |
| 51 width: 100%; |
67 } | 52 } |
68 | 53 |
69 .two-column { | 54 .two-column { |
70 display: table-row; | 55 display: table-row; |
71 } | 56 } |
72 | 57 |
73 .right-column { | 58 .right-column { |
74 -webkit-padding-end: 16px; | 59 -webkit-padding-end: 16px; |
75 display: table-cell; | 60 display: table-cell; |
76 width: auto; | 61 width: auto; |
77 } | 62 } |
78 | 63 |
79 .right-column .checkbox, | 64 .right-column .checkbox, |
80 .right-column .radio { | 65 .right-column .radio { |
81 margin: 0; | 66 margin: 0; |
82 } | 67 } |
83 | 68 |
84 .right-column > *:not(:first-child):not(.hint), | 69 .right-column > *:not(:first-child):not(.hint), |
85 .right-column > .collapsible > *:not(:first-child):not(.hint) { | 70 .right-column > .collapsible > *:not(:first-child):not(.hint) { |
86 margin-top: 8px; | 71 margin-top: 8px; |
87 } | 72 } |
88 | 73 |
89 .two-column h1 { | 74 .two-column h1 { |
| 75 -webkit-padding-end: 16px; |
90 -webkit-padding-start: 16px; | 76 -webkit-padding-start: 16px; |
91 display: table-cell; | 77 display: table-cell; |
92 font-size: 1.1em; | 78 font-size: 1.1em; |
93 width: 86px; | |
94 } | 79 } |
95 | 80 |
96 .two-column.visible h1, | 81 .two-column.visible h1, |
97 .two-column.visible .right-column { | 82 .two-column.visible .right-column { |
98 border-bottom: 1px solid #dcdcdc; | 83 border-bottom: 1px solid #dcdcdc; |
99 padding-bottom: 10px; | 84 padding-bottom: 10px; |
100 padding-top: 10px; | 85 padding-top: 10px; |
101 } | 86 } |
102 | 87 |
103 .two-column:not(.visible) select { | 88 .two-column:not(.visible) select { |
104 border-top-width: 0; | 89 border-top-width: 0; |
105 margin-top: 0; | 90 margin-top: 0; |
106 padding-top: 0; | 91 padding-top: 0; |
107 } | 92 } |
108 | 93 |
109 p { | 94 p { |
110 -webkit-line-box-contain: block; | 95 -webkit-line-box-contain: block; |
111 margin: 0; | 96 margin: 0; |
112 margin-bottom: 10px; | 97 margin-bottom: 10px; |
113 } | 98 } |
114 | 99 |
115 h1 { | 100 h1 { |
116 color: #808080; | 101 color: #808080; |
117 font-weight: 300; | 102 font-weight: 300; |
118 } | 103 } |
119 | 104 |
120 .preview-link-button { | 105 #print-preview .navbar-link { |
121 -webkit-padding-start: 16px; | 106 -webkit-margin-start: 16px; |
| 107 margin-top: 10px; |
122 outline: 0; | 108 outline: 0; |
123 padding-top: 10px; | 109 padding: 0; |
124 text-align: start; | 110 text-align: start; |
125 text-decoration: none; | 111 text-decoration: none; |
126 } | 112 } |
127 | 113 |
128 .preview-link-button:hover:not(:disabled) { | 114 #print-preview .navbar-link:hover:not(:disabled) { |
129 text-decoration: underline; | 115 text-decoration: underline; |
130 } | 116 } |
131 | 117 |
132 .preview-link-button:disabled { | 118 #print-preview .navbar-link:disabled { |
133 color: rgba(0, 0, 0, .5); | 119 color: rgba(0, 0, 0, .5); |
134 cursor: default; | 120 cursor: default; |
135 text-shadow: none; | 121 text-shadow: none; |
136 } | 122 } |
137 | 123 |
138 button.loading { | 124 button.loading { |
139 cursor: progress; | 125 cursor: progress; |
140 } | 126 } |
141 | 127 |
142 #print-preview button.default { | 128 #print-preview button.default { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 height: 0 !important; | 220 height: 0 !important; |
235 opacity: 0; | 221 opacity: 0; |
236 overflow: hidden; | 222 overflow: hidden; |
237 padding-top: 0; | 223 padding-top: 0; |
238 position: static; | 224 position: static; |
239 visibility: visible; | 225 visibility: visible; |
240 } | 226 } |
241 | 227 |
242 /* Individual settings sections */ | 228 /* Individual settings sections */ |
243 | 229 |
244 #print-pages-div { | |
245 -webkit-box-align: center; | |
246 -webkit-box-orient: horizontal; | |
247 display: -webkit-box; | |
248 } | |
249 | |
250 #individual-pages { | |
251 -webkit-box-flex: 1; | |
252 -webkit-margin-start: 5px; | |
253 display: block; | |
254 } | |
255 | |
256 #collate-option { | |
257 -webkit-padding-start: 16px; | |
258 display: inline-block; | |
259 } | |
260 | |
261 #copies { | |
262 position: relative; | |
263 width: 2.75em; | |
264 } | |
265 | |
266 #copies.invalid { | |
267 background: rgb(255, 240, 240); | |
268 color: rgb(140, 20, 20); | |
269 } | |
270 | |
271 #increment, | |
272 #decrement { | |
273 -webkit-padding-end: 0; | |
274 -webkit-padding-start: 0; | |
275 font-weight: 600; | |
276 margin: 0; | |
277 min-width: 0; | |
278 position: relative; | |
279 width: 2em; | |
280 } | |
281 | |
282 #increment:focus, | |
283 #decrement:focus, | |
284 #copies:focus { | |
285 z-index: 1; | |
286 } | |
287 | |
288 #increment { | |
289 -webkit-margin-start: -5px; | |
290 border-radius: 0; | |
291 } | |
292 | |
293 #decrement { | |
294 -webkit-margin-start: -5px; | |
295 border-bottom-left-radius: 0; | |
296 border-bottom-right-radius: 3px; | |
297 border-top-left-radius: 0; | |
298 border-top-right-radius: 3px; | |
299 } | |
300 | |
301 html[dir='rtl'] #decrement { | |
302 border-bottom-left-radius: 3px; | |
303 border-bottom-right-radius: 0; | |
304 border-top-left-radius: 3px; | |
305 border-top-right-radius: 0; | |
306 } | |
307 | |
308 #system-dialog-link { | |
309 -webkit-margin-start: 16px; | |
310 margin-top: 10px; | |
311 padding: 0; | |
312 } | |
313 | |
314 /* PDF view */ | |
315 | |
316 #mainview { | |
317 -webkit-margin-start: 310px; | |
318 -webkit-padding-start: 0; | |
319 -webkit-user-select: none; | |
320 background-color: #ccc; | |
321 bottom: 0; | |
322 left: 0; | |
323 overflow: hidden; | |
324 position: absolute; | |
325 right: 0; | |
326 top: 0; | |
327 z-index: 1; | |
328 } | |
329 | |
330 #pdf-viewer { | |
331 /* pluginFadeInTransitionDuration = 200ms */ | |
332 -webkit-transition: opacity 200ms linear; | |
333 /* pluginFadeInTransitionDelay = overlayFadeOutTransitionDuration = 100ms */ | |
334 -webkit-transition-delay: 100ms; | |
335 height: 100%; | |
336 opacity: 1; | |
337 width: 100%; | |
338 } | |
339 | |
340 #pdf-viewer.invisible { | |
341 /* pluginFadeOutTransitionDuration = 100ms */ | |
342 -webkit-transition: opacity 100ms linear; | |
343 /* pluginFadeOutTransitionDelay = 250ms */ | |
344 -webkit-transition-delay: 250ms; | |
345 opacity: 0; | |
346 } | |
347 | |
348 #no-plugin { | |
349 padding: 20px; | |
350 } | |
351 | |
352 /* TODO(estade): this should be in a shared location but I'm afraid of the | 230 /* TODO(estade): this should be in a shared location but I'm afraid of the |
353 * damage it could do. */ | 231 * damage it could do. */ |
354 [hidden] { | 232 [hidden] { |
355 display: none !important; | 233 display: none !important; |
356 } | 234 } |
357 | 235 |
358 #overlay-layer { | |
359 -webkit-transition: opacity 200ms linear; | |
360 /* overlayFadeInTransitionDelay = pluginFadeOutTransitionDelay + | |
361 * pluginFadeOutTransitionDuration = 350ms */ | |
362 -webkit-transition-delay: 350ms; | |
363 -webkit-user-select: none; | |
364 background: #ccc; | |
365 height: 100%; | |
366 margin: 0; | |
367 opacity: 1; | |
368 position: absolute; | |
369 width: 100%; | |
370 } | |
371 | |
372 #overlay-layer.invisible { | |
373 /* overlayFadeOutTransitionDuration = 100ms */ | |
374 -webkit-transition: opacity 100ms linear; | |
375 opacity: 0; | |
376 pointer-events: none; | |
377 } | |
378 | |
379 #messages { | |
380 color: #404040; | |
381 font-size: 1.1em; | |
382 position: relative; | |
383 text-align: center; | |
384 text-shadow: 0 1px 0 rgba(255, 255, 255, .5); | |
385 top: 50%; | |
386 } | |
387 | |
388 @-webkit-keyframes dancing-dots-jump { | 236 @-webkit-keyframes dancing-dots-jump { |
389 0% { top: 0; } | 237 0% { top: 0; } |
390 55% { top: 0; } | 238 55% { top: 0; } |
391 60% { top: -10px; } | 239 60% { top: -10px; } |
392 80% { top: 3px; } | 240 80% { top: 3px; } |
393 90% { top: -2px; } | 241 90% { top: -2px; } |
394 95% { top: 1px; } | 242 95% { top: 1px; } |
395 100% { top: 0; } | 243 100% { top: 0; } |
396 } | 244 } |
397 | 245 |
398 #loading { | 246 span.jumping-dots > span { |
399 -webkit-margin-end: -3px; | |
400 } | |
401 | |
402 .message-with-dots span span { | |
403 -webkit-animation: dancing-dots-jump 1800ms infinite; | 247 -webkit-animation: dancing-dots-jump 1800ms infinite; |
404 padding: 1px; | 248 padding: 1px; |
405 position: relative; | 249 position: relative; |
406 } | 250 } |
407 | 251 |
408 .message-with-dots span span:nth-child(2) { | 252 span.jumping-dots > span:nth-child(2) { |
409 -webkit-animation-delay: 100ms; | 253 -webkit-animation-delay: 100ms; |
410 } | 254 } |
411 | 255 |
412 .message-with-dots span span:nth-child(3) { | 256 span.jumping-dots > span:nth-child(3) { |
413 -webkit-animation-delay: 300ms; | 257 -webkit-animation-delay: 300ms; |
414 } | 258 } |
415 | 259 |
416 #error-action-area { | |
417 margin-top: 10px; | |
418 } | |
419 | |
420 /* TODO(estade): unfork this code. */ | 260 /* TODO(estade): unfork this code. */ |
421 .button-strip { | 261 .button-strip { |
422 <if expr="not pp_ifdef('toolkit_views')"> | 262 <if expr="not pp_ifdef('toolkit_views')"> |
423 -webkit-box-direction: reverse; | 263 -webkit-box-direction: reverse; |
424 </if> | 264 </if> |
425 -webkit-box-orient: horizontal; | 265 -webkit-box-orient: horizontal; |
426 -webkit-box-pack: end; | 266 -webkit-box-pack: end; |
427 display: -webkit-box; | 267 display: -webkit-box; |
428 } | 268 } |
429 | 269 |
430 #print-preview .button-strip button { | 270 #print-preview .button-strip button { |
431 -webkit-margin-start: 4px; | 271 -webkit-margin-start: 4px; |
432 display: block; | 272 display: block; |
433 } | 273 } |
| 274 |
| 275 #link-container { |
| 276 -webkit-box-flex: 1; |
| 277 } |
OLD | NEW |