Replacing breakpoint-sass module with custom mixin.

This commit is contained in:
Fredrik Jonsson 2019-02-25 09:05:31 +01:00
commit 601c74f6f4

View file

@ -0,0 +1,9 @@
@mixin respond-to($breakpoint) {
// If the key exists in the map
@if map-has-key($breakpoints, $breakpoint) {
// Prints a media query based on the value
@media (min-width: map-get($breakpoints, $breakpoint)) {
@content;
}
}
}