changeset 596:57f2e50602d2

use shorthand properties
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 14 Nov 2008 18:04:58 +0100
parents 69892f9e6d6c
children 63c57aa7f872
files src/css.cc
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/css.cc	Fri Nov 14 17:41:03 2008 +0100
+++ b/src/css.cc	Fri Nov 14 18:04:58 2008 +0100
@@ -182,8 +182,7 @@
 void CssContext::buildUserAgentStyle () {
    char *cssBuf =
      "body  {background-color: 0xdcd1ba; font-family: helvetica; color: black;" 
-     "       margin-left: 5px; margin-top: 5px; margin-bottom: 5px; margin-right: 5px;"
-     " }"
+     "       margin: 5px; }"
      "big { font-size: 1.17em }"
      ":link {color: blue; text-decoration: underline; cursor: pointer; } "
      ":visited {color: green; text-decoration: underline; cursor: pointer; } "
@@ -200,7 +199,7 @@
      "sup { vertical-align: super } "
      "s, strike, del { text-decoration: line-through }"
      "table {border-top-style: outset; border-spacing: 1px} "
-     "td {border-top-style: inset; padding-top: 2px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px} "
+     "td {border-top-style: inset; padding: 2px;} "
      "thead, tbody, tfoot { vertical-align: middle }"
      "tt, pre {font-family: courier;} ";