Skip to content

Instantly share code, notes, and snippets.

@pixelspencil
Created January 6, 2021 21:23
Show Gist options
  • Save pixelspencil/2efd5e49b72f8f9adfaa9fcd52de9063 to your computer and use it in GitHub Desktop.
Save pixelspencil/2efd5e49b72f8f9adfaa9fcd52de9063 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
$width-sm: 400px;
$width-md: 1000px;
$width-lg: 1600px;
@mixin breakpoint($mq) {
@if $mq == small {
@media (min-width: $width-sm) { @content }
}
@else if $mq == medium {
@media (min-width: $width-md) { @content }
}
@else if $mq == large {
@media (min-width: $width-lg) { @content }
}
}
header {
height: 100px;
@include breakpoint(large) {
height: auto;
}
}
header {
height: 100px;
}
@media (min-width: 1600px) {
header {
height: auto;
}
}
{
"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