]> git.ipfire.org Git - ipfire.org.git/commitdiff
Make footer sticky
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 30 Sep 2018 16:26:05 +0000 (17:26 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 30 Sep 2018 16:26:05 +0000 (17:26 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scss/_variables.scss
src/scss/style.scss

index 6693384a4c170139f92d65253f02b5176b5974ac..015eef484293ca326b85972169d5ee3d0911744a 100644 (file)
@@ -89,3 +89,6 @@ $input-btn-padding-y:         .5rem;
 
 // Buttons
 $btn-border-width:                     3px;
+
+// Footer
+$footer-height:                                22rem;
index 2f481da37f89a427955a2f2716bbd5fd1fad6112..89aa7e0a56786bcaaa7201a665d024bfeb3da36a 100644 (file)
        color: $body-bg;
 }
 
-body {
-       // For scrollspy
+html {
        position: relative;
+       min-height: 100%;
+}
 
+body {
        padding-top: 6rem;
+       margin-bottom: $footer-height;
 }
 
 // Buttons
@@ -101,6 +104,11 @@ body {
 }
 
 footer {
+       position: absolute;
+       bottom: 0;
+       width: 100%;
+       height: $footer-height;
+
        .btn-toolbar .icon {
                height: 2.25rem;
                width: 2.25rem;