Closed Masterjun3 closed 8 months ago
I'm not able to reproduce this:
Might it be only on a specific browser?
Only in Dark Mode!
Here's the culprit:
I'm not sure why we're changing z-index in dark mode. Shouldn't the only difference between dark and light modes be the actual colors used?
Maybe for the line highlight? But I'm actually not seeing where we even use line-highlight. (Our diff uses different classes for the green and red lines) Maybe @TiKevin83 can explain the z-index or line-highlight?
I don't remember why those lines are there, I agree the z-index in theory shouldn't need to change between light and dark mode but maybe the behavior it's for is broken in light mode and it should just be in the base template? Also isn't .line-highlight.line-highlight
redundant and the same as .line-highlight
?
Delete it and see what breaks? It's objectively wrong to be there
Oh looks like our dark theme is just copied from a preset theme: https://github.com/PrismJS/prism-themes/blob/447479fc7b2be2051fe27e561aceed7cc87a589f/themes/prism-vsc-dark-plus.css . Since we don't use line highlighting, at least not yet, we can just remove that block.
Have you used Ctrl+F5? Removing exactly those lines seems to work for me.
Of course I forgot!
E.g. on https://tasvideos.org/LuaScripting/Display but happens in both wiki and forums.
It is also hard to click it in this situation.