Skip to content

Build your personal knowledge base with Trilium Notes

style(next)/formatting toolbar: tweak appearance

Adorian Doran1981a26dd375
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index 8d98f7fd78..a82a9556c2 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -20,9 +20,10 @@
--ck-color-button-on-background: transparent;
--ck-color-button-on-hover-background: var(--hover-item-background-color);
- --ck-focus-ring: 1px solid var(--input-focus-outline-color);
+ --ck-focus-ring: 1px solid transparent; /* TODO: Find a solution to keep it visible in an elegant way */
--ck-color-focus-border: var(--input-focus-outline-color);
--ck-focus-outer-shadow: none;
+ --ck-focus-disabled-outer-shadow: none;
--ck-border-radius: 6px;
}
@@ -40,6 +41,14 @@
--ck-color-button-on-color: currentColor;
}
+:root .ck.ck-toolbar .ck-button:not(.ck-disabled):active {
+ background-color: var(--hover-item-background-color);
+}
+
+.ck.ck-toolbar .ck-button:active:not(.ck-list-item-button):not(.ck-button_with-text):not(.ck-disabled) svg:not(.ck-dropdown__arrow) {
+ transform: scale(.8);
+}
+
/* Disabled button */
:root .classic-toolbar-widget .ck.ck-button.ck-disabled {
opacity: .75;