Tweak emoji html to display images against darker color.

This commit is contained in:
Doug Felt 2016-04-14 17:40:13 -07:00
parent 7c92c3cfdd
commit 59e04933c0

View file

@ -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