Skip to content

Commit

Permalink
refactor(functions): add() and subtract() more concise improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Jul 6, 2021
1 parent 359ed09 commit 4d19246
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions scss/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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(")");
}
Expand Down

0 comments on commit 4d19246

Please sign in to comment.