Skip to content
Browse files

No high res sprite for Firefox

Having trouble getting this to work correctly.
  • Loading branch information...
1 parent a33fd20 commit 0b4d90a96eed586c71a528328cf73e0fefee8757 @arvida committed Oct 28, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/emoji_optimizer.rb
View
6 lib/emoji_optimizer.rb
@@ -80,7 +80,6 @@ def css_rules
}
}
@media all and (-webkit-min-device-pixel-ratio: 1.5),
- all and (min--moz-device-pixel-ratio: 1.5),
all and (-o-min-device-pixel-ratio: 3/2),
all and (min-device-pixel-ratio: 1.5),
all and (min-resolution: 144dpi) {
@@ -89,6 +88,11 @@ def css_rules
background-size: #{(@size+@padding*2)*@source.emoji_paths.size}px #{@size}px;
}
}
+ @-moz-document url-prefix() {
+ .emoji {
+ background:transparent url(/graphics/#{digest_name}) 0 0 no-repeat;
+ }
+ }
}
@source.emojis.size.times do |index|
rules << css_sprite_mapping(index)

0 comments on commit 0b4d90a

Please sign in to comment.
Something went wrong with that request. Please try again.