MDL-8032 remove repeated dashes from navmenu - replace with CSS styling
This commit is contained in:
+3
-3
@@ -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).'...';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
***/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user