Quick update: Better way to do this. You can use the .style + html tag format to target text.
So, ".stylename p" would let you apply, say, a lineheight property to any paragraph text to which you've applied that custom css, .stylename p h1 would let you target p & h1, etc.
Not sure why I didn't think this was workign at first, but there you go.
------------------------------
Adam Miller
Digital Corporate Content Manager
Visit CaliforniaUnited States
------------------------------
Original Message:
Sent: 08-02-2023 19:41
From: Adam Miller
Subject: Using theme styles in custom code & targeting text styles with custom css
Thanks Elena for more or less confirming that limitation of the code blocks. My sense is outside of the one-off table or whatever, code blocks are best used for creating whole pages or even sites, rather than plugging holes (after a point, just create a non-Flex site really).
Regarding the CSS, I've determined a VERY SPECIFIC workaround for applying lineheight (and I imagine many other text styles): The Flex editor will not let you apply a dot style (as best I can tell), but it will let you apply a text style to a paragraph or heading tag (p, h1, h2, etc.). So, what you can do is change the "HTML Heading Tag" of the texrt object to H6, which you're probably not using anywhere, and then target h6 in the Custom CSS tool. That will work. You do have to be sure you're not accidentally targeting an h6 somewhere else, but it's unlikely.
Maybe this helps someone.
------------------------------
Adam Miller
Digital Corporate Content Manager
Visit CaliforniaUnited States
------------------------------
Original Message:
Sent: 08-02-2023 19:22
From: Elena PEREZ
Subject: Using theme styles in custom code & targeting text styles with custom css
I believe you're correct that those classes don't automatically carry over to a custom code block. This feels like something that, while you could do it with a new CSS block like you mentioned, it would be better if this could be fixed globally so that if you've taken the time to set up CSS, it will carry through everything as opposed to having to be recreated.
I haven't hit the other issue you mention, but I wouldn't be surprised if certain settings weren't editable. If so, it would be good to have this stated somewhere in a knowledge base article or something so we know what's customizable and what isn't.
------------------------------
Elena PEREZ
Communications Coordinator
SEIU - UHWUnited States