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
;
76 /* Base typography. */
92 text-rendering: optimizeLegibility
;
93 transition-property: color
, background-color
;
94 transition-duration: 0.5s;
95 transition-timing-function: ease
;
97 -webkit-overflow-scrolling: touch
;
100 /* Classes for light, dark and sepia themes.
101 * Must agree with classes returned by useTheme() in dom_distiller_viewer.js
102 * and with CSS class constants in viewer.cc */
106 background-color: #FAFAFA;
111 background-color: #212121;
116 background-color: rgb
(203, 173, 141);
139 background-color: #EEE;
145 background-color: rgb
(217, 196, 175);
146 border-color: rgb
(147, 125, 102);
151 background-color: #333;
155 .light tbody tr:nth-child(odd) {
156 background-color: #EEE;
159 .light th, .light td {
160 border-left: 1px solid
#AAA;
163 .sepia tbody tr:nth-child(odd) {
164 background-color: rgb
(217, 196, 175);
167 .sepia th, .sepia td {
168 border-left: 1px solid rgb
(147, 125, 102);
171 .dark tbody tr:nth-child(odd) {
172 background-color: #333;
176 border-left: 1px solid
#555;
179 /* #contentWrap is added to be more specific than the color theme rules */
180 #contentWrap th:first-child
{ border-left: none
; }
181 #contentWrap td:first-child
{ border-left: none
; }
191 font-family: 'Roboto', sans-serif
;
195 font-family: monospace
;
198 /* Define vertical rhythm (baseline grid of 4px). */
218 margin-bottom: 1.143rem;
233 /* Margins for Show Original link. */
235 .light #closeReaderView {
236 border-top: 1px solid
#E0E0E0;
240 .dark #closeReaderView {
241 border-top: 1px solid
#555;
245 .sepia #closeReaderView {
246 border-top: 1px solid rgb
(147, 125, 102);
252 font-family: 'Roboto', sans-serif
;
258 text-decoration: none
;
259 text-transform: uppercase
;
271 /* Remove backgrounds and custom colors. */
272 .light, .dark, .sepia {
273 color: #000 !important
;
274 background-color: #fff !important
;
277 /* If the transition duration is unchanged, the above color changes
278 happen after the document is ready for print. */
280 transition-duration: unset
!important
;
285 margin: 24px 16px 24px 16px;
312 border-left: 4px solid
#888;
343 /* TODO(sunangel): make images zoomable. */
348 margin: 0.6rem auto
0.4rem 0;
351 /* TODO(nyquist): set these classes directly in the dom distiller. */
353 embed
+[class
*='caption'],
355 img
+[class
*='caption'],
356 object
+[class
*='caption'],
357 video
+[class
*='caption'] {
367 margin-left: 1.296rem;
382 white-space: pre-wrap
;
389 /* Footer feedback form. */
404 background-color: #4285F4;
412 font-family: sans-serif
;
413 background-color: #4285F4;
425 .feedbackButtonWrap {
432 -webkit-user-select: none
;
433 background-color: #FFFFFF;
436 display: inline-block
;
439 margin: 0px 4% 0px 4%;
442 text-transform: uppercase
;
451 /* Feedback fade out */
453 animation-duration: 0.5s;
454 animation-name: fadeOutAndSwipeAnimation
;
457 @keyframes fadeOutAndSwipeAnimation
{
472 /* This is the perecnt height of a standard HD video. */
473 padding-bottom: 56.25%;
486 /* Loading Indicator. */
515 #loader .mask
.first
{
516 transition-delay: 0.22s;
517 transition-duration: 0s;
518 transition-property: border-color
;
521 #loader .circle
.initial
.mask
{
526 #loader .circle
.red
.mask
.first
{
527 border-bottom: 1px solid
#555;
532 #loader .circle
.red
.mask
.second
{
537 #loader .circle
.yellow
.mask
.first
{
538 border-left: 1px solid
#888;
543 #loader .circle
.yellow
.mask
.second
{
548 #loader .circle
.green
.mask
.first
{
549 border-top: 1px solid
#555;
554 #loader .circle
.green
.mask
.second
{
559 #loader .circle
.blue
.mask
.first
{
560 border-right: 1px solid
#888;
565 #loader .circle
.blue
.mask
.second
{
570 #loader .circle
.mask
.base
{
574 transition-property: opacity
;
575 transition-timing-function: linear
;
576 transition-duration: 0s;
577 transition-delay: 0s;
581 #loader .circle
.mask
.mover
{
584 transition-delay: 0s;
585 transition-duration: 0.22s;
586 transition-property: background-color
, left
, top
, right
, bottom
, width
,
588 transition-timing-function: ease-in
;
592 #loader .circle
.mask
.second
.mover
,
593 #loader .circle
.initial
.mask
.mover
{
594 transition-delay: 0.22s;
595 transition-timing-function: ease-out
;
598 #loader .circle
.red
.mask
.first
.base
{
602 #loader .circle
.red
.mask
.second
.base
{
607 #loader .circle
.yellow
.mask
.first
.base
{
612 #loader .circle
.yellow
.mask
.second
.base
{
617 #loader .circle
.green
.mask
.first
.base
{
622 #loader .circle
.green
.mask
.second
.base
{
627 #loader .circle
.blue
.mask
.first
.base
{
632 #loader .circle
.blue
.mask
.second
.base
{
637 #loader .circle
.initial
.mask
.mover
{
642 #loader .circle
.red
.mask
.first
.mover
{
647 #loader .circle
.red
.mask
.second
.mover
{
652 #loader .circle
.yellow
.mask
.first
.mover
{
657 #loader .circle
.yellow
.mask
.second
.mover
{
662 #loader .circle
.green
.mask
.first
.mover
{
667 #loader .circle
.green
.mask
.second
.mover
{
672 #loader .circle
.blue
.mask
.first
.mover
{
677 #loader .circle
.blue
.mask
.second
.mover
{
683 #loader.initial
.circle
.initial
,
684 #loader.initial
.circle
.initial
.mask
{
687 #loader.initial
.circle
.initial
.mask
.mover
{
692 /* Moving from Red to Yellow. */
693 #loader.yellow
.circle
.yellow
,
694 #loader.yellow
.circle
.yellow
.mask
,
695 #loader.yellow
.circle
.yellow
.mask
.base
{
698 #loader.yellow
.circle
.yellow
.mask
.first
.mover
{
702 #loader.yellow
.circle
.yellow
.mask
.second
.mover
{
707 /* Moving from Yellow to Green. */
708 #loader.green
.circle
.green
,
709 #loader.green
.circle
.green
.mask
,
710 #loader.green
.circle
.green
.mask
.base
{
713 #loader.green
.circle
.green
.mask
.first
.mover
{
717 #loader.green
.circle
.green
.mask
.second
.mover
{
723 /* Moving from Green to Blue. */
724 #loader.blue
.circle
.blue
,
725 #loader.blue
.circle
.blue
.mask
,
726 #loader.blue
.circle
.blue
.mask
.base
{
729 #loader.blue
.circle
.blue
.mask
.first
.mover
{
733 #loader.blue
.circle
.blue
.mask
.second
.mover
{
738 /* Moving from Blue to Red. */
739 #loader.red
.circle
.red
,
740 #loader.red
.circle
.red
.mask
,
741 #loader.red
.circle
.red
.mask
.base
{
744 #loader.red
.firstTime
.circle
.red
.mask
.second
.base
{
747 #loader.red
.circle
.red
.mask
.first
.mover
{
751 #loader.red
.circle
.red
.mask
.second
.mover
{
756 #loader .circle
.red
.mask
.first
{
757 border-bottom-color: rgb
(60,120,248);
760 #loader .circle
.yellow
.mask
.first
{
761 border-left-color: rgb
(250,36,36);
764 #loader .circle
.green
.mask
.first
{
765 border-top-color: rgb
(255,211,75);
768 #loader .circle
.blue
.mask
.first
{
769 border-right-color: rgb
(0,177,95);
772 #loader .circle
.red
.mask
.first
.base
{
773 background-color: rgb
(250,36,36);
776 #loader .circle
.red
.mask
.second
.base
{
777 background-color: rgb
(60,120,248);
780 #loader .circle
.yellow
.mask
.first
.base
{
781 background-color: rgb
(255,211,75);
784 #loader .circle
.yellow
.mask
.second
.base
{
785 background-color: rgb
(250,36,36);
788 #loader .circle
.green
.mask
.first
.base
{
789 background-color: rgb
(0,177,95);
792 #loader .circle
.green
.mask
.second
.base
{
793 background-color: rgb
(255,211,75);
796 #loader .circle
.blue
.mask
.first
.base
{
797 background-color: rgb
(60,120,248);
800 #loader .circle
.blue
.mask
.second
.base
{
801 background-color: rgb
(0,177,95);
804 #loader .circle
.initial
.mask
.mover
{
805 background-color: rgb
(33,89,189);
808 #loader .circle
.red
.mask
.first
.mover
{
809 background-color: rgb
(60,120,248);
812 #loader .circle
.red
.mask
.second
.mover
{
813 background-color: rgb
(158,18,18);
816 #loader .circle
.yellow
.mask
.first
.mover
{
817 background-color: rgb
(250,36,36);
820 #loader .circle
.yellow
.mask
.second
.mover
{
821 background-color: rgb
(222,161,26);
824 #loader .circle
.green
.mask
.first
.mover
{
825 background-color: rgb
(255,211,75);
828 #loader .circle
.green
.mask
.second
.mover
{
829 background-color: rgb
(0,137,72);
832 #loader .circle
.blue
.mask
.first
.mover
{
833 background-color: rgb
(0,177,95);
836 #loader .circle
.blue
.mask
.second
.mover
{
837 background-color: rgb
(33,89,189);
840 #loader.initial
.circle
.initial
.mask
.mover
{
841 background-color: rgb
(60,120,248);
844 #loader.yellow
.circle
.yellow
.mask
.first
{
845 border-color: rgb
(255,211,75);
848 #loader.yellow
.circle
.yellow
.mask
.first
.mover
{
849 background-color: rgb
(158,18,18);
852 #loader.yellow
.circle
.yellow
.mask
.second
.mover
{
853 background-color: rgb
(255,211,75);
856 #loader.green
.circle
.green
.mask
.first
{
857 border-color: rgb
(0,177,95);
860 #loader.green
.circle
.green
.mask
.first
.mover
{
861 background-color: rgb
(222,161,26);
864 #loader.green
.circle
.green
.mask
.second
.mover
{
865 background-color: rgb
(0,177,95);
868 #loader.blue
.circle
.blue
.mask
.first
{
869 border-color: rgb
(60,120,248);
872 #loader.blue
.circle
.blue
.mask
.first
.mover
{
873 background-color: rgb
(0,137,72);
876 #loader.blue
.circle
.blue
.mask
.second
.mover
{
877 background-color: rgb
(60,120,248);
880 #loader.red
.circle
.red
.mask
.first
{
881 border-color: rgb
(250,36,36);
884 #loader.red
.circle
.red
.mask
.first
.mover
{
885 background-color: rgb
(33,89,189);
888 #loader.red
.circle
.red
.mask
.second
.mover
{
889 background-color: rgb
(250,36,36);