SCSS Framework (Beta)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
353 B

10 months ago
  1. @use 'sass:map';
  2. @mixin breakpoint($media, $min: 0, $max: 0) {
  3. $bpMin: map.get($breakpoints, $min);
  4. $bpMax: map.get($breakpoints, $max);
  5. @if $bpMax != 0 {
  6. @media only #{$media} and (min-width: $bpMin) and (max-width: $bpMax) {
  7. @content;
  8. }
  9. } @else {
  10. @media only #{$media} and (min-width: $bpMin) {
  11. @content;
  12. }
  13. }
  14. }