Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: components/dom_distiller/core/css/distilledpage.css

Issue 341563002: Theme Preferences for Distilled Pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed names and added tests Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright 2014 The Chromium Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 /* Set the global 'box-sizing' state to 'border-box'. 5 /* Set the global 'box-sizing' state to 'border-box'.
6 * *::after and *::before used to select psuedo-elements not selectable by *. */ 6 * *::after and *::before used to select psuedo-elements not selectable by *. */
7 7
8 *, 8 *,
9 *::after, 9 *::after,
10 *::before { 10 *::before {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 td, 69 td,
70 th { 70 th {
71 padding: 0; 71 padding: 0;
72 } 72 }
73 73
74 /* Base typography. */ 74 /* Base typography. */
75 75
76 body, 76 body,
77 html { 77 html {
78 color: #333;
79 font-family: 'Open Sans', sans-serif; 78 font-family: 'Open Sans', sans-serif;
80 font-size: 14px; 79 font-size: 14px;
81 line-height: 1.4; 80 line-height: 1.4;
82 text-rendering: optimizeLegibility; 81 text-rendering: optimizeLegibility;
83 overflow-x: hidden; 82 overflow-x: hidden;
84 } 83 }
85 84
85 /* Classes for light, dark and sepia themes.
86 * Must agree with classes returned by GetJsTheme(theme) in viewer.cc */
nyquist 2014/07/07 19:12:48 I think you want to refer to the JavaScript here.
smaslo 2014/07/08 19:58:10 Done.
87 .light {
88 color: #333;
89 background-color: #FFF;
90 }
91
92 .dark {
93 color: #FFF;
nyquist 2014/07/07 19:12:48 This is very hard to read for <code><pre> blocks.
smaslo 2014/07/08 19:58:10 Done.
94 background-color: #000;
95 }
96
97 .sepia {
98 color: #000;
99 background-color: rgb(203, 173, 141);
100 }
101
86 /* Define vertical rhythm (baseline grid of 4px). */ 102 /* Define vertical rhythm (baseline grid of 4px). */
87 103
88 blockquote, 104 blockquote,
89 caption, 105 caption,
90 code, 106 code,
91 dd, 107 dd,
92 dl, 108 dl,
93 fieldset, 109 fieldset,
94 figure, 110 figure,
95 form, 111 form,
(...skipping 30 matching lines...) Expand all
126 #content { 142 #content {
127 margin-top: 1.296rem; 143 margin-top: 1.296rem;
128 } 144 }
129 145
130 /* Main margins. */ 146 /* Main margins. */
131 147
132 #mainContent { 148 #mainContent {
133 margin: 1.296rem 1.296rem auto; 149 margin: 1.296rem 1.296rem auto;
134 } 150 }
135 151
136 a { 152 /* Link colors for light, dark and sepia themes */
153
154 .light a:link,
155 .sepia a:link {
137 color: #222; 156 color: #222;
nyquist 2014/07/07 19:12:48 This looks almost indistinguishable from the color
smaslo 2014/07/08 19:58:10 Done.
138 } 157 }
139 158
159 .dark a:link {
160 color: #3838FF;
nyquist 2014/07/07 19:12:48 This color was hard to read for me.
smaslo 2014/07/08 19:58:10 Done.
161 }
162
163 a:visited {
164 color: #551A8B;
nyquist 2014/07/07 19:12:48 This is hard to read on the dark background.
smaslo 2014/07/08 19:58:10 Done.
165 }
166
140 blockquote { 167 blockquote {
141 border-left: 4px solid #eee; 168 border-left: 4px solid #eee;
142 padding-left: 1em; 169 padding-left: 1em;
143 } 170 }
144 171
145 cite { 172 cite {
146 color: rgba(0, 0, 0, .54); 173 color: rgba(0, 0, 0, .54);
147 font-style: italic; 174 font-style: italic;
148 } 175 }
149 176
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 255
229 /* TODO(sunangel): Create loading indicator graphic to replace "Loading...". */ 256 /* TODO(sunangel): Create loading indicator graphic to replace "Loading...". */
230 #loadingIndicator { 257 #loadingIndicator {
231 display: table; 258 display: table;
232 margin: 0 auto; 259 margin: 0 auto;
233 } 260 }
234 261
235 .hidden { 262 .hidden {
236 display: hidden; 263 display: hidden;
237 } 264 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698