home · contact · privacy
Move date cell content up, to better highlight where row starts.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 5 Jul 2020 11:14:58 +0000 (13:14 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 5 Jul 2020 11:14:58 +0000 (13:14 +0200)
enhance_table.py

index 7fe22b3cf04195dff574a14084b6f71b165c7ce6..f44252463130075d456b6faf0d593b8144528c10 100755 (executable)
@@ -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 }
+.date { vertical-align: top; padding-top: 0.5em; }
 </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('<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>' %