Rename init dir to mixins.
This commit is contained in:
parent
e59b75bce5
commit
48099a734b
1 changed files with 75 additions and 49 deletions
14
assets/sass/mixins/breakpoint/_respond-to.scss
Normal file
14
assets/sass/mixins/breakpoint/_respond-to.scss
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
@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;
|
||||
}
|
||||
}
|
||||
@else {
|
||||
@media (min-width: $breakpoint) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue