Created
March 9, 2022 19:53
-
-
Save Wakkos/94f88f153033c1cd61cf67a689876375 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
$breakpoints: ( | |
'small' : 48em, | |
'medium' : 56.25em, | |
'large' : 1600px, | |
'qweqwe' : 1em, | |
); | |
@mixin respond-to($width) { | |
@if map-has-key($breakpoints, $width) { | |
@media (min-width: map-get($breakpoints, $width)) { | |
@content; | |
} | |
} | |
} | |
h1 { | |
color: red; | |
@media print and (min-width: 800px) { | |
color: black; | |
} | |
@include respond-to(small) { | |
color: blue; | |
} | |
} | |
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
h1 { | |
color: red; | |
} | |
@media print and (min-width: 800px) { | |
h1 { | |
color: black; | |
} | |
} | |
@media (min-width: 48em) { | |
h1 { | |
color: blue; | |
} | |
} |
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.32.12", | |
"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