| 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; | |
| 49 -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .3); | 39 -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .3); |
| 50 background: white; | 40 background: white; |
| 51 overflow-y: auto; | 41 overflow-y: auto; |
| 52 padding-top: 2px; | 42 padding-top: 2px; |
| 43 width: 100%; |
| 53 } | 44 } |
| 54 | 45 |
| 55 .two-column { | 46 .two-column { |
| 56 display: table-row; | 47 display: table-row; |
| 57 } | 48 } |
| 58 | 49 |
| 59 .right-column { | 50 .right-column { |
| 60 -webkit-padding-end: 16px; | 51 -webkit-padding-end: 16px; |
| 61 display: table-cell; | 52 display: table-cell; |
| 62 width: auto; | 53 width: auto; |
| 63 } | 54 } |
| 64 | 55 |
| 65 .right-column .checkbox, | 56 .right-column .checkbox, |
| 66 .right-column .radio { | 57 .right-column .radio { |
| 67 margin: 0; | 58 margin: 0; |
| 68 } | 59 } |
| 69 | 60 |
| 70 .right-column > *:not(:first-child):not(.hint), | 61 .right-column > *:not(:first-child):not(.hint), |
| 71 .right-column > .collapsible > *:not(:first-child):not(.hint) { | 62 .right-column > .collapsible > *:not(:first-child):not(.hint) { |
| 72 margin-top: 8px; | 63 margin-top: 8px; |
| 73 } | 64 } |
| 74 | 65 |
| 75 .two-column h1 { | 66 .two-column h1 { |
| 67 -webkit-padding-end: 16px; |
| 76 -webkit-padding-start: 16px; | 68 -webkit-padding-start: 16px; |
| 77 display: table-cell; | 69 display: table-cell; |
| 78 font-size: 1.1em; | 70 font-size: 1.1em; |
| 79 width: 86px; | |
| 80 } | 71 } |
| 81 | 72 |
| 82 .two-column.visible h1, | 73 .two-column.visible h1, |
| 83 .two-column.visible .right-column { | 74 .two-column.visible .right-column { |
| 84 border-bottom: 1px solid #dcdcdc; | 75 border-bottom: 1px solid #dcdcdc; |
| 85 padding-bottom: 10px; | 76 padding-bottom: 10px; |
| 86 padding-top: 10px; | 77 padding-top: 10px; |
| 87 } | 78 } |
| 88 | 79 |
| 89 .two-column:not(.visible) select { | 80 .two-column:not(.visible) select { |
| 90 border-top-width: 0; | 81 border-top-width: 0; |
| 91 margin-top: 0; | 82 margin-top: 0; |
| 92 padding-top: 0; | 83 padding-top: 0; |
| 93 } | 84 } |
| 94 | 85 |
| 95 p { | 86 p { |
| 96 -webkit-line-box-contain: block; | 87 -webkit-line-box-contain: block; |
| 97 margin: 0; | 88 margin: 0; |
| 98 margin-bottom: 10px; | 89 margin-bottom: 10px; |
| 99 } | 90 } |
| 100 | 91 |
| 101 h1 { | 92 h1 { |
| 102 color: #808080; | 93 color: #808080; |
| 103 font-weight: 300; | 94 font-weight: 300; |
| 104 } | 95 } |
| 105 | 96 |
| 106 .preview-link-button { | 97 #print-preview .navbar-link { |
| 107 -webkit-padding-start: 16px; | 98 -webkit-margin-start: 16px; |
| 99 margin-top: 10px; |
| 108 outline: 0; | 100 outline: 0; |
| 109 padding-top: 10px; | 101 padding: 0; |
| 110 text-align: start; | 102 text-align: start; |
| 111 text-decoration: none; | 103 text-decoration: none; |
| 112 } | 104 } |
| 113 | 105 |
| 114 .preview-link-button:hover:not(:disabled) { | 106 #print-preview .navbar-link:hover:not(:disabled) { |
| 115 text-decoration: underline; | 107 text-decoration: underline; |
| 116 } | 108 } |
| 117 | 109 |
| 118 .preview-link-button:disabled { | 110 #print-preview .navbar-link:disabled { |
| 119 color: rgba(0, 0, 0, .5); | 111 color: rgba(0, 0, 0, .5); |
| 120 cursor: default; | 112 cursor: default; |
| 121 text-shadow: none; | 113 text-shadow: none; |
| 122 } | 114 } |
| 123 | 115 |
| 124 button.loading { | 116 button.loading { |
| 125 cursor: progress; | 117 cursor: progress; |
| 126 } | 118 } |
| 127 | 119 |
| 128 #print-preview button.default { | 120 #print-preview button.default { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 height: 0 !important; | 212 height: 0 !important; |
| 221 opacity: 0; | 213 opacity: 0; |
| 222 overflow: hidden; | 214 overflow: hidden; |
| 223 padding-top: 0; | 215 padding-top: 0; |
| 224 position: static; | 216 position: static; |
| 225 visibility: visible; | 217 visibility: visible; |
| 226 } | 218 } |
| 227 | 219 |
| 228 /* Individual settings sections */ | 220 /* Individual settings sections */ |
| 229 | 221 |
| 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 | 222 /* TODO(estade): this should be in a shared location but I'm afraid of the |
| 333 * damage it could do. */ | 223 * damage it could do. */ |
| 334 [hidden] { | 224 [hidden] { |
| 335 display: none !important; | 225 display: none !important; |
| 336 } | 226 } |
| 337 | 227 |
| 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 { | 228 @-webkit-keyframes dancing-dots-jump { |
| 369 0% { top: 0; } | 229 0% { top: 0; } |
| 370 55% { top: 0; } | 230 55% { top: 0; } |
| 371 60% { top: -10px; } | 231 60% { top: -10px; } |
| 372 80% { top: 3px; } | 232 80% { top: 3px; } |
| 373 90% { top: -2px; } | 233 90% { top: -2px; } |
| 374 95% { top: 1px; } | 234 95% { top: 1px; } |
| 375 100% { top: 0; } | 235 100% { top: 0; } |
| 376 } | 236 } |
| 377 | 237 |
| 378 #loading { | 238 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; | 239 -webkit-animation: dancing-dots-jump 1800ms infinite; |
| 384 padding: 1px; | 240 padding: 1px; |
| 385 position: relative; | 241 position: relative; |
| 386 } | 242 } |
| 387 | 243 |
| 388 .message-with-dots span span:nth-child(2) { | 244 span.jumping-dots > span:nth-child(2) { |
| 389 -webkit-animation-delay: 100ms; | 245 -webkit-animation-delay: 100ms; |
| 390 } | 246 } |
| 391 | 247 |
| 392 .message-with-dots span span:nth-child(3) { | 248 span.jumping-dots > span:nth-child(3) { |
| 393 -webkit-animation-delay: 300ms; | 249 -webkit-animation-delay: 300ms; |
| 394 } | 250 } |
| 395 | 251 |
| 396 #error-action-area { | |
| 397 margin-top: 10px; | |
| 398 } | |
| 399 | |
| 400 /* TODO(estade): unfork this code. */ | 252 /* TODO(estade): unfork this code. */ |
| 401 .button-strip { | 253 .button-strip { |
| 402 <if expr="not pp_ifdef('toolkit_views')"> | 254 <if expr="not pp_ifdef('toolkit_views')"> |
| 403 -webkit-box-direction: reverse; | 255 -webkit-box-direction: reverse; |
| 404 </if> | 256 </if> |
| 405 -webkit-box-orient: horizontal; | 257 -webkit-box-orient: horizontal; |
| 406 -webkit-box-pack: end; | 258 -webkit-box-pack: end; |
| 407 display: -webkit-box; | 259 display: -webkit-box; |
| 408 } | 260 } |
| 409 | 261 |
| 410 #print-preview .button-strip button { | 262 #print-preview .button-strip button { |
| 411 -webkit-margin-start: 4px; | 263 -webkit-margin-start: 4px; |
| 412 display: block; | 264 display: block; |
| 413 } | 265 } |
| 266 |
| 267 #link-container { |
| 268 -webkit-box-flex: 1; |
| 269 } |
| 270 |
| OLD | NEW |