Discussion:
[tw5] override class default color
(too old to reply)
Dave
2018-12-03 21:57:20 UTC
Permalink
I have a button based on the tag pill sytle:
<$list filter="[is[current]has[due]]">
<$button message="tm-delete-tiddler" tooltip="delete tiddler"
class="tc-tag-label tc-btn-invisible {background-color:red;}">
delete
</$button>
</$list>

But I want it to be a different color than the default color that comes
with the "tc-tag-label" class.

What I added in there "{background-color:red;}" doesn't work.


A) how do I do this?

and

B) is there a place I could have looked this up myself (other than this
forum?)

I got the idea from here:
https://groups.google.com/forum/#!searchin/TiddlyWiki/override$20class$20color|sort:relevance/tiddlywiki/WFyuhNTXCyQ/SBT9SvimCwAJ

but I didn't understand the context
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/003b47ab-4432-47ad-946e-d99620d0b419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
S. S.
2018-12-04 02:24:16 UTC
Permalink
There are probably other ways to do it, but this should work:

<span style=background-color:red; class=tc-tag-label>
<$list filter="[is[current]has[due]]">
<$button message="tm-delete-tiddler" tooltip="delete tiddler" class="
tc-btn-invisible">
delete
</$button>
</$list>
</span>

I also struggled to find this method some months ago. Unfortunately I
forgot where I got the hints from.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/834b29c5-100d-41e5-b6ad-2aff1d0fc156%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dave
2018-12-04 04:33:07 UTC
Permalink
Thank you - That works great!
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/a1cbeae4-13ba-4b0f-8bbb-1138979f7294%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...