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

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Wed May 26 13:22:29 PDT 2004


manuel      04/05/26 14:22:29

  Modified:    BOOK/stylesheets lfs-nochunks.xsl lfs.css
               BOOK/stylesheets/xhtml lfs-admon.xsl
  Log:
  Some changes in the CSS code to apetease IE6.
  Changed the output matkup for admonitions.
  
  Revision  Changes    Path
  1.4       +0 -3      LFS/BOOK/stylesheets/lfs-nochunks.xsl
  
  Index: lfs-nochunks.xsl
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/lfs-nochunks.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- lfs-nochunks.xsl	24 May 2004 19:39:14 -0000	1.3
  +++ lfs-nochunks.xsl	26 May 2004 20:22:28 -0000	1.4
  @@ -1,8 +1,5 @@
   <?xml version='1.0' encoding='ISO-8859-1'?>
   
  -<!-- Version 0.9 - Manuel Canales Esparcia <macana at lfs-es.org>
  -Based on the original lfs-chunked.xsl created by Matthew Burgess -->
  -
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   xmlns="http://www.w3.org/1999/xhtml"
                   version="1.0">
  
  
  
  1.9       +37 -13    LFS/BOOK/stylesheets/lfs.css
  
  Index: lfs.css
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/lfs.css,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- lfs.css	25 May 2004 19:54:43 -0000	1.8
  +++ lfs.css	26 May 2004 20:22:29 -0000	1.9
  @@ -55,7 +55,9 @@
   }
   
   div.navheader ul, div.navfooter ul {
  -  padding: .2em;
  +  padding: .2em .5em .5em 0;
  +  margin-left: 0px;
  +  margin-right: 2px;
     position: relative;
     background: #dbddec;
   }
  @@ -69,17 +71,17 @@
     display: block;
     left: 0;
     text-align: left;
  -  padding: 0.2em .5em;
  -  margin: 0;
  +  padding: 0.2em 1em;
  +  margin-left: 6px;
   }
   
   div.navheader ul li.next, div.navfooter ul li.next {
     position: absolute;
     display: block;
  -  right: 0;
     text-align: right;
  -  padding: 0.2em .5em;
  -  margin: 0;
  +  right: 5px;
  +  padding: 0.2em 0.5em;
  +  margin-right: 7px;
   }
   
   div.navheader ul li.prev p, div.navfooter ul li.prev p,
  @@ -127,13 +129,26 @@
   }
   
   /* Admonitions */
  -div.admonition {
  +div.note, div.tip {
     background-color: #fffff6;
  -  border: medium solid #600;
  +  border: 2px solid #dbddec;
     width: 90%;
     margin: .5em auto;
   }
   
  +div.important, div.warning, div.caution {
  +  background-color: #fffff6;
  +  border: medium solid #400;
  +  width: 90%;
  +  margin: .5em auto;
  +  color: #600;
  +  font-size: larger;
  +}
  +
  +div.important h3, div.warning h3, div.caution h3 {
  +  color: #900;
  +}
  +
   div.admonhead img {
     padding: .3em;
   }
  @@ -147,6 +162,15 @@
     margin: .5em;
   }
   
  +div.important em, div.warning em, div.caution em {
  +  color: #000;
  +  font-weight: bold;
  +}
  +
  +div.important tt, div.warning tt, div.caution tt {
  +  font-weight: bold;
  +}
  +
   /* variablelist & segmentedlist */
   dl {
     margin: 0;
  @@ -205,15 +229,15 @@
   /* Sections */
   div.wrap h1 {
     background: #f5f6f7;
  -  padding: 0.5em 0 0.3em 0;
  -  margin: 0;
  +  padding: 1em 0 0.5em 0;
  +  margin: 0px auto;
   }
   
   div.package {
     background: #f5f6f7;
     border-bottom: 0.2em solid #dbddec;
  -  padding: 0 0.5em 0.3em 0.5em;
  -  margin: 0;
  +  padding: 0.5em 0.5em 0.3em 0.5em;
  +  margin: 0px auto;
   }
   
   div.installation {
  @@ -231,7 +255,7 @@
   div.content {
     background: #f5f6f7;
     border-top: 0.2em solid #dbddec;
  -  padding: 0.5em 0.5em 0.5em 0.5em;
  +  padding: 0.5em 0.5em 1em 0.5em;
     margin: 0.5em 0 .5em 0;
   }
   
  
  
  
  1.5       +2 -2      LFS/BOOK/stylesheets/xhtml/lfs-admon.xsl
  
  Index: lfs-admon.xsl
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/xhtml/lfs-admon.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- lfs-admon.xsl	19 May 2004 20:16:58 -0000	1.4
  +++ lfs-admon.xsl	26 May 2004 20:22:29 -0000	1.5
  @@ -21,14 +21,14 @@
           <xsl:otherwise>Note</xsl:otherwise>
         </xsl:choose>
       </xsl:variable>
  -    <div class="admonition">
  +    <div class="{name(.)}">
         <div class ="admonhead">
           <img alt="[{$admon.type}]">
             <xsl:attribute name="src">
               <xsl:call-template name="admon.graphic"/>
             </xsl:attribute>
           </img>
  -        <h3 class="{name(.)}">
  +        <h3 class="admontitle">
             <xsl:value-of select="$admon.type"/>
             <xsl:if test="title">
               <xsl:text>: </xsl:text>
  
  
  



More information about the lfs-book mailing list