]> git.mjollnir.org Git - moodle.git/commitdiff
XHTML-ize course categories list. MDL-16358 ; merged from 19_STABLE
authorstronk7 <stronk7>
Mon, 8 Sep 2008 18:16:39 +0000 (18:16 +0000)
committerstronk7 <stronk7>
Mon, 8 Sep 2008 18:16:39 +0000 (18:16 +0000)
course/lib.php
theme/standard/styles_layout.css

index 61aa94a13f8c855fd7fcfa4cb50bc52fc93ac139..a18ba28a2675b0c2cba1b4a375a24d9bc3897402 100644 (file)
@@ -1836,7 +1836,7 @@ function print_category_info($category, $depth, $files = false) {
         if ($depth) {
             $indent = $depth*30;
             $rows = count($courses) + 1;
-            echo '<td rowspan="'.$rows.'" valign="top" width="'.$indent.'">';
+            echo '<td class="category indentation" rowspan="'.$rows.'" valign="top">';
             print_spacer(10, $indent);
             echo '</td>';
         }
@@ -1883,7 +1883,7 @@ function print_category_info($category, $depth, $files = false) {
 
         if ($depth) {
             $indent = $depth*20;
-            echo '<td valign="top" width="'.$indent.'">';
+            echo '<td class="category indentation" valign="top">';
             print_spacer(10, $indent);
             echo '</td>';
         }
index 87638e4c02bfea4874f3da1ec4880c92d2854e96..05adbb003b736c8b7093f4f09a27f673dc47fa8f 100644 (file)
@@ -2109,17 +2109,21 @@ body#course-info .generalbox.info {
 }
 
 .categorylist {
-  width:90%;
-  margin-left:auto;
-  margin-right:auto;
+  width: 90%;
+  margin-left: auto;
+  margin-right: auto;
 }
 
 .categorylist .category.image {
-  width:20px;
+  width: 20px;
 }
 
 .categorylist .category.number {
-  text-align:right;
+  text-align: right;
+}
+
+.categorylist .category.indentation {
+  width: 1px;
 }
 
 .categoryboxcontent {