> Say, I have a statement in the "StyleSheet" tiddler that says:
> .header {background:[[ColorPalette::PrimaryMid]];}
> I would like to override this statement from another tiddler - say,
> called: StyleSheetAddOn.
> When I don't want to override that statement, I can create an empty
> tiddler called StyleSheetAddOn so that the header background reverts
> back to "PrimaryMid".

When *rendering* regular tiddler content, the [[TiddlerName]] sequence
creates an explicit TiddlyLink to the indicated title.  However, if
the tiddler content is being *processed as a CSS* (because it is in a
stylesheet tiddler), then the [[...]] performs a 'text include' of the
indicated tiddler's content, replacing the [[...]] with the actual
content of that tiddler.

Thus, to achieve the results you seek, you can simply add:
   [[StyleSheetAddOn]]
(including the brackets) to the end of your StyleSheet tiddler.  When
present, the CSS from StyleSheetAddOn will be 'glued into' the
StyleSheet and then processed along with the CSS contained there.  If
StyleSheetAddOn is not present in the document, the [[...]] in the
StyleSheet is simply ignored, just as you want.

enjoy,
-e


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to