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. */
87 text-rendering: optimizeLegibility
;
88 transition-property: color
, background-color
;
89 transition-duration: 0.5s;
90 transition-timing-function: ease
;
92 -webkit-overflow-scrolling: touch
;
95 /* Classes for light, dark and sepia themes.
96 * Must agree with classes returned by useTheme() in dom_distiller_viewer.js
97 * and with CSS class constants in viewer.cc */
101 background-color: #FAFAFA;
106 background-color: #212121;
111 background-color: rgb
(203, 173, 141);
134 background-color: #EEE;
140 background-color: rgb
(217, 196, 175);
141 border-color: rgb
(147, 125, 102);
146 background-color: #333;
150 .light tbody tr:nth-child(odd) {
151 background-color: #EEE;
154 .light th, .light td {
155 border-left: 1px solid
#AAA;
158 .sepia tbody tr:nth-child(odd) {
159 background-color: rgb
(217, 196, 175);
162 .sepia th, .sepia td {
163 border-left: 1px solid rgb
(147, 125, 102);
166 .dark tbody tr:nth-child(odd) {
167 background-color: #333;
171 border-left: 1px solid
#555;
174 /* #contentWrap is added to be more specific than the color theme rules */
175 #contentWrap th:first-child
{ border-left: none
; }
176 #contentWrap td:first-child
{ border-left: none
; }
186 font-family: 'Roboto', sans-serif
;
190 font-family: monospace
;
193 /* Define vertical rhythm (baseline grid of 4px). */
213 margin-bottom: 1.143rem;
228 /* Margins for Show Original link. */
230 .light #closeReaderView {
231 border-top: 1px solid
#E0E0E0;
235 .dark #closeReaderView {
236 border-top: 1px solid
#555;
240 .sepia #closeReaderView {
241 border-top: 1px solid rgb
(147, 125, 102);
247 font-family: 'Roboto', sans-serif
;
253 text-decoration: none
;
254 text-transform: uppercase
;
263 /* Remove backgrounds and custom colors. */
264 .light, .dark, .sepia {
265 color: #000 !important
;
266 background-color: #fff !important
;
269 /* If the transition duration is unchanged, the above color changes
270 happen after the document is ready for print. */
272 transition-duration: unset
!important
;
277 margin: 24px 16px 24px 16px;
299 border-left: 4px solid
#888;
330 /* TODO(sunangel): make images zoomable. */
335 margin: 0.6rem auto
0.4rem 0;
338 /* TODO(nyquist): set these classes directly in the dom distiller. */
340 embed
+[class
*='caption'],
342 img
+[class
*='caption'],
343 object
+[class
*='caption'],
344 video
+[class
*='caption'] {
354 margin-left: 1.296rem;
369 white-space: pre-wrap
;
376 /* Footer feedback form. */
393 background-color: #4285F4;
404 background-color: #4285F4;
416 .feedbackButtonWrap {
423 -webkit-user-select: none
;
424 background-color: #FFFFFF;
427 display: inline-block
;
430 margin: 0px 4% 0px 4%;
433 text-transform: uppercase
;
442 /* Feedback fade out */
444 animation-duration: 0.5s;
445 animation-name: fadeOutAndSwipeAnimation
;
448 @keyframes fadeOutAndSwipeAnimation
{
463 /* This is the perecnt height of a standard HD video. */
464 padding-bottom: 56.25%;
477 /* Loading Indicator. */
506 #loader .mask
.first
{
507 transition-delay: 0.22s;
508 transition-duration: 0s;
509 transition-property: border-color
;
512 #loader .circle
.initial
.mask
{
517 #loader .circle
.red
.mask
.first
{
518 border-bottom: 1px solid
#555;
523 #loader .circle
.red
.mask
.second
{
528 #loader .circle
.yellow
.mask
.first
{
529 border-left: 1px solid
#888;
534 #loader .circle
.yellow
.mask
.second
{
539 #loader .circle
.green
.mask
.first
{
540 border-top: 1px solid
#555;
545 #loader .circle
.green
.mask
.second
{
550 #loader .circle
.blue
.mask
.first
{
551 border-right: 1px solid
#888;
556 #loader .circle
.blue
.mask
.second
{
561 #loader .circle
.mask
.base
{
565 transition-property: opacity
;
566 transition-timing-function: linear
;
567 transition-duration: 0s;
568 transition-delay: 0s;
572 #loader .circle
.mask
.mover
{
575 transition-delay: 0s;
576 transition-duration: 0.22s;
577 transition-property: background-color
, left
, top
, right
, bottom
, width
,
579 transition-timing-function: ease-in
;
583 #loader .circle
.mask
.second
.mover
,
584 #loader .circle
.initial
.mask
.mover
{
585 transition-delay: 0.22s;
586 transition-timing-function: ease-out
;
589 #loader .circle
.red
.mask
.first
.base
{
593 #loader .circle
.red
.mask
.second
.base
{
598 #loader .circle
.yellow
.mask
.first
.base
{
603 #loader .circle
.yellow
.mask
.second
.base
{
608 #loader .circle
.green
.mask
.first
.base
{
613 #loader .circle
.green
.mask
.second
.base
{
618 #loader .circle
.blue
.mask
.first
.base
{
623 #loader .circle
.blue
.mask
.second
.base
{
628 #loader .circle
.initial
.mask
.mover
{
633 #loader .circle
.red
.mask
.first
.mover
{
638 #loader .circle
.red
.mask
.second
.mover
{
643 #loader .circle
.yellow
.mask
.first
.mover
{
648 #loader .circle
.yellow
.mask
.second
.mover
{
653 #loader .circle
.green
.mask
.first
.mover
{
658 #loader .circle
.green
.mask
.second
.mover
{
663 #loader .circle
.blue
.mask
.first
.mover
{
668 #loader .circle
.blue
.mask
.second
.mover
{
674 #loader.initial
.circle
.initial
,
675 #loader.initial
.circle
.initial
.mask
{
678 #loader.initial
.circle
.initial
.mask
.mover
{
683 /* Moving from Red to Yellow. */
684 #loader.yellow
.circle
.yellow
,
685 #loader.yellow
.circle
.yellow
.mask
,
686 #loader.yellow
.circle
.yellow
.mask
.base
{
689 #loader.yellow
.circle
.yellow
.mask
.first
.mover
{
693 #loader.yellow
.circle
.yellow
.mask
.second
.mover
{
698 /* Moving from Yellow to Green. */
699 #loader.green
.circle
.green
,
700 #loader.green
.circle
.green
.mask
,
701 #loader.green
.circle
.green
.mask
.base
{
704 #loader.green
.circle
.green
.mask
.first
.mover
{
708 #loader.green
.circle
.green
.mask
.second
.mover
{
714 /* Moving from Green to Blue. */
715 #loader.blue
.circle
.blue
,
716 #loader.blue
.circle
.blue
.mask
,
717 #loader.blue
.circle
.blue
.mask
.base
{
720 #loader.blue
.circle
.blue
.mask
.first
.mover
{
724 #loader.blue
.circle
.blue
.mask
.second
.mover
{
729 /* Moving from Blue to Red. */
730 #loader.red
.circle
.red
,
731 #loader.red
.circle
.red
.mask
,
732 #loader.red
.circle
.red
.mask
.base
{
735 #loader.red
.firstTime
.circle
.red
.mask
.second
.base
{
738 #loader.red
.circle
.red
.mask
.first
.mover
{
742 #loader.red
.circle
.red
.mask
.second
.mover
{
747 #loader .circle
.red
.mask
.first
{
748 border-bottom-color: rgb
(60,120,248);
751 #loader .circle
.yellow
.mask
.first
{
752 border-left-color: rgb
(250,36,36);
755 #loader .circle
.green
.mask
.first
{
756 border-top-color: rgb
(255,211,75);
759 #loader .circle
.blue
.mask
.first
{
760 border-right-color: rgb
(0,177,95);
763 #loader .circle
.red
.mask
.first
.base
{
764 background-color: rgb
(250,36,36);
767 #loader .circle
.red
.mask
.second
.base
{
768 background-color: rgb
(60,120,248);
771 #loader .circle
.yellow
.mask
.first
.base
{
772 background-color: rgb
(255,211,75);
775 #loader .circle
.yellow
.mask
.second
.base
{
776 background-color: rgb
(250,36,36);
779 #loader .circle
.green
.mask
.first
.base
{
780 background-color: rgb
(0,177,95);
783 #loader .circle
.green
.mask
.second
.base
{
784 background-color: rgb
(255,211,75);
787 #loader .circle
.blue
.mask
.first
.base
{
788 background-color: rgb
(60,120,248);
791 #loader .circle
.blue
.mask
.second
.base
{
792 background-color: rgb
(0,177,95);
795 #loader .circle
.initial
.mask
.mover
{
796 background-color: rgb
(33,89,189);
799 #loader .circle
.red
.mask
.first
.mover
{
800 background-color: rgb
(60,120,248);
803 #loader .circle
.red
.mask
.second
.mover
{
804 background-color: rgb
(158,18,18);
807 #loader .circle
.yellow
.mask
.first
.mover
{
808 background-color: rgb
(250,36,36);
811 #loader .circle
.yellow
.mask
.second
.mover
{
812 background-color: rgb
(222,161,26);
815 #loader .circle
.green
.mask
.first
.mover
{
816 background-color: rgb
(255,211,75);
819 #loader .circle
.green
.mask
.second
.mover
{
820 background-color: rgb
(0,137,72);
823 #loader .circle
.blue
.mask
.first
.mover
{
824 background-color: rgb
(0,177,95);
827 #loader .circle
.blue
.mask
.second
.mover
{
828 background-color: rgb
(33,89,189);
831 #loader.initial
.circle
.initial
.mask
.mover
{
832 background-color: rgb
(60,120,248);
835 #loader.yellow
.circle
.yellow
.mask
.first
{
836 border-color: rgb
(255,211,75);
839 #loader.yellow
.circle
.yellow
.mask
.first
.mover
{
840 background-color: rgb
(158,18,18);
843 #loader.yellow
.circle
.yellow
.mask
.second
.mover
{
844 background-color: rgb
(255,211,75);
847 #loader.green
.circle
.green
.mask
.first
{
848 border-color: rgb
(0,177,95);
851 #loader.green
.circle
.green
.mask
.first
.mover
{
852 background-color: rgb
(222,161,26);
855 #loader.green
.circle
.green
.mask
.second
.mover
{
856 background-color: rgb
(0,177,95);
859 #loader.blue
.circle
.blue
.mask
.first
{
860 border-color: rgb
(60,120,248);
863 #loader.blue
.circle
.blue
.mask
.first
.mover
{
864 background-color: rgb
(0,137,72);
867 #loader.blue
.circle
.blue
.mask
.second
.mover
{
868 background-color: rgb
(60,120,248);
871 #loader.red
.circle
.red
.mask
.first
{
872 border-color: rgb
(250,36,36);
875 #loader.red
.circle
.red
.mask
.first
.mover
{
876 background-color: rgb
(33,89,189);
879 #loader.red
.circle
.red
.mask
.second
.mover
{
880 background-color: rgb
(250,36,36);