Sha256: 5641a622a4ecf2228347972688769b87236335bb0866f4f295c0ce890ebc8c7e

Contents?: true

Size: 858 Bytes

Versions: 6

Compression:

Stored size: 858 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

6 entries across 6 versions & 1 rubygems

Version Path
govuk_frontend_toolkit-0.43.2 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-0.43.1 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-0.43.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-0.42.0 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-0.41.2 app/assets/stylesheets/_shims.scss
govuk_frontend_toolkit-0.41.1 app/assets/stylesheets/_shims.scss