]> git.mjollnir.org Git - moodle.git/commitdiff
Improvements to the CSS MDL-7782
authormoodler <moodler>
Thu, 11 Jan 2007 07:11:22 +0000 (07:11 +0000)
committermoodler <moodler>
Thu, 11 Jan 2007 07:11:22 +0000 (07:11 +0000)
lib/weblib.php
theme/standard/styles_layout.css

index 76b65be8168fcdb49edb3aa0209444db185fde0b..528cf1911e1453a077b5c0bdea64373b08e6286a 100644 (file)
@@ -5478,8 +5478,10 @@ function convert_tree_to_html($tree, $row=0) {
     foreach ($tree as $tab) {
         $str .= '<li>';
 
-        if ($tab->active || $tab->selected) { 
+        if ($tab->selected) { 
             $linkclass = ' class="selected"';
+        } else if ($tab->active) { 
+            $linkclass = ' class="active"';
         } else {
             $linkclass = '';
         }
index 362cec7a65e41163aca661f91507f18287982139..7b8ac69cf6424aa22ac0ed746ec540c7ddd46c25 100644 (file)
@@ -1930,17 +1930,22 @@ body#message-messages {
 
 .tabrow0 a:hover,
 .tabrow0 a:active,
-.tabrow0 a.selected:link,
-.tabrow0 a.selected:visited {
+.tabrow0 a.active:link,
+.tabrow0 a.active:visited {
   background:#ddd;
 }
 
-.tabrow0 a.selected:link,
-.tabrow0 a.selected:visited {
+.tabrow0 a.active:link,
+.tabrow0 a.active:visited {
   position:relative;
   z-index:102;
 }
 
+.tabrow0 a.selected:link,
+.tabrow0 a.selected:visited {
+  color:#000;
+}
+
 /*subnav*/
 .tabrow0 ul {
   position:absolute;