mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-28 10:24:19 +01:00
More concise improvements for add()
and subtract()
(#34432)
This commit is contained in:
parent
01036ff2ef
commit
1db75d111b
@ -120,14 +120,6 @@
|
||||
@return $value1 + $value2;
|
||||
}
|
||||
|
||||
@if type-of($value1) != number {
|
||||
$value1: unquote("(") + $value1 + unquote(")");
|
||||
}
|
||||
|
||||
@if type-of($value2) != number {
|
||||
$value2: unquote("(") + $value2 + unquote(")");
|
||||
}
|
||||
|
||||
@return if($return-calc == true, calc(#{$value1} + #{$value2}), $value1 + unquote(" + ") + $value2);
|
||||
}
|
||||
|
||||
@ -148,10 +140,6 @@
|
||||
@return $value1 - $value2;
|
||||
}
|
||||
|
||||
@if type-of($value1) != number {
|
||||
$value1: unquote("(") + $value1 + unquote(")");
|
||||
}
|
||||
|
||||
@if type-of($value2) != number {
|
||||
$value2: unquote("(") + $value2 + unquote(")");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user