SU-SWS/decanter

View on GitHub
core/src/scss/utilities/functions/breakpoint/_breakpoint-min.scss

Summary

Maintainability
Test Coverage

///
/// The $su-grid-screens map defined in the grid variables file is used as the
/// $breakpoints argument by default.
///
/// Minimum breakpoint width. Null for the smallest (xs) breakpoint.
///
/// breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, 2xl: 1500px))
/// Returns "576px"
///
/// @name breakpoint-min
///
/// @group mixin
@function breakpoint-min($name, $breakpoints: $su-grid-screens) {
  $min: map-get($breakpoints, $name);
  @return if($min != 0, $min, null);
}