forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/resources/skins/krysalis-site/xslt/html site2xhtml.xsl
Date Tue, 25 Mar 2003 17:07:23 GMT
nicolaken    2003/03/25 09:07:22

  Modified:    src/resources/skins/krysalis-site/css page.css
               src/resources/skins/krysalis-site/xslt/html site2xhtml.xsl
  Log:
        <action dev="NKB" type="add" context="skins">
         On krysalis skin: fixt left navigation bar icons and sizing using divs
         instead of list elements, made all links underlined, made visited link
         black, added space to the bottom of the page text, and changed font
         increase-decrease links to buttons.
        </action>
  
  Revision  Changes    Path
  1.7       +94 -19    xml-forrest/src/resources/skins/krysalis-site/css/page.css
  
  Index: page.css
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/css/page.css,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- page.css	24 Mar 2003 17:59:07 -0000	1.6
  +++ page.css	25 Mar 2003 17:07:21 -0000	1.7
  @@ -3,22 +3,95 @@
   p {  background-color: #FFFFFF; margin: 10px 0px 0px 0px; font-family: Verdana, Helvetica,
sans-serif;  font-size : 100%;  }
   
   a:link { color: #0F3660; }
  -a:visited { color: #009999; }
  -a:active { color: #000066; }
  +a:visited { color: #000000; }
  +a:active { color: #000000; }
   a:hover { color: #000000; border: 0px solid #a5b6c6; background: #CFDCED; }
   
  -.menu { background-color: #F7F7F7; margin: 0px; padding: 3px 3px 5px 3px;  font-size :
70%;  }
  -.menu a:link { color: #000000;  text-decoration : none;  }
  -.menu a:visited { color: #000000; text-decoration : none; }
  -.menu a:hover { color: #00AA77; text-decoration : none; }
  -.menu ul { margin: 0px 0px 6px 8px; padding: 0px; }
  -.menu li { margin: 0px 0px 2px 0px; padding: 0px; list-style-image: url('images/label.gif');
font-weight : bold; }
  -.menu ul ul li .sel { list-style-image: url('images/current.gif');   font-style : normal;
  -                      background-color:#CFDCED; border-color: #a5b6c6; border-style: solid;
border-width: 1px;}
  -.menu ul ul li .page { list-style-image: none;   font-style : normal;
  -                      background-color:#ffffff; border-color: #a5b6c6; border-style: solid;
border-width: 1px;
  -                      font-size : 90%;}
  -.menu ul ul li  { list-style-image: url('images/page.gif'); font-weight : normal; }
  +.menu a:link { color: #000000;  }
  +
  +.menu { background-color: #F7F7F7; 
  +        padding: 8px 0px 4px 0px;  
  +        margin: 0px; 
  +        font-size : 70%;
  +}
  +
  +.menutitle { 
  +        padding: 0px 3px 5px 10px;  
  +        background-image: url('images/chapter_open.gif');
  +        background-repeat: no-repeat;
  +        background-position: center left;
  +        font-weight : bold;}
  +
  +.menu .menuitemgroup { 
  +        margin: 0px 0px 6px 8px; 
  +        padding: 0px;  
  +        font-weight : bold; }
  +        
  +        
  +.menu .menuitem { 
  +        padding: 0px 0px 2px 10px;  
  +        background-image: url('images/page.gif');
  +        background-repeat: no-repeat;
  +        background-position: center left;
  +        font-weight : normal; 
  +}
  +
  +.menu .menupage {         
  +        padding: 4px 3px 5px 10px;  
  +        background-image: url('images/current.gif');
  +        background-repeat: no-repeat;
  +        background-position: top left;
  +        font-style : normal;
  +
  +        
  +}
  +
  +.menu .menupagetitle { 
  +        padding: 0px 0px 0px 6px;     
  +        font-style : normal;
  +        background-color:#CFDCED; 
  +        border-color: #a5b6c6; 
  +        border-style: solid; 
  +        border-width: 1px;
  +        
  +}
  +
  +.menu .menupageitemgroup { 
  +        padding: 3px 0px 4px 6px;    
  +        font-style : normal;
  +        background-color:#ffffff; 
  +        border-color: #a5b6c6; 
  +        border-style: solid; 
  +        border-width: 1px;
  +        
  +}
  +
  +.menu .menupageitem {             
  +  
  +        font-style : normal;
  +        font-weight : normal; 
  +        border-width: 0px;
  +        font-size : 90%;
  +}
  +
  +
  +.smallerfont {             
  +          font-size : 100%;
  +        padding: 0px 0px 0px 0px;   
  +}
  +
  +
  +.biggerfont {             
  +        font-size : 100%;
  +        font-weight : bold;      
  +        padding: 0px 0px 0px 0px;   
  +}
  +
  +.resetfont {             
  +        font-size : 100%;
  +        font-weight : normal; 
  +          padding: 0px 0px 0px 0px;  
  +}
   
   table .title { background-color: #FFFFFF; width:100%; border: 0px; }
   .dida { font-size: 80%; }
  @@ -89,12 +162,8 @@
   textarea { font-size : 70% }
   
   .tab { font-size : 85%; border: 0 }
  -.tab a:link {   text-decoration : none;  }
  -.tab a:visited { text-decoration : none; }
  -
   .trail { font-size: 70%; }
  -.trail a:link {   text-decoration : none;  }
  -.trail a:visited { text-decoration : none; }
  +
   
   .dtdTag {    color: #990000; text-transform : uppercase;  font-style : normal;  font-size
: 120%;  font-weight : bold; }
   
  @@ -189,3 +258,9 @@
     .bottom-right-thick  { display: none;  }
   
   }
  +
  +
  +
  +
  +
  +
  
  
  
  1.12      +22 -19    xml-forrest/src/resources/skins/krysalis-site/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/xslt/html/site2xhtml.xsl,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- site2xhtml.xsl	24 Mar 2003 17:58:56 -0000	1.11
  +++ site2xhtml.xsl	25 Mar 2003 17:07:21 -0000	1.12
  @@ -160,11 +160,11 @@
                       <xsl:comment>================= start Menu items ==================</xsl:comment>
                       <!-- original: <xsl:apply-templates select="div[@class='menu']"/>
   -->
   
  -                    <div class="menu"><ul>
  +                    <div class="menu">
                           <xsl:for-each select = "div[@class='menu']/ul/li">
                             <xsl:call-template name = "innermenuli" />
                           </xsl:for-each>
  -                    </ul></div>
  +                    </div>
   
                       <xsl:comment>================= end Menu items ==================</xsl:comment>
                     </td>
  @@ -239,10 +239,9 @@
                     <td bgcolor="{$background-bars}" width="50%" align="right">
                       <!-- ============ Page navigation =========== -->
                         <span class="trail">Font size: 
  -                                 &#160;<a href="javascript:void(0);" onclick="ndeSetTextSize('decr');
return false;" title="Shrink text" class="ui">&#8211;</a>
  -                                 &#160;<a href="javascript:void(0);" onclick="ndeSetTextSize('incr');
return false;" title="Enlarge text" class="ui">+</a>
  -                                 &#160;<a href="javascript:void(0);" onclick="ndeSetTextSize('reset');
return false;" title="Reset text" class="ui">R</a>
  -                      
  +                                 &#160;<input type="button" onclick="ndeSetTextSize('decr');
return false;" title="Shrink text" class="smallerfont" value="-a"/>
  +                                 &#160;<input type="button" onclick="ndeSetTextSize('incr');
return false;" title="Enlarge text" class="biggerfont" value="+a"/>
  +                                 &#160;<input type="button" onclick="ndeSetTextSize('reset');
return false;" title="Reset text" class="resetfont" value="Reset"/>           
                       </span>
                       <img src="{$spacer}" alt="" height="8" width="10" />
                     </td>
  @@ -269,6 +268,11 @@
                 </table>
               </td>
             </tr>
  +          <tr>
  +           <td><!-- using breaks so it scales with font size -->
  +             <br/><br/>
  +           </td>
  +          </tr>
           </table>
           <xsl:comment>================= end Menu, NavBar, Content ==================</xsl:comment>
   
  @@ -341,21 +345,21 @@
   
   
     <xsl:template name="innermenuli">
  -    <li><font color="#000000"><xsl:value-of select="font"/></font>
  -      <ul>
  +    <div class="menutitle"><xsl:value-of select="font"/></div>
  +      <div class="menuitemgroup">
           <xsl:for-each select= "ul/li">
   
             <xsl:choose>
               <xsl:when test="a">
  -              <li><a href="{a/@href}"><xsl:value-of select="a" /></a></li>
  +              <div class="menuitem"><a href="{a/@href}"><xsl:value-of select="a"
/></a></div>
               </xsl:when>
               <xsl:when test="span/@class='sel'">
  -              <li>
  -                <span class="sel"><xsl:value-of select="span" /></span>
  -                <xsl:if test="//toc/tocc"> <div class="page">
  -                    <ul>
  +              <div class="menupage">
  +                <div class="menupagetitle"><xsl:value-of select="span" /></div>
  +                <xsl:if test="//toc/tocc"> 
  +                  <div class="menupageitemgroup">
                         <xsl:for-each select = "//toc/tocc">
  -                        <li>
  +                        <div class="menupageitem">
                             <xsl:choose>
                               <xsl:when test="string-length(toca)>15">
                                 <a href="{toca/@href}" title="{toca}"><xsl:value-of
select="substring(toca,0,20)" />...</a>
  @@ -384,11 +388,11 @@
                               </ul> 
                               -->
                             </xsl:if>
  -                        </li>
  +                        </div>
                         </xsl:for-each>
  -                  </ul></div>
  +                  </div>
                   </xsl:if>
  -              </li>
  +              </div>
               </xsl:when>
               <xsl:otherwise>
                 <xsl:call-template name = "innermenuli" />
  @@ -396,8 +400,7 @@
             </xsl:choose>
   
           </xsl:for-each>
  -      </ul>
  -    </li>
  +      </div>
     </xsl:template>
   
   
  
  
  

Mime
View raw message