Last active
February 21, 2017 16:34
-
-
Save rowej83/1b36ee91f8b38d21562276ad8d56a533 to your computer and use it in GitHub Desktop.
Mobile breakpoints including retina based off Bootstrap3 breakpoints
This file contains hidden or 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
@media only screen and (min-width: 320px) { | |
/* Small screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( -ms-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), | |
only screen and ( min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min-resolution: 192dpi) and (min-width: 320px), | |
only screen and ( min-resolution: 2dppx) and (min-width: 320px) { | |
/* Small screen, retina, stuff to override above media query */ | |
} | |
@media only screen and (min-width: 768px) { | |
/* Medium screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 768px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 768px), | |
only screen and ( -ms-min-device-pixel-ratio: 2) and (min-width: 768px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 768px), | |
only screen and ( min-device-pixel-ratio: 2) and (min-width: 768px), | |
only screen and ( min-resolution: 192dpi) and (min-width: 768px), | |
only screen and ( min-resolution: 2dppx) and (min-width: 768px) { | |
/* Medium screen, retina, stuff to override above media query */ | |
} | |
@media only screen and (min-width: 992px) { | |
/* Large screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 992px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 992px), | |
only screen and ( -ms-min-device-pixel-ratio: 2) and (min-width: 992px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 992px), | |
only screen and ( min-device-pixel-ratio: 2) and (min-width: 992px), | |
only screen and ( min-resolution: 192dpi) and (min-width: 992px), | |
only screen and ( min-resolution: 2dppx) and (min-width: 992px) { | |
/* Large screen, retina, stuff to override above media query */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment