Howdy, Stranger!

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

Named Hook / Stylesheet / Harlowe 1.2.2

"tw-link" changes the styling of links but not named hooks. What's the rule that would?

(Sorry to ask such a basic question but I can't for the life of me find a post that directly gives the rule.)

Comments

  • ...but not named hooks.
    It is unclear if you mean:

    1. A named hook that is NOT being used as a target of a click related macro.
    |styling>[This named hook is being used to style this text]
    
    ... in which case you can use a CSS selector based on the name of the hook to style it, as demonstrated by the following CSS which changes the enclosed text to green.
    tw-hook[name="styling"] {
    	color: green;
    }
    


    2. A named hook that IS being used as a target of a link related macro.
    |linking>[This named hook is the target of a click macro.]
    
    (click: ?linking)[]
    
    ... in which case this comment in the Harlowe -Changing color of text... thread explains the different CSS selectors related to the two different link types, I suggest reading it so you familiarise yourself with the differences.

    The following CSS changes the normal colour of any link to orange, including the above click macro based example.
    tw-link, .enchantment-link {
        color: orange;
    }
    
  • tw-link, .enchantment-link {
    color: orange;
    }

    This is what I was looking for. Didn't know about the ".enchantment-link" part. Thank you.
Sign In or Register to comment.