From: Dan Allen Date: Sat, 12 Dec 2020 10:01:45 +0000 (-0700) Subject: add support for stripes attribute on table X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=813c2fd1ec4e7a175a78c17f28c95044bd3f5753;p=eg-antora.git add support for stripes attribute on table --- diff --git a/preview-src/index.adoc b/preview-src/index.adoc index bc52e5f..712da55 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -169,7 +169,7 @@ agam graeci At ornatus splendide sed. .Library dependencies -[#dependencies%autowidth] +[#dependencies%autowidth,stripes=hover] |=== |Library |Version diff --git a/src/css/doc.css b/src/css/doc.css index 9cbdef4..7d4c569 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -219,6 +219,13 @@ 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; } diff --git a/src/css/vars.css b/src/css/vars.css index 56d5454..c7d963c 100644 --- a/src/css/vars.css +++ b/src/css/vars.css @@ -110,6 +110,7 @@ --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);