Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(functions): add() and subtract() more concise improvements
Browse files Browse the repository at this point in the history
ffoodd committed Jul 6, 2021

Verified

This commit was signed with the committer’s verified signature.
UlisesGascon Ulises Gascón
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
@@ -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(")");
}

0 comments on commit 4d19246

Please sign in to comment.