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 psuedo-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;
162 margin: 1.296rem 1.296rem auto;
165 /* Link colors for light, dark and sepia themes */
176 border-left: 4px solid #eee;
181 color: rgba(0, 0, 0, .54);
186 background-color: #e4dfdf;
189 margin: inherit auto;
196 margin-bottom: 0.444rem;
215 /* TODO(sunangel): make images zoomable. */
220 margin: 0 auto 0.6rem auto;
223 /* TODO(nyquist): set these classes directly in the dom distiller. */
225 embed+[class*='caption'],
227 img+[class*='caption'],
228 object+[class*='caption'],
229 video+[class*='caption'] {
230 color: rgba(0,0,0,.54);
238 margin-left: 1.296rem;
245 background-color: #f8f8f8;
246 border: 1px solid #eee;
252 background-color: #333;
253 border: 1px solid #555;
263 line-height: 1.296rem;
272 /* Loading Indicator. */
301 #loader .mask.first {
302 transition-delay: 0.22s;
303 transition-duration: 0s;
304 transition-property: border-color;
307 #loader .circle.initial .mask {
312 #loader .circle.red .mask.first {
313 border-bottom: 1px solid #555;
318 #loader .circle.red .mask.second {
323 #loader .circle.yellow .mask.first {
324 border-left: 1px solid #888;
329 #loader .circle.yellow .mask.second {
334 #loader .circle.green .mask.first {
335 border-top: 1px solid #555;
340 #loader .circle.green .mask.second {
345 #loader .circle.blue .mask.first {
346 border-right: 1px solid #888;
351 #loader .circle.blue .mask.second {
356 #loader .circle .mask .base {
360 transition-property: opacity;
361 transition-timing-function: linear;
362 transition-duration: 0s;
363 transition-delay: 0s;
367 #loader .circle .mask .mover {
370 transition-delay: 0s;
371 transition-duration: 0.22s;
372 transition-property: background-color, left, top, right, bottom, width,
374 transition-timing-function: ease-in;
378 #loader .circle .mask.second .mover,
379 #loader .circle.initial .mask .mover {
380 transition-delay: 0.22s;
381 transition-timing-function: ease-out;
384 #loader .circle.red .mask.first .base {
388 #loader .circle.red .mask.second .base {
393 #loader .circle.yellow .mask.first .base {
398 #loader .circle.yellow .mask.second .base {
403 #loader .circle.green .mask.first .base {
408 #loader .circle.green .mask.second .base {
413 #loader .circle.blue .mask.first .base {
418 #loader .circle.blue .mask.second .base {
423 #loader .circle.initial .mask .mover {
428 #loader .circle.red .mask.first .mover {
433 #loader .circle.red .mask.second .mover {
438 #loader .circle.yellow .mask.first .mover {
443 #loader .circle.yellow .mask.second .mover {
448 #loader .circle.green .mask.first .mover {
453 #loader .circle.green .mask.second .mover {
458 #loader .circle.blue .mask.first .mover {
463 #loader .circle.blue .mask.second .mover {
469 #loader.initial .circle.initial,
470 #loader.initial .circle.initial .mask {
473 #loader.initial .circle.initial .mask .mover {
478 /* Moving from Red to Yellow. */
479 #loader.yellow .circle.yellow,
480 #loader.yellow .circle.yellow .mask,
481 #loader.yellow .circle.yellow .mask .base {
484 #loader.yellow .circle.yellow .mask.first .mover {
488 #loader.yellow .circle.yellow .mask.second .mover {
493 /* Moving from Yellow to Green. */
494 #loader.green .circle.green,
495 #loader.green .circle.green .mask,
496 #loader.green .circle.green .mask .base {
499 #loader.green .circle.green .mask.first .mover {
503 #loader.green .circle.green .mask.second .mover {
509 /* Moving from Green to Blue. */
510 #loader.blue .circle.blue,
511 #loader.blue .circle.blue .mask,
512 #loader.blue .circle.blue .mask .base {
515 #loader.blue .circle.blue .mask.first .mover {
519 #loader.blue .circle.blue .mask.second .mover {
524 /* Moving from Blue to Red. */
525 #loader.red .circle.red,
526 #loader.red .circle.red .mask,
527 #loader.red .circle.red .mask .base {
530 #loader.red.firstTime .circle.red .mask.second .base {
533 #loader.red .circle.red .mask.first .mover {
537 #loader.red .circle.red .mask.second .mover {
542 #loader .circle.red .mask.first {
543 border-bottom-color: rgb(60,120,248);
546 #loader .circle.yellow .mask.first {
547 border-left-color: rgb(250,36,36);
550 #loader .circle.green .mask.first {
551 border-top-color: rgb(255,211,75);
554 #loader .circle.blue .mask.first {
555 border-right-color: rgb(0,177,95);
558 #loader .circle.red .mask.first .base {
559 background-color: rgb(250,36,36);
562 #loader .circle.red .mask.second .base {
563 background-color: rgb(60,120,248);
566 #loader .circle.yellow .mask.first .base {
567 background-color: rgb(255,211,75);
570 #loader .circle.yellow .mask.second .base {
571 background-color: rgb(250,36,36);
574 #loader .circle.green .mask.first .base {
575 background-color: rgb(0,177,95);
578 #loader .circle.green .mask.second .base {
579 background-color: rgb(255,211,75);
582 #loader .circle.blue .mask.first .base {
583 background-color: rgb(60,120,248);
586 #loader .circle.blue .mask.second .base {
587 background-color: rgb(0,177,95);
590 #loader .circle.initial .mask .mover {
591 background-color: rgb(33,89,189);
594 #loader .circle.red .mask.first .mover {
595 background-color: rgb(60,120,248);
598 #loader .circle.red .mask.second .mover {
599 background-color: rgb(158,18,18);
602 #loader .circle.yellow .mask.first .mover {
603 background-color: rgb(250,36,36);
606 #loader .circle.yellow .mask.second .mover {
607 background-color: rgb(222,161,26);
610 #loader .circle.green .mask.first .mover {
611 background-color: rgb(255,211,75);
614 #loader .circle.green .mask.second .mover {
615 background-color: rgb(0,137,72);
618 #loader .circle.blue .mask.first .mover {
619 background-color: rgb(0,177,95);
622 #loader .circle.blue .mask.second .mover {
623 background-color: rgb(33,89,189);
626 #loader.initial .circle.initial .mask .mover {
627 background-color: rgb(60,120,248);
630 #loader.yellow .circle.yellow .mask.first {
631 border-color: rgb(255,211,75);
634 #loader.yellow .circle.yellow .mask.first .mover {
635 background-color: rgb(158,18,18);
638 #loader.yellow .circle.yellow .mask.second .mover {
639 background-color: rgb(255,211,75);
642 #loader.green .circle.green .mask.first {
643 border-color: rgb(0,177,95);
646 #loader.green .circle.green .mask.first .mover {
647 background-color: rgb(222,161,26);
650 #loader.green .circle.green .mask.second .mover {
651 background-color: rgb(0,177,95);
654 #loader.blue .circle.blue .mask.first {
655 border-color: rgb(60,120,248);
658 #loader.blue .circle.blue .mask.first .mover {
659 background-color: rgb(0,137,72);
662 #loader.blue .circle.blue .mask.second .mover {
663 background-color: rgb(60,120,248);
666 #loader.red .circle.red .mask.first {
667 border-color: rgb(250,36,36);
670 #loader.red .circle.red .mask.first .mover {
671 background-color: rgb(33,89,189);
674 #loader.red .circle.red .mask.second .mover {
675 background-color: rgb(250,36,36);