Skip to content

Commit

Permalink
MDL-83513 theme_boost: Remove mediemwidth layout size
Browse files Browse the repository at this point in the history
  • Loading branch information
roland04 committed Oct 30, 2024
1 parent ec7711b commit 420b6a3
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 47 deletions.
2 changes: 1 addition & 1 deletion mod/data/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion mod/data/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion mod/data/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion mod/data/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion mod/data/preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion mod/data/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion mod/data/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
13 changes: 0 additions & 13 deletions theme/boost/scss/moodle/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions theme/boost/scss/moodle/sticky-footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 0 additions & 12 deletions theme/boost/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
12 changes: 0 additions & 12 deletions theme/classic/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 420b6a3

Please sign in to comment.