Skip to content

Commit

Permalink
Merge pull request #433 from asdil12/footer_not_fixed
Browse files Browse the repository at this point in the history
Remove footer css-fixed property
  • Loading branch information
coolo committed Sep 17, 2015
2 parents fa73930 + 80e769d commit 9175a10
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 9175a10

Please sign in to comment.