From d4b67d01de093e816c37f633ad192600cf633aed Mon Sep 17 00:00:00 2001 From: andrej Date: Sun, 13 Sep 2020 14:08:38 +1000 Subject: [PATCH 1/2] fixed coniditional statements --- dist/_breakpoints.scss | 32 ++++++++++++++++---------------- dist/_vendor.scss | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/dist/_breakpoints.scss b/dist/_breakpoints.scss index c5301d8..4987fbc 100644 --- a/dist/_breakpoints.scss +++ b/dist/_breakpoints.scss @@ -41,7 +41,7 @@ } // Less than or equal. - @elseif (str-slice($query, 0, 2) == '<=') { + @else if (str-slice($query, 0, 2) == '<=') { $op: 'lte'; $breakpoint: str-slice($query, 3); @@ -49,7 +49,7 @@ } // Greater than. - @elseif (str-slice($query, 0, 1) == '>') { + @else if (str-slice($query, 0, 1) == '>') { $op: 'gt'; $breakpoint: str-slice($query, 2); @@ -57,7 +57,7 @@ } // Less than. - @elseif (str-slice($query, 0, 1) == '<') { + @else if (str-slice($query, 0, 1) == '<') { $op: 'lt'; $breakpoint: str-slice($query, 2); @@ -65,7 +65,7 @@ } // Not. - @elseif (str-slice($query, 0, 1) == '!') { + @else if (str-slice($query, 0, 1) == '!') { $op: 'not'; $breakpoint: str-slice($query, 2); @@ -100,22 +100,22 @@ } // Less than or equal (<= y) - @elseif ($op == 'lte') { + @else if ($op == 'lte') { $media: 'screen and (max-width: ' + $y + ')'; } // Greater than (> y) - @elseif ($op == 'gt') { + @else if ($op == 'gt') { $media: 'screen and (min-width: ' + ($y + 1) + ')'; } // Less than (< 0 / invalid) - @elseif ($op == 'lt') { + @else if ($op == 'lt') { $media: 'screen and (max-width: -1px)'; } // Not (> y) - @elseif ($op == 'not') { + @else if ($op == 'not') { $media: 'screen and (min-width: ' + ($y + 1) + ')'; } @@ -135,22 +135,22 @@ } // Less than or equal (<= inf / anything) - @elseif ($op == 'lte') { + @else if ($op == 'lte') { $media: 'screen'; } // Greater than (> inf / invalid) - @elseif ($op == 'gt') { + @else if ($op == 'gt') { $media: 'screen and (max-width: -1px)'; } // Less than (< x) - @elseif ($op == 'lt') { + @else if ($op == 'lt') { $media: 'screen and (max-width: ' + ($x - 1) + ')'; } // Not (< x) - @elseif ($op == 'not') { + @else if ($op == 'not') { $media: 'screen and (max-width: ' + ($x - 1) + ')'; } @@ -170,22 +170,22 @@ } // Less than or equal (<= y) - @elseif ($op == 'lte') { + @else if ($op == 'lte') { $media: 'screen and (max-width: ' + $y + ')'; } // Greater than (> y) - @elseif ($op == 'gt') { + @else if ($op == 'gt') { $media: 'screen and (min-width: ' + ($y + 1) + ')'; } // Less than (< x) - @elseif ($op == 'lt') { + @else if ($op == 'lt') { $media: 'screen and (max-width: ' + ($x - 1) + ')'; } // Not (< x and > y) - @elseif ($op == 'not') { + @else if ($op == 'not') { $media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')'; } diff --git a/dist/_vendor.scss b/dist/_vendor.scss index 6599a3f..c27e333 100644 --- a/dist/_vendor.scss +++ b/dist/_vendor.scss @@ -362,7 +362,7 @@ } // Expand just the value? - @elseif $expandValue { + @else if $expandValue { @each $vendor in $vendor-prefixes { #{$property}: #{str-replace-all($value, '-prefix-', $vendor)}; } From b829031d125e31174c924b8d1142d0643a0597b7 Mon Sep 17 00:00:00 2001 From: andrej Date: Sun, 13 Sep 2020 14:13:08 +1000 Subject: [PATCH 2/2] fixed conditional statements --- src/_breakpoints.scss | 32 ++++++++++++++++---------------- src/_vendor.scss | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/_breakpoints.scss b/src/_breakpoints.scss index c5301d8..4987fbc 100644 --- a/src/_breakpoints.scss +++ b/src/_breakpoints.scss @@ -41,7 +41,7 @@ } // Less than or equal. - @elseif (str-slice($query, 0, 2) == '<=') { + @else if (str-slice($query, 0, 2) == '<=') { $op: 'lte'; $breakpoint: str-slice($query, 3); @@ -49,7 +49,7 @@ } // Greater than. - @elseif (str-slice($query, 0, 1) == '>') { + @else if (str-slice($query, 0, 1) == '>') { $op: 'gt'; $breakpoint: str-slice($query, 2); @@ -57,7 +57,7 @@ } // Less than. - @elseif (str-slice($query, 0, 1) == '<') { + @else if (str-slice($query, 0, 1) == '<') { $op: 'lt'; $breakpoint: str-slice($query, 2); @@ -65,7 +65,7 @@ } // Not. - @elseif (str-slice($query, 0, 1) == '!') { + @else if (str-slice($query, 0, 1) == '!') { $op: 'not'; $breakpoint: str-slice($query, 2); @@ -100,22 +100,22 @@ } // Less than or equal (<= y) - @elseif ($op == 'lte') { + @else if ($op == 'lte') { $media: 'screen and (max-width: ' + $y + ')'; } // Greater than (> y) - @elseif ($op == 'gt') { + @else if ($op == 'gt') { $media: 'screen and (min-width: ' + ($y + 1) + ')'; } // Less than (< 0 / invalid) - @elseif ($op == 'lt') { + @else if ($op == 'lt') { $media: 'screen and (max-width: -1px)'; } // Not (> y) - @elseif ($op == 'not') { + @else if ($op == 'not') { $media: 'screen and (min-width: ' + ($y + 1) + ')'; } @@ -135,22 +135,22 @@ } // Less than or equal (<= inf / anything) - @elseif ($op == 'lte') { + @else if ($op == 'lte') { $media: 'screen'; } // Greater than (> inf / invalid) - @elseif ($op == 'gt') { + @else if ($op == 'gt') { $media: 'screen and (max-width: -1px)'; } // Less than (< x) - @elseif ($op == 'lt') { + @else if ($op == 'lt') { $media: 'screen and (max-width: ' + ($x - 1) + ')'; } // Not (< x) - @elseif ($op == 'not') { + @else if ($op == 'not') { $media: 'screen and (max-width: ' + ($x - 1) + ')'; } @@ -170,22 +170,22 @@ } // Less than or equal (<= y) - @elseif ($op == 'lte') { + @else if ($op == 'lte') { $media: 'screen and (max-width: ' + $y + ')'; } // Greater than (> y) - @elseif ($op == 'gt') { + @else if ($op == 'gt') { $media: 'screen and (min-width: ' + ($y + 1) + ')'; } // Less than (< x) - @elseif ($op == 'lt') { + @else if ($op == 'lt') { $media: 'screen and (max-width: ' + ($x - 1) + ')'; } // Not (< x and > y) - @elseif ($op == 'not') { + @else if ($op == 'not') { $media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')'; } diff --git a/src/_vendor.scss b/src/_vendor.scss index 6599a3f..c27e333 100644 --- a/src/_vendor.scss +++ b/src/_vendor.scss @@ -362,7 +362,7 @@ } // Expand just the value? - @elseif $expandValue { + @else if $expandValue { @each $vendor in $vendor-prefixes { #{$property}: #{str-replace-all($value, '-prefix-', $vendor)}; }