From 46cb0bc324d6496d8f5c2d1992d0d49027fe67ac Mon Sep 17 00:00:00 2001 From: Meirza Date: Mon, 2 Jan 2023 20:23:15 +0700 Subject: [PATCH] MDL-73519 core_course: re-styling the unordered list. Currently, the unordered list in the course content follows the original style and is ordered from the top of the content section, which is not part of the description. That's why the first occurrence of the list is the 2nd level which uses the circle as the marker/list type instead of the disc. In contrast, the editor always uses the original style. so we need to reset the CSS of the unordered list in the description to the original which the disc as the first marker, a circle for the second marker, and a square for the following levels. --- theme/boost/scss/moodle/course.scss | 12 ++++++++++++ theme/boost/style/moodle.css | 7 +++++++ theme/classic/style/moodle.css | 7 +++++++ 3 files changed, 26 insertions(+) diff --git a/theme/boost/scss/moodle/course.scss b/theme/boost/scss/moodle/course.scss index 64f077246d9..763bd685657 100644 --- a/theme/boost/scss/moodle/course.scss +++ b/theme/boost/scss/moodle/course.scss @@ -1399,6 +1399,18 @@ $activity-add-hover: theme-color-level('primary', -10) !default; } } +.course-content .description-inner { + ul { + list-style: disc; + ul { + list-style: circle; + ul { + list-style: square; + } + } + } +} + .activity-item { position: relative; diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 823cf6a8bc5..b4162b01a7f 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -14842,6 +14842,13 @@ span.editinstructions { padding-bottom: 0; border-bottom: 0; } +.course-content .description-inner ul { + list-style: disc; } + .course-content .description-inner ul ul { + list-style: circle; } + .course-content .description-inner ul ul ul { + list-style: square; } + .activity-item { position: relative; border-radius: 0.5rem; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 4606a3bce71..7be61fde9c1 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -14842,6 +14842,13 @@ span.editinstructions { padding-bottom: 0; border-bottom: 0; } +.course-content .description-inner ul { + list-style: disc; } + .course-content .description-inner ul ul { + list-style: circle; } + .course-content .description-inner ul ul ul { + list-style: square; } + .activity-item { position: relative; border-radius: 0.25rem;