mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Upgrade dependencies, Fix #4026
This commit is contained in:
@@ -286,12 +286,21 @@
|
||||
"9": 9,
|
||||
);
|
||||
|
||||
@for $i from if($minus, 2, 1) through string.length($value) {
|
||||
$start: 1;
|
||||
@if $minus {
|
||||
$start: 2;
|
||||
}
|
||||
|
||||
@for $i from $start through string.length($value) {
|
||||
$character: string.slice($value, $i, $i);
|
||||
|
||||
@if not(list.index(map.keys($numbers), $character) or $character == ".") {
|
||||
$signed-result: $result;
|
||||
@if $minus {
|
||||
$signed-result: -$result;
|
||||
}
|
||||
@return to-length(
|
||||
if($minus, -$result, $result),
|
||||
$signed-result,
|
||||
string.slice($value, $i)
|
||||
);
|
||||
}
|
||||
@@ -306,5 +315,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
@return if($minus, -$result, $result);
|
||||
@if $minus {
|
||||
@return -$result;
|
||||
}
|
||||
@return $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user