It looks like you're new here. If you want to get involved, click one of these buttons!
tw-passage.class1 { background-colour: #fff; } tw-passage.class2 { background-colour: #000; }
{ (print: "<script>$('html').removeClass(\)</script>") (if: (passage:)'s tags's length > 0)[ (print: "<script>$('html').addClass('" + (passage:)'s tags.join(' ') + "'\)</script>") }
(print: "<script>$('tw-passage').addClass('" + (passage:)'s tags.join(' ') + "'\)</script>") ]
html.class1 tw-passage { background-colour: #fff; } html.class2 tw-passage { background-colour: #000; }
Comments
I added this:
Once that was in the header-tagged passage, I was able to write different CSS for tw-passage.class1, tw-passage.class2, etc.
I may have to do it for tw-sidebar too, to make sure everything matches.
Is there a downside to this that I'm not seeing?