cvs commit: LFS/BOOK/stylesheets/xhtml lfs-navigational.xsl

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat May 8 07:02:56 PDT 2004


manuel      04/05/08 08:02:56

  Modified:    BOOK/stylesheets Tag: b5_1 lfs.css
               BOOK/stylesheets/xhtml Tag: b5_1 lfs-navigational.xsl
  Log:
  Changed the output tags for navigational links.
  Contributed by Bruce Dubbs.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +30 -3     LFS/BOOK/stylesheets/lfs.css
  
  Index: lfs.css
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/lfs.css,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- lfs.css	7 May 2004 20:18:36 -0000	1.1.2.1
  +++ lfs.css	8 May 2004 14:02:56 -0000	1.1.2.2
  @@ -14,9 +14,36 @@
     text-align: center;
   }
   
  -div.navheader ul li, div.navfooter ul li {
  -	display: inline;
  -  padding: 4em;
  +.headerlinks {
  +  border-bottom : solid 2px green;
  +  padding-bottom: 0.5em;
  +}
  +
  +.navfooter {
  +  border-top : solid 2px green;
  +  padding-top: 0.5em;
  +  margin-top: 0.5em;
  +}
  +
  +.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; */
  +   width  : 10em;
  +   /* background-color: #bbb; */
  +   margin: 0px auto;
   }
   
   li.preface {
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +46 -52    LFS/BOOK/stylesheets/xhtml/Attic/lfs-navigational.xsl
  
  Index: lfs-navigational.xsl
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/xhtml/Attic/lfs-navigational.xsl,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- lfs-navigational.xsl	7 May 2004 20:18:37 -0000	1.1.2.1
  +++ lfs-navigational.xsl	8 May 2004 14:02:56 -0000	1.1.2.2
  @@ -40,9 +40,9 @@
               </xsl:if>
             </div>
           </xsl:if>
  -        <ul class="headerlinks">
  +        <div class="headerlinks">
             <xsl:if test="count($prev)>0 and $prev != $home">
  -            <li>
  +            <div class='prev'>
                 <a accesskey="p">
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">
  @@ -51,20 +51,10 @@
                   </xsl:attribute>
                   <xsl:text>Prev</xsl:text>
                 </a>
  -            </li>
  +            </div>
             </xsl:if>
  -          <li>
  -            <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 test="count($next)>0">
  -            <li>
  +            <div class='next'>
                 <a accesskey="n">
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">
  @@ -73,11 +63,20 @@
                   </xsl:attribute>
                   <xsl:text>Next</xsl:text>
                 </a>
  -            </li>
  +            </div>
             </xsl:if>
  -        </ul>
  +          <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>
  +        </div>
         </div>
  -      <hr/>
       </xsl:if>
     </xsl:template>
   
  @@ -91,11 +90,9 @@
       <xsl:variable name="row" select="count($prev) > 0 or count($up) > 0
               or count($next) > 0 or generate-id($home) != generate-id(.)"/>
       <xsl:if test="$row">
  -      <hr/>
         <div class="navfooter">
  -        <ul>
             <xsl:if test="count($prev)>0 and $prev != $home">
  -            <li>
  +            <div class='prev'>
                 <a accesskey="p">
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">
  @@ -103,37 +100,13 @@
                     </xsl:call-template>
                   </xsl:attribute>
                   <xsl:text>Prev</xsl:text>
  -              </a>
  +              </a><br/>
                 <xsl:text> </xsl:text>
                 <xsl:apply-templates select="$prev" mode="object.title.markup"/>
  -            </li>
  -          </xsl:if>
  -          <xsl:if test="count($up)>0 and $up != $home">
  -            <li>
  -              <a accesskey="u">
  -                <xsl:attribute name="href">
  -                  <xsl:call-template name="href.target">
  -                    <xsl:with-param name="object" select="$up"/>
  -                  </xsl:call-template>
  -                </xsl:attribute>
  -                <xsl:text>Up</xsl:text>
  -              </a>
  -            </li>
  -          </xsl:if>
  -          <xsl:if  test="$home != .">
  -            <li>
  -              <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>
  +            </div>
             </xsl:if>
             <xsl:if test="count($next)>0">
  -            <li>
  +            <div class='next'>
                 <a accesskey="n">
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">
  @@ -141,16 +114,37 @@
                     </xsl:call-template>
                   </xsl:attribute>
                   <xsl:text>Next</xsl:text>
  -              </a>
  +              </a><br/>
                 <xsl:text> </xsl:text>
                 <xsl:apply-templates select="$next" mode="object.title.markup"/>
  -            </li>
  +            </div>
  +          </xsl:if>
  +          <xsl:if test="count($up)>0 and $up != $home">
  +            <div class='up'>
  +              <a accesskey="u">
  +                <xsl:attribute name="href">
  +                  <xsl:call-template name="href.target">
  +                    <xsl:with-param name="object" select="$up"/>
  +                  </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>
             </xsl:if>
  -        </ul>
         </div>
       </xsl:if>
     </xsl:template>
   
   </xsl:stylesheet>
  -
  -
  
  
  



More information about the lfs-book mailing list