Skip to content

Instantly share code, notes, and snippets.

@hwshim0810
Created May 20, 2018 14:12
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 hwshim0810/7a45cecca575208275e4892a796022fb to your computer and use it in GitHub Desktop.
Save hwshim0810/7a45cecca575208275e4892a796022fb to your computer and use it in GitHub Desktop.
Simple responsive mixin
@mixin breakpoint($point) {
@if $point == desktop {
@media (min-width: 70em) {
@content;
}
}
@else if $point == laptop {
@media (min-width: 64em) {
@content;
}
}
@else if $point == tablet {
@media (min-width: 50em) {
@content;
}
}
@else if $point == phablet {
@media (min-width: 37.5em) {
@content;
}
}
@else if $point == mobileonly {
@media (max-width: 37.5em) {
@content;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment