From 2a510fe2300c5b4eab9060b2b9ce43090af15ba6 Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Wed, 2 Nov 2022 12:33:35 +0100 Subject: [PATCH] Set same font size for all platforms and make editor UI a bit smaller (#2171) * Use single base font size for all platforms * Change 1.6em values to 1.5em in editor --- sass/base.scss | 13 +------------ ts/components/Switch.svelte | 2 +- ts/editor/NoteEditor.svelte | 2 +- ts/editor/image-overlay/FloatButtons.svelte | 2 +- ts/editor/image-overlay/SizeSelect.svelte | 2 +- ts/editor/mathjax-overlay/MathjaxButtons.svelte | 2 +- 6 files changed, 6 insertions(+), 17 deletions(-) diff --git a/sass/base.scss b/sass/base.scss index 9001bcdfa..266fdade1 100644 --- a/sass/base.scss +++ b/sass/base.scss @@ -44,6 +44,7 @@ html { } body { + --base-font-size: 13px; overscroll-behavior: none; &:not(.isMac), &:not(.isMac) * { @@ -65,18 +66,6 @@ samp { unicode-bidi: normal !important; } -.isWin { - --base-font-size: 12px; -} - -.isMac { - --base-font-size: 13px; -} - -.isLin { - --base-font-size: 14px; -} - [dir="rtl"] { .form-select { /* flip