Skip to content

Instantly share code, notes, and snippets.

@bzerangue
Forked from wyattdanger/whichquery.sass
Created April 26, 2012 15:49
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 bzerangue/2500516 to your computer and use it in GitHub Desktop.
Save bzerangue/2500516 to your computer and use it in GitHub Desktop.
Determine which media query breakpoint you're on
body::before
content: '< 480px'
@media only screen and (min-width: 480px)
body::before
content: '480px < 600px'
@media only screen and (min-width: 600px)
body::before
content: '600px < 768px'
@media only screen and (min-width: 768px)
body::before
content: '768px < 992px'
@media only screen and (min-width: 992px)
body::before
content: '992px < 1382px'
@media only screen and (min-width: 1382px)
body::before
content: '1382px <'
body::before {
content: "< 480px"; }
@media only screen and (min-width: 480px) {
body::before {
content: "480px < 600px"; } }
@media only screen and (min-width: 600px) {
body::before {
content: "600px < 768px"; } }
@media only screen and (min-width: 768px) {
body::before {
content: "768px < 992px"; } }
@media only screen and (min-width: 992px) {
body::before {
content: "992px < 1382px"; } }
@media only screen and (min-width: 1382px) {
body::before {
content: "1382px <"; } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment