-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default tab width should be smaller #22
Comments
+1 to that! Me myself very much prefer the 1ch width in-text indentions. It makes it possible to add more space with a simple setting if the content is very cluttered. |
It’s interesting to note that the span.foo-bar
{
display: inline-block;
min-width: 1ch(" ");
max-width: 1ch("hello");
}
input.month
{
width: 1ch("0000-00");
}
input.money
{
width: 1ch("000.00");
} |
@Zambonifofex I think your suggestion is attractive. You should go to https://github.com/w3c/csswg-drafts/issues to submit it for css-values-4 draft. |
What a great package! I love editing with elastic tabstops.
I have a small suggestion, currently in
elastic-tabstops.js
, (line 254), it says:which I suggest changing to:
This looks much better. Any indentation tabs still have the default tab-width as specified by the user but any tabstops in text will now behave more like a single space character (especially when using proportional fonts). That way, we can allign code like parameter lists much nicer: using
*
for a tab, for example:with a default of
1ch
the spacing between the open parenthesis and thex
parameter becomes too much; but with0.33ex
it looks much more natural. Or,where the spacing from the identifier to the equals sign is more natural. Perhaps we should make it even into a user modifiable setting since the exact value may depend a bit on the particular font that is used. (0.33ex looks quite fine though on most fonts I tried -- usually I use the proportional Zilla Slab)
Best, Daan
The text was updated successfully, but these errors were encountered: