Hubert,

I am no expert in this but see https://tiddlywiki.com/#Custom%20data-styles 
this defines the attribute tags that comes with TiddlyWiki, it includes the 
ability to apply it to tiddler titles as well as using tags. I believe 
another approach is for you to use the attribute definitions below 
More Possibilities in 
https://tiddlywiki.com/#Custom%20styles%20by%20data-tags

That is you can use this css method to address elements with your custom 
attributes and apply css to those elements. This can stop the css bleeding 
because it only applies to elements with those attributes.

With an unbleading set of css you can then use a list widget/reveal with a 
filter in the view template that contains a 
<style>css</style>
Section, if and only if any desired field condition exists.

I hope this leads you to an answer. Hopefully a CSS expert will see this.

tony

On Thursday, December 12, 2019 at 1:19:11 AM UTC+11, Hubert wrote:
>
> Thanks for responding Tony.
>
> I believe filters can be used in css data-tags. Not done it myself
>>
>
> I would like to avoid tags as reference points for styling. I'm doing that 
> currently and, if possible, I would like to "deprecate" this. Same for 
> filters. Whenever possible, I've replaced them with the <reveal> widget.
>
> There is the class field and you can conditionaly display css between 
>> <style> html tags in the view template using filter which can depend on 
>> field values or existence.
>>
>
> Yes, I'm aware of the class field and I'm using that extensively. As for 
> in-tiddler <style> tags, I've done that previously but, again, will not 
> want to re-introduce this approach into my wiki, even if "sandboxed" using 
> the <reveal> widget, because there's always the risk of "style spill" onto 
> other tiddlers.
>
> Just to add, I've had a look at $:/core/ui/ViewTemplate and can see that 
> *data-tiddler-title*, *data-tags* and *class *are the only "modifiers" 
> available. I know I might try adding other field references and overwrite 
> this shadow tiddlrt but I'm generally against modifying core functionality.
>
> Thanks again,
> Hubert
>
> On Sunday, 8 December 2019 01:23:17 UTC, TonyM wrote:
>>
>> Hubert
>>
>> I believe filters can be used in css data-tags. Not done it myself. There 
>> is the class field and you can conditionaly display css between <style> 
>> html tags in the view template using filter which can depend on field 
>> values or existence.
>>
>> Short answer because I am mobile.
>>
>> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9dfbccfb-6390-41e3-a3c0-752e389a1fcb%40googlegroups.com.

Reply via email to