]> err.no Git - varnish/commitdiff
Simple CSS stylesheet for displaying raw DocBook XML documents, without first
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 22 Feb 2006 16:47:50 +0000 (16:47 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 22 Feb 2006 16:47:50 +0000 (16:47 +0000)
processing them with XSLT.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@13 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-doc/en/varnish-specification/article.xml
varnish-doc/share/docbook-xml.css [new file with mode: 0644]

index 6e39f74e8e337dfc316daaea3a6e3db018eab01f..e69b16ef0e350d58e48ece935ac813f4dfd8551c 100644 (file)
@@ -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">
diff --git a/varnish-doc/share/docbook-xml.css b/varnish-doc/share/docbook-xml.css
new file mode 100644 (file)
index 0000000..e6c13de
--- /dev/null
@@ -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;
+}