From: moodler Date: Thu, 11 Jan 2007 07:11:22 +0000 (+0000) Subject: Improvements to the CSS MDL-7782 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=902a721282dbc2e19ec96620b16ee89c78c4dd62;p=moodle.git Improvements to the CSS MDL-7782 --- diff --git a/lib/weblib.php b/lib/weblib.php index 76b65be816..528cf1911e 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5478,8 +5478,10 @@ function convert_tree_to_html($tree, $row=0) { foreach ($tree as $tab) { $str .= '
  • '; - if ($tab->active || $tab->selected) { + if ($tab->selected) { $linkclass = ' class="selected"'; + } else if ($tab->active) { + $linkclass = ' class="active"'; } else { $linkclass = ''; } diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 362cec7a65..7b8ac69cf6 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -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;