but that does not work for the dark theme. I thought it was a question of commas … again (), so I played with them in terms of presence or deletion and placement, to no avail.
Most importantly, we have to make sure we specify it is the .ls-block within .light-theme or .dark-theme and then whatever header we want (in this case h2).
To get that, we don’t add any comma’s.
I inherited the code and it works fine. That is where I got the editor-inner and .h3.uniline-block bits from. It even works for color, which will also be the same for light and dark. Why then, do editor-inner and .h3.uniline-block have to be left out if I want to differentiate light and dark?
They probably aren’t needed in those code bits either
So it is the reverse question actually. Why do you need them for that code? Would the code still work without it?
Yep, you are right, that code is not needed. That settles that question.
Sometimes/oftentimes, the simple solution is the best one, as per the KISS (keep it simple, stupid) principle.