Last active
December 26, 2015 03:28
-
-
Save shkm/7085706 to your computer and use it in GitHub Desktop.
Retina mixin
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
@mixin retina { | |
@media only screen and (-webkit-min-device-pixel-ratio: 2), | |
only screen and (min-resolution: 192dppx) { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Media query nabbed from http://www.brettjankord.com/2012/11/28/cross-browser-retinahigh-resolution-media-queries/