Skip to content

Commit

Permalink
feat(functions/strip-unit): function to strip unit from variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
sciborrudnicki committed Jun 7, 2022
1 parent f6da5fa commit 8c48cf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/functions/_strip-unit.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@use 'sass:math';

@function strip-unit($number) {
@return math.div($number, ($number * 0 + 1));
}

0 comments on commit 8c48cf1

Please sign in to comment.