Hi Jeremy,

Thanks, that does the trick.
I only hope there will be no core theme like $:/themes/tiddlywiki/white 
that overrides my styles again :-)

Cheers,

Ton


On Sunday, August 10, 2014 1:24:29 PM UTC+2, Jeremy Ruston wrote:
>
> Hi Ton
>
> You should be able to give your stylesheets a "list-after" field 
> specifying `$:/themes/tiddlywiki/vanilla/base`.
>
> Best wishes
>
> Jeremy
>
>
>
> On Fri, Aug 8, 2014 at 2:38 PM, Ton Gerner <[email protected] 
> <javascript:>> wrote:
>
>> Hi all,
>>
>> While making a plugin (in the browser) I came across the problem of 
>> execution order of stylesheets.
>> Standard stylesheets will be processed after the (shadow) theme 
>> stylesheets, see (filter in $:/core/ui/PageStylesheet):
>>
>>
>>
>> <https://lh4.googleusercontent.com/-3eIBSkppFKA/U-TRNGU3EWI/AAAAAAAADEg/r6cRJkjcltM/s1600/Stylesheet_order1.png>
>>
>> But stylesheets of a plugin become shadow stylesheets and the plugin 
>> stylesheets will be overwritten by the theme stylesheets (assuming standard 
>> naming convention for plugins), see:
>>
>>
>> <https://lh6.googleusercontent.com/-sYjeN5dCUBw/U-TRROr5KpI/AAAAAAAADEo/XIZjSk2-ob0/s1600/Stylesheet_order2.png>
>>
>>
>> For sure, there are several workarounds I can think of, e.g.:
>> 1) Forget the naming convention and use the TW Classic 'zz_Config' trick 
>> (start plugin stylesheets with something like $:/zz). Possible but not very 
>> nice.
>> 2) Transclude the plugin stylesheets at the end of 
>> $:/core/ui/PageStylesheet (after the <$list 
>> filter="xyx"<$transclude/></$list>).
>> Since I use a modified $:/core/ui/PageStylesheet in my plugin not a big 
>> problem, but ... not nice (plugin stylesheets twice).
>> 3) Change the <$list filter="xyx"<$transclude/></$list>. Again in my case 
>> not a big problem, but ... not nice.
>>
>> Does somebody know a nice solution for this behavior? May be something 
>> with a list?
>>
>> Thanks in advance.
>>
>> Ton
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:[email protected] <javascript:>
>  

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to