Created
March 18, 2018 17:42
-
-
Save blueridgemountains1/11263f88048731beb9765a9508078980 to your computer and use it in GitHub Desktop.
Sync Media Queries with Javascript
This file contains 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
/** Great way to sync media queries with your javascript: https://mobile.twitter.com/selbekk/status/975145895909117952 **/ | |
body::before { | |
content: ‘small’, | |
display: none; | |
} | |
@media all and (min-width: 1000px) { | |
body::before { | |
content: ‘medium’; | |
} | |
} | |
@media all and (min-width: 1200px) { | |
body::before { | |
content: ‘large’; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment