Merge branch 'MDL-74045-master' of https://github.com/bmbrands/moodle
This commit is contained in:
@@ -1088,6 +1088,21 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.path-admin-tool-componentlibrary #page.drawers {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.path-admin-tool-componentlibrary #page.drawers .main-inner {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.path-admin-tool-componentlibrary #page.drawers div[role="main"] {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.path-admin-tool-componentlibrary #page-header,
|
||||
.path-admin-tool-componentlibrary #maincontent,
|
||||
.path-admin-tool-componentlibrary .secondarynavigation {
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -1,4 +1,16 @@
|
||||
.path-admin-tool-componentlibrary {
|
||||
#page.drawers {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
.main-inner {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
div[role="main"] {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
#page-header,
|
||||
#maincontent,
|
||||
.secondarynavigation {
|
||||
|
||||
@@ -4998,6 +4998,10 @@ EOD;
|
||||
*/
|
||||
public function addblockbutton($region = ''): string {
|
||||
$addblockbutton = '';
|
||||
$regions = $this->page->blocks->get_regions();
|
||||
if (count($regions) == 0) {
|
||||
return '';
|
||||
}
|
||||
if (isset($this->page->theme->addblockposition) &&
|
||||
$this->page->user_is_editing() &&
|
||||
$this->page->user_can_edit_blocks() &&
|
||||
|
||||
@@ -38,7 +38,7 @@ $THEME->scss = function($theme) {
|
||||
$THEME->layouts = [
|
||||
// Most backwards compatible layout without the blocks.
|
||||
'base' => array(
|
||||
'file' => 'columns2.php',
|
||||
'file' => 'drawers.php',
|
||||
'regions' => array(),
|
||||
),
|
||||
// Standard layout with blocks.
|
||||
|
||||
Reference in New Issue
Block a user