From c5e4685833c47cf5681c5aa3336654196bc897e3 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 8cbb2ca2724..19cc5ed4505 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 cd150995d3c..a712df7b69b 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -14881,6 +14881,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 e2c2772b388..3296ba72cf7 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -14881,6 +14881,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;