add support for stripes attribute on table
authorDan Allen <dan@opendevise.com>
Sat, 12 Dec 2020 10:01:45 +0000 (03:01 -0700)
committerDan Allen <dan@opendevise.com>
Sat, 12 Dec 2020 10:01:45 +0000 (03:01 -0700)
preview-src/index.adoc
src/css/doc.css
src/css/vars.css

index bc52e5f..712da55 100644 (file)
@@ -169,7 +169,7 @@ agam graeci
 At ornatus splendide sed.
 
 .Library dependencies
-[#dependencies%autowidth]
+[#dependencies%autowidth,stripes=hover]
 |===
 |Library |Version
 
index 9cbdef4..7d4c569 100644 (file)
   border-bottom: 1px solid var(--table-border-color);
 }
 
+.doc table.stripes-all > tbody > tr,
+.doc table.stripes-odd > tbody > tr:nth-of-type(odd),
+.doc table.stripes-even > tbody > tr:nth-of-type(even),
+.doc table.stripes-hover > tbody > tr:hover {
+  background: var(--table-stripe-background);
+}
+
 .doc .tableblock p {
   font-size: inherit;
 }
index 56d5454..c7d963c 100644 (file)
   --quote-attribution-font-color: var(--color-gray-30);
   --sidebar-background: var(--color-smoke-90);
   --table-border-color: var(--panel-border-color);
+  --table-stripe-background: var(--panel-background);
   /* footer */
   --footer-line-height: var(--doc-line-height);
   --footer-background: var(--color-smoke-90);