diff options
Diffstat (limited to 'webapp/make-emojis')
-rwxr-xr-x | webapp/make-emojis | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webapp/make-emojis b/webapp/make-emojis index 2de199b54..d104fc2bf 100755 --- a/webapp/make-emojis +++ b/webapp/make-emojis @@ -165,6 +165,8 @@ categories.each do |category| end end + css_rules << ".emoji-category-#{category} { background-image: url('../images/emoji-sheets/#{category}.png'); }" + SpriteFactory.run!( tmp_directory, :layout => :packed, @@ -175,9 +177,9 @@ categories.each do |category| ) do |images| images.each do |name, image| if image[:cssw] != 64 || image[:cssh] != 64 - css_rules << ".emoji-#{name} { background-image: url(../images/emoji-sheets/#{category}.png); background-position: -#{image[:cssx]}px -#{image[:cssy]}px; width: #{image[:cssw]}px; height: #{image[:cssh]}px; }" + css_rules << ".emoji-#{name} { background-position: -#{image[:cssx]}px -#{image[:cssy]}px; width: #{image[:cssw]}px; height: #{image[:cssh]}px; }" else - css_rules << ".emoji-#{name} { background-image: url(../images/emoji-sheets/#{category}.png); background-position: -#{image[:cssx]}px -#{image[:cssy]}px; }" + css_rules << ".emoji-#{name} { background-position: -#{image[:cssx]}px -#{image[:cssy]}px; }" end end end |