From: Gaƫl Poupard Date: Tue, 27 Jul 2021 04:48:08 +0000 (+0200) Subject: More concise improvements for `add()` and `subtract()` (#34432) X-Git-Tag: v4.6.1~27 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1db75d111b75fcefc9e1764483b012c78c390737;p=thirdparty%2Fbootstrap.git More concise improvements for `add()` and `subtract()` (#34432) --- diff --git a/scss/_functions.scss b/scss/_functions.scss index f940fb430a..13d9de0c1f 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -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(")"); }