From d30ffdbb5a8c6526c23ac303e3cb9fe520903f87 Mon Sep 17 00:00:00 2001 From: Jake Dallimore Date: Fri, 4 Apr 2025 15:52:29 +0800 Subject: [PATCH] MDL-85092 themes: exclude navbar when printing pages Bootstrap 5 removed _print.scss which included print-specific styles, including one for hiding the nav. This just re-introduces a single style override for the navbar. Any other print-specific styles removed in BS5 are left as removed. --- theme/boost/scss/moodle/print.scss | 4 ++++ theme/boost/style/moodle.css | 3 +++ theme/classic/style/moodle.css | 3 +++ 3 files changed, 10 insertions(+) diff --git a/theme/boost/scss/moodle/print.scss b/theme/boost/scss/moodle/print.scss index b73b41706ca..5d91753dbfe 100644 --- a/theme/boost/scss/moodle/print.scss +++ b/theme/boost/scss/moodle/print.scss @@ -9,4 +9,8 @@ .container { width: auto; } + + .navbar { + display: none; + } } diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index c1e1dfcab4d..627d70400bc 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -38909,6 +38909,9 @@ span[data-flexitour=container][x-placement=right] div[data-role=arrow]:after, sp .container { width: auto; } + .navbar { + display: none; + } } .modal .modal-body > .loading-icon { display: block; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 4fee6887100..8e3e694ec00 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -38843,6 +38843,9 @@ span[data-flexitour=container][x-placement=right] div[data-role=arrow]:after, sp .container { width: auto; } + .navbar { + display: none; + } } .modal .modal-body > .loading-icon { display: block;