MDL-62807 output: Support .list-unstyled class

Category management lists should not have bullets.

We support this class in "boost" theme but not in bootstrapbase and there are uses of it in core.
This commit is contained in:
Damyon Wiese
2018-07-16 14:04:03 +08:00
parent b80a22f5ba
commit c485c0c443
7 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -156,4 +156,4 @@ echo $OUTPUT->footer();
// Thats all folks.
// Don't ever even consider putting anything after this. It just wouldn't make sense.
// But you already knew that, you smart developer you.
exit;
exit;
+2 -3
View File
@@ -247,8 +247,7 @@ class core_course_management_renderer extends plugin_renderer_base {
'i/empty',
'',
'moodle',
array('class' => 'tree-icon', 'title' => get_string('showcategory', 'moodle', $text))
);
array('class' => 'tree-icon'));
$icon = html_writer::span($icon, 'float-left');
}
$actions = \core_course\management\helper::get_category_listitem_actions($category);
@@ -288,7 +287,7 @@ class core_course_management_renderer extends plugin_renderer_base {
$html .= html_writer::end_div();
if ($isexpanded) {
$html .= html_writer::start_tag('ul',
array('class' => 'ml-1', 'role' => 'group', 'id' => 'subcategoryof'.$category->id));
array('class' => 'ml', 'role' => 'group', 'id' => 'subcategoryof'.$category->id));
$catatlevel = \core_course\management\helper::get_expanded_categories($category->path);
$catatlevel[] = array_shift($selectedcategories);
$catatlevel = array_unique($catatlevel);
View File

Before

Width:  |  Height:  |  Size: 75 B

After

Width:  |  Height:  |  Size: 75 B

View File

Before

Width:  |  Height:  |  Size: 299 B

After

Width:  |  Height:  |  Size: 299 B

@@ -317,8 +317,7 @@ class renderer extends \core_course_management_renderer {
'i/empty',
'',
'moodle',
array('class' => 'tree-icon', 'title' => get_string('showcategory', 'moodle', $text))
);
array('class' => 'tree-icon'));
$icon = html_writer::span($icon, 'float-left');
}
$actions = \core_course\management\helper::get_category_listitem_actions($category);
@@ -118,6 +118,8 @@ a.dimmed_text:visited,
}
.unlist,
.unlist li,
.list-unstyled,
.list-unstyled li,
.inline-list,
.inline-list li,
.block .list,
+2
View File
@@ -2420,6 +2420,8 @@ a.dimmed_text:visited,
}
.unlist,
.unlist li,
.list-unstyled,
.list-unstyled li,
.inline-list,
.inline-list li,
.block .list,