Merge pull request #6224 from svbergerem/sticky-footer

Sticky footer
This commit is contained in:
Dennis Schubert 2015-07-22 04:21:18 +02:00
commit 3210fb3835
5 changed files with 22 additions and 25 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -1,28 +1,29 @@
html {
min-height: 100%;
position: relative;
}
body { margin-bottom: 150px; }
footer { footer {
width: 100%; background-color: $background-grey;
left: 0; border-top: 1px solid $border-grey;
bottom: 0; bottom: 0;
color: $text-grey; max-height: 130px;
padding-top: 15px;
padding-bottom: 15px;
position: absolute;
width: 100%;
.container { .powered-by-diaspora {
width: 95%; color: $link-grey;
margin: 4em auto 0 auto; font-weight: bold;
padding: 0.5em 0 1em 0;
border-top: 1px solid $border-grey;
}
.logos-powered_by_diaspora {
display: inline-block;
margin-top: 3px;
height: 11px;
width: 145px;
} }
ul#footer_nav { ul#footer_nav {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline-block; display: inline-block;
float: right;
> li { > li {
display: inline; display: inline;

View file

@ -6,7 +6,7 @@
@import 'entypo'; @import 'entypo';
@import 'icons'; @import 'icons';
@import "header"; @import "mobile/header";
@import "mobile/tags"; @import "mobile/tags";
@import "mobile/conversations"; @import "mobile/conversations";
@import "mobile/settings"; @import "mobile/settings";

View file

@ -1,9 +1,3 @@
html,
body {
/* hack to ensure fixed elements at height: 100%; are in relation to the window */
max-height : 100%;
}
body { body {
margin-top: 50px; margin-top: 50px;
padding : none; padding : none;

View file

@ -1,5 +1,7 @@
%footer %footer
.container .container
.logos-powered_by_diaspora .pull-left
%ul#footer_nav .powered-by-diaspora
powered by diaspora*
%ul#footer_nav.pull-right
= render :partial =>'shared/links' = render :partial =>'shared/links'