Created
September 28, 2019 16:57
-
-
Save alyssawilliams/0e856ca695a5deada2b904fd88c71c9e to your computer and use it in GitHub Desktop.
Sass function that converts a pixel based line height into a unitless value
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 unitless($font-size, $line-height) { | |
@return $line-height / $font-size; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment