MDL-75597 mod_data: content max width
This commit is contained in:
@@ -121,6 +121,7 @@ if ($rid) {
|
||||
$PAGE->navbar->add(get_string('editentry', 'data'));
|
||||
}
|
||||
|
||||
$PAGE->add_body_class('mediumwidth');
|
||||
$PAGE->set_title($data->name);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->force_settings_menu(true);
|
||||
|
||||
@@ -112,6 +112,7 @@ if ($mform->is_cancelled()) {
|
||||
}
|
||||
|
||||
// Build header to match the rest of the UI.
|
||||
$PAGE->add_body_class('mediumwidth');
|
||||
$PAGE->set_title($data->name);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->force_settings_menu(true);
|
||||
|
||||
@@ -107,6 +107,7 @@ $formimportzip->set_data(array('d' => $data->id));
|
||||
|
||||
$actionbar = new \mod_data\output\action_bar($data->id, $PAGE->url);
|
||||
|
||||
$PAGE->add_body_class('mediumwidth');
|
||||
$PAGE->set_title(get_string('course') . ': ' . $course->fullname);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->activityheader->disable();
|
||||
|
||||
@@ -77,6 +77,7 @@ if ($form->is_cancelled()) {
|
||||
|
||||
/// Print the page header
|
||||
$PAGE->navbar->add(get_string('add', 'data'));
|
||||
$PAGE->add_body_class('mediumwidth');
|
||||
$PAGE->set_title($data->name);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_secondary_active_tab('modulepage');
|
||||
|
||||
@@ -70,6 +70,7 @@ require_capability('mod/data:managetemplates', $context);
|
||||
|
||||
$url = new moodle_url('/mod/data/preset.php', array('d' => $data->id));
|
||||
|
||||
$PAGE->add_body_class('mediumwidth');
|
||||
$PAGE->set_url($url);
|
||||
$PAGE->set_title(get_string('course') . ': ' . $course->fullname);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
|
||||
@@ -74,7 +74,7 @@ $PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_pagelayout('admin');
|
||||
$PAGE->force_settings_menu(true);
|
||||
$PAGE->activityheader->disable();
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
$PAGE->add_body_class('mediumwidth');
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
||||
|
||||
@@ -225,6 +225,7 @@ if ($mode == 'asearch') {
|
||||
$PAGE->navbar->add(get_string('search'));
|
||||
}
|
||||
|
||||
$PAGE->add_body_class('mediumwidth');
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->force_settings_menu(true);
|
||||
|
||||
@@ -68,6 +68,19 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
|
||||
@@ -24,6 +24,7 @@ $primary-nav-padding-x: ($spacer / 2) !default;
|
||||
|
||||
$navbar-height: 60px !default;
|
||||
$course-content-maxwidth: 830px !default;
|
||||
$medium-content-maxwidth: 1120px !default;
|
||||
$h5p-content-maxwidth: 960px !default;
|
||||
|
||||
$box-shadow-drawer-left: -0.25rem .25rem .8rem rgba($black, .025) !default;
|
||||
|
||||
@@ -20539,6 +20539,13 @@ span[data-flexitour="container"][x-placement="right"], span[data-flexitour="cont
|
||||
width: 100%;
|
||||
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;
|
||||
|
||||
@@ -20485,6 +20485,13 @@ span[data-flexitour="container"][x-placement="right"], span[data-flexitour="cont
|
||||
width: 100%;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user