Twine Version: 2.11.1
Hi everyone,
I’m trying to change the color of my story background based on the passage tags. Another simple thing, right? Except I can’t find a way to change the entire page. The passage block changes color nicely, but the story color stays static.
This is what my CSS code looks like right now:
tw-story [tags~=“white”] {
background-image: linear-gradient(to right, white, purple);
color: black;
}
tw-story [tags~=“black”] {
background: #141414;
color: white;
}
tw-story [tags~=“blue”] {
background: #97B4E8;
color: black;
}
tw-story [tags~=“red”] {
background: #C4768C;
color: black;
}
tw-story [tags~=“green”] {
background: #BCE3AC;
color: white;
}
The point is to make combinations of color tags show different color gradients, but before I go choosing color gradients I want to actually get it to work first. This was me testing stuff out.
tw-story {
background: #C4768C;
}
The above will change the background part I’m trying to change, but it doesn’t target the tags.
I really appreciate any help.