summaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-09-17 23:13:27 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-09-17 23:13:27 +0200
commitde069598570c05a2bb8359700872974e24f9eee6 (patch)
tree337cae270dd5ee5d0de1ce335859d6610c70e719 /src/css.cc
parent3d530af5285a6b6238a683a87d637d22ec0855f3 (diff)
set font and color on <html> tag, so authors can override it
Diffstat (limited to 'src/css.cc')
-rw-r--r--src/css.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.cc b/src/css.cc
index 988d0dc6..2e3b4858 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -558,8 +558,7 @@ void CssContext::addRule (CssSelector *sel, CssPropertyList *props,
*/
void CssContext::buildUserAgentStyle () {
const char *cssBuf =
- "body {background-color: #e0e0a3; font-family: sans-serif; color: black;"
- " margin: 5px}"
+ "body {margin: 5px}"
"big {font-size: 1.17em}"
"blockquote, dd {margin-left: 40px; margin-right: 40px}"
"center {text-align: center}"
@@ -567,6 +566,7 @@ void CssContext::buildUserAgentStyle () {
":link {color: blue; text-decoration: underline; cursor: pointer}"
":visited {color: #800080; text-decoration: underline; cursor: pointer}"
"h1, h2, h3, h4, h5, h6, b, strong {font-weight: bolder}"
+ "html {font-family: sans-serif; color: black}"
"i, em, cite, address, var {font-style: italic}"
":link img, :visited img {border: 1px solid}"
"frameset, ul, ol, dir {margin-left: 40px}"