From 731e8a1e0173f05124d98b628fd71fd2cc00cb62 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 2 Aug 2024 17:24:03 +0800 Subject: [PATCH] MDL-82677 theme: Set a background colour for page heading * Set a background colour for the .page-header-headings class. * Assign the .page-header-headings class to the maintenance mode template's page header div. --- theme/boost/scss/moodle/core.scss | 4 ++++ theme/boost/style/moodle.css | 4 ++++ theme/boost/templates/maintenance.mustache | 2 +- theme/classic/style/moodle.css | 4 ++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/theme/boost/scss/moodle/core.scss b/theme/boost/scss/moodle/core.scss index 5f9d24b023f..f4b6ef70af5 100644 --- a/theme/boost/scss/moodle/core.scss +++ b/theme/boost/scss/moodle/core.scss @@ -3062,6 +3062,10 @@ blockquote { border-left: 5px solid $gray-400; } +.page-header-headings { + background-color: $body-bg; +} + /* Prevent long strings exceeding page width */ .page-header-headings, .coursename, diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 6faf3aec738..d8de7c1fb8e 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -25985,6 +25985,10 @@ blockquote { border-left: 5px solid #ced4da; } +.page-header-headings { + background-color: #fff; +} + /* Prevent long strings exceeding page width */ .page-header-headings:not(.text-truncate), .coursename:not(.text-truncate), diff --git a/theme/boost/templates/maintenance.mustache b/theme/boost/templates/maintenance.mustache index 7cd0596cd9c..d3dc36eec2e 100644 --- a/theme/boost/templates/maintenance.mustache +++ b/theme/boost/templates/maintenance.mustache @@ -51,7 +51,7 @@
-
+
{{{ output.page_heading }}}
diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index cc774896b74..025adc37163 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -25985,6 +25985,10 @@ blockquote { border-left: 5px solid #ced4da; } +.page-header-headings { + background-color: #fff; +} + /* Prevent long strings exceeding page width */ .page-header-headings:not(.text-truncate), .coursename:not(.text-truncate),