Sha256: 57a90ca3c4fceac41a61992ba3314641383c515d30d2cd3a7f4e9cb4ded65b05

Contents?: true

Size: 1.4 KB

Versions: 9

Compression:

Stored size: 1.4 KB

Contents

//////////////////////////////
// Legacy Clearfix
//
// For when you need full Legacy support, including old IE and old Firefox
//
// From http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
//////////////////////////////
%clearfix-legacy {
  /* 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;
  }
}

//////////////////////////////
// Micro Clearfix
//
// For when you need old IE support, but not concerned with old Firefox
// From http://nicolasgallagher.com/better-float-containment-in-ie/
//////////////////////////////
%clearfix-micro {
  /* 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;
  }
}

//////////////////////////////
// Modern Clearfix
//
// Clearfix for modern browsers, especiall when using border-box
//
// From http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
//////////////////////////////
%clearfix:after {
  content: "";
  display: table;
  clear: both;
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
toolkit-0.1.18 stylesheets/toolkit/_clearfix.scss
toolkit-0.1.17 stylesheets/toolkit/_clearfix.scss
toolkit-0.1.16 stylesheets/toolkit/_clearfix.scss
toolkit-0.1.15 stylesheets/toolkit/_clearfix.scss
toolkit-0.1.14 stylesheets/toolkit/_clearfix.scss
toolkit-0.1.13 stylesheets/toolkit/_clearfix.scss
toolkit-0.1.12 stylesheets/toolkit/_clearfix.scss
toolkit-0.1.10 stylesheets/toolkit/_clearfix.scss
toolkit-0.1.9 stylesheets/toolkit/_clearfix.scss