Skip to content

Instantly share code, notes, and snippets.

@mishelen
Created March 7, 2014 20:19
Show Gist options
  • Select an option

  • Save mishelen/9419216 to your computer and use it in GitHub Desktop.

Select an option

Save mishelen/9419216 to your computer and use it in GitHub Desktop.
From http://coding.smashingmagazine.com/2012/10/15/css-qa-4/ Тут вообще много интересного
@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 ( -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 */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment