Brilliant, thank you. Fortunately, I want consistent style use. However, I
am very tempted to give your specific-title approach a whirl, just because.
Cheers,
Sean
On Monday, July 24, 2017 at 10:02:12 PM UTC-4, Mat wrote:
>
> Yes.
>
> If you want the same styling applied to all titles, you can use:
>
> .tc-title {...}
>
>
> The very tricky one is how to apply it to *specific* tiddler titles. Here
> is a solution from deep in my lab drawer:
>
> It requires that you have set *"titles to show as links"* in the
> Controlpanel.
> Then, you can do:
>
> <style>
> <$wikify name=xx text={{{ [[New Tiddler 15]] +[encodeuri[]] }}}>
> .tc-tiddler-frame a[href="#<<xx>>"] { background:red }
> </$wikify>
> </style>
>
> As seen, the title must be uriencoded (e.g spaces become %20)
>
> It's pretty cool though because you can do things like this
>
> .tc-tiddler-frame a[href="#<<xx>>"]:before { content:"Yo!"; position:
> absolute; left:-1em; }
>
>
> <:-)
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/fc821fcc-6641-47b7-ab11-f67b849fa2cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.