-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
feat: add new setting to select line height options #3034
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for elk-docs canceled.
|
✅ Deploy Preview for elk-zone ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
26b8f6b
to
b24b53c
Compare
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@iconify/[email protected], npm/@iconify/[email protected] |
@@ -125,8 +125,16 @@ em-emoji-picker { | |||
} | |||
} | |||
|
|||
.line-compact { | |||
line-height: calc(4 / 3 * 1em); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the unit em
following the recommendation by MDN (https://developer.mozilla.org/en-US/docs/Web/CSS/line-height#values):
In most cases, this is the preferred way to set line-height and avoid unexpected results due to inheritance.
resolve #3007
This PR implements a new setting to select line height in the post body. Users can choose the narrower (1.2) or wider (1.5) line height options, in addition to the current normal option (4/3)
Screenshots
Setting section for line height
Narrow (1.2)
Normal (4/3 = 1.33...): current and default value
Wide (1.5)