Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes some errors in Sass convert task
- Loading branch information
Minwe
committed
May 25, 2016
1 parent
e26361d
commit 23093cf
Showing
3 changed files
with
64 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Strip Unit | ||
// Removes the unit (e.g. px, em, rem) from a value, returning the number only. | ||
// | ||
// @param {number} $num - Number to strip unit from. | ||
// | ||
// @return The same number, sans unit. | ||
@function strip-unit($num) { | ||
@return $num / ($num * 0 + 1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters