(css) Fix breakpoints

pull/216/merge
Francis Lachapelle 2016-07-14 15:57:50 -04:00
parent 4f5de1b3a1
commit 9abc6ab579
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}