Use flexbox to force footer to the bottom of every page

This commit is contained in:
Michael Rose 2019-10-18 10:56:20 -04:00
parent 144155181b
commit 6ee5e61bd5
2 changed files with 16 additions and 5 deletions

View File

@ -9,11 +9,6 @@
margin-right: 0;
width: 100%;
clear: both;
/* sticky footer fix start */
position: absolute;
bottom: 0;
height: auto;
/* sticky footer fix end */
margin-top: 3em;
color: $muted-text-color;
-webkit-animation: $intro-transition;

View File

@ -19,6 +19,22 @@
}
}
body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
min-height: 100vh;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.initial-content,
.search-content {
flex: 1;
}
.page {
@include breakpoint($large) {
float: right;