Skip to content

Commit 249ae73

Browse files
committed
Fix footer overflow
1 parent 42ab161 commit 249ae73

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

layout/drawers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
// Add block button in editing mode.
3333
$addblockbutton = $OUTPUT->addblockbutton();
3434

35-
// Get theme settings
35+
// Get theme settings.
3636
$pluginsettings = get_config("theme_trema");
3737

3838
if ($CFG->branch <= 402) {

scss/trema/footer.scss

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,41 @@
11
body.uses-drawers {
22
@media screen and (min-width: 576px) {
3-
#page.drawers footer#page-footer,
4-
footer#page-footer {
3+
#page.drawers footer#page-footer {
54
margin-left: -3rem;
65
margin-right: -3rem;
76
width: calc(100% + 6rem);
87
}
98
}
109

11-
.show-drawer-right {
10+
#page.drawers.show-drawer-right {
1211
footer#page-footer {
1312
margin-right: 0;
13+
width: calc(100% + 3rem);
1414
}
1515
}
1616

17-
.show-drawer-left {
17+
#page.drawers.show-drawer-left {
1818
footer#page-footer {
1919
margin-left: 0;
20+
width: calc(100% + 3rem);
2021
}
2122
}
23+
24+
#page.drawers.show-drawer-right.show-drawer-left {
25+
footer#page-footer {
26+
margin-left: 0;
27+
margin-right: 0;
28+
width: 100%;
29+
}
30+
}
31+
}
32+
33+
body.uses-drawers#page-site-index {
34+
#page.drawers footer#page-footer {
35+
margin-left: 0;
36+
margin-right: 0;
37+
width: 100%;
38+
}
2239
}
2340

2441
.btn-footer-popover {

0 commit comments

Comments
 (0)