From 980a4b82b9ac11c06ed32bd464441ed3a4264e40 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 26 Nov 2019 01:17:40 -0600 Subject: [PATCH] notes: adjust line-height for new fonts. `line-height: normal;` produces large gaps between lines when using non-default font families or font sizes. `line-height: 1.25;` reduces these gaps. --- app/javascript/src/styles/specific/notes.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/src/styles/specific/notes.scss b/app/javascript/src/styles/specific/notes.scss index 718f3f5b7..60341826a 100644 --- a/app/javascript/src/styles/specific/notes.scss +++ b/app/javascript/src/styles/specific/notes.scss @@ -9,7 +9,7 @@ div#note-container { color: var(--note-body-text-color); min-width: 140px; min-height: 1em; - line-height: normal; + line-height: 1.25; cursor: pointer; padding: 4px; z-index: 150; @@ -18,7 +18,7 @@ div#note-container { div.note-body, div.note-box.embedded div.note-box-inner-border { h1, h2, h3, h4, h5, h6, a, span, div, blockquote, br, p, ul, li, ol, em, strong, small, big, b, i, font, u, s, code, center { - line-height: normal; + line-height: 1.25; } > :last-child { @@ -79,7 +79,7 @@ div#note-container { height: 100px; cursor: move; background: var(--note-box-background); - line-height: normal; + line-height: 1.25; div.note-box-inner-border { border: var(--note-box-inner-border);