Update doc styles for catalog tables
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Thu, 14 May 2020 02:23:46 +0000 (22:23 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Thu, 14 May 2020 02:23:46 +0000 (22:23 -0400)
As part of the ongoing effort to make the documentation
both easier to read visually and more friendly for the
PDF building, there have been improvements to the layout
of the reference tables.

This set of changes focuses on the catalog tables that
detail the information in the different PostgreSQL catalogs.
There is also a small adjustment for the function tables, as
one of the CSS classes was renamed in the SGML source.

Author: Tom Lane <tgl@sss.pgh.pa.us>

media/css/main.css

index 2b4831d84113f51f1dab2a5be5c48292de5b0c3c..a27ab0d9dcd79c3fed1c4d5178d7962a688f777f 100644 (file)
@@ -791,14 +791,6 @@ code,
   word-break: unset;
 }
 
-/** Formatting for entries in tables of functions: indent all but first line **/
-#docContent table.table th.functableentry,
-#docContent table.table td.functableentry {
-       padding-left: 4em;
-       text-indent: -3.5em;
-       text-align: left;
-}
-
 #docContent table.table th.func_table_entry p,
 #docContent table.table td.func_table_entry p {
   margin-top: 0.1em;
@@ -807,6 +799,38 @@ code,
   text-align: left;
 }
 
+/** Formatting for entries in tables of catalog/view columns **/
+#docContent table.table th.catalog_table_entry p,
+#docContent table.table td.catalog_table_entry p {
+  margin-top: 0.1em;
+  margin-bottom: 0.1em;
+  padding-left: 4em;
+  text-align: left;
+}
+
+#docContent table.table th.catalog_table_entry p.column_definition {
+  text-indent: -3.5em;
+  word-spacing: 0.25em;
+}
+
+#docContent table.table td.catalog_table_entry p.column_definition {
+  text-indent: -3.5em;
+}
+
+#docContent table.table p.column_definition code.type {
+  padding-left: 0.25em;
+  padding-right: 0.25em;
+}
+
+#docContent table.table td.catalog_table_entry pre.programlisting {
+  background-color: inherit;
+  border: 0;
+  margin-bottom: 0.1em;
+  margin-top: 0.1em;
+  padding: 0;
+  padding-left: 4em;
+}
+
 #docContent table.table p.func_signature {
   text-indent: -3.5em;
 }