Sha256: bf97f70333a82a4a004639435bfb53de3cce8836db7e83ce7919e94607eb1bb8

Contents?: true

Size: 854 Bytes

Versions: 45

Compression:

Stored size: 854 Bytes

Contents

// Cross-browser shims
// Ways of normalising properties across browsers.

@import "_conditionals";

// From: https://blog.mozilla.org/webdev/2009/02/20/cross-browser-inline-block/

// Usage:
//
// @include inline-block
// or
// @include inline-block("250px")
//
// which gives a min-height to the inline-block elements.


@mixin inline-block($min-height: "") {
  display: -moz-inline-stack;
  display: inline-block;

  @if $min-height != "" {
    min-height: $min-height;
  }

  @include ie-lte(7) {
    zoom: 1;
    display: inline;
  }

  @include ie(6) {
    @if $min-height != "" {
      height: $min-height;
    }
  }
}


// Contain floats usage:
//
// .this-has-floated-children {
//  @extend %contain-floats;
// }


%contain-floats {
  &:after {
    content: "";
    display: block;
    clear: both;
  }
  @include ie-lte(7) {
    zoom: 1;
  }
}

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
govuk_frontend_toolkit-4.8.1 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.8.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.7.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.6.1 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.6.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.5.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.4.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.3.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.2.1 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.2.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.1.1 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.1.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.0.1 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-4.0.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-3.5.1 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-3.5.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-3.4.2 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-3.4.1 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-3.4.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-3.3.1 app/assets/stylesheets/_shims.scss