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
;
265 margin: 24px 16px 24px 16px;
287 border-left: 4px solid
#888;
318 /* TODO(sunangel): make images zoomable. */
323 margin: 0.6rem auto
0.4rem 0;
326 /* TODO(nyquist): set these classes directly in the dom distiller. */
328 embed
+[class
*='caption'],
330 img
+[class
*='caption'],
331 object
+[class
*='caption'],
332 video
+[class
*='caption'] {
342 margin-left: 1.296rem;
357 white-space: pre-wrap
;
364 /* Footer feedback form. */
381 background-color: #4285F4;
392 background-color: #4285F4;
404 .feedbackButtonWrap {
411 -webkit-user-select: none
;
412 background-color: #FFFFFF;
415 display: inline-block
;
418 margin: 0px 4% 0px 4%;
421 text-transform: uppercase
;
430 /* Feedback fade out */
432 animation-duration: 0.5s;
433 animation-name: fadeOutAndSwipeAnimation
;
436 @keyframes fadeOutAndSwipeAnimation
{
451 /* This is the perecnt height of a standard HD video. */
452 padding-bottom: 56.25%;
465 /* Loading Indicator. */
494 #loader .mask
.first
{
495 transition-delay: 0.22s;
496 transition-duration: 0s;
497 transition-property: border-color
;
500 #loader .circle
.initial
.mask
{
505 #loader .circle
.red
.mask
.first
{
506 border-bottom: 1px solid
#555;
511 #loader .circle
.red
.mask
.second
{
516 #loader .circle
.yellow
.mask
.first
{
517 border-left: 1px solid
#888;
522 #loader .circle
.yellow
.mask
.second
{
527 #loader .circle
.green
.mask
.first
{
528 border-top: 1px solid
#555;
533 #loader .circle
.green
.mask
.second
{
538 #loader .circle
.blue
.mask
.first
{
539 border-right: 1px solid
#888;
544 #loader .circle
.blue
.mask
.second
{
549 #loader .circle
.mask
.base
{
553 transition-property: opacity
;
554 transition-timing-function: linear
;
555 transition-duration: 0s;
556 transition-delay: 0s;
560 #loader .circle
.mask
.mover
{
563 transition-delay: 0s;
564 transition-duration: 0.22s;
565 transition-property: background-color
, left
, top
, right
, bottom
, width
,
567 transition-timing-function: ease-in
;
571 #loader .circle
.mask
.second
.mover
,
572 #loader .circle
.initial
.mask
.mover
{
573 transition-delay: 0.22s;
574 transition-timing-function: ease-out
;
577 #loader .circle
.red
.mask
.first
.base
{
581 #loader .circle
.red
.mask
.second
.base
{
586 #loader .circle
.yellow
.mask
.first
.base
{
591 #loader .circle
.yellow
.mask
.second
.base
{
596 #loader .circle
.green
.mask
.first
.base
{
601 #loader .circle
.green
.mask
.second
.base
{
606 #loader .circle
.blue
.mask
.first
.base
{
611 #loader .circle
.blue
.mask
.second
.base
{
616 #loader .circle
.initial
.mask
.mover
{
621 #loader .circle
.red
.mask
.first
.mover
{
626 #loader .circle
.red
.mask
.second
.mover
{
631 #loader .circle
.yellow
.mask
.first
.mover
{
636 #loader .circle
.yellow
.mask
.second
.mover
{
641 #loader .circle
.green
.mask
.first
.mover
{
646 #loader .circle
.green
.mask
.second
.mover
{
651 #loader .circle
.blue
.mask
.first
.mover
{
656 #loader .circle
.blue
.mask
.second
.mover
{
662 #loader.initial
.circle
.initial
,
663 #loader.initial
.circle
.initial
.mask
{
666 #loader.initial
.circle
.initial
.mask
.mover
{
671 /* Moving from Red to Yellow. */
672 #loader.yellow
.circle
.yellow
,
673 #loader.yellow
.circle
.yellow
.mask
,
674 #loader.yellow
.circle
.yellow
.mask
.base
{
677 #loader.yellow
.circle
.yellow
.mask
.first
.mover
{
681 #loader.yellow
.circle
.yellow
.mask
.second
.mover
{
686 /* Moving from Yellow to Green. */
687 #loader.green
.circle
.green
,
688 #loader.green
.circle
.green
.mask
,
689 #loader.green
.circle
.green
.mask
.base
{
692 #loader.green
.circle
.green
.mask
.first
.mover
{
696 #loader.green
.circle
.green
.mask
.second
.mover
{
702 /* Moving from Green to Blue. */
703 #loader.blue
.circle
.blue
,
704 #loader.blue
.circle
.blue
.mask
,
705 #loader.blue
.circle
.blue
.mask
.base
{
708 #loader.blue
.circle
.blue
.mask
.first
.mover
{
712 #loader.blue
.circle
.blue
.mask
.second
.mover
{
717 /* Moving from Blue to Red. */
718 #loader.red
.circle
.red
,
719 #loader.red
.circle
.red
.mask
,
720 #loader.red
.circle
.red
.mask
.base
{
723 #loader.red
.firstTime
.circle
.red
.mask
.second
.base
{
726 #loader.red
.circle
.red
.mask
.first
.mover
{
730 #loader.red
.circle
.red
.mask
.second
.mover
{
735 #loader .circle
.red
.mask
.first
{
736 border-bottom-color: rgb
(60,120,248);
739 #loader .circle
.yellow
.mask
.first
{
740 border-left-color: rgb
(250,36,36);
743 #loader .circle
.green
.mask
.first
{
744 border-top-color: rgb
(255,211,75);
747 #loader .circle
.blue
.mask
.first
{
748 border-right-color: rgb
(0,177,95);
751 #loader .circle
.red
.mask
.first
.base
{
752 background-color: rgb
(250,36,36);
755 #loader .circle
.red
.mask
.second
.base
{
756 background-color: rgb
(60,120,248);
759 #loader .circle
.yellow
.mask
.first
.base
{
760 background-color: rgb
(255,211,75);
763 #loader .circle
.yellow
.mask
.second
.base
{
764 background-color: rgb
(250,36,36);
767 #loader .circle
.green
.mask
.first
.base
{
768 background-color: rgb
(0,177,95);
771 #loader .circle
.green
.mask
.second
.base
{
772 background-color: rgb
(255,211,75);
775 #loader .circle
.blue
.mask
.first
.base
{
776 background-color: rgb
(60,120,248);
779 #loader .circle
.blue
.mask
.second
.base
{
780 background-color: rgb
(0,177,95);
783 #loader .circle
.initial
.mask
.mover
{
784 background-color: rgb
(33,89,189);
787 #loader .circle
.red
.mask
.first
.mover
{
788 background-color: rgb
(60,120,248);
791 #loader .circle
.red
.mask
.second
.mover
{
792 background-color: rgb
(158,18,18);
795 #loader .circle
.yellow
.mask
.first
.mover
{
796 background-color: rgb
(250,36,36);
799 #loader .circle
.yellow
.mask
.second
.mover
{
800 background-color: rgb
(222,161,26);
803 #loader .circle
.green
.mask
.first
.mover
{
804 background-color: rgb
(255,211,75);
807 #loader .circle
.green
.mask
.second
.mover
{
808 background-color: rgb
(0,137,72);
811 #loader .circle
.blue
.mask
.first
.mover
{
812 background-color: rgb
(0,177,95);
815 #loader .circle
.blue
.mask
.second
.mover
{
816 background-color: rgb
(33,89,189);
819 #loader.initial
.circle
.initial
.mask
.mover
{
820 background-color: rgb
(60,120,248);
823 #loader.yellow
.circle
.yellow
.mask
.first
{
824 border-color: rgb
(255,211,75);
827 #loader.yellow
.circle
.yellow
.mask
.first
.mover
{
828 background-color: rgb
(158,18,18);
831 #loader.yellow
.circle
.yellow
.mask
.second
.mover
{
832 background-color: rgb
(255,211,75);
835 #loader.green
.circle
.green
.mask
.first
{
836 border-color: rgb
(0,177,95);
839 #loader.green
.circle
.green
.mask
.first
.mover
{
840 background-color: rgb
(222,161,26);
843 #loader.green
.circle
.green
.mask
.second
.mover
{
844 background-color: rgb
(0,177,95);
847 #loader.blue
.circle
.blue
.mask
.first
{
848 border-color: rgb
(60,120,248);
851 #loader.blue
.circle
.blue
.mask
.first
.mover
{
852 background-color: rgb
(0,137,72);
855 #loader.blue
.circle
.blue
.mask
.second
.mover
{
856 background-color: rgb
(60,120,248);
859 #loader.red
.circle
.red
.mask
.first
{
860 border-color: rgb
(250,36,36);
863 #loader.red
.circle
.red
.mask
.first
.mover
{
864 background-color: rgb
(33,89,189);
867 #loader.red
.circle
.red
.mask
.second
.mover
{
868 background-color: rgb
(250,36,36);