[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    r21 - trunk/varnish-doc/share
From:       des () projects ! linpro ! no (des at projects ! linpro ! no)
Date:       2006-02-23 14:29:05
Message-ID: 20060223142905.A00981ED51C () projects ! linpro ! no
[Download RAW message or body]

Author: des
Date: 2006-02-23 15:29:05 +0100 (Thu, 23 Feb 2006)
New Revision: 21

Modified:
   trunk/varnish-doc/share/docbook-xml.css
Log:
Correct handling of section titles: articles can't have chapters, so we need
to treat articles and books differently.

Display ordered and itemized lists correctly.

Show links as blue underlined text (unfortunately, CSS is not sufficiently
powerful to make them clickable, unless we start embedding ECMAScript in it).

Modified: trunk/varnish-doc/share/docbook-xml.css
===================================================================
--- trunk/varnish-doc/share/docbook-xml.css	2006-02-23 14:21:15 UTC (rev 20)
+++ trunk/varnish-doc/share/docbook-xml.css	2006-02-23 14:29:05 UTC (rev 21)
@@ -15,81 +15,108 @@
 	color: maroon;
 }
 
-article title,
-book title {
+article > title,
+article > articleinfo > title,
+book > title,
+book > bookinfo > title
+{
 	font-weight: bold;
 	font-size: 200%;
 }
 
 /* level 0 */
-chapter,
-appendix,
-bibliography
+article > section,
+article > appendix,
+article > bibliography,
+book > chapter,
+book > appendix,
+book > bibliography
 {
 	counter-increment: sect0;
 	counter-reset: sect1;
 }
 
-chapter > title:before,
-appendix > title:before,
-bibliography > title:before
+article > section > title:before,
+article > appendix > title:before,
+article > bibliography > title:before,
+book > chapter > title:before,
+book > appendix > title:before,
+book > bibliography > title:before
 {
-	content: counter(sect0) " ";
+	content: counter(sect0) ". ";
 }
 
-chapter > title,
-appendix > title,
-bibliography > title
+article > section > title,
+article > appendix > title,
+article > bibliography > title,
+book > chapter > title,
+book > appendix > title,
+book > bibliography > title
 {
 	font-weight: bold;
 	font-size: xx-large;
 }
 
 /* level 1 */
-section {
+article > section > section,
+article > appendix > section,
+article > bibliography > bibliodiv,
+book > chapter > section,
+book > appendix > section,
+book > bibliography > bibliodiv
+{
 	counter-increment: sect1;
 	counter-reset: sect2;
 }
 
-section > title:before {
-	content: counter(sect0) "." counter(sect1) " ";
+article > section > section > title:before,
+article > appendix > section > title:before,
+article > bibliography > bibliodiv > title:before,
+book > chapter > section > title:before,
+book > appendix > section > title:before,
+book > bibliography > bibliodiv > title:before
+{
+	content: counter(sect0) "." counter(sect1) ". ";
 }
 
-section > title {
+article > section > section > title,
+article > appendix > section > title,
+article > bibliography > bibliodiv > title,
+book > chapter > section > title,
+book > appendix > section > title,
+book > bibliography > bibliodiv > title
+{
 	font-weight: bold;
 	font-size: x-large;
 }
 
 /* level 2 */
-section > section {
+article > section > section > section,
+article > appendix > section > section,
+book > chapter > section > section,
+book > appendix > section > section
+{
 	counter-increment: sect2;
 	counter-reset: sect3;
 }
 
-section > section > title:before {
-	content: counter(sect0) "." counter(sect1) "." counter(sect2) " ";
+article > section > section > section > title:before,
+article > appendix > section > section > title:before,
+book > chapter > section > section > title:before,
+book > appendix > section > section > title:before
+{
+	content: counter(sect0) "." counter(sect1) "." counter(sect2) ". ";
 }
 
-section > section > title {
+article > section > section > section > title,
+article > appendix > section > section > title,
+book > chapter > section > section > title,
+book > appendix > section > section > title
+{
 	font-weight: bold;
 	font-size: large;
 }
 
-/* level 3 */
-section > section > section {
-	counter-increment: sect3;
-	counter-reset: sect4;
-}
-
-section > section > section > title:before {
-	content: counter(sect0) "." counter(sect1) "." counter(sect2) "." counter(sect3) " ";
-}
-
-section > section > section > title {
-	font-weight: bold;
-	font-size: 100%;
-}
-
 /*
  * Sections and paragraphs
  */
@@ -111,12 +138,34 @@
 /*
  * Lists
  */
-orderedlist {
+orderedlist, itemizedlist {
 	display: block;
 }
 
-orderedlist listitem {
+orderedlist > listitem {
 	display: list-item;
+	list-style-type: roman inside;
+	margin-left: 4em;
+}
+
+itemizedlist > listitem {
+	display: list-item;
 	list-style-type: disc inside;
 	margin-left: 4em;
 }
+
+/*
+ * Links
+ */
+xref:before {
+	content: "[";
+}
+
+xref {
+	color: blue;
+	font-decoration: underline;
+}
+
+xref:after {
+	content: "]";
+}



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic