Replies: 4 comments 7 replies
-
Yes it "kind of" would be better. But "em" also has it flaws. eg: em is "relative to parent", which means that we can never be sure, what's going on, without analysing the whole html structure. For a consistent design we should use rem, which is "relative to root". The TW vanilla theme was created in about 2012, where px was still very common. The main problems are:
So I think we should first change the default value to 16px as every modern desktop and mobile browser does. We also needed to define a new Line height that fits to the new font-size. IMO a unit-less line-height of 1.5 or 1.6 are common these days. We then could define Font size for tiddler body and Line height for tiddler body based relatively to the new global settings. I would use the same settings here. So 1rem for both. Then the vanilla theme CSS has to be adjusted to use rem based values if and only if they are needed. IMO With those changes it would be possible to create much more consistent behaviour. |
Beta Was this translation helpful? Give feedback.
-
IMO the following settings would create a "somewhat" backwards compatible behaviour for the UI, but sets the tiddler body font-size to 16px. IMO Based on these settings we could start to review the current vanilla CSS. |
Beta Was this translation helpful? Give feedback.
-
Hi @pmario I tried your suggestions but found that there are unacceptably large deviations from the current metrics as shown in this animated GIF. The current layout is the one with the narrower menu bar and the smaller sidebar: |
Beta Was this translation helpful? Give feedback.
-
I think @kookma is "blocked" off the internet atm. So my question for him would be, what the goal was for the OP is in general. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
See $:/themes/tiddlywiki/vanilla/base
Isn't it better to use relative size e.g.
font-size: 0.8em;
This way I can only change font size in $:/themes/tiddlywiki/vanilla/metrics/fontsize and make sure everything works as expected.Beta Was this translation helpful? Give feedback.
All reactions