Last active
April 30, 2021 11:32
-
-
Save powellian/738441e4323583b79d86a7631b374a29 to your computer and use it in GitHub Desktop.
[map headings in scss] #scss #map #css
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
// map headings - h1/.h1 etc... | |
@each $heading, | |
$size in $mapHeadings { | |
#{$heading}, | |
.#{$heading} { | |
font-size: rem-calc($size); | |
margin-top: 0; | |
margin-bottom: calc(var(--common-size)/3); | |
} | |
} | |
// The Map: | |
$mapHeadings: ( | |
h1: 28, | |
h2: 21, | |
h3: 20, | |
h4: 18, | |
h5: 16, | |
h6: 14 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment