Created
March 31, 2013 03:07
-
-
Save kwaledesign/5279355 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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