[gtk-doc/gtk-doc-for-gtk4] Support sub-heading in tables
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc/gtk-doc-for-gtk4] Support sub-heading in tables
- Date: Sat, 18 Apr 2020 16:32:54 +0000 (UTC)
commit 5dfdb508f5362cefeea5381562fdb62724e47286
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 18 12:25:16 2020 -0400
Support sub-heading in tables
It is a tragedy that docbook has this incredibly elaborate
language for formatting all sorts of things, yet, style sheets
have to resort to processing instructions to do the most basic
table formatting things, like allowing subheadings. Truly
tragic.
So, to mark a table row as subheading (to receive the same
basic formatting as a <thead><row>), add
<?dbhtml class="subhead"?> to the row.
This commit changes style.css to apply the heading style
to such rows.
style/style.css | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/style/style.css b/style/style.css
index 6f0bc25..2efd5a9 100644
--- a/style/style.css
+++ b/style/style.css
@@ -143,6 +143,13 @@ div.table table td, div.table table th
vertical-align: top;
}
+div.table table tr.subhead
+{
+ /* tango:aluminium 2 */
+ background-color: #d3d7cf;
+ font-weight: bold;
+}
+
div.table table th
{
/* tango:aluminium 2 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]