OK, this works
Conditional viewtemplate:
tag: $:/tags/ViewTemplate
text:
<$list filter="[all[current]has[rank]rank[species]]">
<div class="mycolumns">
<$transclude mode="block"/>
</div>
</$list>
Stylesheet:
tag: $:/tags/Stylesheet
text:
.mycolumns {
display: block;
column-count: 2;
-moz-column-count: 2;
-webkit-column-count: 2;
font-size:110%;
}
.mycolumns p {margin:0;}
Modify $:/core/ui/ViewTemplate/body shadow tid
...
<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]!has[rank]
]">
...
<:-)
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 */
> body.tc-body .tc-tiddler-frame .tc-tiddler-body {
> display: block;
> column-count: 2;
> -moz-column-count: 2;
> -webkit-column-count: 2;
> }
> </$list>
>
--
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/a3d26e34-bccf-4519-8832-d029782f2feb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.