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-45.9.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.8.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.7.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.6.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.6.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.5.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.4.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.4.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.3.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.2.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.1.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-45.0.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-44.11.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-44.10.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-44.9.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-44.9.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-44.8.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-44.7.1 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-44.7.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
govuk_publishing_components-44.6.0 app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss