From f77fe1c6522fb29cf58f42411094e0ec861090fa Mon Sep 17 00:00:00 2001 From: David Woloszyn Date: Thu, 8 Jun 2023 15:52:42 +1000 Subject: [PATCH] MDL-78237 css: Make navbar height available for non sass-use --- theme/boost/scss/moodle/navbar.scss | 5 +++++ theme/boost/style/moodle.css | 4 ++++ theme/classic/style/moodle.css | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/theme/boost/scss/moodle/navbar.scss b/theme/boost/scss/moodle/navbar.scss index 12dade818b4..92bd367bf7d 100644 --- a/theme/boost/scss/moodle/navbar.scss +++ b/theme/boost/scss/moodle/navbar.scss @@ -169,3 +169,8 @@ .pagelayout-embedded #page { margin-top: 0; } + +// Make navbar height available for non-sass use. +:root { + --navbar-height: #{$navbar-height}; +} diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 63f7ea3f261..bcc6c498da6 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -36869,6 +36869,10 @@ div.editor_atto_toolbar button .icon { margin-top: 0; } +:root { + --navbar-height: 60px; +} + /** * Reportbuilder. */ diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 0769900c37b..d160ce02a6e 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -36803,6 +36803,10 @@ div.editor_atto_toolbar button .icon { margin-top: 0; } +:root { + --navbar-height: 50px; +} + /** * Reportbuilder. */