doc: css: Use body color for captions

Make sure that captions (tables, figures, ...) can be properly
seen on both light and dark them by setting their text color
to the default "body" color.
Fixes #73190.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2024-07-01 10:10:35 +02:00 committed by Anas Nashif
parent 2c34da96f0
commit 6e4a45f7a9

View file

@ -194,6 +194,9 @@ a.icon-home:visited {
border-color: var(--code-border-color);
}
.rst-content table.docutils caption, .rst-content table.field-list caption, .wy-table caption {
color: var(--body-color);
}
.wy-table-odd td,
.wy-table-striped tr:nth-child(2n-1) td,
.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td {