Howdy, Stranger!

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

CSS for specific tw-passage tag

Sorry if it's a foolish question, but how to (if possible) target only the first passage tw-passage tag? I'm trying to stylize my screen title, but couldn't find a way to do it not targeting other passages.

Comments

  • Nevermind, I found a (ugly as hell) way: using
    (if: (passage:)'s name contains "screentitle")
    
    and inserting <style> right on divs wrapping the content.

    Harlowe could include tags as body classes in future releases, it would help a lot.
  • l3m35 wrote: »
    Harlowe could include tags as body classes in future releases, it would help a lot.
    The idea is good but in Harlowe's case it is targeting the wrong element because Harlowe does not use the body element as the parent of it's custom tw-story element base hierarchy.

    This is why the code in the Basic Harlowe Passage Tag Based Styling thread targets the html element instead.
Sign In or Register to comment.