MrDogeBro / sphinx_rtd_dark_mode

Adds a toggleable dark mode to the Read the Docs theme for Sphinx.
sphinx-rtd-dark-mode.vercel.app
MIT License
50 stars 16 forks source link

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

Open sanjacob opened 10 months ago

sanjacob commented 10 months ago

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}
MrDogeBro commented 9 months ago

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

rod7760 commented 1 month ago

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.