Skip to content

Commit

Permalink
Remove footer css-fixed property
Browse files Browse the repository at this point in the history
... but make sure that the footer still will be
shown at the bottom of the page when there is
no scrollbar
  • Loading branch information
asdil12 committed Sep 14, 2015
1 parent 26adde0 commit 80e769d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 13 additions & 5 deletions public/sass/bento/footer.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
html {
position: relative;
html, body {
margin: 0;
padding: 0;
height: 100%;
}

#wrapper {
min-height: 100%;
position: relative;
}
body {

#wrapper > :nth-last-child(2) {
/* Margin bottom by footer height */
margin-bottom: $baseFontSize*1.5+15px;
padding-bottom: $baseFontSize*1.5+15px;
}

.footer {
Expand All @@ -20,8 +27,9 @@ body {

height: $baseFontSize*1.5+15px;
background-color: $bodyBackground;
position: fixed;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
}

2 changes: 2 additions & 0 deletions templates/layouts/bootstrap.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

</head>
<body>
<div id="wrapper">
<nav class='container-fluid navbar navbar-default navbar-static-top'>
<div class='navbar-inner'>
<div class='container'>
Expand Down Expand Up @@ -93,5 +94,6 @@
</div>
</div>
</footer>
</div>
</body>
</html>

0 comments on commit 80e769d

Please sign in to comment.