Sha256: a6278ecce6c0d23c9367c9ae89b4b59a41ca9e3b4ba65e2ef75efc95b2b0a015

Contents?: true

Size: 1.13 KB

Versions: 11

Compression:

Stored size: 1.13 KB

Contents

$legacy-support-for-ie6: false !default;
$legacy-support-for-ie7: false !default;
$legacy-support-for-mozilla: false !default;

@mixin clearfix {
  @if $legacy-support-for-ie6 and $legacy-support-for-ie7 and not $legacy-support-for-mozilla {
    /* for IE 6/7 */
    *zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif");
    /* non-JS fallback */
    *zoom: 1;

    &:before,
    &:after {
      content: "";
      display: table;
    }

    &:after {
      clear: both;
    }
  }
  @else if $legacy-support-for-ie6 and $legacy-support-for-ie7 and $legacy-support-for-mozilla {
    /* for IE 6/7 */
    *zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif");
    /* non-JS fallback */
    *zoom: 1;

    &:before,
    &:after {
      content: ".";
      display: block;
      height: 0;
      overflow: hidden;
    }

    &:after {
      clear: both;
    }
  }
  @else {
    &:after {
      content: "";
      display: table;
      clear: both;
    }
  }
}

%clearfix {
  @include clearfix;
}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
singularitygs-1.1.0 stylesheets/singularitygs/helpers/_clearfix.scss
singularitygs-1.0.8 stylesheets/singularitygs/helpers/_clearfix.scss
singularitygs-1.0.7 stylesheets/singularitygs/helpers/_clearfix.scss
singularitygs-1.0.6 stylesheets/singularitygs/helpers/_clearfix.scss
singularitygs-1.0.5 stylesheets/singularitygs/helpers/_clearfix.scss
singularitygs-1.0.4 stylesheets/singularitygs/helpers/_clearfix.scss
singularitygs-1.0.3 stylesheets/singularitygs/helpers/_clearfix.scss
singularitygs-1.0.2 stylesheets/singularitygs/helpers/_clearfix.scss
singularitygs-1.0.1 stylesheets/singularitygs/helpers/_clearfix.scss
singularitygs-1.0.0 stylesheets/singularitygs/helpers/_clearfix.scss
susy-2.0.0.alpha.1 sass/susy/helpers/_clearfix.scss