diff --git a/common/content/style.js b/common/content/style.js index e4bcf196..97614d77 100644 --- a/common/content/style.js +++ b/common/content/style.js @@ -24,7 +24,7 @@ Highlights.prototype.CSS = * font-family: monospace; padding: 1px; CompGroup CompGroup:not(:first-of-type) margin-top: .5em; @@ -177,6 +177,9 @@ function Highlights(name, store, serial) .forEach(function (style) { style = Highlight.apply(Highlight, Array.slice(style.match(/^\s*([^,\s]+)(?:,([^,\s]+)?)?(?:,([^,\s]+))?\s*(.*)$/), 1)); + if (/^[>+ ]/.test(style.selector)) + style.selector = self.selector(style.class + style.selector); + let old = highlight[style.class]; highlight[style.class] = style; if (old && old.value != old.default)