For example, the following CSS:
a.question--term {
background-color: #ff6138;
/* setting:term_background_color */ }
a.question--term:hover {
background-color: #eb3000;
/* setting:term_hover_background_color */ }
Produces the following on replacement with values #42bbea and #0073df:
a.question--term {
background-color: #42bbea; }
a.question--term: #0073df; }
This is due to the regex matching also the pseudo-class ":hover" part of the selector and assuming it is a replaceable property.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | style_settings-fix-clobbering-of-pseudo-classes-2648698-1-7.patch | 896 bytes | syastrov |
Comments
Comment #2
syastrov commentedI have made a patch which addresses this by excluding an opening curly brace from the regex that matches the replaceable CSS properties.
Comment #3
lolandese commentedIt seems to be due to a combination with something else. If you use as below:
in results into:
Note the added space between the colon and the pseudo-class (
a.question--term: hover) but also that problem gets solved by the supplied patch.Definitely to commit.
Thanks for this improvement. Be welcome to suggest others.
Comment #4
lolandese commented