XHTML-ize course categories list. MDL-16358 ; merged from 19_STABLE

This commit is contained in:
stronk7 2008-09-08 18:16:39 +00:00
parent 392f5e2403
commit a682f0c2c3
2 changed files with 11 additions and 7 deletions

View 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>';
}

View 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 {