stylesheets/bourbon/addons/_clearfix.scss in bourbon-compass-3.1.8 vs stylesheets/bourbon/addons/_clearfix.scss in bourbon-compass-3.2.0.beta.1.a

- old
+ new

@@ -1,6 +1,6 @@ -// Micro clearfix provides an easy way to contain floats without adding additional markup +// Modern micro clearfix provides an easy way to contain floats without adding additional markup. // // Example usage: // // // Contain all floats within .wrapper // .wrapper { @@ -10,20 +10,14 @@ // float : left; // } // } @mixin clearfix { - *zoom: 1; - - &:before, &:after { - content: " "; - display: table; + content:""; + display:table; + clear:both; } - - &:after { - clear: both; - } } // Acknowledgements -// Micro clearfix: [Nicolas Gallagher](http://nicolasgallagher.com/micro-clearfix-hack/) +// Beat *that* clearfix: [Thierry Koblentz](http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php)