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 (parent:
7092323
)
Minor CSS refactor.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:10:19 +0000
(22:10 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:10:19 +0000
(22:10 +0200)
enhance_table.py
patch
|
blob
|
history
diff --git
a/enhance_table.py
b/enhance_table.py
index 5c22f8d8a239cb90a6905654c2a19073dd18561a..a969895164f6a316123e1692d32762248533c15c 100755
(executable)
--- a/
enhance_table.py
+++ b/
enhance_table.py
@@
-135,14
+135,15
@@
if output_type == 'html':
print('<style>')
print('table, tr, th, td { border: 1px solid black; }')
print('.day_row:nth-child(7n+2) { background-color: yellow; }')
print('<style>')
print('table, tr, th, td { border: 1px solid black; }')
print('.day_row:nth-child(7n+2) { background-color: yellow; }')
+ print('.district_header { writing-mode: vertical-rl; '
+ 'transform: rotate(180deg); }')
print('</style>')
print('<table>')
print('<tr>')
print('<th>date</th>')
for district in sorted_districts:
long_form = translate[district]
print('</style>')
print('<table>')
print('<tr>')
print('<th>date</th>')
for district in sorted_districts:
long_form = translate[district]
- print('<th style="writing-mode: vertical-rl; '
- 'transform: rotate(180deg);">%s</th>' % long_form)
+ print('<th class="district_header">%s</th>' % long_form)
print('</tr>')
sorted_dates.reverse()
sum_district = sorted_districts[-1]
print('</tr>')
sorted_dates.reverse()
sum_district = sorted_districts[-1]