Browse code

Make sticky footer more configurable

Benjamin Roth authored on29/09/2015 11:17:32
Showing1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 /**
2 2
  * Sticky footer
3 3
  */
4
-@mixin set-sticky-footer($height, $padding: 30px) {
4
+@mixin set-sticky-footer($height, $padding: 30px, $cssId: footer) {
5 5
   html {
6 6
 	height: 100%;
7 7
   }
... ...
@@ -14,14 +14,16 @@
14 14
   #wrapper {
15 15
 	padding-bottom: $height + $padding;
16 16
   }
17
-  #footer {
17
+  ##{$cssId} {
18 18
 	position: absolute;
19 19
 	bottom: 0;
20 20
 	left: 0;
21 21
 	right: 0;
22
+  	height: $height;
23
+	overflow: hidden;
22 24
 
23 25
 	.inside {
24
-	  height: $height;
26
+	  height: 100%;
25 27
 	}
26 28
   }
27 29
 }
28 30
\ No newline at end of file