Hi Tony,

Thanks for helping think of a solution.

The nice feature of themes is that there can only be one theme active at a 
time.
So in principle styles of theme A cannot influence styles of theme B and 
vice versa (I know you can base a theme on another theme by the 
'dependents' field but that is not important for the discussion).
So for me it looks like bad practice to overwrite a stylesheet of my theme 
by toggling the tag $:/tags/Stylesheet on/off (by a button of my theme!).
Rearranging styles by list-before/list-after or drag & drop is a workaround 
like what I did with the overwritten Theme button which deletes the remnant 
stylesheet.

The way to go is what is used in the Vanilla theme: an 'if-then' macro 
which checks a state. This is used at several places in the Vanilla theme 
(checking @media, sidebar, fluid-width, ...). As far as I can see I 
overlooked something and I will start again with a minimal setup.

Cheers,

Ton


On Monday, January 28, 2019 at 2:28:17 PM UTC+1, TonyM wrote:
>
> Ton,
>
> Rather than overwrite the shadow styleshhet, why not create your own, that 
> contains only the differences and toggle that tiddlers sytlesheet tag. If 
> you must use "after" field to ensure your stylesheet comes last. It is css 
> "cascade" after all?
>
> Do i make sence?
>
> Tony
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/1f347785-96b2-4e86-ae73-908010b7b902%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to