Add reset-float mixin to reset the cross browser float mixins.

This commit is contained in:
Adam Stacoviak 2011-01-11 18:31:36 -06:00 committed by Chris Eppstein
parent 8a8ef87e48
commit 9b0967eb47

View File

@ -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; }