From 2ad41558bab5af645678b07a53c5532c7b2a0da2 Mon Sep 17 00:00:00 2001 From: Creeker98 <168714207+Creeker98@users.noreply.github.com> Date: Tue, 7 May 2024 14:26:40 +0200 Subject: [PATCH] Fix css background color override for highlight box (#9314) (cherry picked from commit 183d0e3147de1c9de6bcc58d33a6db97d920673b) --- _static/css/custom.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_static/css/custom.css b/_static/css/custom.css index 60ba496bc..f847a8ff0 100644 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -533,6 +533,14 @@ html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not( html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .k { font-style: normal; } +html.writer-html5 .rst-content dl:not(.docutils) > dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) > dt { + border-top-color: var(--highlight-background-emph-color); + background: var(--highlight-background-color); +} +html.writer-html5 .rst-content dl:not(.docutils) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) > dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) > dt { + border-left-color: var(--highlight-background-emph-color); + background: var(--highlight-background-color); +} html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .sig-param, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).class dt > .optional ~ em, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).function dt > .optional ~ em,