Mailing List Archive

r13 - in trunk/varnish-doc: en/varnish-specification share
Author: des
Date: 2006-02-22 17:47:50 +0100 (Wed, 22 Feb 2006)
New Revision: 13

Added:
trunk/varnish-doc/share/docbook-xml.css
Modified:
trunk/varnish-doc/en/varnish-specification/article.xml
Log:
Simple CSS stylesheet for displaying raw DocBook XML documents, without first
processing them with XSLT.

Modified: trunk/varnish-doc/en/varnish-specification/article.xml
===================================================================
--- trunk/varnish-doc/en/varnish-specification/article.xml 2006-02-22 16:18:23 UTC (rev 12)
+++ trunk/varnish-doc/en/varnish-specification/article.xml 2006-02-22 16:47:50 UTC (rev 13)
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/css" href="../../share/docbook-xml.css"?>
<!DOCTYPE article
PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

Added: trunk/varnish-doc/share/docbook-xml.css
===================================================================
--- trunk/varnish-doc/share/docbook-xml.css 2006-02-22 16:18:23 UTC (rev 12)
+++ trunk/varnish-doc/share/docbook-xml.css 2006-02-22 16:47:50 UTC (rev 13)
@@ -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;
+}