From cb6068c9a351cd43111e7a89f2c69c095a3eeec6 Mon Sep 17 00:00:00 2001 From: David Oliver Date: Thu, 12 May 2011 23:07:54 +0200 Subject: [PATCH] Adding Micro Clearfix which is new and uses less CSS than PIE Clearfix --- .../compass/utilities/general/_clearfix.scss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss b/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss index 2c097cc1..2959e5ae 100644 --- a/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss +++ b/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss @@ -29,3 +29,16 @@ } @include has-layout; } + +// An update to the PIE clearfix method that reduces the amount of CSS required +// [A new micro clearfix hack](http://nicolasgallagher.com/micro-clearfix-hack/) (25 April 2011) +@mixin micro-clearfix { + &:before, &:after { + content: ""; + display: table; + } + &:after { + clear: both; + } + @include has-layout; +}