Added to TW-Scripts
On Thursday, August 8, 2019 at 4:32:55 AM UTC+4:30, Mat wrote:
>
> Mohammad I found this to work.
>
> Macro content:
>
> <$list
> filter="[{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}prefix[fluid-fixed]]">
> calc(100vw - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}} -
> 160px)
> </$list>
> <$list
> filter="[{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}prefix[fixed-fluid]]">
> calc({{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}} - 110px)
> </$list>
>
> It is called in a stylesheet (type: tiddlywiki) like so:
>
> width:<<width>>;
>
> The magic numbers are just approximations; the river gutter and tiddler
> gutters all 42px but then there are 0-1-2 viewport scrollbars where it
> seems only one of them affects width... and I'm not sure scrollbars have a
> fixed width, at least no between browsers so I just made approximations
> that look decent. Besides, the gutters are hard coded magic numbers so what
> the hey. At least for my application.
>
> ...however one would need other numbers for small screens where the
> gutters are gone.
>
> <:-)
>
--
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/c00395bd-716e-4481-b35d-0437709baad0%40googlegroups.com.