From 91932bf7489e5507dbab9e62ceb9da0ba87cbf20 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Mon, 9 Sep 2024 17:00:29 +0800 Subject: [PATCH] MDL-83047 theme_boost: Apply background colour only on select layouts * Apply the styling of `background-color` for `.page-header-headings` only in the maintenance and secure layouts. --- theme/boost/scss/moodle/core.scss | 7 +++++-- theme/boost/style/moodle.css | 3 ++- theme/classic/style/moodle.css | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/theme/boost/scss/moodle/core.scss b/theme/boost/scss/moodle/core.scss index bed084c77a3..39e1a463ff6 100644 --- a/theme/boost/scss/moodle/core.scss +++ b/theme/boost/scss/moodle/core.scss @@ -3127,8 +3127,11 @@ blockquote { border-left: 5px solid $gray-500; } -.page-header-headings { - background-color: $body-bg; +.pagelayout-maintenance, +.pagelayout-secure { + .page-header-headings { + background-color: $body-bg; + } } /* Prevent long strings exceeding page width */ diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 52e76214634..6cd4e3ad347 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -25953,7 +25953,8 @@ blockquote { border-left: 5px solid #8f959e; } -.page-header-headings { +.pagelayout-maintenance .page-header-headings, +.pagelayout-secure .page-header-headings { background-color: #fff; } diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 01d7352bb6a..1f57e728fbf 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -25953,7 +25953,8 @@ blockquote { border-left: 5px solid #8f959e; } -.page-header-headings { +.pagelayout-maintenance .page-header-headings, +.pagelayout-secure .page-header-headings { background-color: #fff; }