mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-06-18 20:13:31 +08:00
fix(breakpoint): return only the requested breakpoint
This commit is contained in:
parent
d370a5f6af
commit
5ed3550fd7
@ -9,9 +9,8 @@ $breakpoints: (
|
|||||||
@mixin respond($breakpoint) {
|
@mixin respond($breakpoint) {
|
||||||
@if not map-has-key($breakpoints, $breakpoint) {
|
@if not map-has-key($breakpoints, $breakpoint) {
|
||||||
@warn "'#{$breakpoint}' is not a valid breakpoint";
|
@warn "'#{$breakpoint}' is not a valid breakpoint";
|
||||||
}
|
} @else {
|
||||||
@each $bp, $size in $breakpoints {
|
@media (min-width: map-get($breakpoints, $breakpoint)) {
|
||||||
@media (min-width: $size) {
|
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user