Skip to content

Instantly share code, notes, and snippets.

@lushone
Forked from BlakeWilliams/gist:4287055
Created December 14, 2012 17:14
Show Gist options
  • Save lushone/4287061 to your computer and use it in GitHub Desktop.
Save lushone/4287061 to your computer and use it in GitHub Desktop.
.visible-desktop {
display: inherit;
}
.visible-tablet {
display: none !important;
}
.visible-mobile {
display: none !important;
}
.visible-wide-mobile {
display: none !important;
}
/* Tablet :: Inherits from default styles */
@media only screen and (min-width: 768px) and (max-width: 991px) {
.visible-desktop {
display: none !important;
}
.visible-tablet {
display: inherit !important;
}
}
/* Mobile :: Inherits from default styles */
@media only screen and (max-width: 767px) {
.visible-desktop {
display: none !important;
}
.visible-mobile {
display: inherit !important;
}
}
/* Wide Mobile :: Inherits from default styles and Mobile styles */
@media only screen and (min-width: 480px) and (max-width: 767px) {
.visible-wide-mobile {
display: none !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment