override class default color

48 views
Skip to first unread message

Dave

unread,
Dec 3, 2018, 4:57:21 PM12/3/18
to TiddlyWiki
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:

but I didn't understand the context


S. S.

unread,
Dec 3, 2018, 9:24:16 PM12/3/18
to TiddlyWiki
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.


Dave

unread,
Dec 3, 2018, 11:33:08 PM12/3/18
to TiddlyWiki
 Thank you -  That works great!
Reply all
Reply to author
Forward
0 new messages