Okay, thank you. I've been working on this project for several years so I don't always remember what code I've put where. I've found the script I'm using, though, in the Startup passage:
(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>")
(print: "<script>$('tw-sidebar').addClass('" + (passage:)'s tags.join(' ') + "'\)</script>")
]
So, according to your link, I don't need this anymore, and I should use this in the CSS instead:
tw-story[tags~="desert"] {
background-color: Beige;
}
tw-story[tags~="forest"] {
background-color: LightGreen;
}
Can I ask what the ~ in this code means/does?
(I might just stick to Harlowe 1.x for the purposes of this project, but this is good information going forward.)