One point I like to understand is, if I have 20 parent each have 10 child 
tiddlers, the dynamic stylesheet will generate 20 line of CSS and 200 
tiddlers will be affected! I dont know is there any performance effect or 
not? I doubt a user have all 200 tiddlers opened on the screen!


On Monday, July 1, 2019 at 6:44:40 PM UTC+4:30, Mohammad wrote:
>
> Based on the discussion here, I have created a test case at: 
> http://dynastyle.tiddlyspot.com/
>
> The test case is as described below. I appreciate to give me your 
> feedback. I gonna to use it in Tiddlyshow to have different style for 
> different slideshow! Right now the whole wiki has to use one theme at a 
> time.
>
> How is it possible to conditionally and dynamically apply CSS to a 
> tiddler? Assume you have a child tiddler and you want to style it based on 
> a theme filed value from parent.The mechanism is as described below
>    
>    1. Generate a dynamic Stylesheet (a tiddler tagged with 
>    $:/tags/Stylesheet)
>       - The stylesheet is generated from some tiddlers containing 
>       conditional css
>       - There are several css tiddlers are populated conditionally
>    2. A test example uses the dynamic stylesheet as below
>       - The example has several tiddlers tagged with slideshow
>       - The slideshow tiddler has a field called *theme*!
>       - Each slideshow tiddler has several child tiddlers (those tagged 
>       with *slide* + slideshow tiddler as *parent*)
>       - The dynamic stylesheet applies conditionally css rules to child 
>       slides based on the theme field value. Here a theme is to style a 
> tiddler 
>       with colored border.
>    
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2b26915c-1d5b-4d94-8a2f-2563ab33d50b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to