Skip to content

Instantly share code, notes, and snippets.

@gilesbradshaw
Created February 24, 2016 23:47
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 gilesbradshaw/0a20bd1f9b259df27d14 to your computer and use it in GitHub Desktop.
Save gilesbradshaw/0a20bd1f9b259df27d14 to your computer and use it in GitHub Desktop.
.if-xs, .if-not-sm, .if-not-md, .if-not-lg {
display:inherit;
}
.if-not-xs, .if-sm, .if-md, .if-lg {
display:none;
}
@media (min-width: 48em) {
.if-xs, .if-not-sm {
display:none;
}
.if-not-xs, .if-sm {
display:inherit;
}
}
@media (min-width: 64em) {
.if-sm, .if-not-md {
display:none;
}
.if-not-sm, .if-md {
display:inherit;
}
}
@media (min-width: 75em) {
.if-md, .if-not-lg {
display:none;
}
.if-lg, .if-not-md {
display:inherit;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment