mirror of
https://github.com/googlefonts/noto-emoji.git
synced 2025-06-08 07:47:59 +00:00
Tweak emoji html to display images against darker color.
This commit is contained in:
parent
7c92c3cfdd
commit
59e04933c0
1 changed files with 7 additions and 6 deletions
|
@ -230,11 +230,12 @@ TEMPLATE = """<!DOCTYPE html>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
STYLE = """
|
STYLE = """
|
||||||
tbody { background-color: rgb(210, 210, 210) }
|
tbody { background-color: rgb(110, 110, 110) }
|
||||||
tbody img { width: 64px; height: 64px }
|
th { background-color: rgb(210, 210, 210) }
|
||||||
tbody .desc { font-size: 20pt; font-weight: bold }
|
td img { width: 64px; height: 64px }
|
||||||
tbody .desc img { vertical-align: middle; width: 32px; height: 32px }
|
td.desc { font-size: 20pt; font-weight: bold; background-color: rgb(210, 210, 210) }
|
||||||
tbody .name { background-color: white }
|
td.desc img { vertical-align: middle; width: 32px; height: 32px }
|
||||||
|
td.name { background-color: white }
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def write_html_page(filename, page_title, dir_infos):
|
def write_html_page(filename, page_title, dir_infos):
|
||||||
|
@ -272,7 +273,7 @@ def main():
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
file_parts = path.splitext(args.filename)
|
file_parts = path.splitext(args.filename)
|
||||||
if file_parts[1] != 'html':
|
if file_parts[1] != '.html':
|
||||||
args.filename = file_parts[0] + '.html'
|
args.filename = file_parts[0] + '.html'
|
||||||
print 'added .html extension to filename:\n%s' % args.filename
|
print 'added .html extension to filename:\n%s' % args.filename
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue