mirror of
https://github.com/zulip/zulip.git
synced 2026-06-27 21:01:32 +08:00
css: Fix "line-height: inherit" values for textarea.
Instead of using "line-height: inherit" we set the line-height property to actual value which will be a less mysterious value than using inherit. We now set this to "--base-line-height-unitless" which changes the line-height value as previously it was inherited from body which is set to maximum of the base line height value and the fixed legacy value of 1.43. This means that the line-height of textarea will now be set to the configured line spacing value by user while previously it was not set to the line spacing values less than the default value as it was inherited from the value set to body.
This commit is contained in:
parent
365a83c153
commit
39efe4e214
@ -1079,7 +1079,7 @@ textarea.new_message_textarea {
|
||||
box-shadow: none;
|
||||
|
||||
font-size: 1em;
|
||||
line-height: inherit;
|
||||
line-height: var(--base-line-height-unitless);
|
||||
font-family: "Source Sans 3 VF", sans-serif;
|
||||
|
||||
&:focus {
|
||||
|
||||
@ -865,7 +865,7 @@
|
||||
box-shadow: none;
|
||||
|
||||
font-size: 1em;
|
||||
line-height: inherit;
|
||||
line-height: var(--base-line-height-unitless);
|
||||
font-family: "Source Sans 3 VF", sans-serif;
|
||||
|
||||
&:focus {
|
||||
|
||||
@ -31,6 +31,6 @@
|
||||
background-color: var(--background-color-textarea);
|
||||
|
||||
font-size: 1em;
|
||||
line-height: inherit;
|
||||
line-height: var(--base-line-height-unitless);
|
||||
font-family: "Source Sans 3 VF", sans-serif;
|
||||
}
|
||||
|
||||
@ -1782,7 +1782,7 @@ label.preferences-radio-choice-label {
|
||||
box-shadow linear 0.2s;
|
||||
|
||||
font-size: 1em;
|
||||
line-height: inherit;
|
||||
line-height: var(--base-line-height-unitless);
|
||||
font-family: "Source Sans 3 VF", sans-serif;
|
||||
|
||||
&:focus {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user