Created
September 6, 2014 05:10
-
-
Save carolineschnapp/66aee1dee81203dd464d to your computer and use it in GitHub Desktop.
Classes to show or hide elements based on the screen size.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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