Last active
January 2, 2016 16:55
-
-
Save abdobouna/6e157e085bc51d8d7360 to your computer and use it in GitHub Desktop.
A function for scaling font sizes.
This file contains hidden or 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
// A function for scaling font sizes. | |
@function scale-font-sizes($font-sizes, $scale: 1) { | |
// A list for holding scaled font sizes. | |
$ret: (); | |
// Populate the list by mulitplying each font size by a $scale | |
// and append it to the end of the list. | |
@each $font-size in $font-sizes { | |
$ret: append($ret, $font-size * $scale); | |
} | |
// return our list of scaled font sizes. | |
@return $ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: