Skip to content

Commit

Permalink
Revert to single media query for webkit becuase less can't compile mu…
Browse files Browse the repository at this point in the history
…ltiple media queries
  • Loading branch information
Casey O'Hara committed Apr 25, 2012
1 parent 00613ca commit 3983f48
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/retina.less
Expand Up @@ -5,11 +5,8 @@
background-image: url(@path);
@at2x_path: ~`"@{path}".split('.').slice(0, "@{path}".split('.').length - 1).join(".") + "@2x" + "." + "@{path}".split('.')["@{path}".split('.').length - 1]`;

@media all and (-webkit-min-device-pixel-ratio : 1.5),
all and (-o-min-device-pixel-ratio: 3/2),
all and (min--moz-device-pixel-ratio: 1.5),
all and (min-device-pixel-ratio: 1.5) {
background-image: url(@at2x_path);
background-size: @w @h;
@media all and (-webkit-min-device-pixel-ratio : 1.5) {
background-image: url(@at2x_path);
background-size: @w @h;
}
}

0 comments on commit 3983f48

Please sign in to comment.