From 9b0967eb474c791ff5be7b0510cfdb5a01db6c46 Mon Sep 17 00:00:00 2001 From: Adam Stacoviak Date: Tue, 11 Jan 2011 18:31:36 -0600 Subject: [PATCH] Add reset-float mixin to reset the cross browser float mixins. --- .../compass/utilities/general/_float.scss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/frameworks/compass/stylesheets/compass/utilities/general/_float.scss b/frameworks/compass/stylesheets/compass/utilities/general/_float.scss index c0e2ddbf..914f184d 100644 --- a/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +++ b/frameworks/compass/stylesheets/compass/utilities/general/_float.scss @@ -13,3 +13,18 @@ @mixin float($side: left) { display: inline; float: unquote($side); } + +// Resets floated elements back to their default of `float: none` and defaults +// to `display: block` unless you pass `inline` as an argument +// +// Usage Example: +// +// body.homepage +// #footer li +// +float-left +// body.signup +// #footer li +// +reset-float +@mixin reset-float($display: block) { + float: none; + display: $display; } \ No newline at end of file