Sha256: 0dd4738c441a02ce45720cf5583b1c236fc52fc586693a53e5c67fa2a4dca2e6

Contents?: true

Size: 1.29 KB

Versions: 36

Compression:

Stored size: 1.29 KB

Contents

@import "compass/support";

// The `zoom` approach generates less CSS but does not validate.
// Set this to `block` to use the display-property to hack the
// element to gain layout.
$default-has-layout-approach: zoom !default;

// This mixin causes an element matching the selector
// to gain the "hasLayout" property in internet explorer.
// More information on [hasLayout](http://reference.sitepoint.com/css/haslayout).
@mixin has-layout($approach: $default-has-layout-approach) {
  @if $legacy-support-for-ie {
    @if $approach == zoom {
      @include has-layout-zoom;
    } @else if $approach == block {
      @include has-layout-block;
    } @else {
      @warn "Unknown has-layout approach: #{$approach}";
      @include has-layout-zoom;
    }
  }
}

@mixin has-layout-zoom {
  @if $legacy-support-for-ie {
    *zoom: 1;
  }
}

@mixin has-layout-block {
  @if $legacy-support-for-ie {
    // This makes ie6 get layout
    display: inline-block;
    // and this puts it back to block
    & { display: block; }
  }
}

// A hack to supply IE6 (and below) with a different property value.
// [Read more](http://www.cssportal.com/css-hacks/#in_css-important).
@mixin bang-hack($property, $value, $ie6-value) {
  @if $legacy-support-for-ie6 {
    #{$property}: #{$value} !important;
    #{$property}: #{$ie6-value};
  }
}

Version data entries

36 entries across 36 versions & 4 rubygems

Version Path
concen-0.2.9 app/assets/stylesheets/concen/compass/utilities/general/_hacks.scss
concen-0.2.8 app/assets/stylesheets/concen/compass/utilities/general/_hacks.scss
compass-0.12.1 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.12.0 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
radiant-1.0.0 ruby-debug/ruby/1.8/gems/compass-0.11.7/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.12.rc.1 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.12.rc.0 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
concen-0.2.7 app/assets/stylesheets/concen/compass/utilities/general/_hacks.scss
compass-0.11.7 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.12.alpha.4 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.12.alpha.3 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.11.6 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
concen-0.2.6 app/assets/stylesheets/concen/compass/utilities/general/_hacks.scss
compass-0.12.alpha.2 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.12.alpha.1 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
concen-0.2.5 app/assets/stylesheets/concen/compass/utilities/general/_hacks.scss
compass-0.12.alpha.0 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-rails31-0.12.0.alpha.0.91a748a frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.11.5 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.11.4 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss