openSUSE/osem

View on GitHub
app/assets/stylesheets/breakpoints.scss

Summary

Maintainability
Test Coverage
@mixin breakpoint($class) {
  @if $class == xs {
    @media (max-width: 767px) { @content; }
  }

  @else if $class == sm {
    @media (min-width: 768px) and (max-width: 991px) { @content; }
  }

  @else if $class == md {
    @media (min-width: 992px) and (max-width: 1199px) { @content; }
  }

  @else if $class == lg {
    @media (min-width: 1200px) { @content; }
  }

  @else {
    @warn "Breakpoint mixin supports: xs, sm, md, lg";
  }
}