Skip to content

Commit

Permalink
add min--moz-device-pixel-ratio to make @2x variants work in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Udo Kramer committed May 12, 2013
1 parent e1b71cd commit f9cb4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nib/image.styl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

image(path, w = auto, h = auto)
background-image: url(path)
@media all and (-webkit-min-device-pixel-ratio: 1.5)
@media all and (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5)
ext = extname(path)
path = pathjoin(dirname(path), basename(path, ext) + '@2x' + ext)
background-image: url(path)
Expand Down

0 comments on commit f9cb4fe

Please sign in to comment.