Sha256: 01b19812d68c620bdbc64843e1c725c71643490a9645b31bdc9e3dca63c2d6f6

Contents?: true

Size: 731 Bytes

Versions: 67

Compression:

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

67 entries across 67 versions & 6 rubygems

Version Path
jekyll-cessda-docs-0.1.11 _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.11.pre.d2f3089c74b3bfd3d3624d702cb07401036885ff _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.10.pre.d82c42ba9ed332418f362da4ebd6622718985a14 _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.10.pre.f39e7bdab5c9aaaac9b9c7b2d6d4224de53bbc62 _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.10.pre.d587f893cc63298eb1de3c47b89bca57ff44de3f _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.10 _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.10.pre.2706e0c723ff44067ba8e667ac3e44e9269e39e4 _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.10.pre.f77bbe9cb46f31a0330b9cfa0d97f2f030f0677a _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.9 _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.10.pre.1ed94d588429435ee094e916854b74478a0f0f3c _sass/support/mixins/_layout.scss
fni-docs-theme-0.6.2 _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.9.pre.3921eeadb29289508ff731890440707b3eddfe8d _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.9.pre.2434228f437aa2f078a66797f886e5a19d17476d _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.8.pre.d83ed94d3f7a697ed5b8224a5538c97f35dcb7ac _sass/support/mixins/_layout.scss
fni-docs-theme-0.6.1 _sass/support/mixins/_layout.scss
fni-docs-theme-0.6.0 _sass/support/mixins/_layout.scss
fni-docs-theme-0.5.0 _sass/support/mixins/_layout.scss
fni-docs-theme-0.4.3 _sass/support/mixins/_layout.scss
fni-docs-theme-0.4.2 _sass/support/mixins/_layout.scss
jekyll-cessda-docs-0.1.8 _sass/support/mixins/_layout.scss