From: des Date: Wed, 22 Feb 2006 19:11:05 +0000 (+0000) Subject: Improve rendering of section titles X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3a8aea101b8939a2e707528f04e0d32919e132d;p=varnish Improve rendering of section titles git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@18 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-doc/share/docbook-xml.css b/varnish-doc/share/docbook-xml.css index e6c13de6..8ba842d8 100644 --- a/varnish-doc/share/docbook-xml.css +++ b/varnish-doc/share/docbook-xml.css @@ -15,15 +15,34 @@ title { color: maroon; } -article title, article articleinfo title { +article title, +book title { font-weight: bold; font-size: 200%; } -book title, book bookinfo title { - text-align: center; +/* level 0 */ +chapter, +appendix, +bibliography +{ + counter-increment: sect0; + counter-reset: sect1; +} + +chapter > title:before, +appendix > title:before, +bibliography > title:before +{ + content: counter(sect0) " "; +} + +chapter > title, +appendix > title, +bibliography > title +{ font-weight: bold; - font-size: 200; + font-size: xx-large; } /* level 1 */ @@ -32,48 +51,53 @@ section { counter-reset: sect2; } -section title:before { - content: counter(sect1) " "; +section > title:before { + content: counter(sect0) "." counter(sect1) " "; } -section title { +section > title { font-weight: bold; - font-size: 150%; + font-size: x-large; } /* level 2 */ -section section { +section > section { counter-increment: sect2; counter-reset: sect3; } -section section title:before { - content: counter(sect1) "." counter(sect2) " "; +section > section > title:before { + content: counter(sect0) "." counter(sect1) "." counter(sect2) " "; } -section section title { +section > section > title { font-weight: bold; - font-size: 130%; + font-size: large; } /* level 3 */ -section section section { +section > section > section { counter-increment: sect3; counter-reset: sect4; } -section section section title:before { - content: counter(sect1) "." counter(sect2) "." counter(sect3) " "; +section > section > section > title:before { + content: counter(sect0) "." counter(sect1) "." counter(sect2) "." counter(sect3) " "; } -section section section title { +section > section > section > title { font-weight: bold; - font-size: 130%; + font-size: 100%; } /* * Sections and paragraphs */ +chapter, appendix, bibliography { + display: block; + margin-top: 3em; +} + section { display: block; margin-top: 1em;