Created
May 3, 2015 04:54
-
-
Save budparr/7e82a21acd7f8eeff9f8 to your computer and use it in GitHub Desktop.
Automatically scale header font sizes in Bourbon/Bitters
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
@for $i from 1 through 6 { | |
h#{$i} { | |
font-size: modular-scale((6 - $i), 1em, 1.2); | |
} | |
} | |
// via https://github.com/thoughtbot/bitters/issues/153#issuecomment-85744338 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
worth noting the modular scale function resides here: /bourbon/functions/_modular-scale.scss