PMario wrote, in reply to my comment:
>
> Also, this would also make it possible to, in each tiddler, have a 
>> dedicated *style *field (just like currently there can be a *color *field) 
>> for quick styling of a tiddler without a separate stylesheet. I.e directly 
>> in the tiddler create a field with style: color:green; background:yellow;
>>
>
> Using the <style> element imo isn't a good idea, because
>

I tried the following for a tiddler-local style field. The <div style> 
element is outside the other <div classes> which gives it *lower *priority 
than any classes applied (according to tests I did). Is this a example of 
the "bad idea" or did you mean something else? - Unfortunately it doesn't 
seem to work (why?) with the transclusion in the viewteplate but it should 
give an idea. 


\define style() {{$(currentTiddler)$!!style}}
\define frame-classes()
tc-tiddler-frame tc-tiddler-view-frame $(missingTiddlerClass)$ $(
shadowTiddlerClass)$ $(systemTiddlerClass)$ $(tiddlerTagClasses)$
\end
\define folded-state()
$:/state/folded/$(currentTiddler)$
\end
<$set name="storyTiddler" value=<<currentTiddler>>><$set name=
"tiddlerInfoState" value=<<qualify "$:/state/popup/tiddler-info">>><$tiddler 
tiddler=<<currentTiddler>>><div style=<<style>>><div class=<<frame-classes
>>><$list filter=
"[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable=
"listItem"><$transclude tiddler=<<listItem>>/></$list>
</div></div>
</$tiddler></$set></$set>


<:-)

-- 
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/9a2051b3-a289-45bc-b6f4-e9d83520a4d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to