Sha256: 7a896fa1e1fb60611884ece18a33ead0ca3d0c70e038b48445904f55c09d3344

Contents?: true

Size: 734 Bytes

Versions: 11

Compression:

Stored size: 734 Bytes

Contents

// Media query

// Media query mixin
// Usage:
// @include mq(md) {
//   ..medium and up styles
// }
@mixin mq($name) {
  // Retrieves the value from the key
  $value: map-get($media-queries, $name);

  // If the key exists in the map
  @if $value != null {
    // Prints a media query based on the value
    @media (min-width: rem($value)) {
      @content;
    }
  }

  @else {
    @warn "No value could be retrieved from `#{$media-query}`. "
      + "Please make sure it is defined in `$media-queries` map.";
  }
}

// Responsive container

@mixin container {
  padding-right: $gutter-spacing-sm;
  padding-left: $gutter-spacing-sm;

  @include mq(md) {
    padding-right: $gutter-spacing;
    padding-left: $gutter-spacing;
  }
}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
just-the-docs-0.2.8 _sass/support/mixins/_layout.scss
just-the-docs-0.2.7 _sass/support/mixins/_layout.scss
just-the-docs-0.2.6 _sass/support/mixins/_layout.scss
just-the-docs-0.2.5 _sass/support/mixins/_layout.scss
just-the-docs-0.2.4 _sass/support/mixins/_layout.scss
just-the-docs-altair-0.2.3 _sass/support/mixins/_layout.scss
just-the-docs-0.2.3 _sass/support/mixins/_layout.scss
just-the-docs-0.2.2 _sass/support/mixins/_layout.scss
just-the-docs-0.2.1 _sass/support/mixins/_layout.scss
just-the-docs-0.2.0 _sass/support/mixins/_layout.scss
just-the-docs-0.1.6 _sass/support/mixins/_layout.scss