mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
build_emoji: Change sprite CSS files to use hyphens in names.
This is more consistent with our other names in emoji infra.
This commit is contained in:
committed by
Tim Abbott
parent
9bd56d0ce4
commit
ec2ebd1cc9
@@ -120,7 +120,7 @@ def generate_sprite_css_files(cache_path: str,
|
||||
'pos_y': (emoji["sheet_y"] * 100) / 51,
|
||||
}
|
||||
|
||||
SPRITE_CSS_PATH = os.path.join(cache_path, '%s_sprite.css' % (emojiset,))
|
||||
SPRITE_CSS_PATH = os.path.join(cache_path, '%s-sprite.css' % (emojiset,))
|
||||
sprite_css_file = open(SPRITE_CSS_PATH, 'w')
|
||||
sprite_css_file.write(SPRITE_CSS_FILE_TEMPLATE % {'emojiset': emojiset,
|
||||
'emoji_positions': emoji_positions,
|
||||
|
||||
@@ -47,7 +47,7 @@ TABLE_ROW_TEMPLATE = """
|
||||
EMOJI_LISTING_TEMPLATE = """
|
||||
<html>
|
||||
<head>
|
||||
<link rel = "stylesheet" type = "text/css" href = "/static/generated/emoji/google_sprite.css" />
|
||||
<link rel = "stylesheet" type = "text/css" href = "/static/generated/emoji/google-sprite.css" />
|
||||
<style>
|
||||
%(table_css)s
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user