| 1 |
// Implementation of float:left with fix for the |
| 2 |
// [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html) |
| 3 |
@mixin float-left { |
| 4 |
@include float(left); } |
| 5 |
|
| 6 |
// Implementation of float:right with fix for the |
| 7 |
// [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html) |
| 8 |
@mixin float-right { |
| 9 |
@include float(right); } |
| 10 |
|
| 11 |
// Direction independent float mixin that fixes the |
| 12 |
// [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html) |
| 13 |
@mixin float($side: left) { |
| 14 |
display: inline; |
| 15 |
float: unquote($side); } |
| 16 |
|
| 17 |
// Resets floated elements back to their default of `float: none` and defaults |
| 18 |
// to `display: block` unless you pass `inline` as an argument |
| 19 |
// |
| 20 |
// Usage Example: |
| 21 |
// |
| 22 |
// body.homepage |
| 23 |
// #footer li |
| 24 |
// +float-left |
| 25 |
// body.signup |
| 26 |
// #footer li |
| 27 |
// +reset-float |
| 28 |
@mixin reset-float($display: block) { |
| 29 |
float: none; |
| 30 |
display: $display; } |