[tw] Re: [TW5] How to use $list filter in css stylesheet?

2017-07-12 Thread magev958
Thanks, that worked perfekt! I was almost sure it was one of them "sorry, can't be done"-questions :) -- 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+u

[tw] Re: [TW5] How to use $list filter in css stylesheet?

2017-07-12 Thread PMario
Hi magev958, I did add some more info to the pull request: see: https://github.com/Jermolene/TiddlyWiki5/pull/2737#issuecomment-314855978 If you get the content from this ViewTemplate: http://2737.tiddlyspot.com/#%24%3A%2Fcore%2Fui%2FViewTemplate, which is part of the PR, you can use the mecha

[tw] Re: [TW5] How to use $list filter in css stylesheet?

2017-07-12 Thread Mat
OK, this works Conditional viewtemplate: tag: $:/tags/ViewTemplate text: <$list filter="[all[current]has[rank]rank[species]]"> <$transclude mode="block"/> Stylesheet: tag: $:/tags/Stylesheet text: .mycolumns { display: block; column-count: 2; -moz-column-count: 2; -webkit-col

[tw] Re: [TW5] How to use $list filter in css stylesheet?

2017-07-12 Thread PMario
On Wednesday, July 12, 2017 at 5:24:05 AM UTC+2, magev958 wrote: > > I have tried this code in my stylesheet, but it affects all tiddlers. My > stylesheet is tagged $:/tags/Stylesheet but the type is > *text/vnd.tiddlywiki* instead of *text/css*. > > <$list filter="[rank[species]]"> > /* Columns

[tw] Re: [TW5] How to use $list filter in css stylesheet?

2017-07-11 Thread magev958
My field is "rank" with the text "species" for the tiddlers I would like to be affected Den lördag 8 juli 2017 kl. 02:40:49 UTC+2 skrev magev958: > > I have tried to use $list filter in an stylesheet tiddler as per this > https://groups.google.com/d/msg/tiddlywiki/BN2lJiDKSNE/AVrsbrHkCgAJ but >

[tw] Re: [TW5] How to use $list filter in css stylesheet?

2017-07-11 Thread magev958
I have tried this code in my stylesheet, but it affects all tiddlers. My stylesheet is tagged $:/tags/Stylesheet but the type is *text/vnd.tiddlywiki* instead of *text/css*. <$list filter="[rank[species]]"> /* Columns */ body.tc-body .tc-tiddler-frame .tc-tiddler-body { display: block;

[tw] Re: [TW5] How to use $list filter in css stylesheet?

2017-07-11 Thread 'Mark S.' via TiddlyWiki
The problem is that there are no naturally occurring classes associated with fields like there are with tags. What you could do is to modify the view template in order to assign classes based on field values. Then your stylesheet could be more or less static. Mark On Tuesday, July 11, 2017 at

[tw] Re: [TW5] How to use $list filter in css stylesheet?

2017-07-11 Thread Mat
If you post the code, it's much easier to help you. I'm pretty experienced with TW and CSS so I can hopefully help. (Incidentally I'm just now struggling with the same problem but in a very complex TW project that I'll hopefully present soon.) <:-) -- You received this message because you are

[tw] Re: [TW5] How to use $list filter in css stylesheet?

2017-07-11 Thread magev958
Actually I tried to use fields as limiter, to have the stylesheet only apply to tiddler with the field "Field_1". -- 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

[tw] Re: [TW5] How to use $list filter in css stylesheet?

2017-07-08 Thread 'Mark S.' via TiddlyWiki
Any styles you generate will be available everywhere that the selectors match. If you only want them to match certain tiddlers, you might incorporate the special tag prefix (tc-tagged-) into the selectors. Each tiddler with tags has a matching class name. For instance, a tiddler tagged "Magnus"