breakpoints.scss 361 B

1234567891011121314151617
  1. $breakpoints: (
  2. sm: 640px,
  3. md: 768px,
  4. lg: 1024px,
  5. xl: 1280px,
  6. 2xl: 1536px,
  7. );
  8. @mixin respond($breakpoint) {
  9. @if not map-has-key($breakpoints, $breakpoint) {
  10. @warn "'#{$breakpoint}' is not a valid breakpoint";
  11. } @else {
  12. @media (min-width: map-get($breakpoints, $breakpoint)) {
  13. @content;
  14. }
  15. }
  16. }