From 4d19246058da3033dd84603a0c03247afc162547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Tue, 6 Jul 2021 11:28:16 +0200 Subject: [PATCH] refactor(functions): add() and subtract() more concise improvements --- scss/_functions.scss | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/scss/_functions.scss b/scss/_functions.scss index 870f36790f9e..aef1134d7de8 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -181,14 +181,6 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 @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); } @@ -209,10 +201,6 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 @return $value1 - $value2; } - @if type-of($value1) != number { - $value1: unquote("(") + $value1 + unquote(")"); - } - @if type-of($value2) != number { $value2: unquote("(") + $value2 + unquote(")"); }