aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-06-24 16:52:43 +0200
committerVolpeon <git@volpeon.ink>2024-06-24 16:52:43 +0200
commit312c09e378b0b424847e8be9eb92a4fbac60469b (patch)
tree3e2f6dbf2d8c76666f21bfedabcaf3e9d2481150 /src
parentAdd to-number and to-length (diff)
downloadiro-sass-312c09e378b0b424847e8be9eb92a4fbac60469b.tar.gz
iro-sass-312c09e378b0b424847e8be9eb92a4fbac60469b.tar.bz2
iro-sass-312c09e378b0b424847e8be9eb92a4fbac60469b.zip
Fix
Diffstat (limited to 'src')
-rw-r--r--src/_functions.scss10
1 files 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: (
332 @for $i from if($minus, 2, 1) through string.length($value) { 332 @for $i from if($minus, 2, 1) through string.length($value) {
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) or $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
@@ -359,11 +359,9 @@ $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 }
364 363
365 @return $value * map.get($units, $unit); 364 @return $value * map.get($units, $unit);
366 }
367 365
368/// 366///
369/// A mixin with the sole purpose of letting you use temporary variables without polluting the global namespace. 367/// A mixin with the sole purpose of letting you use temporary variables without polluting the global namespace.
@@ -372,4 +370,6 @@ $units: (
372/// 370///
373@mixin execute { 371@mixin execute {
374 @content; 372 @content;
375} 373}`.';
374 }
375 }