Created
October 24, 2019 22:21
-
-
Save talktalkmake/a3c48e840c65c63d91879507c65c553b to your computer and use it in GitHub Desktop.
SASS @each for <h3>aders
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
// Playing around with SASS @each | |
// To define a related rule set | |
// For HTML headings using destructuring | |
$aitches: 1, 2, 3, 4, 5, 6; | |
@each $h in $aitches { | |
h#{$h} { | |
font-size: 3em - ($h / 3); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment