Hi Mohammad I know this is an old post, but is it easy to make a status badge with three sections? I tried adding a new subclass and span but it didn't work. I added a new section to the stylesheet as well.
\define dbadge(subject, comment, status, type:"primary") <div class="dbadge"><span class="dbadge-subject">$subject$</span><span class="dbadge-comment">$comment$</span><span class="dbadge-status dbadge-$type$ ">$status$</span></div> \end On Thursday, December 6, 2018 at 2:16:32 PM UTC+10 Mohammad wrote: > Hi Tony, > Yes, I used a fixed color for subject part and I can remove it to let you > set the color as you like! > The other way is to use different colors for different categories. > > To do so, we need to modify the macro as below > > \define dbadge(subject:"Subject",status:"Status",type1:"", type2: > "primary") > <div class="dbadge"> > <span class="$type1$">$subject$</span><span class="$type2$">$status$</ > span> > </div> > \end > > > and remove line 8 in stylesheet. > > Now type2 is a css class to define your own background color. > > > > - Mohammad > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5f5ae83c-840f-492b-9384-67795a640b5fn%40googlegroups.com.