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

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

Issue 1054503003: Adjust CSS in DOM Distiller for different color themes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix feedback size Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 pseudo-elements not selectable by *. */ 6 * *::after and *::before used to select pseudo-elements not selectable by *. */
7 7
8 *, 8 *,
9 *::after, 9 *::after,
10 *::before { 10 *::before {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 /* Base typography. */ 74 /* Base typography. */
75 75
76 body, 76 body,
77 html { 77 html {
78 font-size: 14px; 78 font-size: 14px;
79 height: 100%; 79 height: 100%;
80 line-height: 1.4; 80 line-height: 1.4;
81 text-rendering: optimizeLegibility; 81 text-rendering: optimizeLegibility;
82 transition-property: color, background-color;
83 transition-duration: 0.5s;
84 transition-timing-function: ease;
82 overflow-x: hidden; 85 overflow-x: hidden;
83 -webkit-overflow-scrolling: touch; 86 -webkit-overflow-scrolling: touch;
84 } 87 }
85 88
86 /* Classes for light, dark and sepia themes. 89 /* Classes for light, dark and sepia themes.
87 * Must agree with classes returned by useTheme() in dom_distiller_viewer.js 90 * Must agree with classes returned by useTheme() in dom_distiller_viewer.js
88 * and with CSS class constants in viewer.cc */ 91 * and with CSS class constants in viewer.cc */
89 92
90 .light { 93 .light {
91 color: #333; 94 color: #333;
92 background-color: #FFF; 95 background-color: #FFF;
93 } 96 }
94 97
95 .dark { 98 .dark {
96 color: #FFF; 99 color: #DDD;
97 background-color: #000; 100 background-color: #000;
98 } 101 }
99 102
100 .sepia { 103 .sepia {
101 color: #000; 104 color: #000;
102 background-color: rgb(203, 173, 141); 105 background-color: rgb(203, 173, 141);
103 } 106 }
104 107
105 .serif { 108 .serif {
106 font-family: serif; 109 font-family: serif;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } 198 }
196 199
197 .verticalCenterInner { 200 .verticalCenterInner {
198 display: table-cell; 201 display: table-cell;
199 vertical-align: middle; 202 vertical-align: middle;
200 } 203 }
201 204
202 205
203 /* Link colors for light, dark and sepia themes */ 206 /* Link colors for light, dark and sepia themes */
204 207
205 a:link { 208 .light a:link,
209 .sepia a:link {
206 color: #55F; 210 color: #55F;
207 } 211 }
208 212
209 a:visited { 213 .dark a:link {
214 color: #88F;
215 }
216
217 .light a:visited,
218 .sepia a:visited {
210 color: #902290; 219 color: #902290;
211 } 220 }
212 221
222 .dark a:visited {
223 color: #D872D8;
224 }
225
213 blockquote { 226 blockquote {
214 border-left: 4px solid #eee; 227 border-left: 4px solid #eee;
215 padding-left: 1em; 228 padding-left: 1em;
216 } 229 }
217 230
218 cite { 231 cite {
219 color: rgba(0, 0, 0, .54); 232 opacity: .54;
220 font-style: italic; 233 font-style: italic;
221 } 234 }
222 235
223 hr { 236 hr {
224 background-color: #e4dfdf; 237 opacity: .5;
225 border: none; 238 border-style: solid;
226 height: 1px; 239 height: 1px 0 0 0;
227 margin: inherit auto;
228 width: 75%; 240 width: 75%;
229 } 241 }
230 242
231 h1 { 243 h1 {
232 font-size: 1.7rem; 244 font-size: 1.7rem;
233 line-height: 1.296; 245 line-height: 1.296;
234 margin-bottom: 0.444rem; 246 margin-bottom: 0.444rem;
235 } 247 }
236 248
237 q { 249 q {
238 color: #222; 250 opacity: .8;
239 display:block; 251 display:block;
240 font-size: 1.5rem; 252 font-size: 1.5rem; /* why larger ?? */
mdjones 2015/04/21 23:11:04 I don't think this question should remain in here.
wychen 2015/04/22 00:07:45 Done. Made it 1 by removing this line.
241 font-style: italic; 253 font-style: italic;
242 font-weight: 600; 254 font-weight: 600;
243 line-height: 1.444; 255 line-height: 1.444;
244 } 256 }
245 257
246 embed, 258 embed,
247 img, 259 img,
248 object, 260 object,
249 video { 261 video {
250 max-width: 100%; 262 max-width: 100%;
251 } 263 }
252 264
253 /* TODO(sunangel): make images zoomable. */ 265 /* TODO(sunangel): make images zoomable. */
254 266
255 img { 267 img {
256 display: block; 268 display: block;
257 height: auto; 269 height: auto;
258 margin: 0 auto 0.6rem auto; 270 margin: 0 auto 0.6rem auto;
259 } 271 }
260 272
261 /* TODO(nyquist): set these classes directly in the dom distiller. */ 273 /* TODO(nyquist): set these classes directly in the dom distiller. */
262 274
263 embed+[class*='caption'], 275 embed+[class*='caption'],
264 figcaption, 276 figcaption,
265 img+[class*='caption'], 277 img+[class*='caption'],
266 object+[class*='caption'], 278 object+[class*='caption'],
267 video+[class*='caption'] { 279 video+[class*='caption'] {
268 color: rgba(0,0,0,.54); 280 opacity: .54;
269 display: table; 281 display: table;
270 font-style: italic; 282 font-style: italic;
271 margin: 0 auto; 283 margin: 0 auto;
272 } 284 }
273 285
274 ol, 286 ol,
275 ul { 287 ul {
276 margin-left: 1.296rem; 288 margin-left: 1.296rem;
277 } 289 }
278 290
(...skipping 28 matching lines...) Expand all
307 display: none; 319 display: none;
308 } 320 }
309 321
310 /* Footer feedback form. */ 322 /* Footer feedback form. */
311 #contentWrap { 323 #contentWrap {
312 min-height: 100%; 324 min-height: 100%;
313 overflow: auto; 325 overflow: auto;
314 padding-bottom: 120px; 326 padding-bottom: 120px;
315 } 327 }
316 328
329 #feedbackContainer {
330 font-size: 14px;
331 }
332
317 .footerFeedback { 333 .footerFeedback {
318 background-color: #4285F4; 334 background-color: #4285F4;
319 clear: both; 335 clear: both;
320 color: #fff; 336 color: #fff;
321 display: none; 337 display: none;
322 height: 120px; 338 height: 120px;
323 margin-top: -120px; 339 margin-top: -120px;
324 width: 100%; 340 width: 100%;
325 } 341 }
326 342
327 .feedbackContent { 343 .feedbackContent {
328 background-color: #4285F4; 344 background-color: #4285F4;
329 clear: both; 345 clear: both;
330 padding: 14px; 346 padding: 14px;
331 } 347 }
332 348
333 #feedbackQuestion { 349 #feedbackQuestion {
334 font-size: 20px; 350 font-size: 1.4em;
335 font-weight: 700; 351 font-weight: 700;
336 text-align: center; 352 text-align: center;
337 width: 100%; 353 width: 100%;
338 } 354 }
339 355
340 .feedbackButtonWrap { 356 .feedbackButtonWrap {
341 margin-top: 14px; 357 margin-top: 14px;
342 text-align: center; 358 text-align: center;
343 width: 100%; 359 width: 100%;
344 } 360 }
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 border-color: rgb(250,36,36); 810 border-color: rgb(250,36,36);
795 } 811 }
796 812
797 #loader.red .circle.red .mask.first .mover { 813 #loader.red .circle.red .mask.first .mover {
798 background-color: rgb(33,89,189); 814 background-color: rgb(33,89,189);
799 } 815 }
800 816
801 #loader.red .circle.red .mask.second .mover { 817 #loader.red .circle.red .mask.second .mover {
802 background-color: rgb(250,36,36); 818 background-color: rgb(250,36,36);
803 } 819 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698