Is it fine to use your own tag-pill macro

\define my-tag-pill(tag) <span class="tc-tag-label-new">$tag$</span>
<style>
span.tc-tag-label-new {
    display: inline-block;
    padding: 0.16em 0.7em;
    font-size: 0.9em;
    font-weight: 400;
    line-height: 1.2em;
    color: #ffffff;
    white-space: nowrap;
    vertical-align: baseline;
    background-color: brown;
    border-radius: 1em;
}
</style>


Example
<< my-tag-pill  tag:"Macros">>


Best wishes
Mohammad


On Sat, Apr 24, 2021 at 9:37 PM si <[email protected]> wrote:

> I'm building something in my wiki that makes use of the tag-pill macro
> <https://tiddlywiki.com/#tag-pill%20Macro>, but I need to change the
> color to distinguish it from regular tags. Is there any way to do this?
>
> I feel like it might be possible with the "element-attributes" parameter
> but I don't actually understand what it is for.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/edbaa294-21a0-4719-b67f-338be8d53440n%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/edbaa294-21a0-4719-b67f-338be8d53440n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDZvFkh4Fotk71-DiG-x_8_CC34OU9mLGYO%3DXOHyQ90NA%40mail.gmail.com.

Reply via email to