Created
February 15, 2023 18:27
-
-
Save Wakkos/b97c0da30f9a833ef355b243c3314a33 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
$bp-small: 600px; | |
$bp-medium: 720px; | |
$bp-large: 1440px; | |
@mixin mq($bp: $bp-medium, $bp-direction: min-width) { | |
@media all and ($bp-direction: $bp) { | |
@content; | |
} | |
} | |
.topbar { | |
color: orange; | |
@include mq($bp-large, max-width) { | |
color: red; | |
} | |
&__logo { | |
width: 100px; | |
@include mq { | |
width: 120px; | |
} | |
} | |
} |
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
.topbar { | |
color: orange; | |
} | |
@media all and (max-width: 1440px) { | |
.topbar { | |
color: red; | |
} | |
} | |
.topbar__logo { | |
width: 100px; | |
} | |
@media all and (min-width: 720px) { | |
.topbar__logo { | |
width: 120px; | |
} | |
} |
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