diff options
author | yfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-21 22:16:27 +0000 |
---|---|---|
committer | yfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-21 22:16:27 +0000 |
commit | 2c9ba710edbc2cc3cd771524ef072a52fdb0d82b (patch) | |
tree | 590835bca7ce93cee374cbb8c0856ec59bdf6149 | |
parent | 6f49a0c37cb312e06a8bb8aa81b88cef905d7edd (diff) | |
download | chromium_src-2c9ba710edbc2cc3cd771524ef072a52fdb0d82b.zip chromium_src-2c9ba710edbc2cc3cd771524ef072a52fdb0d82b.tar.gz chromium_src-2c9ba710edbc2cc3cd771524ef072a52fdb0d82b.tar.bz2 |
Create a new stylesheet for dom-distiller.
Set a global max-width for images to prevent horizontal scrolling.
BUG=319881
NOTRY=true
Review URL: https://codereview.chromium.org/208713003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258688 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | components/dom_distiller/core/css/distilledpage.css | 16 | ||||
-rw-r--r-- | components/resources/dom_distiller_resources.grdp | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/components/dom_distiller/core/css/distilledpage.css b/components/dom_distiller/core/css/distilledpage.css new file mode 100644 index 0000000..a71a814 --- /dev/null +++ b/components/dom_distiller/core/css/distilledpage.css @@ -0,0 +1,16 @@ +/* Copyright 2014 The Chromium Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ +@charset "utf-8"; +/* Document */ +body{font-family:'Open Sans',sans-serif;font-size:18px;line-height:1.4;} +/* Don't let images bleed out of viewport. */ +img{max-width:100%;} +/* Margin */ +.margin-x-narrow{width:95%;} +.margin-narrow{width:85%;} +.margin-medium{width:75%;} +.margin-wide{width:55%;} +.margin-x-wide{width:35%;} +/* Override html styling attributes */ +table,tr,td{background-color:transparent!important;} diff --git a/components/resources/dom_distiller_resources.grdp b/components/resources/dom_distiller_resources.grdp index 1ef1ac5..edb3489 100644 --- a/components/resources/dom_distiller_resources.grdp +++ b/components/resources/dom_distiller_resources.grdp @@ -5,5 +5,5 @@ <include name="IDR_ABOUT_DOM_DISTILLER_JS" file="../dom_distiller/webui/resources/about_dom_distiller.js" type="BINDATA" /> <include name="IDR_DOM_DISTILLER_VIEWER_HTML" file="../dom_distiller/content/resources/dom_distiller_viewer.html" type="BINDATA" /> <include name="IDR_DISTILLER_JS" file="../dom_distiller/core/javascript/domdistiller.js" flattenhtml="true" type="BINDATA" /> - <include name="IDR_DISTILLER_CSS" file="../../third_party/readability/css/readability.css" type="BINDATA" /> + <include name="IDR_DISTILLER_CSS" file="../dom_distiller/core/css/distilledpage.css" type="BINDATA" /> </grit-part> |