Author: manuel
Date: 2007-06-14 14:39:49 -0600 (Thu, 14 Jun 2007)
New Revision: 8166
Modified:
branches/new-xsl/lfs-nochunks.xsl
Log:
Cleaned XHTML nochunked output code.
Modified: branches/new-xsl/lfs-nochunks.xsl
===================================================================
--- branches/new-xsl/lfs-nochunks.xsl 2007-06-14 20:07:24 UTC (rev 8165)
+++ branches/new-xsl/lfs-nochunks.xsl 2007-06-14 20:39:49 UTC (rev 8166)
@@ -57,15 +57,11 @@
Hardcoded $admon.textlabel feature -->
<!-- The original template is in {docbook-xsl}/xhtml/admon.xsl -->
<xsl:template name="nongraphical.admonition">
- <div class="{name(.)}">
- <div class ="admonhead">
- <h3 class="admontitle">
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </h3>
- </div>
- <div class="admonbody">
- <xsl:apply-templates/>
- </div>
+ <div class="admon {name(.)}">
+ <h3>
+ <xsl:apply-templates select="." mode="object.title.markup"/>
+ </h3>
+ <xsl:apply-templates/>
</div>
</xsl:template>
@@ -78,18 +74,16 @@
<xsl:choose>
<xsl:when test="string-length(title) = 0"/>
<xsl:otherwise>
- <div class="titlepage">
+ <h3 class="{name(.)}">
<xsl:if test="@id">
<a id="[EMAIL PROTECTED]" name="[EMAIL PROTECTED]"/>
</xsl:if>
- <h3 class="{name(.)}">
- <xsl:if test="not(ancestor::preface) and $section.autolabel != 0">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- </xsl:if>
- <xsl:value-of select="title"/>
- </h3>
- </div>
+ <xsl:if test="not(ancestor::preface) and $section.autolabel != 0">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ <xsl:text>. </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </h3>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
@@ -142,15 +136,11 @@
padding: 0;
}
-div.dedication .titlepage {
- background: #fff;
+div.dedication {
+ padding-left: 1em;
}
-div.dedication p {
- padding-left: 2em;
-}
-
/* Sections */
div.sect1, div.appendix {
padding-left: .3em;
@@ -304,20 +294,33 @@
float: left;
}
-.lfs .item + .indexref {
- margin-left: 18em;
+.indexref {
+ display: block;
}
-.lfs .secitem + .indexref {
- margin-left: 17em;
+.item + .indexref {
+ margin-left: 30em;
}
-.blfs .indexref {
- margin-left: 26em;
+.secitem + .indexref {
+ margin-left: 31em;
}
/* Admonitions */
+div.admon h3 {
+ padding-left: 2.5em;
+ padding-top: 1em;
+}
+
+div.admon p {
+ margin-left: .5em;
+}
+
+div.admon pre {
+ margin: 0.5em 3em;
+}
+
div.note, div.tip {
background-color: #fffff6;
border: 2px solid #dbddec;
@@ -337,15 +340,6 @@
color: #900;
}
-div.admonhead h3 {
- padding-left: 2.5em;
- padding-top: 1em;
-}
-
-div.admonbody {
- margin: .5em;
-}
-
div.important em, div.warning em, div.caution em {
color: #000;
font-weight: bold;
@@ -369,16 +363,16 @@
text-align: left;
}
-div.revhistory {
+.revhistory {
padding-left: 1em;
}
-div.revhistory th {
+.revhistory th {
line-height: 2em;
text-align: left;
}
-div.revhistory td {
+.revhistory td {
padding-right: 1em;
}
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page