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/be527088-ce97-4231-9c34-c4a33b7efb6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to