Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Harlowe -Changing color of text when hovering over a link that leads to a previously visited passage

I used tw-link in my CSS to change the color of links, and tw-link.visited to change the color of visited links. But when you hover over a link that leads to a previously visited passage - it still shows up as pink (just hovering, not even clicking).

I would like to change the color of this but am not sure how to do it, thanks!

Comments

  • There are two types of links in Harlowe, they are: the tw-link element and the .enchantment-link class.

    The following four CSS selectors are what you need to cover both types and the three different states (normal, hover, visited) you asked for.
    tw-link, .enchantment-link {
        color: green;
    }
    tw-link:hover, .enchantment-link:hover {
        color: lightgreen;
    }
    .visited {
        color: red;
    }
    .visited:hover {
        color: pink;
    }
    
  • Great, thanks so much for the help, cheers!
Sign In or Register to comment.