sphinx_rtd_dark_mode icon indicating copy to clipboard operation
sphinx_rtd_dark_mode copied to clipboard

Black text on sphinx-rtd-theme with Breathe C++ autodoc

Open sanjacob opened this issue 1 year ago • 3 comments

Overall this is a great theme and I love the animation when switching light/dark themes. Just a small issue with the api autodoc which causes class names to be black.

The specific CSS selector in the upstream sphinx-rtd-theme which causes this is:

html.writer-html4 .rst-content dl:not(.docutils) .descclassname,html.writer-html4 .rst-content dl:not(.docutils) .descname,html.writer-html4 .rst-content dl:not(.docutils) .sig-name,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-name{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#000}

sanjacob avatar Dec 01 '23 14:12 sanjacob

Hi, thank you for the report. Could you please include an example bit of code to show exactly where the issue occurs? Thank you.

MrDogeBro avatar Dec 21 '23 13:12 MrDogeBro

I do have a screenshot that illustrates the issue: image image

Disabling the css selector in sphinx-rtd-theme fixes it. I will attempt to put together a minimal example later.

rod7760 avatar Aug 27 '24 14:08 rod7760