mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
More concise improvements for add()
and subtract()
(#34432)
This commit is contained in:
parent
d140981fdb
commit
8536474583
@ -191,14 +191,6 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
|
|||||||
@return $value1 + $value2;
|
@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);
|
@return if($return-calc == true, calc(#{$value1} + #{$value2}), $value1 + unquote(" + ") + $value2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -219,10 +211,6 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
|
|||||||
@return $value1 - $value2;
|
@return $value1 - $value2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@if type-of($value1) != number {
|
|
||||||
$value1: unquote("(") + $value1 + unquote(")");
|
|
||||||
}
|
|
||||||
|
|
||||||
@if type-of($value2) != number {
|
@if type-of($value2) != number {
|
||||||
$value2: unquote("(") + $value2 + unquote(")");
|
$value2: unquote("(") + $value2 + unquote(")");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user