]> err.no Git - varnish/commitdiff
Improve the rendering of titles.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 25 Aug 2007 19:38:57 +0000 (19:38 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 25 Aug 2007 19:38:57 +0000 (19:38 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1923 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-doc/share/docbook-html.css
varnish-doc/share/docbook-html.xsl

index 786126ab73de008131d7414a61fb89512aac4356..552a00d12fe6177f906539d12fcc897d91e52c9f 100644 (file)
@@ -7,40 +7,49 @@ body {
        font-family: sans-serif;
 }
 
-h1.book-title {
+.book-title {
+       color: maroon;
        font-size: 200%;
        font-weight: bold;
+       display: block;
 }
 
-h1.article-title {
+.article-title {
+       color: maroon;
        font-size: 200%;
        font-weight: bold;
+       display: block;
 }
 
-span.title1 {
+.title1 {
        color: maroon;
        font-weight: bold;
-       font-size: xx-large;
+       font-size: 200%;
+       display: block;
 }
 
-span.title2 {
+.title2 {
        color: maroon;
        font-weight: bold;
-       font-size: x-large;
+       font-size: 150%;
+       display: block;
 }
 
-span.title3 {
+.title3 {
        color: maroon;
        font-weight: bold;
-       font-size: large;
+       font-size: 120%;
+       display: block;
 }
 
-span.title4 {
+.title4 {
        color: maroon;
        font-weight: bold;
+       display: block;
 }
 
-span.title5 {
+.title5 {
        color: maroon;
        font-weight: bold;
+       display: block;
 }
index b20ae93af392c9b3061168a61b7a888a187eb9d5..b445f5c66cd03992c2d2e087139491d8b6fcbd61 100644 (file)
@@ -11,7 +11,7 @@
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
   <xsl:output
-      method="html" encoding="utf-8" indent="yes"
+      method="xml" encoding="utf-8" indent="yes"
       doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
       doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
 
 
   <xsl:template match="title">
     <xsl:param name="level" select="1"/>
-    <xsl:element name="span">
+    <xsl:element name="{concat('h', $level)}">
       <xsl:attribute name="class">
        <xsl:value-of select="concat('title', $level)"/>
       </xsl:attribute>