Skip to content

Commit

Permalink
Set container minimum height to force footer to bottom of screen. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
peichins committed Nov 29, 2016
1 parent 542890b commit 8bf5ba2
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions src/sass/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,41 @@
@import '_base';

html {
height:100%;
position: relative;
}

// http://getbootstrap.com/components/#navbar-fixed-top
body {
padding-top: $header-padding;
height:100%;

}

.container, .container-fluid {
min-height: calc(100% - 61px);
}
@media (max-width: 662px) {
.container, .container-fluid {
min-height: calc(100% - 101px);
}
}


//taken from: https://github.com/QutBioacoustics/baw-server/blob/develop/app/assets/stylesheets/common.scss#L86
footer {
text-align: center;
padding: $padding-large-vertical $padding-large-horizontal;
margin-top: $footer-padding;
border-top: 1px solid $legend-border-color;
background-color: $panel-footer-bg;

// sticky footer
bottom: 0;
width: 100%;

// the nav layout was achieved using grid classes
.nav {
}
}




@if $DEBUG {
.debug-ui {
width: auto;
Expand Down

0 comments on commit 8bf5ba2

Please sign in to comment.