How do I do this?
1 Can I refer to a CSS style sheet in the code below?
<$macrocall $name="details"
sum="{{||$:/plugins/kookma/favorites/viewtoolbar}}
{{||$:/core/ui/TagTemplate}}" src="""
Text here
""" status="closed" style="background-color: #; color:aqua;"
class="alert-success"/>
2 Or do I have to make changes to the plugin code?
tag: $:/tags/Macro
title: $:/plugins/kookma/shiraz/macros/details --->
\define details(sum:"summary", src:"source", status:"", class:"", style:"")
<details $status$>
<summary style="$style$">$sum$</summary>
<div class="$class$">
$src$
</div>
</details>
\end
3 And how do I do that in the "right" way?
Op zondag 10 januari 2021 om 17:13:46 UTC+1 schreef PMario:
> Hi,
> Try this:
> https://tiddlywiki.com/#How%20to%20apply%20custom%20styles:%5B%5BHow%20to%20apply%20custom%20styles%5D%5D%20%5B%5BCustom%20styles%20by%20data-tags%5D%5D
> -m
>
> On Sunday, January 10, 2021 at 4:22:11 PM UTC+1 [email protected] wrote:
>
>> I have found this:
>> How to apply custom styles by tag
>> <https://tiddlywiki.com/static/How%2520to%2520apply%2520custom%2520styles%2520by%2520tag.html>
>> :
>>
>> https://tiddlywiki.com/static/How%2520to%2520apply%2520custom%2520styles.html
>>
>>
>> but it says it is deprecated...
>>
>> Op zondag 10 januari 2021 om 11:33:22 UTC+1 schreef [email protected]:
>>
>>> Hello,
>>>
>>> (Shiraz plugin)
>>>
>>> <$macrocall $name="details"
>>> sum="{{||$:/plugins/kookma/favorites/viewtoolbar}}
>>> {{||$:/core/ui/TagTemplate}}" src="""
>>> Text here
>>> """ status="closed" style="background-color: #; color:aqua;"
>>> class="alert-success"/>
>>>
>>>
>>> I want to have the color ( color:aqua; ) automatically adjusted if the
>>> tiddler has one of the following tags; (Or if a field contains one of the
>>> following values.)
>>>
>>> Cold = blue
>>> Cool = aqua
>>> Neutral = white
>>> Warm = orange
>>> Hot = red
>>>
>>> Thank you,
>>>
>>
--
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/cfe8baae-adec-4a11-9d4d-48b73513a484n%40googlegroups.com.