From 420b6a30c62e2fac99b26a1f30c49e20a729aae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Mart=C3=ADn?= Date: Wed, 30 Oct 2024 12:25:30 +0100 Subject: [PATCH] MDL-83513 theme_boost: Remove mediemwidth layout size --- mod/data/edit.php | 2 +- mod/data/export.php | 2 +- mod/data/field.php | 2 +- mod/data/import.php | 2 +- mod/data/preset.php | 2 +- mod/data/templates.php | 2 +- mod/data/view.php | 2 +- theme/boost/scss/moodle/layout.scss | 13 ------------- theme/boost/scss/moodle/sticky-footer.scss | 3 --- theme/boost/style/moodle.css | 12 ------------ theme/classic/style/moodle.css | 12 ------------ 11 files changed, 7 insertions(+), 47 deletions(-) diff --git a/mod/data/edit.php b/mod/data/edit.php index 15526345708f1..9b72fcc71d00a 100644 --- a/mod/data/edit.php +++ b/mod/data/edit.php @@ -121,7 +121,7 @@ $PAGE->navbar->add(get_string('editentry', 'data')); } -$PAGE->add_body_class('mediumwidth'); +$PAGE->add_body_class('limitedwidth'); if ($rid) { $pagename = get_string('editentry', 'data'); } else { diff --git a/mod/data/export.php b/mod/data/export.php index c9ee8b3dd5274..39bfff7aee9cc 100644 --- a/mod/data/export.php +++ b/mod/data/export.php @@ -123,7 +123,7 @@ } // Build header to match the rest of the UI. -$PAGE->add_body_class('mediumwidth'); +$PAGE->add_body_class('limitedwidth'); $pagename = get_string('exportentries', 'data'); $titleparts = [ $pagename, diff --git a/mod/data/field.php b/mod/data/field.php index 441ccfb3171db..c91c8c0228dda 100644 --- a/mod/data/field.php +++ b/mod/data/field.php @@ -92,7 +92,7 @@ $actionbar = new \mod_data\output\action_bar($data->id, $PAGE->url); -$PAGE->add_body_class('mediumwidth'); +$PAGE->add_body_class('limitedwidth'); $PAGE->set_heading($course->fullname); $PAGE->activityheader->disable(); diff --git a/mod/data/import.php b/mod/data/import.php index 37b52c795d4b2..e5346f828b18f 100644 --- a/mod/data/import.php +++ b/mod/data/import.php @@ -78,7 +78,7 @@ /// Print the page header $pagename = get_string('uploadrecords', 'data'); $PAGE->navbar->add($pagename); -$PAGE->add_body_class('mediumwidth'); +$PAGE->add_body_class('limitedwidth'); $titleparts = [ $pagename, format_string($data->name), diff --git a/mod/data/preset.php b/mod/data/preset.php index 147cafafb584c..dd6cc23c8047d 100644 --- a/mod/data/preset.php +++ b/mod/data/preset.php @@ -70,7 +70,7 @@ $url = new moodle_url('/mod/data/preset.php', array('d' => $data->id)); -$PAGE->add_body_class('mediumwidth'); +$PAGE->add_body_class('limitedwidth'); $PAGE->set_url($url); $titleparts = [ get_string('presets', 'data'), diff --git a/mod/data/templates.php b/mod/data/templates.php index 8ec274aaa7d93..f97d92529ed54 100644 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -108,7 +108,7 @@ $PAGE->set_pagelayout('admin'); $PAGE->force_settings_menu(true); $PAGE->activityheader->disable(); -$PAGE->add_body_class('mediumwidth'); +$PAGE->add_body_class('limitedwidth'); echo $OUTPUT->header(); diff --git a/mod/data/view.php b/mod/data/view.php index 306c505c0c571..1cff81f5d23b1 100644 --- a/mod/data/view.php +++ b/mod/data/view.php @@ -225,7 +225,7 @@ $PAGE->navbar->add(get_string('search')); } -$PAGE->add_body_class('mediumwidth'); +$PAGE->add_body_class('limitedwidth'); $titleparts = [ format_string($data->name), format_string($course->fullname), diff --git a/theme/boost/scss/moodle/layout.scss b/theme/boost/scss/moodle/layout.scss index d00602f86a17b..9a23b8ac1a408 100644 --- a/theme/boost/scss/moodle/layout.scss +++ b/theme/boost/scss/moodle/layout.scss @@ -68,19 +68,6 @@ } } } - body.mediumwidth { - #page.drawers { - .main-inner { - max-width: $medium-content-maxwidth; - } - .footer-popover { - max-width: $medium-content-maxwidth; - width: 100%; - margin: 0 auto; - @include border-radius(); - } - } - } .header-maxwidth { max-width: $course-content-maxwidth; margin: 0 auto; diff --git a/theme/boost/scss/moodle/sticky-footer.scss b/theme/boost/scss/moodle/sticky-footer.scss index a4eddbdb4f01d..0057e7da922f6 100644 --- a/theme/boost/scss/moodle/sticky-footer.scss +++ b/theme/boost/scss/moodle/sticky-footer.scss @@ -24,9 +24,6 @@ body { body.limitedwidth.uses-drawers & { max-width: $course-content-maxwidth; } - body.mediumwidth.uses-drawers & { - max-width: $medium-content-maxwidth; - } } } // Adjust sticky footer width when drawers are open. diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index a78947448ab18..ba786171bffac 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -36656,9 +36656,6 @@ body { .pagelayout-standard .stickyfooter .sticky-footer-content, body.limitedwidth.uses-drawers .stickyfooter .sticky-footer-content { max-width: 830px; } - body.mediumwidth.uses-drawers .stickyfooter .sticky-footer-content { - max-width: 1120px; - } } .stickyfooter .sticky-footer-content-wrapper { transition: 0.2s; @@ -37374,15 +37371,6 @@ body.tox-fullscreen .tox.tox-tinymce-aux { margin: 0 auto; border-radius: 0.5rem; } - body.mediumwidth #page.drawers .main-inner { - max-width: 1120px; - } - body.mediumwidth #page.drawers .footer-popover { - max-width: 1120px; - width: 100%; - margin: 0 auto; - border-radius: 0.5rem; - } .header-maxwidth { max-width: 830px; margin: 0 auto; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 73d9e67395d0c..77dbdad84b7a0 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -36590,9 +36590,6 @@ body { .pagelayout-standard .stickyfooter .sticky-footer-content, body.limitedwidth.uses-drawers .stickyfooter .sticky-footer-content { max-width: 830px; } - body.mediumwidth.uses-drawers .stickyfooter .sticky-footer-content { - max-width: 1120px; - } } .stickyfooter .sticky-footer-content-wrapper { transition: 0.2s; @@ -37308,15 +37305,6 @@ body.tox-fullscreen .tox.tox-tinymce-aux { margin: 0 auto; border-radius: 0.25rem; } - body.mediumwidth #page.drawers .main-inner { - max-width: 1120px; - } - body.mediumwidth #page.drawers .footer-popover { - max-width: 1120px; - width: 100%; - margin: 0 auto; - border-radius: 0.25rem; - } .header-maxwidth { max-width: 830px; margin: 0 auto;