From 3e2b34822618d45f114f7961df4b866d6e705eaf Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 11 Jan 2007 07:04:49 +0000 Subject: [PATCH] SOmething of a cleanup MDL-7782 --- lib/weblib.php | 6 ++---- theme/standard/styles_layout.css | 8 ++++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 00c59e2baf..76b65be816 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5485,13 +5485,11 @@ function convert_tree_to_html($tree, $row=0) { } if ($tab->inactive || $tab->active || ($tab->selected && !$tab->linkedwhenselected)) { - $astr = ''.$tab->text.''; + $str .= ''.$tab->text.''; } else { - $astr = ''.$tab->text.''; + $str .= ''.$tab->text.''; } - $str .= ''; - if (!empty($tab->subtree)) { $str .= convert_tree_to_html($tab->subtree, $row+1); } diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 67343b07ec..362cec7a65 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -1920,7 +1920,7 @@ body#message-messages { color:#006; text-decoration:none; /* font-weight:bold; */ - background:#ddd; + background:#eee; margin:0; padding:0.25em 1em; border-left:1px solid #fff; @@ -1932,7 +1932,7 @@ body#message-messages { .tabrow0 a:active, .tabrow0 a.selected:link, .tabrow0 a.selected:visited { - background:#bbb; + background:#ddd; } .tabrow0 a.selected:link, @@ -1947,7 +1947,7 @@ body#message-messages { left:0; top:1.5em; float:left; - background:#bbb; + background:#ddd; width:100%; margin:0; padding:0.25em 0.25em 0.25em 1em; @@ -1962,7 +1962,7 @@ body#message-messages { } .tabrow0 ul a { - background:#bbb; + background:#ddd; display:inline; margin:0; padding:0 1em; -- 2.39.5