[PATCH] doc/style: use default font color specified by user

Yuya Nishihara yuya at tcha.org
Tue Nov 10 06:49:56 CST 2009


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1257857290 -32400
# Node ID d28887355d1436580708d3799d1b3329676de0df
# Parent  0d65e191ac4c2a3246fd12543819f3ccdd6a8a73
doc/style: use default font color specified by user

* it's bad to specify only foreground color:
  http://www.w3.org/QA/Tips/color
* some people prefer dark background
* `color: #111' is mostly the same as `color: black',
  which is the default of almost all popular browsers.

so it's preferable to delete `color: #111', rather than adding
`background-color: white'.

diff --git a/doc/style.css b/doc/style.css
--- a/doc/style.css
+++ b/doc/style.css
@@ -12,7 +12,6 @@ body {
     margin: 0;
     padding: 0;
     font-family: sans-serif;
-    color: #111;
 }
 
 .document {
@@ -72,7 +71,7 @@ a:link { color: #00b5f1; }
 a:visited { color: #5c9caf; }
 a:link.toc-backref, a:visited.toc-backref {
     text-decoration: none;
-    color: #111;  /* `inherit' is not supported by IE6 */
+    color: inherit;  /* NOTE: `inherit' is not supported by IE6 */
 }
 
 div.admonition, div.attention, div.caution,


More information about the Mercurial-devel mailing list