mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-09 22:04:35 +01:00
HEAD: StyleSheets - changed the navigational links to make it simetrical and added popup titles.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3665 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
a9e89d0c26
commit
8df9f63853
@ -33,7 +33,14 @@
|
||||
<xsl:attribute name="href">
|
||||
<xsl:text>../index.html</xsl:text>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Home</xsl:text>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="/book/bookinfo/title"/>
|
||||
<xsl:text> - </xsl:text>
|
||||
<xsl:value-of select="/book/bookinfo/subtitle"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="navig.content">
|
||||
<xsl:with-param name="direction" select="'home'"/>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -26,15 +26,15 @@
|
||||
<div class="navheader">
|
||||
<xsl:if test="$home != .">
|
||||
<div class="headertitles">
|
||||
<p>
|
||||
<h4>
|
||||
<xsl:apply-templates select="$home" mode="object.title.markup"/>
|
||||
<xsl:text> - </xsl:text>
|
||||
<xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
|
||||
</p>
|
||||
</h4>
|
||||
<xsl:if test="$up != $home">
|
||||
<p><b>
|
||||
<h3>
|
||||
<xsl:apply-templates select="$up" mode="object.title.markup"/>
|
||||
</b></p>
|
||||
</h3>
|
||||
</xsl:if>
|
||||
</div>
|
||||
</xsl:if>
|
||||
@ -47,7 +47,12 @@
|
||||
<xsl:with-param name="object" select="$prev"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Prev</xsl:text>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="$prev/title"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="navig.content">
|
||||
<xsl:with-param name="direction" select="'prev'"/>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:if>
|
||||
@ -59,7 +64,12 @@
|
||||
<xsl:with-param name="object" select="$next"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Next</xsl:text>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="$next/title"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="navig.content">
|
||||
<xsl:with-param name="direction" select="'next'"/>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:if>
|
||||
@ -71,7 +81,12 @@
|
||||
<xsl:with-param name="object" select="$up"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Up</xsl:text>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:apply-templates select="$up" mode="object.title.markup"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="navig.content">
|
||||
<xsl:with-param name="direction" select="'up'"/>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:if>
|
||||
@ -82,7 +97,14 @@
|
||||
<xsl:with-param name="object" select="$home"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Home</xsl:text>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="$home/bookinfo/title"/>
|
||||
<xsl:text> - </xsl:text>
|
||||
<xsl:value-of select="$home/bookinfo/subtitle"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="navig.content">
|
||||
<xsl:with-param name="direction" select="'home'"/>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@ -110,11 +132,13 @@
|
||||
<xsl:with-param name="object" select="$prev"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Prev</xsl:text>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="$prev/title"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="navig.content">
|
||||
<xsl:with-param name="direction" select="'prev'"/>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<p>
|
||||
<xsl:apply-templates select="$prev" mode="object.title.markup"/>
|
||||
</p>
|
||||
</li>
|
||||
</xsl:if>
|
||||
<xsl:if test="count($next)>0">
|
||||
@ -125,11 +149,13 @@
|
||||
<xsl:with-param name="object" select="$next"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Next</xsl:text>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="$next/title"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="navig.content">
|
||||
<xsl:with-param name="direction" select="'next'"/>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<p>
|
||||
<xsl:apply-templates select="$next" mode="object.title.markup"/>
|
||||
</p>
|
||||
</li>
|
||||
</xsl:if>
|
||||
<xsl:if test="count($up)>0 and $up != $home">
|
||||
@ -140,7 +166,12 @@
|
||||
<xsl:with-param name="object" select="$up"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Up</xsl:text>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:apply-templates select="$up" mode="object.title.markup"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="navig.content">
|
||||
<xsl:with-param name="direction" select="'up'"/>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:if>
|
||||
@ -152,7 +183,14 @@
|
||||
<xsl:with-param name="object" select="$home"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Home</xsl:text>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="$home/bookinfo/title"/>
|
||||
<xsl:text> - </xsl:text>
|
||||
<xsl:value-of select="$home/bookinfo/subtitle"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="navig.content">
|
||||
<xsl:with-param name="direction" select="'home'"/>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:if>
|
||||
|
Loading…
Reference in New Issue
Block a user