Sha256: cd309c1b7cfad75a96506832888283acb9e565019485add8b78a28ad38083ab3

Contents?: true

Size: 577 Bytes

Versions: 63

Compression:

Stored size: 577 Bytes

Contents

// Based on http://ryanfait.com/resources/footer-stick-to-bottom-of-page/
// Mix into the top level.
// Footer element must be outside of root wrapper element.
// Footer must be a fixed height.

=sticky-footer(!footer_height, !root_selector = "#root", !root_footer_selector = "#root_footer", !footer_selector = "#footer")
  html, body
    :height 100%
  #{!root_selector}
    :min-height 100%
    :margin-bottom= -!footer_height
    #{!root_footer_selector}
      :height= !footer_height
  #{!footer_selector}
    :clear both
    :position relative
    :height= !footer_height

Version data entries

63 entries across 63 versions & 9 rubygems

Version Path
chriseppstein-compass-0.6.1 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.10 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.11 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.12 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.13 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.14 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.15 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.2 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.3 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.4 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.5 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.6 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.6.7 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.7.0 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.8.0 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.8.1 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.8.10 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.8.11 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.8.12 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
chriseppstein-compass-0.8.13 frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass