Skip to content

Instantly share code, notes, and snippets.

@ramzesimus
Created February 11, 2014 07:55
Show Gist options
  • Save ramzesimus/8930763 to your computer and use it in GitHub Desktop.
Save ramzesimus/8930763 to your computer and use it in GitHub Desktop.
// Simple
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
/* Retina-specific stuff here */
}
// Future Proof
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
/* Retina-specific stuff here */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment