Respect valign="middle" property in table headers
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Tue, 14 Apr 2020 20:43:06 +0000 (16:43 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Tue, 14 Apr 2020 20:43:06 +0000 (16:43 -0400)
As part of ongoing changes to the structure of tables in the
documentation[1], the HTML property valign is being set to middle
in the table headers, but was not being respected in the pgweb CSS
rules.

This adjusts the table headers to respect the valign property, which
in testing works with both the latest documentation as well as previous
versions (and given most, if not all, table headers to date are not
multi-lined).

[1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=e894c61836e4b967f7ec65358fdaed2ba86ed238

media/css/main.css

index 9d37f401f10daa7f4af4ee7a112dd8aad0884ee2..4ed8727736068ef9149b9750394033432c1b4eb7 100644 (file)
@@ -737,6 +737,7 @@ code,
 #docContent table.CALSTABLE th {
   background-color: #e9ecef;
   padding: 0.5ex 0.5ex;
+  vertical-align: inherit;
 }
 
 #docContent table.table td,