Skip to content

Instantly share code, notes, and snippets.

@kwaledesign
Created March 31, 2013 03:07
Show Gist options
  • Save kwaledesign/5279355 to your computer and use it in GitHub Desktop.
Save kwaledesign/5279355 to your computer and use it in GitHub Desktop.
/**
* Clearfix
*
*/
/**
* Modern Clearfix
*
* no legacy support, but works well for modern browsers and border-box
* http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
*
* see compass docs for legacy clearfix options
*/
@mixin a-clearfix() {
&:after {
content: "";
display: table;
clear: both;
}
}
%cf {
@include a-clearfix();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment