I’d like to write css for changing my visited link colors for all passages in Twine. I’ve tried adding the following to my stylesheet - the hover link color will change, but not the visited link color (got the following sets of code from forums and copied into my stylesheet):
THIS DOESN’T WORK:
enchantment-link /* sets only enchantment-link base link color /
{ color: #c50000; }
enchantment-link:hover / sets only enchantment-link hover link color /
{ color: #00ccff; }
enchantment-link.visited / only enchantment-link visited links /
{ color: #cc00ff; }
enchantment-link.visited:hover / only enchantment-link visited hover links */
{ color: #007676; }
THIS DOESN’T WORK, EITHER:
tw-link:hover, enchantment-link:hover /* sets only enchantment-link hover link color /
{ color: #00ccff; }
enchantment-link.visited / only enchantment-link visited links */
{ color: #cc00ff; }
AND THIS DOESN’T WORK:
tw-link:hover, enchantment-link:hover /* sets only enchantment-link hover link color /
{ color: #00ccff; }
tw-link:visited, enchantment-link.visited / only enchantment-link visited links */
{ color: #cc00ff; }
The hover colors css works on all of these examples, but the visited link color css doesn’t work on any of them.
Any advice?
Thanks, Greyelf. This will change my hover color but it doesn’t affect my visited color. I cannot figure out what’s going on. I used your code exactly but no luck:
Please use the “Preformatted Text” option in the comment field’s tool-bar when adding code examples.
Your CSS example uses colour values that are either the same or very similar to Harlowe’s defaults, which make it hard to see if your overrides are having an effect. If you change the colour values in your example to something with a greater contrast to the defaults…