Sha256: b52d45fc3dba315185a0c469cd2db95872df6e78cac30c5f9bb9f2a86323bbe0

Contents?: true

Size: 525 Bytes

Versions: 55

Compression:

Stored size: 525 Bytes

Contents

// Micro clearfix provides an easy way to contain floats without adding additional markup
//
// Example usage:
//
//    // Contain all floats within .wrapper
//    .wrapper {
//      @include clearfix;
//      .content,
//      .sidebar {
//        float : left;
//      }
//    }

@mixin clearfix {
  *zoom: 1;

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

  &:after {
    clear: both;
  }
}

// Acknowledgements
// Micro clearfix: [Nicolas Gallagher](http://nicolasgallagher.com/micro-clearfix-hack/)

Version data entries

55 entries across 55 versions & 8 rubygems

Version Path
bourbon-3.1.5 app/assets/stylesheets/addons/_clearfix.scss
bourbon-compass-3.1.4 stylesheets/bourbon/addons/_clearfix.scss
bourbon-3.1.4 app/assets/stylesheets/addons/_clearfix.scss
bourbon-compass-3.1.3 stylesheets/bourbon/addons/_clearfix.scss
bourbon-3.1.3 app/assets/stylesheets/addons/_clearfix.scss
bourbon-3.1.2.1 app/assets/stylesheets/addons/_clearfix.scss
bourbon-compass-3.1.1 stylesheets/bourbon/addons/_clearfix.scss
bourbon-3.1.1 app/assets/stylesheets/addons/_clearfix.scss
bourbon-compass-3.1.0 stylesheets/bourbon/addons/_clearfix.scss
bourbon-3.1.0 app/assets/stylesheets/addons/_clearfix.scss
bourbon-compass-3.0.1 stylesheets/bourbon/addons/_clearfix.scss
bourbon-3.0.1 app/assets/stylesheets/addons/_clearfix.scss
bourbon-3.0.0 app/assets/stylesheets/addons/_clearfix.scss
bourbon-compass-2.1.3 stylesheets/bourbon/addons/_clearfix.scss
bourbon-2.1.3 app/assets/stylesheets/addons/_clearfix.scss