(css) Fix breakpoints
parent
4f5de1b3a1
commit
9abc6ab579
|
@ -26,14 +26,14 @@
|
|||
}
|
||||
@mixin from($breakpoint) {
|
||||
$min_idx: index($slicer-breakpoint-names, $breakpoint);
|
||||
$min: nth($slicer-breakpoints, $min_idx) + 1;
|
||||
$min: nth($slicer-breakpoints, $min_idx + 1);
|
||||
@include breakpoint($min) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@mixin to($breakpoint) {
|
||||
$max_idx: index($slicer-breakpoint-names, $breakpoint);
|
||||
$max: nth($slicer-breakpoints, $max_idx + 1);
|
||||
$max: nth($slicer-breakpoints, $max_idx + 1) - 1;
|
||||
@include breakpoint('max-width' $max) {
|
||||
@content;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue