Changeset 8530


Ignore:
Timestamp:
2004-11-12T15:26:31+13:00 (19 years ago)
Author:
kjdon
Message:

brownbutton changed to gsbutton, cos its no longer brown, and moved style info to a stylesheet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/web/interfaces/default/transform/style.xsl

    r8526 r8530  
    1010  <xsl:param name="interface_name"/>
    1111  <xsl:param name="library_name"/>
    12 
     12 
    1313  <!-- global style info goes here  -->
    1414  <xsl:template name="globalStyle">
    15     <style type="text/css">
    16       <xsl:text disable-output-escaping="yes">
    17     a.brownbutton {text-decoration:none; color:#345437;
    18                     font-weight: bold; vertical-align: middle;  }
    19     a:visited.brownbutton { color:#345437; }
    20     a:hover.brownbutton {color: red;  }
    21     td.brownbutton { background-image: url(interfaces/default/images/brownbutton.gif); height: 20; text-align: center; vertical-align: middle; }
    22     td.brownbuttonoff { background-image: url(interfaces/default/images/greenbar.gif); height: 20; text-align: center; color:#345437;
    23                     font-weight: bold;}
    24     td.navbar { background-image: url(interfaces/default/images/greenbar.gif); height: 20; text-align: center;  font-weight:bold; color:#345437;}
    25     a.navbar, a:visited.navbar { text-decoration: none; font-size: larger; color:#345437;}
    26     a:hover.navbar  {color:red;}
    27     td.navbaroff {background-image: url(interfaces/default/images/greenbar.gif); height: 20; text-align: center;  font-weight:bold; color: #c6aa69; font-size: larger;}
    28     body {background-color: #ffffff; background-image: url(interfaces/default/images/chalk.gif); color:#000066  }
    29     a {color: #006666; }
    30     a:visited {color: #666633}
    31     a:hover {color: #cc9900}
    32       </xsl:text>
    33     </style>
    34   </xsl:template>
    35 
    36 
     15    <link rel="stylesheet" href="interfaces/default/style/core.css" type="text/css"/>
     16  </xsl:template>
     17 
    3718  <!-- the main page layout template is here -->
    3819  <xsl:template match="page">
     
    11293      <table cellspacing='4'>
    11394        <tr>
    114           <td class="brownbutton">
    115         <a class="brownbutton" href="{$library_name}?a=p&amp;sa=home"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_tip')"/></xsl:attribute>
     95          <td class="gsbutton">
     96        <a class="gsbutton" href="{$library_name}?a=p&amp;sa=home"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_tip')"/></xsl:attribute>
    11697          <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/>
    11798        </a>
     
    119100          <xsl:choose>
    120101        <xsl:when test="$pageType='help'">
    121           <td class="brownbuttonoff">
     102          <td class="gsbuttonoff">
    122103            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/>
    123104          </td>
    124105        </xsl:when>
    125106        <xsl:otherwise>
    126           <td class="brownbutton">
    127             <a class="brownbutton" href="{$library_name}?a=p&amp;sa=help&amp;c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
     107          <td class="gsbutton">
     108            <a class="gsbutton" href="{$library_name}?a=p&amp;sa=help&amp;c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
    128109              <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/>
    129110            </a>
     
    133114          <xsl:choose>
    134115        <xsl:when test="$pageType='pref'">
    135           <td class="brownbuttonoff">
     116          <td class="gsbuttonoff">
    136117            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/>
    137118          </td>
    138119        </xsl:when>
    139120        <xsl:otherwise>
    140           <td class="brownbutton">
    141             <a class="brownbutton" href="{$library_name}?a=p&amp;sa=pref&amp;c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>
     121          <td class="gsbutton">
     122            <a class="gsbutton" href="{$library_name}?a=p&amp;sa=pref&amp;c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>
    142123              <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/>
    143124            </a>
Note: See TracChangeset for help on using the changeset viewer.