Skip to content

Instantly share code, notes, and snippets.

@Wakkos
Created March 9, 2022 19:53
Show Gist options
  • Save Wakkos/94f88f153033c1cd61cf67a689876375 to your computer and use it in GitHub Desktop.
Save Wakkos/94f88f153033c1cd61cf67a689876375 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
$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;
}
}
h1 {
color: red;
}
@media print and (min-width: 800px) {
h1 {
color: black;
}
}
@media (min-width: 48em) {
h1 {
color: blue;
}
}
{
"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