mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-19 10:08:12 +00:00
(css) Fix breakpoints
This commit is contained in:
1 parent
4f5de1b3a1
commit
9abc6ab579
1 file changed
+2
-2
@@ -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