doc: Fix CSS issue with keyboard shortcuts on dark theme

Fixes CSS styling issue causing keyboard shortcuts to sometimes not be
visible (white text on white background) using dark theme.
Fixes #55126.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2023-02-23 14:34:59 +01:00 committed by Carles Cufí
commit 376c82f8eb

View file

@ -545,7 +545,9 @@ a.internal:visited code.literal {
} }
/* Keyboard shortcuts tweaks */ /* Keyboard shortcuts tweaks */
kbd, .kbd { kbd, .kbd,
.rst-content :not(dl.option-list) > :not(dt):not(kbd):not(.kbd) > kbd,
.rst-content :not(dl.option-list) > :not(dt):not(kbd):not(.kbd) > .kbd {
background-color: var(--kbd-background-color); background-color: var(--kbd-background-color);
border: 1px solid var(--kbd-outline-color); border: 1px solid var(--kbd-outline-color);
border-radius: 3px; border-radius: 3px;