diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-08 21:35:55 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-08 21:35:55 +0000 |
commit | 4238149d57965726ba357a52f7953727d2cb01bb (patch) | |
tree | bfdfdeac47d92a4bb6f3dd2d69421ab6129dc484 /stylesheets | |
parent | 85c6cf4d374789e43725dd885d2d84d64000e854 (diff) |
Navigational links: back again to use <ul>
and made a proper css code.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3538 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets')
-rw-r--r-- | stylesheets/lfs.css | 9 | ||||
-rw-r--r-- | stylesheets/xhtml/lfs-legalnotice.xsl | 5 | ||||
-rw-r--r-- | stylesheets/xhtml/lfs-navigational.xsl | 76 |
3 files changed, 47 insertions, 43 deletions
diff --git a/stylesheets/lfs.css b/stylesheets/lfs.css index e7a27ef11..ad39f4cc4 100644 --- a/stylesheets/lfs.css +++ b/stylesheets/lfs.css @@ -5,7 +5,7 @@ body { text-align: left; } -.toc ul, .index ul { +.toc ul, .index ul,.navheader ul, .navfooter ul { list-style: none; } @@ -28,21 +28,16 @@ body { .prev { float : left; text-align: left; - /* border : solid 1px #ddd; */ - padding-left: 2em; } .next { float : right; text-align: right; - /* border : solid 1px #0dd; */ padding-right: 2em; } -.up { - /* border : solid 1px #ff0; */ +.up, .home { width : 10em; - /* background-color: #bbb; */ margin: 0px auto; } diff --git a/stylesheets/xhtml/lfs-legalnotice.xsl b/stylesheets/xhtml/lfs-legalnotice.xsl index d96649046..465c34542 100644 --- a/stylesheets/xhtml/lfs-legalnotice.xsl +++ b/stylesheets/xhtml/lfs-legalnotice.xsl @@ -1,5 +1,7 @@ <?xml version='1.0' encoding='ISO-8859-1'?> +<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> --> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> @@ -26,10 +28,9 @@ <div class="{local-name(.)}"> <xsl:apply-templates mode="titlepage.mode"/> </div> - <hr/> <div class="navfooter"> <ul class="footerlinks"> - <li> + <li class="home"> <a accesskey="h"> <xsl:attribute name="href"> <xsl:text>../index.html</xsl:text> diff --git a/stylesheets/xhtml/lfs-navigational.xsl b/stylesheets/xhtml/lfs-navigational.xsl index 0aca11cab..b91d27f47 100644 --- a/stylesheets/xhtml/lfs-navigational.xsl +++ b/stylesheets/xhtml/lfs-navigational.xsl @@ -1,5 +1,7 @@ <?xml version='1.0' encoding='ISO-8859-1'?> +<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> --> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> @@ -38,9 +40,9 @@ </xsl:if> </div> </xsl:if> - <div class="headerlinks"> + <ul class="headerlinks"> <xsl:if test="count($prev)>0 and $prev != $home"> - <div class='prev'> + <li class="prev"> <a accesskey="p"> <xsl:attribute name="href"> <xsl:call-template name="href.target"> @@ -49,10 +51,10 @@ </xsl:attribute> <xsl:text>Prev</xsl:text> </a> - </div> + </li> </xsl:if> <xsl:if test="count($next)>0"> - <div class='next'> + <li class="next"> <a accesskey="n"> <xsl:attribute name="href"> <xsl:call-template name="href.target"> @@ -61,9 +63,8 @@ </xsl:attribute> <xsl:text>Next</xsl:text> </a> - </div> - </xsl:if> - <div class='home'> + </li> + <li class="home"> <a accesskey="h"> <xsl:attribute name="href"> <xsl:call-template name="href.target"> @@ -72,8 +73,9 @@ </xsl:attribute> <xsl:text>Home</xsl:text> </a> - </div> - </div> + </li> + </xsl:if> + </ul> </div> </xsl:if> </xsl:template> @@ -89,8 +91,9 @@ or count($next) > 0 or generate-id($home) != generate-id(.)"/> <xsl:if test="$row"> <div class="navfooter"> + <ul> <xsl:if test="count($prev)>0 and $prev != $home"> - <div class='prev'> + <li class="prev"> <a accesskey="p"> <xsl:attribute name="href"> <xsl:call-template name="href.target"> @@ -98,13 +101,14 @@ </xsl:call-template> </xsl:attribute> <xsl:text>Prev</xsl:text> - </a><br/> - <xsl:text> </xsl:text> - <xsl:apply-templates select="$prev" mode="object.title.markup"/> - </div> + </a> + <p> + <xsl:apply-templates select="$prev" mode="object.title.markup"/> + </p> + </li> </xsl:if> <xsl:if test="count($next)>0"> - <div class='next'> + <li class="next"> <a accesskey="n"> <xsl:attribute name="href"> <xsl:call-template name="href.target"> @@ -112,13 +116,14 @@ </xsl:call-template> </xsl:attribute> <xsl:text>Next</xsl:text> - </a><br/> - <xsl:text> </xsl:text> - <xsl:apply-templates select="$next" mode="object.title.markup"/> - </div> + </a> + <p> + <xsl:apply-templates select="$next" mode="object.title.markup"/> + </p> + </li> </xsl:if> <xsl:if test="count($up)>0 and $up != $home"> - <div class='up'> + <li class="up"> <a accesskey="u"> <xsl:attribute name="href"> <xsl:call-template name="href.target"> @@ -126,23 +131,26 @@ </xsl:call-template> </xsl:attribute> <xsl:text>Up</xsl:text> - </a> - <xsl:if test="$home != ."> - <div class='home'> - <a accesskey="h"> - <xsl:attribute name="href"> - <xsl:call-template name="href.target"> - <xsl:with-param name="object" select="$home"/> - </xsl:call-template> - </xsl:attribute> - <xsl:text>Home</xsl:text> - </a> - </div> - </xsl:if> - </div> + </a> + </li> </xsl:if> + <xsl:if test="$home != ."> + <li class="home"> + <a accesskey="h"> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$home"/> + </xsl:call-template> + </xsl:attribute> + <xsl:text>Home</xsl:text> + </a> + </li> + </xsl:if> + </ul> </div> </xsl:if> </xsl:template> </xsl:stylesheet> + + |