Last active
June 29, 2021 22:02
-
-
Save jeremycaldwell/60a0445687122ad78dbb8efcdbd5ca87 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
$base-font-size: 16px; // The font size set on the root html element. | |
@function rem($size) { | |
$remSize: $size / $base-font-size; | |
@return #{$remSize}rem; | |
} | |
//////// CODE STARTS BELOW //////// | |
p { | |
font-size: rem(18px); | |
line-height: (24/18); | |
} | |
// Line-height = 24px | |
// Font-size = 18px |
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
p { | |
font-size: 1.125rem; | |
line-height: 1.3333333333; | |
} |
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
{ | |
"sass": { | |
"compiler": "dart-sass/1.26.11", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment