Last active
February 28, 2018 20:35
-
-
Save chrismitchell/6266418eadaad452f8a7ffa72adaac82 to your computer and use it in GitHub Desktop.
breakpoints
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
window.breakpoints = { | |
xs: { min: 0, max: 480 }, | |
sm: { min: 481, max: 768 }, | |
md: { min: 769, max: 992 }, | |
lg: { min: 993, max: 10000 }, | |
is: function(size) { | |
return ( | |
window.innerWidth >= breakpoints[size].min && | |
window.innerWidth <= breakpoints[size].max | |
); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment