Replacing breakpoint-sass module with custom mixin.
This commit is contained in:
parent
351fe15a24
commit
601c74f6f4
1 changed files with 186 additions and 178 deletions
9
sass/init/breakpoint/_respond-to.scss
Normal file
9
sass/init/breakpoint/_respond-to.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue