Skip to content

Build your personal knowledge base with Trilium Notes

style(next)/formatting toolbar: tweak the "Font Size" dropdown

Adorian Doranc771d7479f46
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index 30b92266ad..d65e84164b 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 */