Last active
November 19, 2020 14:37
-
-
Save makingthingswork/52d4e73bd9f8182c9277e1b11030c4ad to your computer and use it in GitHub Desktop.
Create percentage
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
// Cast number by * 1% to create percentage, appending a % sign just creates a string. | |
@function percentage($number) { | |
@return $number * 1%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment