Sha256: a4b92a7d3e99f94f5b5161872bed11dfb943daf2ce798be8046606d65cb50516

Contents?: true

Size: 1.32 KB

Versions: 23

Compression:

Stored size: 1.32 KB

Contents

@import "compass/support";

// The legacy support threshold for float.
// Defaults to the $critical-usage-threshold.
$legacy-float-support-threshold: $critical-usage-threshold !default;

// Implementation of float:left with fix for the
// [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html)
@mixin float-left {
  @include float(left); }

// Implementation of float:right with fix for the
// [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html)
@mixin float-right {
  @include float(right); }

// Direction independent float mixin that fixes the
// [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html)
@mixin float($side: left) {
  float: unquote($side);
  @if support-legacy-browser("ie", "6", $threshold: $legacy-float-support-threshold) {
    display: inline; } }

// 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;
  @if support-legacy-browser("ie", "6", $threshold: $legacy-float-support-threshold) {
    display: $display; } }

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/compass-core-1.0.3/stylesheets/compass/utilities/general/_float.scss
gem_2345-0.1.2 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.3 stylesheets/compass/utilities/general/_float.scss
compass-core-1.1.0.alpha.3 stylesheets/compass/utilities/general/_float.scss
compass-core-1.1.0.alpha.2 stylesheets/compass/utilities/general/_float.scss
compass-core-1.1.0.alpha.1 stylesheets/compass/utilities/general/_float.scss
compass-core-1.1.0.alpha.0 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.1 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0.rc.1 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0.rc.0 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0.alpha.21 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0.alpha.20 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0.alpha.19 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0.alpha.17 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0.alpha.16 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0.alpha.15 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0.alpha.14 stylesheets/compass/utilities/general/_float.scss
compass-core-1.0.0.alpha.13 stylesheets/compass/utilities/general/_float.scss
compass-0.13.alpha.12 frameworks/compass/stylesheets/compass/utilities/general/_float.scss