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

Unified 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: Minor change - dependency order 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 side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/core/css/distilledpage.css
diff --git a/components/dom_distiller/core/css/distilledpage.css b/components/dom_distiller/core/css/distilledpage.css
index edd12ff79df32669d46c5bc165bb3ca990ac15a2..c4c42bad067d8450a927e30eb20f1223adfb4053 100644
--- a/components/dom_distiller/core/css/distilledpage.css
+++ b/components/dom_distiller/core/css/distilledpage.css
@@ -75,7 +75,6 @@ th {
body,
html {
- color: #333;
font-family: 'Open Sans', sans-serif;
font-size: 14px;
line-height: 1.4;
@@ -83,6 +82,25 @@ html {
overflow-x: hidden;
}
+/* Classes for light, dark and sepia themes.
+ * Must agree with classes returned by useTheme() in dom_distiller_viewer.js
+ * and with CSS class constants in viewer.cc */
+
+.light {
+ color: #333;
+ background-color: #FFF;
+}
+
+.dark {
+ color: #FFF;
+ background-color: #000;
+}
+
+.sepia {
+ color: #000;
+ background-color: rgb(203, 173, 141);
+}
+
/* Define vertical rhythm (baseline grid of 4px). */
blockquote,
@@ -133,8 +151,14 @@ h6 {
margin: 1.296rem 1.296rem auto;
}
-a {
- color: #222;
+/* Link colors for light, dark and sepia themes */
+
+a:link {
+ color: #55F;
+}
+
+a:visited {
+ color: #902290;
}
blockquote {
@@ -203,13 +227,27 @@ ul {
margin-left: 1.296rem;
}
-code,
-pre {
+.light code,
+.light pre,
+.sepia code,
+.sepia pre {
background-color: #f8f8f8;
border: 1px solid #eee;
border-radius: 2px;
}
+.dark code,
+.dark pre {
+ background-color: #333;
+ border: 1px solid #555;
+ border-radius: 2px;
+}
+
+code {
nyquist 2014/07/18 17:36:59 I don't think we want this block.
+ display: block;
+ padding: .4444rem;
+}
+
pre code {
border: none;
padding: 0;

Powered by Google App Engine
This is Rietveld 408576698