r18 - trunk/varnish-doc/share

des at projects.linpro.no des at projects.linpro.no
Wed Feb 22 20:11:05 CET 2006


Author: des
Date: 2006-02-22 20:11:05 +0100 (Wed, 22 Feb 2006)
New Revision: 18

Modified:
   trunk/varnish-doc/share/docbook-xml.css
Log:
Improve rendering of section titles


Modified: trunk/varnish-doc/share/docbook-xml.css
===================================================================
--- trunk/varnish-doc/share/docbook-xml.css	2006-02-22 19:10:51 UTC (rev 17)
+++ trunk/varnish-doc/share/docbook-xml.css	2006-02-22 19:11:05 UTC (rev 18)
@@ -15,15 +15,34 @@
 	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 @@
 	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;




More information about the varnish-commit mailing list