aboutsummaryrefslogtreecommitdiffstats
path: root/src/_functions.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/_functions.scss')
-rw-r--r--src/_functions.scss10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/_functions.scss b/src/_functions.scss
index 74cc1b5..ac6f745 100644
--- a/src/_functions.scss
+++ b/src/_functions.scss
@@ -67,7 +67,7 @@ $units: (
67 $result: ''; 67 $result: '';
68 68
69 @each $item in $list { 69 @each $item in $list {
70 $result: $result + if(list.length($item) > 1, str-implode($item, $glue), $item); 70 $result: $result + if(sass(list.length($item) > 1): str-implode($item, $glue); else: $item);
71 71
72 @if $item != list.nth($list, list.length($list)) { 72 @if $item != list.nth($list, list.length($list)) {
73 $result: $result + $glue; 73 $result: $result + $glue;
@@ -211,7 +211,7 @@ $units: (
211 $default: list.nth($keys, list.length($keys)); 211 $default: list.nth($keys, list.length($keys));
212 $keys: list-slice($keys, 1, list.length($keys) - 1); 212 $keys: list-slice($keys, 1, list.length($keys) - 1);
213 213
214 @return if(map.has-key($map, $key, $keys...), map.get($map, $key, $keys...), $default); 214 @return if(sass(map.has-key($map, $key, $keys...)): map.get($map, $key, $keys...); else: $default);
215} 215}
216 216
217/// 217///
@@ -329,11 +329,11 @@ $units: (
329 $digits: 0; 329 $digits: 0;
330 $minus: string.slice($value, 1, 1) == '-'; 330 $minus: string.slice($value, 1, 1) == '-';
331 331
332 @for $i from if($minus, 2, 1) through string.length($value) { 332 @for $i from if(sass($minus): 2; else: 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) 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(sass($minus): -$result; else: $result), string.slice($value, $i));
337 } 337 }
338 338
339 @if $character == '.' { 339 @if $character == '.' {
@@ -346,7 +346,7 @@ $units: (
346 } 346 }
347 } 347 }
348 348
349 @return if($minus, -$result, $result); 349 @return if(sass($minus): -$result; else: $result);
350} 350}
351 351
352/// 352///