From 312c09e378b0b424847e8be9eb92a4fbac60469b Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 24 Jun 2024 16:52:43 +0200 Subject: Fix --- src/_functions.scss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/_functions.scss b/src/_functions.scss index 8a1a613..fe28088 100644 --- a/src/_functions.scss +++ b/src/_functions.scss @@ -332,7 +332,7 @@ $units: ( @for $i from if($minus, 2, 1) through string.length($value) { $character: string.slice($value, $i, $i); - @if not list.index(map.keys($numbers), $character) or $character == '.' { + @if not list.index(map.keys($numbers), $character) and $character != '.' { @return to-length(if($minus, -$result, $result), string.slice($value, $i)) } @@ -359,11 +359,9 @@ $units: ( /// @function to-length($value, $unit) { @if not list.index(map.keys($units), $unit) { - @error 'Invalid unit `#{$unit}`.'; - } + @error 'Invalid unit `#{$unit} @return $value * map.get($units, $unit); - } /// /// A mixin with the sole purpose of letting you use temporary variables without polluting the global namespace. @@ -372,4 +370,6 @@ $units: ( /// @mixin execute { @content; -} +}`.'; + } + } -- cgit v1.2.3-70-g09d2