Last active
July 9, 2020 13:35
-
-
Save paulmwatson/f6c5ad4e25868800d203fe9a2e2dd1ad to your computer and use it in GitHub Desktop.
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
.is-max-width-10em { | |
max-width: 10em; | |
} | |
.is-max-width-20em { | |
max-width: 20em; | |
} | |
.is-max-width-30em { | |
max-width: 30em; | |
} | |
.is-max-width-40em { | |
max-width: 40em; | |
} | |
... | |
$sizes: 10, 20, 30, 40; | |
@each $size in $max-widths { | |
.is-max-width-#{$size}em { | |
max-width: #{$size}em; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment