Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Affix the footer to the bottom of the screen
Fixes #2661
- Loading branch information
Showing
4 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Styles below keep footer at bottom of viewport | ||
html { | ||
position: relative; | ||
min-height: 100%; | ||
} | ||
|
||
body { | ||
margin-bottom: $footer-height + $footer-top-margin; | ||
} | ||
|
||
.site-footer { | ||
margin-top: $footer-top-margin; | ||
padding: 10px; | ||
|
||
// Styles below keep footer at bottom of viewport | ||
position: absolute; | ||
bottom: 0; | ||
height: $footer-height; | ||
width: 100%; | ||
} | ||
|
||
@media (max-width: $screen-sm) { | ||
// make more room in the footer for mobile devices | ||
body { | ||
margin-bottom: 2 * $footer-height + $footer-top-margin; | ||
} | ||
.site-footer { | ||
height: 2 * $footer-height; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters