From e0fdb167d9849d9ee5ca195f0e12bc1fa764b6f0 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 2 Jan 2007 10:27:59 +0000 Subject: [PATCH] MDL-8032 remove repeated dashes from navmenu - replace with CSS styling --- lib/weblib.php | 6 +++--- theme/standard/styles_color.css | 12 ++++++++++++ theme/standard/styles_layout.css | 12 ++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 120d589823..fbc605a6f0 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4150,12 +4150,12 @@ function navmenu($course, $cm=NULL, $targetwindow='self') { has_capability('moodle/course:viewhiddensections', $context)) { $thissection->summary = strip_tags(format_string($thissection->summary,true)); if ($course->format == 'weeks' or empty($thissection->summary)) { - $menu[] = '-------------- '. $strsection ." ". $mod->section .' --------------'; + $menu[] = '--'.$strsection ." ". $mod->section; } else { if (strlen($thissection->summary) < ($width-3)) { - $menu[] = '-- '.$thissection->summary; + $menu[] = '--'.$thissection->summary; } else { - $menu[] = '-- '.substr($thissection->summary, 0, $width).'...'; + $menu[] = '--'.substr($thissection->summary, 0, $width).'...'; } } } diff --git a/theme/standard/styles_color.css b/theme/standard/styles_color.css index d7cd969ec9..0971800875 100644 --- a/theme/standard/styles_color.css +++ b/theme/standard/styles_color.css @@ -206,6 +206,18 @@ table.formtable tbody th { color: #FFF; } +#navmenu { + background-color:#FFFFFF; +} + +#navmenu optgroup { + background-color:#EEEEEE; +} + +#navmenu optgroup option { + background-color:#FFFFFF; +} + /*** *** Footer ***/ diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 71f8d53ff4..2689ca7a0b 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -461,6 +461,18 @@ table.navbar { text-align:right; } +#navmenu optgroup { + text-align:center; + padding-top:4px; +} + +#navmenu option { + text-align:left; +} + +#navmenu optgroup option { + padding:0px; +} /*** *** Footer -- 2.39.5