-
-
Save hellofromtonya/f3189e9b5d9c62df253e4f8b4e23b909 to your computer and use it in GitHub Desktop.
Different alternatives for media queries
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
$breakpoint__screen-size--medium: new-breakpoint(max-width $screen-size--medium 6); |
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
// Native CSS breakpoint | |
@media screen and (max-width: 1023px) { | |
// styles | |
} | |
// Device size breakpoint | |
@media screen and (max-width: $screen-size--medium) { | |
// styles | |
} | |
// Device size with Neat function `media` | |
@include media($breakpoint__screen-size--medium) { | |
// styles | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment