Sorry, forgot to include the stylesheets,



Tag: $:/tags/Stylesheet
Title: $:/plugins/.mr/shiraz/stylesheet/details

/*details html5 macro*/
details > summary {
  padding: 2px 6px;
  background-color: #efebe9;
  font-weight:500;
  outline:none;
}
details > div {
  background-color: #fffef9;
  padding: 2px 6px;
  margin: 0;
}


----


Tag: $:/tags/Stylesheet
Title: $:/plugins/kookma/shiraz/styles/details-slider 

/*details html5 macro*/
details > summary {
  padding: 2px 6px;
  font-weight:500;
  outline:none;
}
details > div {
  padding: 2px 6px;
  margin: 0;
}

button .kk-sh-slider svg{
width: 0.8em;
height: 0.8em;
vertical-align: middle;}

 

Op maandag 11 januari 2021 om 11:47:20 UTC+1 schreef [email protected]:

> 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/90efa0d4-8c55-43a9-9b07-92fb069260a5n%40googlegroups.com.

Reply via email to