You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2006/07/29 01:58:47 UTC

svn commit: r426714 - in /forrest/trunk/main/webapp/skins: common/xslt/html/tab-to-menu.xsl pelt/css/profile.css.xslt

Author: thorsten
Date: Fri Jul 28 16:58:47 2006
New Revision: 426714

URL: http://svn.apache.org/viewvc?rev=426714&view=rev
Log:
Bugfix FOR-208 - Selected 2nd level tabs not highlightet
The problem was lying in
> - the commented match in the profiler.css.xslt
> - the usage of - in css classes (is not good)

Modified:
    forrest/trunk/main/webapp/skins/common/xslt/html/tab-to-menu.xsl
    forrest/trunk/main/webapp/skins/pelt/css/profile.css.xslt

Modified: forrest/trunk/main/webapp/skins/common/xslt/html/tab-to-menu.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/common/xslt/html/tab-to-menu.xsl?rev=426714&r1=426713&r2=426714&view=diff
==============================================================================
--- forrest/trunk/main/webapp/skins/common/xslt/html/tab-to-menu.xsl (original)
+++ forrest/trunk/main/webapp/skins/common/xslt/html/tab-to-menu.xsl Fri Jul 28 16:58:47 2006
@@ -200,7 +200,7 @@
 
   <!-- Called from 'selected' -->
   <xsl:template name="base-selected">
-    <a class="base-selected">
+    <a class="selected">
       <xsl:attribute name="href">
         <xsl:call-template name="calculate-tab-href">
           <xsl:with-param name="tab" select="."/>
@@ -213,7 +213,7 @@
 
   <!-- Called from 'not-selected' -->
   <xsl:template name="base-not-selected">
-    <a class="base-not-selected">
+    <a class="unselected">
       <xsl:attribute name="href">
         <xsl:call-template name="calculate-tab-href">
           <xsl:with-param name="tab" select="."/>

Modified: forrest/trunk/main/webapp/skins/pelt/css/profile.css.xslt
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/pelt/css/profile.css.xslt?rev=426714&r1=426713&r2=426714&view=diff
==============================================================================
--- forrest/trunk/main/webapp/skins/pelt/css/profile.css.xslt (original)
+++ forrest/trunk/main/webapp/skins/pelt/css/profile.css.xslt Fri Jul 28 16:58:47 2006
@@ -44,19 +44,18 @@
 </xsl:template> 
 
 <xsl:template match="color[@name='subtab-selected']">
-#level2tabs       { background-color: <xsl:value-of select="@value"/> ;} 
+#level2tabs a.selected      { background-color: <xsl:value-of select="@value"/> ;} 
 #level2tabs a:link {  color: <xsl:value-of select="@link"/>;  }
 #level2tabs a:visited { color: <xsl:value-of select="@vlink"/>; }
 #level2tabs a:hover { color: <xsl:value-of select="@hlink"/>; }
 </xsl:template> 
 
-<!--xsl:template match="color[@name='subtab-unselected']">
-.level2tabstrip { background-color: <xsl:value-of select="@value"/>;}
-.datenote { background-color: <xsl:value-of select="@value"/>;} 
-.level2tabstrip.unselected a:link {  color: <xsl:value-of select="@link"/>;  }
-.level2tabstrip.unselected a:visited { color: <xsl:value-of select="@vlink"/>; }
-.level2tabstrip.unselected a:hover { color: <xsl:value-of select="@hlink"/>; }
-</xsl:template--> 
+<xsl:template match="color[@name='subtab-unselected']">
+#level2tabs { background-color: <xsl:value-of select="@value"/>;}
+#level2tabs a.unselected:link {  color: <xsl:value-of select="@link"/>;  }
+#level2tabs a.unselected:visited { color: <xsl:value-of select="@vlink"/>; }
+#level2tabs a.unselected:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template> 
 
 <xsl:template match="color[@name='heading']">
 .heading { background-color: <xsl:value-of select="@value"/>;}