Sha256: e708a446a9506f8b6a4e422c276160b95a93b7d8f2be9764d3c17acdbe9e7f2d

Contents?: true

Size: 598 Bytes

Versions: 99

Compression:

Stored size: 598 Bytes

Contents

// Media query helpers. These make producing IE layouts
// super easy.

// These are desktop and down media queries

// There is also a local version of this in Smartanswers.

$is-ie: false !default;

@mixin media-down($size: false, $max-width: false, $min-width: false) {
  @if $is-ie == false {
    @if $size == mobile {
      @media (max-width: 640px) { // stylelint-disable-line media-feature-range-notation
        @content;
      }
    } @else if $size == tablet {
      @media (max-width: 800px) { // stylelint-disable-line media-feature-range-notation
        @content;
      }
    }
  }
}

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
govuk_publishing_components-37.9.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.9.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.8.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.8.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.7.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.7.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.6.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.6.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.5.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.5.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.4.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.3.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.3.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.2.4 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.2.3 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.2.2 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.2.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.2.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.1.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-37.1.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss