Created
February 27, 2014 23:35
-
-
Save rafaelrinaldi/9262030 to your computer and use it in GitHub Desktop.
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
@function remove-unit($number) { | |
$unit: unit($number); | |
$one: 1; | |
@if $unit == "px" { $one: 1px; } | |
@if $unit == "em" { $one: 1em; } | |
@if $unit == "%" { $one: 1%; } | |
@return $number / $one; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment