@charset "UTF-8";

///
/// A helper to quickly generate a media query for single breakpoints.
///
/// @name su-grid-media-only
///
/// @param {key code} $breakpoint - The breakpoint key code eg: 'sm', or 'all' for all breakpoints.
///
/// @group mixin
@mixin grid-media-only($breakpoint: 'xs') {
  @if $breakpoint == 'all' {
    @each $id, $query in $su-grid-media-only {
      @media #{$query} {
        @content;
      }
    }
  }
  @else {
    @media #{map-get($su-grid-media-only, $breakpoint)} {
      @content;
    }
  }
}
