From 05351f925f5d74e952148fccab05b7a20557cee5 Mon Sep 17 00:00:00 2001 From: des Date: Wed, 22 Feb 2006 16:47:50 +0000 Subject: [PATCH] Simple CSS stylesheet for displaying raw DocBook XML documents, without first processing them with XSLT. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@13 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../en/varnish-specification/article.xml | 1 + varnish-doc/share/docbook-xml.css | 98 +++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 varnish-doc/share/docbook-xml.css diff --git a/varnish-doc/en/varnish-specification/article.xml b/varnish-doc/en/varnish-specification/article.xml index 6e39f74e..e69b16ef 100644 --- a/varnish-doc/en/varnish-specification/article.xml +++ b/varnish-doc/en/varnish-specification/article.xml @@ -1,4 +1,5 @@ + diff --git a/varnish-doc/share/docbook-xml.css b/varnish-doc/share/docbook-xml.css new file mode 100644 index 00000000..e6c13de6 --- /dev/null +++ b/varnish-doc/share/docbook-xml.css @@ -0,0 +1,98 @@ +/* $Id$ */ + +article, book { + background-color: white; + color: black; + font-family: sans-serif; + margin: 1in; +} + +/* + * Titles + */ +title { + display: block; + color: maroon; +} + +article title, article articleinfo title { + font-weight: bold; + font-size: 200%; +} + +book title, book bookinfo title { + text-align: center; + font-weight: bold; + font-size: 200; +} + +/* level 1 */ +section { + counter-increment: sect1; + counter-reset: sect2; +} + +section title:before { + content: counter(sect1) " "; +} + +section title { + font-weight: bold; + font-size: 150%; +} + +/* level 2 */ +section section { + counter-increment: sect2; + counter-reset: sect3; +} + +section section title:before { + content: counter(sect1) "." counter(sect2) " "; +} + +section section title { + font-weight: bold; + font-size: 130%; +} + +/* level 3 */ +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 { + font-weight: bold; + font-size: 130%; +} + +/* + * Sections and paragraphs + */ +section { + display: block; + margin-top: 1em; +} + +para { + display: block; + margin-top: 1ex; +} + +/* + * Lists + */ +orderedlist { + display: block; +} + +orderedlist listitem { + display: list-item; + list-style-type: disc inside; + margin-left: 4em; +} -- 2.39.5