aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-05-08 18:25:15 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-05-08 18:25:15 +0000
commitc755815f298723e44782e237b8dfaecce7688b91 (patch)
treeb589a39b3861058767889c6168e632c8a33fb01e /stylesheets
parent08684615e1247d211701c7f364d13a7185833bf1 (diff)
Changed literallayout to variablelist in thes list of packages and patches.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3532 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets')
-rw-r--r--stylesheets/lfs.css9
-rw-r--r--stylesheets/xhtml/lfs-mixed.xsl33
2 files changed, 29 insertions, 13 deletions
diff --git a/stylesheets/lfs.css b/stylesheets/lfs.css
index c7cc75d32..e7a27ef11 100644
--- a/stylesheets/lfs.css
+++ b/stylesheets/lfs.css
@@ -126,3 +126,12 @@ div.admonbody {
width: 12.5em;
float: left;
}
+
+.materials dd {
+ margin-bottom: 1em;
+ margin-left: 0px auto;
+}
+
+.materials dd p {
+ margin-top: 0px auto;
+}
diff --git a/stylesheets/xhtml/lfs-mixed.xsl b/stylesheets/xhtml/lfs-mixed.xsl
index 08dc2262f..16942be9f 100644
--- a/stylesheets/xhtml/lfs-mixed.xsl
+++ b/stylesheets/xhtml/lfs-mixed.xsl
@@ -6,6 +6,7 @@
xmlns="http://www.w3.org/1999/xhtml"
version="1.0">
+ <!-- screen -->
<xsl:template match="screen">
<xsl:choose>
<!-- Temporally hack -->
@@ -16,18 +17,6 @@
</kbd>
</pre>
</xsl:when>
- <!-- This should be fixed in the XML code -->
- <!--
- <xsl:when test="contains(text() , 'SBU')">
- <p class="sbu">
- <tt>
- <xsl:value-of select="substring-before(text() , 'R')"/>
- <br/>
- <xsl:value-of select="substring-after(text() , 'U')"/>
- </tt>
- </p>
- </xsl:when>
- -->
<xsl:otherwise>
<pre class="{name(.)}">
<xsl:apply-templates/>
@@ -35,5 +24,23 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
-
+
+ <!-- variablelist -->
+<xsl:template match="variablelist">
+ <div class="{name(.)}">
+ <xsl:if test="title">
+ <h3>
+ <xsl:value-of select="title"/>
+ </h3>
+ </xsl:if>
+ <dl>
+ <xsl:if test="@role">
+ <xsl:attribute name="class">
+ <xsl:value-of select="@role"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates select="varlistentry"/>
+ </dl>
+ </div>
+</xsl:template>
</xsl:stylesheet>