Skip to content

Build your personal knowledge base with Trilium Notes

style(next)/formatting toolbar: tweak the colors of open dropdown buttons

Adorian Doran37f712a5fc49
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.css
index a5cce76e3e..9525231f52 100644
--- a/apps/client/src/stylesheets/theme-next-dark.css
+++ b/apps/client/src/stylesheets/theme-next-dark.css
@@ -241,6 +241,7 @@
--ck-editor-toolbar-button-on-background: #ffffff3b;
--ck-editor-toolbar-button-on-color: white;
--ck-editor-toolbar-button-on-shadow: 1px 1px 2px rgba(0, 0, 0, .75);
+ --ck-editor-toolbar-dropdown-button-open-background: #ffffff14;
}
/*
diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.css
index a7ddd5b06f..3b9907eb8e 100644
--- a/apps/client/src/stylesheets/theme-next-light.css
+++ b/apps/client/src/stylesheets/theme-next-light.css
@@ -240,4 +240,6 @@
--ck-editor-toolbar-button-on-background: #00000017;
--ck-editor-toolbar-button-on-color: black;
--ck-editor-toolbar-button-on-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
+ --ck-editor-toolbar-dropdown-button-open-background: #0000000f;
+
}
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index f41d86da1b..6f1894e963 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -33,6 +33,11 @@
box-shadow: var(--ck-editor-toolbar-button-on-shadow);
}
+.ck.ck-toolbar .ck-button.ck-dropdown__button {
+ --ck-color-button-on-background: var(--ck-editor-toolbar-dropdown-button-open-background);
+ --ck-color-button-on-color: currentColor;
+}
+
/* Disabled button */
:root .classic-toolbar-widget .ck.ck-button.ck-disabled {
opacity: .75;