aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaĆ«l Poupard <[email protected]>2021-07-27 06:48:08 +0200
committerXhmikosR <[email protected]>2021-09-15 15:31:00 +0300
commit1db75d111b75fcefc9e1764483b012c78c390737 (patch)
treeb93098bc26477b6121edc1fa8b877de98f5c5cdf
parent01036ff2ef4ded5e1e5601f9d8a0f2a1d9c6b866 (diff)
downloadbootstrap-1db75d111b75fcefc9e1764483b012c78c390737.tar.xz
bootstrap-1db75d111b75fcefc9e1764483b012c78c390737.zip
More concise improvements for `add()` and `subtract()` (#34432)
-rw-r--r--scss/_functions.scss12
1 files changed, 0 insertions, 12 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss
index f940fb430..13d9de0c1 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(")");
}