Sha256: 5e2d9963cce88dc271b466b2708d180174f6596061daf1a9fc5f586ec8daa5ab

Contents?: true

Size: 707 Bytes

Versions: 17

Compression:

Stored size: 707 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 {
    // Prints a media query based on the value
    @media (min-width: $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

17 entries across 17 versions & 3 rubygems

Version Path
just-the-docs-0.10.0 _sass/support/mixins/_layout.scss
just-the-docs-0.9.0 _sass/support/mixins/_layout.scss
opendevsecops-jekyll-0.1.2 _sass/support/mixins/_layout.scss
opendevsecops-jekyll-0.1.1 _sass/support/mixins/_layout.scss
opendevsecops-jekyll-0.1.0 _sass/support/mixins/_layout.scss
just-the-docs-0.8.2 _sass/support/mixins/_layout.scss
just-the-docs-0.8.1 _sass/support/mixins/_layout.scss
just-the-docs-0.8.0 _sass/support/mixins/_layout.scss
just-the-docs-0.7.0 _sass/support/mixins/_layout.scss
just-the-docs-0.6.2 _sass/support/mixins/_layout.scss
just-the-docs-0.6.1 _sass/support/mixins/_layout.scss
just-the-docs-0.6.0 _sass/support/mixins/_layout.scss
just-the-docs-0.5.4 _sass/support/mixins/_layout.scss
just-the-docs-peter-0.1.3 _sass/support/mixins/_layout.scss
just-the-docs-peter-0.1.2 _sass/support/mixins/_layout.scss
just-the-docs-peter-0.1.1 _sass/support/mixins/_layout.scss
just-the-docs-0.5.3 _sass/support/mixins/_layout.scss