Hi.
Unless I'm mistaken, regular a:visited css doesn't work for sugarcube. (Twine 1.4, only tried it in Chrome on OS X).
Is there some other way of displaying links that the player has already clicked (or, even better, links leading to visited passages) visually different from unvisited links?
Or, more generally - is there a simple way to apply a css class to a link when you put a link in a passage?
Comments
Make sure your span is outside the brackets.
Correct. The
:visited
pseudo-class doesn't work properly in any story format because of how they function.You can, however, get the effect you want from the
.link-visited
class, which you enable via theconfig.addVisitedLinkClass
configuration property.Add the following to a
script
tagged passage: Afterward you should be able to use something like the following to style visited links: