]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
More concise improvements for `add()` and `subtract()` (#34432)
authorGaël Poupard <ffoodd@users.noreply.github.com>
Tue, 27 Jul 2021 04:48:08 +0000 (06:48 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 15 Sep 2021 12:31:00 +0000 (15:31 +0300)
scss/_functions.scss

index f940fb430acc59a64c3dab4f1cc6fa3065624a04..13d9de0c1fa34b97ad79b7f8a3b7983fce40d95d 100644 (file)
     @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 $value1 - $value2;
   }
 
-  @if type-of($value1) != number {
-    $value1: unquote("(") + $value1 + unquote(")");
-  }
-
   @if type-of($value2) != number {
     $value2: unquote("(") + $value2 + unquote(")");
   }