Skip to content

Commit 09a7ff1

Browse files
committed
push the footer at the bottom
1 parent 92099fe commit 09a7ff1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

theme/assets/styles/common/_global.scss

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@ a:active {
44
text-decoration: none;
55
}
66

7-
.content {
7+
// to always move the footer at the bottom of the page
8+
body {
9+
display: flex;
10+
flex-direction: column;
11+
min-height: 100vh;
812
}
913

14+
.wrap {
15+
flex: 1;
16+
}
17+
18+
1019
body.sidebar-primary,
1120
body.page:not(.home) {
1221
.main,

theme/assets/styles/layouts/_footer.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ $footer-font-color: #e4f7f7 !default;
33
.footer {
44
background-color: $footer-bg;
55
color: $footer-font-color;
6+
clear: both;
67

78
.footer__main {
89
@include make-row();
@@ -80,5 +81,5 @@ $footer-font-color: #e4f7f7 !default;
8081

8182
}
8283
}
83-
84+
8485
}

0 commit comments

Comments
 (0)