Thanks Mat for clearing my 2nd question.
By class/scope I mean the scope of the class applies. for instances, I 
guess that .tc-titlebar means the title of tiddlers including the buttons, 
.tc-tag-label means the tag label of the tiddlers. What I want to know is 
if there's a comprehensive list of such classes for customizing styles of 
the tiddlers. I understand that these classes are self-explanatory by their 
names, but still wondering what are the possibilities.

I am using the way found in this to customize styles for certain tidders: 
https://tiddlywiki.com/#Custom%20styles%20by%20data-tiddler-title

e.g.:
Style Tiddler:
title: anyName
tags: $:/tags/Stylesheet

<$list filter="[myStyle[style1]]"> 
[data-tiddler-title^="<$view field=title/>"]
.tc-tiddler-body {
    color:MediumSeaGreen;
}
</$list> 

Applied Tiddlers:

title: anyName
class: myStyle
value: style1

Content of the tiddler



On Monday, July 29, 2019 at 10:20:18 AM UTC-5, Mat wrote:
>
> The scope or a dedicated stylesheet tiddler, i.e one tagged 
> "$:/tags/Stylesheet" is the whole wiki.
> The other route is a style block, i.e with style definitions between 
> <style>...</style>. This affects anything on the page for as long as the 
> tiddler is open. This makes it a bit risky because if you have several 
> tiddlers with such style blocks then the order of the tiddlers decide which 
> style rules if there are conflicts.
>
> Also, what's the difference between 'body.tc-body' and 'tc-body'?
>>
>
> The difference is that the former has higher specificity meaning that if 
> the former says e.g the background should be red and the other says green, 
> the former "wins" regardless of which order they are called in. If you have 
> two identical calls and but with different background colors then the last 
> called wins. To learn more about this, google CSS specificity. It is not a 
> TW feature.
>
> <:-)
>
>
>

-- 
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/59aa87f3-4a1e-4683-aba1-aad0b6f2a6d1%40googlegroups.com.

Reply via email to