Sha256: 234fb9b114bc5f974608de46de924d07d45951ee2a1df81351de418e07b33763

Contents?: true

Size: 1.32 KB

Versions: 23

Compression:

Stored size: 1.32 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-ie6 or $legacy-support-for-ie7 {
    *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

23 entries across 22 versions & 5 rubygems

Version Path
egghead-styles-1.0.82 app/assets/stylesheets/plugins/compass/compass/utilities/general/_hacks.scss
egghead-styles-1.0.81 app/assets/stylesheets/plugins/compass/compass/utilities/general/_hacks.scss
egghead-styles-1.0.80 app/assets/stylesheets/plugins/compass/compass/utilities/general/_hacks.scss
egghead-styles-1.0.79 app/assets/stylesheets/plugins/compass/compass/utilities/general/_hacks.scss
egghead-styles-1.0.78 app/assets/stylesheets/plugins/compass/compass/utilities/general/_hacks.scss
egghead-styles-1.0.77 app/assets/stylesheets/plugins/compass/compass/utilities/general/_hacks.scss
egghead-styles-1.0.76 app/assets/stylesheets/plugins/compass/compass/utilities/general/_hacks.scss
egghead-styles-1.0.75 app/assets/stylesheets/plugins/compass/compass/utilities/general/_hacks.scss
egghead-styles-1.0.74 app/assets/stylesheets/plugins/compass/compass/utilities/general/_hacks.scss
egghead-styles-1.0.73 app/assets/stylesheets/plugins/compass/compass/utilities/general/_hacks.scss
compass-0.12.7 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.12.6 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.12.5 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.12.4 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.12.3 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-sourcemaps-0.12.4.sourcemaps.a4836f1 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
simple-compass-0.0.1 sass/compass/utilities/general/_hacks.scss
compass-0.12.2 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss