r1923 - trunk/varnish-doc/share
des at projects.linpro.no
des at projects.linpro.no
Sat Aug 25 21:38:57 CEST 2007
Author: des
Date: 2007-08-25 21:38:57 +0200 (Sat, 25 Aug 2007)
New Revision: 1923
Modified:
trunk/varnish-doc/share/docbook-html.css
trunk/varnish-doc/share/docbook-html.xsl
Log:
Improve the rendering of titles.
Modified: trunk/varnish-doc/share/docbook-html.css
===================================================================
--- trunk/varnish-doc/share/docbook-html.css 2007-08-25 13:57:32 UTC (rev 1922)
+++ trunk/varnish-doc/share/docbook-html.css 2007-08-25 19:38:57 UTC (rev 1923)
@@ -7,40 +7,49 @@
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;
}
Modified: trunk/varnish-doc/share/docbook-html.xsl
===================================================================
--- trunk/varnish-doc/share/docbook-html.xsl 2007-08-25 13:57:32 UTC (rev 1922)
+++ trunk/varnish-doc/share/docbook-html.xsl 2007-08-25 19:38:57 UTC (rev 1923)
@@ -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"/>
@@ -115,7 +115,7 @@
<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>
More information about the varnish-commit
mailing list