mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
(css) Fix breakpoints
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user