From: Christian Heller <c.heller@plomlompom.de> Date: Fri, 3 Jul 2020 20:10:19 +0000 (+0200) Subject: Minor CSS refactor. X-Git-Url: https://plomlompom.com/repos/process_descriptions?a=commitdiff_plain;h=3d86d1e29c61ed5b04c334bfe080a0f661047734;p=berlin-corona-table Minor CSS refactor. --- diff --git a/enhance_table.py b/enhance_table.py index 5c22f8d..a969895 100755 --- 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('.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('<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]