home · contact · privacy
Minor CSS refactor.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:10:19 +0000 (22:10 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:10:19 +0000 (22:10 +0200)
enhance_table.py

index 5c22f8d8a239cb90a6905654c2a19073dd18561a..a969895164f6a316123e1692d32762248533c15c 100755 (executable)
@@ -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]