mirror of
https://github.com/zulip/zulip.git
synced 2026-07-06 21:18:58 +08:00
info_density: Set a minimum line-height on body.
This commit is contained in:
parent
fd55da4ed8
commit
3d04f7dbda
@ -72,6 +72,9 @@
|
||||
var(--markdown-interelement-space-px) * 2
|
||||
);
|
||||
|
||||
/* Legacy values */
|
||||
--legacy-body-line-height-unitless: calc(20 / 14);
|
||||
|
||||
.more-dense-mode {
|
||||
/* The legacy values here are not altered by JavaScript */
|
||||
--base-font-size-px: 14px;
|
||||
|
||||
@ -24,7 +24,13 @@ body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
line-height: calc(20 / 14);
|
||||
/* The line-height used in most of the UI should be at least
|
||||
its legacy value, but should expand with larger base
|
||||
line-height values. */
|
||||
line-height: max(
|
||||
var(--legacy-body-line-height-unitless),
|
||||
var(--base-line-height-unitless)
|
||||
);
|
||||
font-family: "Source Sans 3 VF", sans-serif;
|
||||
color: var(--color-text-default);
|
||||
background-color: var(--color-background);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user