Using twine2 and Sugarcube 2, relative beginner when it comes to the more complicated stuff (so this may have been answered already and i didin't understand it)
Basically what i am trying to do is have a small box popup with a description of a character when you hover over their name in the text and then disappear when its gone. I found something close to what i wanted and modified it.
/*
Text popout general setup.
*/
.textpop {position: relative;}
.textpop:hover::after {
position: absolute;
left: 100;
top: 1.25em;
z-index: 100;
background-color: tan;
border-style: solid;
border-width: 3px;
border-radius: 1em;
border-color: white;
padding: 10px;
}
/*
Text Popouts
*/
.johndoe.textpop:hover::after {
content: $johndoe.desc;
}
I know that variables cant be used to define CSS but i am not sure if there is a viable workaround for this problem.