Last active
October 5, 2021 10:56
-
-
Save johnmccole/89ad4defe24ccc72aee3746587f32ab2 to your computer and use it in GitHub Desktop.
Target all header tags with a for loop in SASS
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
@for $index from 1 through 6 { | |
h#{$index} { | |
// style code | |
} | |
} |
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
@for $index from 1 through 100 { | |
.vw-#{$index} { | |
width: #{$index}vw; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment