Sha256: 68ddc62b436221fc4b24376e32f49b6eda3dc36d31f4333f4a5ac4d5e4cb8398

Contents?: true

Size: 1.09 KB

Versions: 13

Compression:

Stored size: 1.09 KB

Contents

// 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($using: $default-has-layout-approach) {
  @if $using == zoom {
    @include has-layout-zoom;
  } @else if $using == block {
    @include has-layout-block;
  } @else {
    @warn "Unknown has-layout approach: #{$using}";
    @include has-layout-zoom;
  }
}

@mixin has-layout-zoom {
  *zoom: 1;
}

@mixin has-layout-block {
  // 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) {
  #{$property}: #{$value} !important;
  #{$property}: #{$ie6-value}; }

Version data entries

13 entries across 10 versions & 2 rubygems

Version Path
frontsau-0.0.3 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
frontsau-0.0.3 lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_hacks.scss
frontsau-0.0.2 lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_hacks.scss
frontsau-0.0.2 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
frontsau-0.0.1 lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_hacks.scss
frontsau-0.0.1 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.10.5 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.10.5.pre.1 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.10.4 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.10.4.pre.4 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.10.4.pre.3 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.10.4.pre.2 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss
compass-0.10.3 frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss