1 /* Copyright 2014 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
5 /* Set the global 'box-sizing' state to 'border-box'.
6 * *::after and *::before used to select pseudo-elements not selectable by *. */
11 box-sizing: border-box;
14 /* Remove all margins and padding from certain element and add word wrap. */
41 word-wrap: break-word;
44 /* Prevent 'sub' and 'sup' affecting 'line-height'. */
51 vertical-align: baseline;
62 /* Remove most spacing between table cells. */
65 border-collapse: collapse;
74 /* Base typography. */
80 text-rendering: optimizeLegibility;
84 /* Classes for light, dark and sepia themes.
85 * Must agree with classes returned by useTheme() in dom_distiller_viewer.js
86 * and with CSS class constants in viewer.cc */
90 background-color: #FFF;
95 background-color: #000;
100 background-color: rgb(203, 173, 141);
108 font-family: 'Open Sans', sans-serif;
112 font-family: monospace;
115 /* Define vertical rhythm (baseline grid of 4px). */
143 line-height: 1.296rem;
144 margin-bottom: 0.444rem;
149 /* Margins for Show Original link. */
152 margin: auto 1.296rem 1.296rem 1.296rem;
156 margin-top: 1.296rem;
167 margin: 1.296rem 1.296rem auto;
170 /* Link colors for light, dark and sepia themes */
181 border-left: 4px solid #eee;
186 color: rgba(0, 0, 0, .54);
191 background-color: #e4dfdf;
194 margin: inherit auto;
201 margin-bottom: 0.444rem;
220 /* TODO(sunangel): make images zoomable. */
225 margin: 0 auto 0.6rem auto;
228 /* TODO(nyquist): set these classes directly in the dom distiller. */
230 embed+[class*='caption'],
232 img+[class*='caption'],
233 object+[class*='caption'],
234 video+[class*='caption'] {
235 color: rgba(0,0,0,.54);
243 margin-left: 1.296rem;
250 background-color: #f8f8f8;
251 border: 1px solid #eee;
257 background-color: #333;
258 border: 1px solid #555;
268 line-height: 1.296rem;
277 /* Loading Indicator. */
306 #loader .mask.first {
307 transition-delay: 0.22s;
308 transition-duration: 0s;
309 transition-property: border-color;
312 #loader .circle.initial .mask {
317 #loader .circle.red .mask.first {
318 border-bottom: 1px solid #555;
323 #loader .circle.red .mask.second {
328 #loader .circle.yellow .mask.first {
329 border-left: 1px solid #888;
334 #loader .circle.yellow .mask.second {
339 #loader .circle.green .mask.first {
340 border-top: 1px solid #555;
345 #loader .circle.green .mask.second {
350 #loader .circle.blue .mask.first {
351 border-right: 1px solid #888;
356 #loader .circle.blue .mask.second {
361 #loader .circle .mask .base {
365 transition-property: opacity;
366 transition-timing-function: linear;
367 transition-duration: 0s;
368 transition-delay: 0s;
372 #loader .circle .mask .mover {
375 transition-delay: 0s;
376 transition-duration: 0.22s;
377 transition-property: background-color, left, top, right, bottom, width,
379 transition-timing-function: ease-in;
383 #loader .circle .mask.second .mover,
384 #loader .circle.initial .mask .mover {
385 transition-delay: 0.22s;
386 transition-timing-function: ease-out;
389 #loader .circle.red .mask.first .base {
393 #loader .circle.red .mask.second .base {
398 #loader .circle.yellow .mask.first .base {
403 #loader .circle.yellow .mask.second .base {
408 #loader .circle.green .mask.first .base {
413 #loader .circle.green .mask.second .base {
418 #loader .circle.blue .mask.first .base {
423 #loader .circle.blue .mask.second .base {
428 #loader .circle.initial .mask .mover {
433 #loader .circle.red .mask.first .mover {
438 #loader .circle.red .mask.second .mover {
443 #loader .circle.yellow .mask.first .mover {
448 #loader .circle.yellow .mask.second .mover {
453 #loader .circle.green .mask.first .mover {
458 #loader .circle.green .mask.second .mover {
463 #loader .circle.blue .mask.first .mover {
468 #loader .circle.blue .mask.second .mover {
474 #loader.initial .circle.initial,
475 #loader.initial .circle.initial .mask {
478 #loader.initial .circle.initial .mask .mover {
483 /* Moving from Red to Yellow. */
484 #loader.yellow .circle.yellow,
485 #loader.yellow .circle.yellow .mask,
486 #loader.yellow .circle.yellow .mask .base {
489 #loader.yellow .circle.yellow .mask.first .mover {
493 #loader.yellow .circle.yellow .mask.second .mover {
498 /* Moving from Yellow to Green. */
499 #loader.green .circle.green,
500 #loader.green .circle.green .mask,
501 #loader.green .circle.green .mask .base {
504 #loader.green .circle.green .mask.first .mover {
508 #loader.green .circle.green .mask.second .mover {
514 /* Moving from Green to Blue. */
515 #loader.blue .circle.blue,
516 #loader.blue .circle.blue .mask,
517 #loader.blue .circle.blue .mask .base {
520 #loader.blue .circle.blue .mask.first .mover {
524 #loader.blue .circle.blue .mask.second .mover {
529 /* Moving from Blue to Red. */
530 #loader.red .circle.red,
531 #loader.red .circle.red .mask,
532 #loader.red .circle.red .mask .base {
535 #loader.red.firstTime .circle.red .mask.second .base {
538 #loader.red .circle.red .mask.first .mover {
542 #loader.red .circle.red .mask.second .mover {
547 #loader .circle.red .mask.first {
548 border-bottom-color: rgb(60,120,248);
551 #loader .circle.yellow .mask.first {
552 border-left-color: rgb(250,36,36);
555 #loader .circle.green .mask.first {
556 border-top-color: rgb(255,211,75);
559 #loader .circle.blue .mask.first {
560 border-right-color: rgb(0,177,95);
563 #loader .circle.red .mask.first .base {
564 background-color: rgb(250,36,36);
567 #loader .circle.red .mask.second .base {
568 background-color: rgb(60,120,248);
571 #loader .circle.yellow .mask.first .base {
572 background-color: rgb(255,211,75);
575 #loader .circle.yellow .mask.second .base {
576 background-color: rgb(250,36,36);
579 #loader .circle.green .mask.first .base {
580 background-color: rgb(0,177,95);
583 #loader .circle.green .mask.second .base {
584 background-color: rgb(255,211,75);
587 #loader .circle.blue .mask.first .base {
588 background-color: rgb(60,120,248);
591 #loader .circle.blue .mask.second .base {
592 background-color: rgb(0,177,95);
595 #loader .circle.initial .mask .mover {
596 background-color: rgb(33,89,189);
599 #loader .circle.red .mask.first .mover {
600 background-color: rgb(60,120,248);
603 #loader .circle.red .mask.second .mover {
604 background-color: rgb(158,18,18);
607 #loader .circle.yellow .mask.first .mover {
608 background-color: rgb(250,36,36);
611 #loader .circle.yellow .mask.second .mover {
612 background-color: rgb(222,161,26);
615 #loader .circle.green .mask.first .mover {
616 background-color: rgb(255,211,75);
619 #loader .circle.green .mask.second .mover {
620 background-color: rgb(0,137,72);
623 #loader .circle.blue .mask.first .mover {
624 background-color: rgb(0,177,95);
627 #loader .circle.blue .mask.second .mover {
628 background-color: rgb(33,89,189);
631 #loader.initial .circle.initial .mask .mover {
632 background-color: rgb(60,120,248);
635 #loader.yellow .circle.yellow .mask.first {
636 border-color: rgb(255,211,75);
639 #loader.yellow .circle.yellow .mask.first .mover {
640 background-color: rgb(158,18,18);
643 #loader.yellow .circle.yellow .mask.second .mover {
644 background-color: rgb(255,211,75);
647 #loader.green .circle.green .mask.first {
648 border-color: rgb(0,177,95);
651 #loader.green .circle.green .mask.first .mover {
652 background-color: rgb(222,161,26);
655 #loader.green .circle.green .mask.second .mover {
656 background-color: rgb(0,177,95);
659 #loader.blue .circle.blue .mask.first {
660 border-color: rgb(60,120,248);
663 #loader.blue .circle.blue .mask.first .mover {
664 background-color: rgb(0,137,72);
667 #loader.blue .circle.blue .mask.second .mover {
668 background-color: rgb(60,120,248);
671 #loader.red .circle.red .mask.first {
672 border-color: rgb(250,36,36);
675 #loader.red .circle.red .mask.first .mover {
676 background-color: rgb(33,89,189);
679 #loader.red .circle.red .mask.second .mover {
680 background-color: rgb(250,36,36);