-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Feature] Calculate line-height relatively depending on the font-size #18
Comments
csshugs
added a commit
that referenced
this issue
Oct 23, 2019
because: - usually, big font-sizes do have a smaller line-height (in relation to the font-size) than “normal” font-sizes do this commit: - introduces a new Sass variable to control the ratio with which the line-height gets decreased, the bigger the font-size is
csshugs
added a commit
that referenced
this issue
Dec 17, 2019
csshugs
added a commit
that referenced
this issue
Dec 17, 2019
csshugs
added a commit
that referenced
this issue
Jan 6, 2020
because: - usually, big font-sizes do have a smaller line-height (in relation to the font-size) than “normal” font-sizes do this commit: - introduces a new Sass variable to control the ratio with which the line-height gets decreased, the bigger the font-size is
csshugs
added a commit
that referenced
this issue
Jan 6, 2020
because: - usually, big font-sizes do have a smaller line-height (in relation to the font-size) than “normal” font-sizes do this commit: - introduces a new Sass variable to control the ratio with which the line-height gets decreased, the bigger the font-size is
#19 is merged. |
csshugs
added a commit
that referenced
this issue
Feb 3, 2020
because: - usually, big font-sizes do have a smaller line-height (in relation to the font-size) than “normal” font-sizes do this commit: - introduces a new Sass variable to control the ratio with which the line-height gets decreased, the bigger the font-size is
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It’s good design practice to decrease the line-leight in relation to its font-size, the bigger the font-size gets. E.g.,
1.5
might be a good line-height value for the base body copy text, but for a big, multiline headline, that value might be way too much and something like1.2
would be much better suited.By introducing a line-height ratio that can be defined via a Sass variable, this could be automated.
The text was updated successfully, but these errors were encountered: