Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Created July 20, 2016 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellofromtonya/f3189e9b5d9c62df253e4f8b4e23b909 to your computer and use it in GitHub Desktop.
Save hellofromtonya/f3189e9b5d9c62df253e4f8b4e23b909 to your computer and use it in GitHub Desktop.
Different alternatives for media queries
$breakpoint__screen-size--medium: new-breakpoint(max-width $screen-size--medium 6);
// 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