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

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

Issue 1934123003: Make images center aligned after distillation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 object, 356 object,
357 video { 357 video {
358 max-width: 100%; 358 max-width: 100%;
359 } 359 }
360 360
361 /* TODO(sunangel): make images zoomable. */ 361 /* TODO(sunangel): make images zoomable. */
362 362
363 img { 363 img {
364 display: block; 364 display: block;
365 height: auto; 365 height: auto;
366 margin: 0.6rem auto 0.4rem 0; 366 margin: 0.6rem auto 0.4rem auto;
367 } 367 }
368 368
369 /* TODO(nyquist): set these classes directly in the dom distiller. */ 369 /* TODO(nyquist): set these classes directly in the dom distiller. */
370 370
371 embed+[class*='caption'], 371 embed+[class*='caption'],
372 figcaption, 372 figcaption,
373 img+[class*='caption'], 373 img+[class*='caption'],
374 object+[class*='caption'], 374 object+[class*='caption'],
375 video+[class*='caption'] { 375 video+[class*='caption'] {
376 opacity: .8; 376 opacity: .8;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 } 493 }
494 494
495 .youtubeIframe { 495 .youtubeIframe {
496 height: 100%; 496 height: 100%;
497 left: 0px; 497 left: 0px;
498 position: absolute; 498 position: absolute;
499 top: 0px; 499 top: 0px;
500 width: 100%; 500 width: 100%;
501 } 501 }
502 502
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