MDL-8032 remove repeated dashes from navmenu - replace with CSS styling

This commit is contained in:
skodak
2007-01-02 10:27:59 +00:00
parent 9119f247cf
commit e0fdb167d9
3 changed files with 27 additions and 3 deletions
+3 -3
View File
@@ -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).'...';
}
}
}
+12
View File
@@ -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
***/
+12
View File
@@ -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