Sha256: 9371c70ed61b68882a3804c5e748ab21c7b13bc2ec17097d7e3b97521ca0d352

Contents?: true

Size: 793 Bytes

Versions: 28

Compression:

Stored size: 793 Bytes

Contents

// -----------------------------------------
// STICKY FOOTER
// Slight modification from Compass' footer
// Structure must be:
// <body>
//   <div id="main-wrapper">
//     ...
//     <div id="footer-push"></div>
//   </div>
//   <footer class="main-footer"></footer>
// </body>
// -----------------------------------------

@mixin sticky-footer(
  $height,
  $wrapper       : "#main-wrapper",
  $footer-push   : "#footer-push",
  $footer        : ".main-footer" ) {

  html, body {
    height : 100%;
  }

  #{$wrapper} {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto ($height * -1);
  }
  
  #{$footer},
  #{$footer-push} {
    margin: 0 auto;
    height: $height;
  }

  #{$footer} {
    height : auto;
  }
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
edge_framework-1.2.0 assets/sass/edge/helpers/_sticky-footer.scss
edge_framework-1.1.0 assets/sass/edge/helpers/_sticky-footer.scss
edge_framework-1.0.0 assets/sass/edge/helpers/_sticky-footer.scss
edge_framework-0.10.0 assets/sass/edge/helpers/_sticky-footer.scss
edge_framework-0.9.12 assets/sass/edge/helpers/_sticky-footer.scss
edge_framework-0.9.11 assets/sass/edge/helpers/_sticky-footer.scss
edge_framework-0.9.10 assets/sass/edge/helpers/_sticky-footer.scss
edge_framework-0.9.9 assets/sass/edge/helpers/_sticky-footer.scss