]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8032 remove repeated dashes from navmenu - replace with CSS styling
authorskodak <skodak>
Tue, 2 Jan 2007 10:27:59 +0000 (10:27 +0000)
committerskodak <skodak>
Tue, 2 Jan 2007 10:27:59 +0000 (10:27 +0000)
lib/weblib.php
theme/standard/styles_color.css
theme/standard/styles_layout.css

index 120d5898237091e8437dd141a4730e14e7f806ae..fbc605a6f04a16ec9f68964276f6dd30232ee45c 100644 (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).'...';
                     }
                 }
             }
index d7cd969ec93827a778cb044da84031eca747141e..09718008752671fca4284094a7ba30a28261bf01 100644 (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
  ***/
index 71f8d53ff4ab73a32b50d510a6c1be4feb451457..2689ca7a0b0e0ebe0163e1c2fd66c989b9ceab29 100644 (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