Skip to content

Instantly share code, notes, and snippets.

@damonsk
damonsk / style.css.less
Created September 12, 2012 10:13 — forked from almonk/style.css.scss
Less retina background images mixin
.background-image-retina(@file, @type, @width, @height) {
background-image: url("@{file}.@{type}");
@media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2) {
& {
background-image: url("@{file}@2x.@{type}");
-webkit-background-size: @width @height;
}
}
}