Colored titles based on a tag?

75 views
Skip to first unread message

passingby

unread,
Jul 11, 2019, 5:51:45 PM7/11/19
to TiddlyWiki
Is it possible to make a title (in a TOC list or perhaps everywhere) appear red (or any color) based on a tag? For example if a tiddler is tagged 'incomplete', its title appears as red in a list?

Mat

unread,
Jul 11, 2019, 6:05:10 PM7/11/19
to TiddlyWiki
This has some effect

[data-tags*="apple"] .tc-title {
  border
: 9px dashed blue;
}

I think you have to be able to specify exactly where you'd want it applied - but I'm not quite sure it would be generally applicable by specifying a tag.

<:-)

PMario

unread,
Jul 12, 2019, 5:44:27 AM7/12/19
to tiddl...@googlegroups.com
Hi,

This type will find any "apple" sting even if it is "apple-pie" or "apple pie". if you use :


[data-tags~="apple"] .tc-title {
border: 9px dashed blue;
}

It should be targetting tag "apple" only. See the red ~  ... and see: https://tiddlywiki.com/#Custom%20styles%20by%20data-tags

have fun!
Mario

Mat

unread,
Jul 12, 2019, 6:10:02 PM7/12/19
to TiddlyWiki
Passingby

See this announcement.

<:-)
Reply all
Reply to author
Forward
0 new messages