From: Thomas Monjalon <thomas@monjalon.net>
To: dev@dpdk.org
Subject: [PATCH 2/3] doc: improve style of overview matrices
Date: Wed, 23 Sep 2026 05:20:50 +0200 [thread overview]
Message-ID: <20260923032502.770744-3-thomas@monjalon.net> (raw)
In-Reply-To: <20260923032502.770744-1-thomas@monjalon.net>
The yellow cross gets full opacity and appears in the column header.
The selector nth-child(2n-1) is replaced with the docutils class row-even.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
doc/guides/custom.css | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/doc/guides/custom.css b/doc/guides/custom.css
index 7ab175db35..ce119acfda 100644
--- a/doc/guides/custom.css
+++ b/doc/guides/custom.css
@@ -19,11 +19,9 @@ th.head {
* Usage: insert the following line in the doc.
* .. rst-class:: matrix
*/
-.wy-nav-content:has(.matrix) {
- opacity: .99;
-}
table.matrix {
cursor: default;
+ isolation: isolate;
overflow: hidden;
}
table.matrix.docutils.align-default tr > :is(th, td) > p {
@@ -61,7 +59,7 @@ table.matrix.docutils.align-default td:first-child {
padding-left: 1em;
text-align: left;
}
-table.matrix.docutils.align-default tr:nth-child(2n-1) td {
+table.matrix.docutils.align-default tbody tr.row-even td {
background-color: rgba(210, 210, 210, 0.2);
}
table.matrix :is(th, td):not(:first-child):hover {
@@ -75,10 +73,11 @@ table.matrix :is(th, td):not(:first-child):hover::after {
left: 0;
position: absolute;
z-index: -1;
- background-color: #ffb;
+ background-color: #ffa;
}
-table.matrix.docutils.align-default tr:hover td {
- background-color: #ffb;
+table.matrix.docutils.align-default thead th:not(:first-child):hover,
+table.matrix.docutils.align-default tbody tr:hover td {
+ background-color: #ffa;
}
/* Set full width for all responsive tables of a page.
--
2.55.0
next prev parent reply other threads:[~2026-09-23 3:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 3:20 [PATCH 0/3] improve NIC features matrix Thomas Monjalon
2026-09-23 3:20 ` [PATCH 1/3] doc: move CSS of overview matrices Thomas Monjalon
2026-09-23 3:20 ` Thomas Monjalon [this message]
2026-09-23 3:20 ` [PATCH 3/3] doc: simplify NIC feature matrices Thomas Monjalon
2026-09-23 16:53 ` Stephen Hemminger
2026-09-23 17:02 ` Stephen Hemminger
2026-09-24 7:54 ` fengchengwen
2026-09-29 14:35 ` [PATCH 0/3] improve NIC features matrix Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260923032502.770744-3-thomas@monjalon.net \
--to=thomas@monjalon.net \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox