From c771d7479f463c2e70dfbe1b38b0f0bd6a5f4853 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 21 May 2025 15:04:18 +0300 Subject: [PATCH] style(next)/formatting toolbar: tweak the "Font Size" dropdown --- .../src/stylesheets/theme-next/notes/text.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css index 30b92266a..d65e84164 100644 --- a/apps/client/src/stylesheets/theme-next/notes/text.css +++ b/apps/client/src/stylesheets/theme-next/notes/text.css @@ -96,6 +96,21 @@ background: var(--menu-item-delimiter-color); } +/* Font size dropdown */ + +.ck-fontsize-option { + min-height: 2rem !important; +} + +.ck-fontsize-option.text-tiny {--size: .75em;} +.ck-fontsize-option.text-small {--size: .85em;} +.ck-fontsize-option.text-big {--size: 1.4em;} +.ck-fontsize-option.text-huge {--size: 1.8em;} + +:root .ck-fontsize-option .ck-button__label { + font-size: var(--size); +} + /* Color picker dropdown */ /* Color picker button */