Open mrquincle opened 2 years ago
For now I've added
html.dark-mode
a[href$="#\gh-light-mode-only"] {
display: none;
}
html.light-mode
a[href$="#\gh-dark-mode-only"] {
display: none;
}
Corrections welcome!
This sounds like a nice feature! Unfortunately it has been deprecated by GitHub in favor of the <picture>
element.
But the <picture>
tag will not be accepted by Doxygen.
Any other suggestions? My guess is that the best approach would be to open an issue at doxygen/doxygen asking for <picture>
support? 🤔
I think it's coming: https://github.com/doxygen/doxygen/blob/master/src/htmldocvisitor.cpp
Oh no, this is just for displaying formulas.
Currently there's a neat github feature to define if images should be rendered in dark and/or light mode. It's something like this:
What I'm looking for is how to adjust the
css
to have the same behavior. It means I've to do something like the following depending on the mode.It would be great to get some help in how to do this. Or otherwise, some directions I how this should be done in a manner that is github compatible.