@@margin-left:{{!!indent_amount}}px;
<$link><$view field=title /></$link>
@@
margin-left:{{!!indent_amount}}px;
margin-left:40px;
\define indent_amount() {{!!indent-amount}}
@@margin-left:<<indent_amount>>px;
<$link><$view field=title /></$link>
@@
I think you can make a little circumvention by instead calling a macro that in turn fetches the value;
/define indent_amout() {{!!indent-amount}}
and then@@margin-left:<<indent_amount>>px;
<$link><$view field=title /></$link>
@@Now, I don't think you can define the macro in the same tiddler as the styles... (try it) If the styles are just a tiddler-local style block then it should work. Othewise you'll probably have to put it in another tiddler and thus include the tiddler title in the calls.<:-)
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/9PszM-7e7EM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@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/73a05453-4e79-42f4-b518-9802a015cb22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
\define cc()
<span style="padding-left:$(xx)$px">
hey
</span>
\end
<$set name="xx" value={{!!indent_amount}}>
<<cc>>
</$set><style>
.indent_field {
margin-left:{{!!indent_amount}}px;
}
</style>
@@.indent_field
<$link><$view field=title /></$link>
@@\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><$image source="" width={{!!indent_amount}} /><$link><$view field=title /></$link>
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.
<$image source="" width={{!!indent_amount}} />