Open whudson opened 1 year ago
I'm just doing some further testing now, and see that moving the invert()
from body to html seems to work for my case, but I'm not sure about the implications of doing this since dark mode is currently selected by the a
attribute on the body element.
Will this affect the way that the dark mode switching is intended to work? I will do some further testing and see if I can make a PR for this.
How to reproduce
Make a page in dark mode that uses a long line of code with the
{% highlight %}
syntax.What happens?
The long line of code flows off screen, and outside of the body element. When scrolling sideways to read the line, the white background of the html element is seen. The
invert()ed
colours are only applied to the html body.Expected behaviour
I would expect that I can write long lines of code in the inline highlighted syntax style without ruining the aesthetics of the theme.
Example