Skip to content

Instantly share code, notes, and snippets.

View dannykeane's full-sized avatar

Danny dannykeane

View GitHub Profile
@dannykeane
dannykeane / output.css
Created February 11, 2013 12:12
Less CSS Retina Mixin
#element{
background-image: url('/images/sprite.png');
background-repeat: no-repeat;
background-position: -3px 0;
}
@media print, screen,
(-webkit-min-device-pixel-ratio: 1.25),
(~`"-o-min-device-pixel-ratio: 1.25/1"`),
(min--moz-device-pixel-ratio: 1.25),
@dannykeane
dannykeane / result.css
Created February 11, 2013 10:39
Retina Sass (SCSS) mixin
#element{
background-image:url("icon.png");
background-repeat: no-repeat;
background-position: 0 -10px;
}
@media print, screen,
(-webkit-min-device-pixel-ratio: 1.25),
(~`"-o-min-device-pixel-ratio: 1.25/1"`),
(min--moz-device-pixel-ratio: 1.25),