From a682f0c2c39f4110987ecfdc9482184c78fd2709 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 8 Sep 2008 18:16:39 +0000 Subject: [PATCH] XHTML-ize course categories list. MDL-16358 ; merged from 19_STABLE --- course/lib.php | 4 ++-- theme/standard/styles_layout.css | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/course/lib.php b/course/lib.php index 61aa94a13f..a18ba28a26 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1836,7 +1836,7 @@ function print_category_info($category, $depth, $files = false) { if ($depth) { $indent = $depth*30; $rows = count($courses) + 1; - echo ''; + echo ''; print_spacer(10, $indent); echo ''; } @@ -1883,7 +1883,7 @@ function print_category_info($category, $depth, $files = false) { if ($depth) { $indent = $depth*20; - echo ''; + echo ''; print_spacer(10, $indent); echo ''; } diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 87638e4c02..05adbb003b 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -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 { -- 2.39.5