Skip to content

Instantly share code, notes, and snippets.

@peijiehu
Created December 15, 2015 22:00
Show Gist options
  • Save peijiehu/3a353d6808580e5e0306 to your computer and use it in GitHub Desktop.
Save peijiehu/3a353d6808580e5e0306 to your computer and use it in GitHub Desktop.
@media (max-width: 479px) {
.show-on-desktop, .show-on-tablets, .hide-on-mobile { display: none; }
}
@media (min-width: 480px) and (max-width: 979px) {
.show-on-desktop, .hide-on-tablets, .show-on-mobile { display: none; }
}
@media (min-width: 980px) {
.hide-on-desktop, .show-on-tablets, .show-on-mobile { display: none; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment