Replies: 3 comments 8 replies
-
At the moment we pack all $:/tags/Stylesheet tiddlers into a single
It's actually something I've been thinking about fixing for post-v5.1.23 |
Beta Was this translation helpful? Give feedback.
-
This is only for later reference and also for using in documentation: In Google forum I asked Tiddlywiki is enough flexible to have
Q1. Q2. Replied by @saqimtiaz
|
Beta Was this translation helpful? Give feedback.
-
I try to use wikitext / Tiddlywiki scripting instead of JS for many task including dynamic styling. See the below JS function
So, what is the equivalent Tiddlywiki script if the performance is one priority? Can a set of two $button widgets and a $reveal widget be used? What is the recommended practice here? I have a given a crude solution here in Forum but I think it is a bad practice to include inline styles. |
Beta Was this translation helpful? Give feedback.
-
A dynamic css can be like a below tiddler
Title: my-custom-style
Tags: $:/tags/Stylesheet
Now assume I need to apply the above styles to any tiddler has tag
recipe
AND also has a parent tag fromamerican
,european
orasian
all children ofcontinental
.so I may use the below code as the body of above my-custom-style tiddler
Note in real case I use much more complicated css here. This is the approach I also used in Tiddlyshow.
The issue is as my wiki grows with children of
continental
parent tag I got a very large my-custom-style so my question is:I appreciate your input here.
Reference
This is the answer by @saqimtiaz :
Beta Was this translation helpful? Give feedback.
All reactions