home
·
contact
·
privacy
projects
/
berlin-corona-table
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2b686ed
)
Move date cell content up, to better highlight where row starts.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 5 Jul 2020 11:14:58 +0000
(13:14 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 5 Jul 2020 11:14:58 +0000
(13:14 +0200)
enhance_table.py
patch
|
blob
|
history
diff --git
a/enhance_table.py
b/enhance_table.py
index 7fe22b3cf04195dff574a14084b6f71b165c7ce6..f44252463130075d456b6faf0d593b8144528c10 100755
(executable)
--- a/
enhance_table.py
+++ b/
enhance_table.py
@@
-144,6
+144,7
@@
th { text-align: left; vertical-align: bottom; }
.vertical_header { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: normal; }
.repeated_head th { padding-top: 0.5em; border-bottom: 1px solid black; }
.bold { font-weight: bold }
.vertical_header { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: normal; }
.repeated_head th { padding-top: 0.5em; border-bottom: 1px solid black; }
.bold { font-weight: bold }
+.date { vertical-align: top; padding-top: 0.5em; }
</style>
<title>Berlin's Corona infection numbers, development by districts</title>
</head>
</style>
<title>Berlin's Corona infection numbers, development by districts</title>
</head>
@@
-172,7
+173,7
@@
th { text-align: left; vertical-align: bottom; }
print('</tr>')
print('<tr class="day_row">')
weekday = calendar.day_name[datetime.date.fromisoformat(date).weekday()]
print('</tr>')
print('<tr class="day_row">')
weekday = calendar.day_name[datetime.date.fromisoformat(date).weekday()]
- print('<td>%s<br />%s</td>' % (date, weekday))
+ print('<td
class="date"
>%s<br />%s</td>' % (date, weekday))
print('<td><table>')
for abbr in ['+', 'Σ', 'Ø', 'i']:
print('<tr><th><abbr title="%s">%s</abbr></th></tr>' %
print('<td><table>')
for abbr in ['+', 'Σ', 'Ø', 'i']:
print('<tr><th><abbr title="%s">%s</abbr></th></tr>' %