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:
parent
2ab7286c71
commit
376c82f8eb
1 changed files with 3 additions and 1 deletions
4
doc/_static/css/custom.css
vendored
4
doc/_static/css/custom.css
vendored
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue