Skip to content

Instantly share code, notes, and snippets.

@rvgpl
Created September 12, 2017 03:30
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 rvgpl/605c9eebd55491dc0d8aced1a0013f60 to your computer and use it in GitHub Desktop.
Save rvgpl/605c9eebd55491dc0d8aced1a0013f60 to your computer and use it in GitHub Desktop.
A SASS mixin for breakpoints
@mixin breakpoint($point) {
@if $point == desktop {
@media (min-width: 75em) { @content; }
}
@else if $point == tablet {
@media (min-width: 48em) { @content; }
}
@else if $point == phone {
@media (min-width: 20em) { @content; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment