Skip to content

Instantly share code, notes, and snippets.

@yamoo9
Created May 26, 2015 11:25
Show Gist options
  • Save yamoo9/471b3d6eb77ced0d6cc8 to your computer and use it in GitHub Desktop.
Save yamoo9/471b3d6eb77ced0d6cc8 to your computer and use it in GitHub Desktop.
ST3-hidpi-Snippet Code
<snippet>
<content><![CDATA[/* CSS3 미디워쿼리 활용 - 레티나 디스플레이 대응 */
/*
* 고해상도 디스플레이(@${1:2}x)
*/
@media
only screen and (-webkit-min-device-pixel-ratio: ${1:2}) and (${2:min-width: 320px}),
only screen and ( min--moz-device-pixel-ratio: ${1:2}) and (${2:min-width: 320px}),
only screen and ( -o-min-device-pixel-ratio: ${1:2}/1) and (${2:min-width: 320px}),
only screen and ( min-device-pixel-ratio: ${1:2}) and (${2:min-width: 320px}),
only screen and ( min-resolution: 96*${1:2}dpi) and (${2:min-width: 320px}),
only screen and ( min-resolution: ${1:2}dppx) and (${2:min-width: 320px}) {
$3
}
$0]]></content>
<tabTrigger>hidpi/</tabTrigger>
<scope>source.css</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment