diff options
author | Volpeon <git@volpeon.ink> | 2024-10-20 12:21:51 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-10-20 12:21:51 +0200 |
commit | 14f85b1899ae57edc3733bb39a9d311463f7c94a (patch) | |
tree | cb849703efe361e50d705236cc78e4bfae500ff5 /src | |
parent | Remove unused import (diff) | |
download | iro-sass-14f85b1899ae57edc3733bb39a9d311463f7c94a.tar.gz iro-sass-14f85b1899ae57edc3733bb39a9d311463f7c94a.tar.bz2 iro-sass-14f85b1899ae57edc3733bb39a9d311463f7c94a.zip |
Fix
Diffstat (limited to 'src')
-rw-r--r-- | src/_functions.scss | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/_functions.scss b/src/_functions.scss index fa6ed39..0d139b4 100644 --- a/src/_functions.scss +++ b/src/_functions.scss | |||
@@ -333,7 +333,7 @@ $units: ( | |||
333 | $character: string.slice($value, $i, $i); | 333 | $character: string.slice($value, $i, $i); |
334 | 334 | ||
335 | @if not list.index(map.keys($numbers), $character) and $character != '.' { | 335 | @if not list.index(map.keys($numbers), $character) and $character != '.' { |
336 | @return to-length(if($minus, -$result, $result), string.slice($value, $i)) | 336 | @return to-length(if($minus, -$result, $result), string.slice($value, $i)); |
337 | } | 337 | } |
338 | 338 | ||
339 | @if $character == '.' { | 339 | @if $character == '.' { |
@@ -359,11 +359,11 @@ $units: ( | |||
359 | /// | 359 | /// |
360 | @function to-length($value, $unit) { | 360 | @function to-length($value, $unit) { |
361 | @if not list.index(map.keys($units), $unit) { | 361 | @if not list.index(map.keys($units), $unit) { |
362 | @error 'Invalid unit `#{$unit}`.'; | 362 | @error 'Invalid unit `#{$unit}`.'; |
363 | } | 363 | } |
364 | 364 | ||
365 | @return $value * map.get($units, $unit); | 365 | @return $value * map.get($units, $unit); |
366 | } | 366 | } |
367 | 367 | ||
368 | /// | 368 | /// |
369 | /// A mixin with the sole purpose of letting you use temporary variables without polluting the global namespace. | 369 | /// A mixin with the sole purpose of letting you use temporary variables without polluting the global namespace. |