mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-83513 theme_boost: Remove mediumwidth layout size
This commit is contained in:
parent
269a8a8a1b
commit
7aee0a3aaa
12 changed files with 7 additions and 48 deletions
|
@ -121,7 +121,7 @@ if ($rid) {
|
||||||
$PAGE->navbar->add(get_string('editentry', 'data'));
|
$PAGE->navbar->add(get_string('editentry', 'data'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$PAGE->add_body_class('mediumwidth');
|
$PAGE->add_body_class('limitedwidth');
|
||||||
if ($rid) {
|
if ($rid) {
|
||||||
$pagename = get_string('editentry', 'data');
|
$pagename = get_string('editentry', 'data');
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -123,7 +123,7 @@ if ($mform->is_cancelled()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build header to match the rest of the UI.
|
// Build header to match the rest of the UI.
|
||||||
$PAGE->add_body_class('mediumwidth');
|
$PAGE->add_body_class('limitedwidth');
|
||||||
$pagename = get_string('exportentries', 'data');
|
$pagename = get_string('exportentries', 'data');
|
||||||
$titleparts = [
|
$titleparts = [
|
||||||
$pagename,
|
$pagename,
|
||||||
|
|
|
@ -92,7 +92,7 @@ require_capability('mod/data:managetemplates', $context);
|
||||||
|
|
||||||
$actionbar = new \mod_data\output\action_bar($data->id, $PAGE->url);
|
$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->set_heading($course->fullname);
|
||||||
$PAGE->activityheader->disable();
|
$PAGE->activityheader->disable();
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ if ($form->is_cancelled()) {
|
||||||
/// Print the page header
|
/// Print the page header
|
||||||
$pagename = get_string('uploadrecords', 'data');
|
$pagename = get_string('uploadrecords', 'data');
|
||||||
$PAGE->navbar->add($pagename);
|
$PAGE->navbar->add($pagename);
|
||||||
$PAGE->add_body_class('mediumwidth');
|
$PAGE->add_body_class('limitedwidth');
|
||||||
$titleparts = [
|
$titleparts = [
|
||||||
$pagename,
|
$pagename,
|
||||||
format_string($data->name),
|
format_string($data->name),
|
||||||
|
|
|
@ -70,7 +70,7 @@ require_capability('mod/data:managetemplates', $context);
|
||||||
|
|
||||||
$url = new moodle_url('/mod/data/preset.php', array('d' => $data->id));
|
$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);
|
$PAGE->set_url($url);
|
||||||
$titleparts = [
|
$titleparts = [
|
||||||
get_string('presets', 'data'),
|
get_string('presets', 'data'),
|
||||||
|
|
|
@ -108,7 +108,7 @@ $PAGE->set_heading($course->fullname);
|
||||||
$PAGE->set_pagelayout('admin');
|
$PAGE->set_pagelayout('admin');
|
||||||
$PAGE->force_settings_menu(true);
|
$PAGE->force_settings_menu(true);
|
||||||
$PAGE->activityheader->disable();
|
$PAGE->activityheader->disable();
|
||||||
$PAGE->add_body_class('mediumwidth');
|
$PAGE->add_body_class('limitedwidth');
|
||||||
|
|
||||||
echo $OUTPUT->header();
|
echo $OUTPUT->header();
|
||||||
|
|
||||||
|
|
|
@ -225,7 +225,7 @@ if ($mode == 'asearch') {
|
||||||
$PAGE->navbar->add(get_string('search'));
|
$PAGE->navbar->add(get_string('search'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$PAGE->add_body_class('mediumwidth');
|
$PAGE->add_body_class('limitedwidth');
|
||||||
$titleparts = [
|
$titleparts = [
|
||||||
format_string($data->name),
|
format_string($data->name),
|
||||||
format_string($course->fullname),
|
format_string($course->fullname),
|
||||||
|
|
|
@ -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 {
|
.header-maxwidth {
|
||||||
max-width: $course-content-maxwidth;
|
max-width: $course-content-maxwidth;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
|
@ -24,9 +24,6 @@ body {
|
||||||
body.limitedwidth.uses-drawers & {
|
body.limitedwidth.uses-drawers & {
|
||||||
max-width: $course-content-maxwidth;
|
max-width: $course-content-maxwidth;
|
||||||
}
|
}
|
||||||
body.mediumwidth.uses-drawers & {
|
|
||||||
max-width: $medium-content-maxwidth;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Adjust sticky footer width when drawers are open.
|
// Adjust sticky footer width when drawers are open.
|
||||||
|
|
|
@ -25,7 +25,6 @@ $primary-nav-padding-x: ($spacer * 0.5) !default;
|
||||||
$navbar-height: 60px !default;
|
$navbar-height: 60px !default;
|
||||||
$stickyfooter-height: calc(max(80px, calc(#{$font-size-base} * 3))) !default;
|
$stickyfooter-height: calc(max(80px, calc(#{$font-size-base} * 3))) !default;
|
||||||
$course-content-maxwidth: 830px !default;
|
$course-content-maxwidth: 830px !default;
|
||||||
$medium-content-maxwidth: 1120px !default;
|
|
||||||
$h5p-content-maxwidth: 960px !default;
|
$h5p-content-maxwidth: 960px !default;
|
||||||
|
|
||||||
$box-shadow-drawer-left: -0.25rem .25rem .8rem rgba($black, .025) !default;
|
$box-shadow-drawer-left: -0.25rem .25rem .8rem rgba($black, .025) !default;
|
||||||
|
|
|
@ -36668,9 +36668,6 @@ body {
|
||||||
.pagelayout-standard .stickyfooter .sticky-footer-content, body.limitedwidth.uses-drawers .stickyfooter .sticky-footer-content {
|
.pagelayout-standard .stickyfooter .sticky-footer-content, body.limitedwidth.uses-drawers .stickyfooter .sticky-footer-content {
|
||||||
max-width: 830px;
|
max-width: 830px;
|
||||||
}
|
}
|
||||||
body.mediumwidth.uses-drawers .stickyfooter .sticky-footer-content {
|
|
||||||
max-width: 1120px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.stickyfooter .sticky-footer-content-wrapper {
|
.stickyfooter .sticky-footer-content-wrapper {
|
||||||
transition: 0.2s;
|
transition: 0.2s;
|
||||||
|
@ -37386,15 +37383,6 @@ body.tox-fullscreen .tox.tox-tinymce-aux {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-radius: 0.5rem;
|
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 {
|
.header-maxwidth {
|
||||||
max-width: 830px;
|
max-width: 830px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
|
@ -36602,9 +36602,6 @@ body {
|
||||||
.pagelayout-standard .stickyfooter .sticky-footer-content, body.limitedwidth.uses-drawers .stickyfooter .sticky-footer-content {
|
.pagelayout-standard .stickyfooter .sticky-footer-content, body.limitedwidth.uses-drawers .stickyfooter .sticky-footer-content {
|
||||||
max-width: 830px;
|
max-width: 830px;
|
||||||
}
|
}
|
||||||
body.mediumwidth.uses-drawers .stickyfooter .sticky-footer-content {
|
|
||||||
max-width: 1120px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.stickyfooter .sticky-footer-content-wrapper {
|
.stickyfooter .sticky-footer-content-wrapper {
|
||||||
transition: 0.2s;
|
transition: 0.2s;
|
||||||
|
@ -37320,15 +37317,6 @@ body.tox-fullscreen .tox.tox-tinymce-aux {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-radius: 0.25rem;
|
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 {
|
.header-maxwidth {
|
||||||
max-width: 830px;
|
max-width: 830px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue