Skip to content

Instantly share code, notes, and snippets.

@marktoce
Created July 25, 2014 17:11
Show Gist options
  • Save marktoce/476dfa72cab5155772a6 to your computer and use it in GitHub Desktop.
Save marktoce/476dfa72cab5155772a6 to your computer and use it in GitHub Desktop.
@mixin bp($point) {
@if $point == phone {
@media only screen and (min-width:320px) and (max-width:479px) { @content; }
}
@else if $point == small_tablet {
@media only screen and (min-width:480px) and (max-width:767px) { @content; }
}
@else if $point == mobi_and_tab {
@media only screen and (max-width:767px) { @content; }
}
@else if $point == large_tablet {
@media only screen and (min-width:768px) and (max-width:1023px) { @content; }
}
@else if $point == desktop {
@media only screen and (min-width:1024px) and (max-width:1139px) { @content; }
}
@else if $point == mid_desktop {
@media only screen and (min-width:1140px) and (max-width:1279px) { @content; }
}
@else if $point == large_desktop {
@media only screen and (min-width:1280px) { @content; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment