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

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sun May 23 13:00:48 PDT 2004


manuel      04/05/23 14:00:47

  Modified:    BOOK/stylesheets Tag: b6_0 lfs.css
               BOOK/stylesheets/xhtml Tag: b6_0 lfs-navigational.xsl
  Log:
  Several changes in the CSS code and navigational stuff.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.4   +201 -74   LFS/BOOK/stylesheets/lfs.css
  
  Index: lfs.css
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/lfs.css,v
  retrieving revision 1.1.4.3
  retrieving revision 1.1.4.4
  diff -u -r1.1.4.3 -r1.1.4.4
  --- lfs.css	8 May 2004 21:36:42 -0000	1.1.4.3
  +++ lfs.css	23 May 2004 20:00:47 -0000	1.1.4.4
  @@ -1,132 +1,259 @@
  +/* Global settings */
   body {
  -  font-weight: normal;
  -  font-size: medium;
  -  font-family: verdana, tahoma, helvetica, arial, sans-serif;
  +  font-family: sans-serif;
     text-align: left;
  +  background: #fff;
  +  margin: 1em;
  +  padding: 0;
  +  font-size: 1em;
  +  line-height: 1.2em
   }
   
  -.toc ul, .index ul,.navheader ul, .navfooter ul {
  -	list-style: none;
  +a:link { color: #22b; }
  +a:visited { color: #7e4988; }
  +a:hover, a:focus { color: #d30e08; }
  +a:active { color: #6b77b1;}
  +
  +/* Headers */
  +h1, h2, b, strong {
  +  color: #000;
  +  font-weight: bold;
   }
   
  -.navheader, .navfooter {
  -  font-size: smaller;
  -  text-align: center;
  +h3, h4, h5, h6 {
   }
   
  -.headerlinks {
  -  border-bottom : solid 2px green;
  -  padding-bottom: 0.5em;
  +h1 { font-size: 173%; text-align: center; }
  +h2 { font-size: 144%; padding-top: 0.2em; margin-top: 0.3em; }
  +h2.subtitle { text-align: center; }
  +h3 { font-size: 120%; }
  +h4 { font-size: 110%;}
  +h5, h6 { font-size: 110%; font-style: italic; }
  +
  +/* Navigation */
  +div.headertitles h4 {
  +  margin-bottom: 2px;
   }
   
  -.navfooter {
  -  border-top : solid 2px green;
  -  padding-top: 0.5em;
  -  margin-top: 0.5em;
  +div.headertitles h3 {
  +  margin-top: 2px;
   }
   
  -.prev {
  -   float     : left;
  -   text-align: left;
  +div.navheader, div.navfooter {
  +  background: #ecedef;
  +  text-align: center;
  +  padding: 0.1em 1em;
  +  border-bottom: 1px solid #dbddec;
   }
   
  -.next {
  -   float     : right;
  -   text-align: right;
  -   padding-right: 2em;
  +div.navfooter {
  +  border-bottom: 0;
  +  border-top: 1px solid #dbddec;
   }
   
  -.up, .home {
  -   width  : 10em;
  -   margin: 0px auto;
  +div.navheader ul, div.navfooter ul {
  +  padding: .2em;
  +  text-align: center;
  +  position: relative;
  +  background: #dbddec;
   }
   
  -li.preface {
  -	margin-left: 2.5em;
  +div.navheader ul li, div.navfooter ul li {
  +  display: inline;
   }
   
  -div.book div.titlepage h1.title {
  -    font-weight: bold;
  -    font-size: xx-large;
  -    text-align: center;
  +div.navheader ul li.prev a, div.navfooter ul li.prev a {
  +  position: absolute;
  +  left: 0;
  +  text-align: left;
  +  padding: 0 .5em;
   }
   
  -div.book div.titlepage h2.subtitle {
  -    font-weight: bold;
  -    font-size: x-large;
  -    text-align: center;
  +div.navheader ul li.prev p, div.navfooter ul li.prev p {
  +  position: absolute;
  +  left: 0;
  +  text-align: left;
  +  padding: 0 .5em;
   }
   
  -div.book div.titlepage h3.author {
  -    font-size: large;
  +div.navheader ul li.next a, div.navfooter ul li.next a {
  +  position: absolute;
  +  right: 0;
  +  text-align: right;
  +  padding: 0 .5em;
   }
   
  -div.book div.dedication div.titlepage h2.title {
  -    font-weight: normal;
  -    font-size: x-large;
  +div.navheader ul li.next p, div.navfooter ul li.next p {
  +  position: absolute;
  +  right: 0;
  +  text-align: right;
  +  padding: 0 .2em;
   }
   
  -div.chapter div.titlepage h2.title {
  -    font-weight: bold;
  -    font-size: x-large;
  -    text-align: left;
  +div.navheader ul li.home, div.navheader ul li.up,
  +div.navfooter ul li.home, div.navfooter ul li.up {
  +  padding: 0;
  +  margin: 0;
  +  display: block;
  +  color: #dbddec;
   }
   
  -div.sect1 div.titlepage h2.title {
  -    font-weight: bold;
  -    font-size: x-large;
  -    text-align: left;
  +/* TOC & Index*/
  +
  +div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
  +  list-style: none;
   }
   
  -tt {
  -    font-family: courier, monospace;
  +div.toc, div.dedication {
  +  padding-left: 1em;
   }
   
  -pre.screen {
  -    color: black;
  -    background-color: #dddddd;
  +li.preface {
  +  margin-left: 1em;
  +}
  +
  +div.toc ul li h3, div.toc ul li h4 {
  +  margin: .4em;
   }
   
  -pre.synopsis {
  -    color: black;
  -    background-color: #dddddd;
  +.item {
  +    width: 15em;
  +    float: left;
  +}
  +
  +.secitem {
  +    font-weight: normal;
  +    width: 14em;
  +    float: left;
   }
   
  +/* Admonitions */
   div.admonition {
  -  border: medium solid;
  +  background-color: #fffff6;
  +  border: medium solid #600;
     width: 90%;
     margin: .5em auto;
   }
   
  +div.admonhead img {
  +  padding: .3em;
  +}
  +
   div.admonhead h3 {
  -	display: inline;
  -	margin-left: 1.5em;
  +  display: inline;
  +  margin-left: 1.5em;
   }
   
   div.admonbody {
  -	margin: .5em;
  +  margin: .5em;
   }
   
  -.command {
  -    font-family: courier, monospace;
  +/* Monospaced elements */
  +tt, code, kbd, pre, .command {
  +  font-family: monospace;
  +  font-size: 1em;
   }
   
  -.item {
  -    width: 15em;
  -    float: left;
  +pre.screen {
  +  background-color: #e5e5e5;
  +  padding: .2em 2em;
  +  margin: 0;
  +  font-weight: bold;
   }
   
  -.secitem {
  -    font-weight: normal;
  -    width: 12.5em;
  -    float: left;
  +/* variablelist & segmentedlist */
  +div.variablelist dd {
  +  margin-bottom: 1em;
  +}
  +
  +div.variablelist dd p {
  +  margin-top: 0px;
  +}
  +
  +div.segmentedlist {
  +  margin-top: 1em;
  +}
  +
  +div.segmentedlist p {
  +  margin: 0px auto;
  +}
  +
  +dl.materials dd {
  +  margin-left: 0px;
  +}
  +
  +/* Indented blocks */
  +p, ul, dl, code, blockquote {
  +  padding-left: 1em;
   }
   
  -.materials dd {
  -	margin-bottom: 1em;
  -  margin-left: 0px auto;
  +/* Sections */
  +div.wrap h1 {
  +  background: #f5f6f7;
  +  padding: 0.5em 0 0.3em 0;
  +  border-bottom: 0.1em solid #dbddec;
  +  margin: 0;
  +}
  +
  +div.package {
  +  border-bottom: 0.2em solid #dbddec;
  +  padding: 0 0.5em 0.3em 0.5em;
  +  margin: 0;
  +}
  +
  +div.installation {
  +  padding: 0 0.5em 0.3em 0.5em;
  +  margin: 0.5em 0 0.5em 0;
  +}
  +
  +div.configuration {
  +  border-top: 0.2em solid #dbddec;
  +  padding: 0.5em 0.5em 0.5em 0.5em;
  +  margin: 0.5em 0 .5em 0;
  +}
  +
  +div.content {
  +  border-top: 0.2em solid #dbddec;
  +  padding: 0.5em 0.5em 0.5em 0.5em;
  +  margin: 0.5em 0 .5em 0;
  +}
  +
  +div.installation h2, div.content h2 {
  +  padding-top: 0.3em;
  +  margin: 0;
  +}
  +
  +div.book, div.preface, div.part, div.chapter, div.sect1, div.index {
  +  padding-bottom: 0.5em;
   }
   
  -.materials dd p {
  -	margin-top: 0px auto;
  +div.preface h1, div.part h1, div.chapter h1, div.sect1 h1, div.index h1 {
  +  background: #f5f6f7;
  +  border-bottom: .1em solid #dbddec;
  +  margin: 0px auto;
  +  padding: .5em;
  +}
  +
  +div.book h1 {
  +  background: #f5f6f7;
  +  margin: 0px auto;
  +  padding: 0.5em;
  +}
  +
  +div.book h2.subtitle {
  +  background: #dbddec;
  +  margin: 0px auto;
  +  padding: 0.2em;
  +}
  +div.authorgroup, div p.copyright, div.abstract {
  +  background: #f5f6f7;
  +  margin: 0px auto;
  +  padding:  0 0.5em;
  +}
  +
  +hr {
  +  background: #dbddec;
  +  height: .3em;
  +  border: 0px;
  +  margin: 0px auto;
   }
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.6   +62 -47    LFS/BOOK/stylesheets/xhtml/lfs-navigational.xsl
  
  Index: lfs-navigational.xsl
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/xhtml/lfs-navigational.xsl,v
  retrieving revision 1.1.4.5
  retrieving revision 1.1.4.6
  diff -u -r1.1.4.5 -r1.1.4.6
  --- lfs-navigational.xsl	19 May 2004 21:49:35 -0000	1.1.4.5
  +++ lfs-navigational.xsl	23 May 2004 20:00:47 -0000	1.1.4.6
  @@ -54,6 +54,9 @@
                     <xsl:with-param name="direction" select="'prev'"/>
                   </xsl:call-template>
                 </a>
  +              <p>
  +                <xsl:value-of select="$prev/title"/>
  +              </p>
               </li>
             </xsl:if>
             <xsl:if test="count($next)>0">
  @@ -71,25 +74,29 @@
                     <xsl:with-param name="direction" select="'next'"/>
                   </xsl:call-template>
                 </a>
  +              <p>
  +                <xsl:value-of select="$next/title"/>
  +              </p>
               </li>
             </xsl:if>
  -          <xsl:if test="count($up)>0 and $up != $home">
               <li 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: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>
  +              <xsl:if test="count($up)>0 and $up != $home">
  +                <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: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>
  +              </xsl:if>
  +              <xsl:text>.</xsl:text>
               </li>
  -          </xsl:if>
             <li class="home">
               <a accesskey="h">
                 <xsl:attribute name="href">
  @@ -139,6 +146,9 @@
                     <xsl:with-param name="direction" select="'prev'"/>
                   </xsl:call-template>
                 </a>
  +              <p>
  +                <xsl:value-of select="$prev/title"/>
  +              </p>
               </li>
             </xsl:if>
             <xsl:if test="count($next)>0">
  @@ -156,44 +166,49 @@
                     <xsl:with-param name="direction" select="'next'"/>
                   </xsl:call-template>
                 </a>
  +              <p>
  +                <xsl:value-of select="$next/title"/>
  +              </p>
               </li>
             </xsl:if>
  -          <xsl:if test="count($up)>0 and $up != $home">
               <li 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: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>
  +              <xsl:if test="count($up)>0 and $up != $home">
  +                <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: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>
  +              </xsl:if>
  +              <xsl:text>.</xsl:text>
               </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: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>
  +              <xsl:if  test="$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: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>
  +              </xsl:if>
  +              <xsl:text>.</xsl:text>
               </li>
  -          </xsl:if>
           </ul>
         </div>
       </xsl:if>
  
  
  



More information about the lfs-book mailing list