Sadly that doesn't work for me either.
This is all taking place inside a list element, so that each item in the
list is indented by the correct amount.
It's part of an effort to simulate a nested, indented, task list.
On Sunday, 10 April 2016 19:40:25 UTC+4, Evolena wrote:
>
> This works:
>
> <style>
> .indent_field {
> margin-left:{{!!indent_amount}}px;
> }
> </style>
>
> @@.indent_field
> <$link><$view field=title /></$link>
> @@
>
> Or a variation on Mat solution, with only the style in the macro, not the
> entire element:
>
> \define m-indent_amount()
> margin-left:$(v-indent_amount)$px;
> \end
>
> <$set name="v-indent_amount" value={{!!indent_amount}}>
> <span style=<<m-indent_amount>>>
> <$link><$view field=title /></$link>
> </span>
> </$set>
>
> The second solution allows to put the macro definition in its own global
> macro tiddler, to be usable everywhere.
>
>
>
--
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/45ca005d-bd25-4124-8f67-42131ef98b91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.