diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/_functions.scss | 10 |
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 | } | ||