Created
March 3, 2021 18:17
-
-
Save amelzer/316a5aaa9950a73ccfbe0b93c177e2e1 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
$breakpoints: ( | |
'sm': 30rem, | |
'md': 52rem, | |
'lg': 68rem, | |
'xl': 84rem | |
); | |
@mixin loop-mq { | |
@each $key, $value in $breakpoints { | |
@media (min-width: #{$value}) { | |
@content (\@#{$key}); | |
} | |
} | |
} | |
@include loop-mq using ($key) { | |
.large#{$key} { | |
font-size: 128px; | |
height: 56px; | |
} | |
.medium#{$key} { | |
font-size: 16px; | |
height: 48px; | |
} | |
.small#{$key} { | |
font-size: 14px; | |
height: 40px; | |
} | |
} |
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
@media (min-width: 30rem) { | |
.large\@sm { | |
font-size: 128px; | |
height: 56px; | |
} | |
.medium\@sm { | |
font-size: 16px; | |
height: 48px; | |
} | |
.small\@sm { | |
font-size: 14px; | |
height: 40px; | |
} | |
} | |
@media (min-width: 52rem) { | |
.large\@md { | |
font-size: 128px; | |
height: 56px; | |
} | |
.medium\@md { | |
font-size: 16px; | |
height: 48px; | |
} | |
.small\@md { | |
font-size: 14px; | |
height: 40px; | |
} | |
} | |
@media (min-width: 68rem) { | |
.large\@lg { | |
font-size: 128px; | |
height: 56px; | |
} | |
.medium\@lg { | |
font-size: 16px; | |
height: 48px; | |
} | |
.small\@lg { | |
font-size: 14px; | |
height: 40px; | |
} | |
} | |
@media (min-width: 84rem) { | |
.large\@xl { | |
font-size: 128px; | |
height: 56px; | |
} | |
.medium\@xl { | |
font-size: 16px; | |
height: 48px; | |
} | |
.small\@xl { | |
font-size: 14px; | |
height: 40px; | |
} | |
} |
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
{ | |
"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