summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-23 21:30:21 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-01 14:51:04 -0400
commit6b9a39409e5635e973f5e6fe53c507b318f61a46 (patch)
tree7f91d93e08919a6100d035c2b7d67137481a69f4
parent75b7fb78dae71ed0da54386686974b977ad1caae (diff)
downloadgtk-doc-6b9a39409e5635e973f5e6fe53c507b318f61a46.tar.gz
css: Treat informal tables like tables
gtk-doc uses informaltable elements for formatting the function listings in reference pages, while pandoc-generated docbook uses informaltable elements for regular tables. Thankfully, they end up with different border attributes in the html, so we can use that to style them differently.
-rw-r--r--style/style.css16
1 files changed, 4 insertions, 12 deletions
diff --git a/style/style.css b/style/style.css
index 6f0bc25..e62807a 100644
--- a/style/style.css
+++ b/style/style.css
@@ -61,18 +61,6 @@ a:hover
color: #729fcf;
}
-div.informaltable table
-{
- border-collapse: separate;
- border-spacing: 1em 0.3em;
- border: none;
-}
-
-div.informaltable table td, div.informaltable table th
-{
- vertical-align: top;
-}
-
.function_type,
.variable_type,
.property_type,
@@ -127,6 +115,7 @@ td p
margin: 0.25em;
}
+div.informaltable table[border="1"],
div.table table
{
border-collapse: collapse;
@@ -135,6 +124,8 @@ div.table table
border: solid 1px #babdb6;
}
+div.informaltable table[border="1"] td,
+div.informaltable table th,
div.table table td, div.table table th
{
/* tango:aluminium 3 */
@@ -143,6 +134,7 @@ div.table table td, div.table table th
vertical-align: top;
}
+div.informaltable table[border="1"] th,
div.table table th
{
/* tango:aluminium 2 */