Last active
April 24, 2020 10:04
-
-
Save cristian-frumusanu/8f9e41d7ce34aa5b9ef1e2b860681423 to your computer and use it in GitHub Desktop.
SCSS - generate font size helper classes
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
// REM | |
@for $i from 10 through 25 { | |
.fs-#{$i} { | |
font-size: #{$i/16}rem !important; | |
} | |
} | |
// PX | |
@for $i from 10 through 25 { | |
.fs-#{$i} { | |
font-size: #{$i}px !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment