Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(text): give the block handle a surface to stand on
Elian Dorane1ef16f9edd1
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.cssindex 9b281c835b..33514de52e 100644--- a/apps/client/src/stylesheets/theme-next/notes/text.css+++ b/apps/client/src/stylesheets/theme-next/notes/text.css@@ -46,10 +46,18 @@--ck-color-button-on-color: currentColor;}-/* The toolbar show / hide button for the current text block */+/* The toolbar show / hide button for the current text block. Unlike the buttons above it, this one+ floats free and needs a surface of its own; the hover tint is flattened onto it. */:root .ck.ck-block-toolbar-button {+ --block-toolbar-button-hover-surface:+ linear-gradient(var(--hover-item-background-color), var(--hover-item-background-color)),+ var(--main-background-color);+--ck-color-block-toolbar-button: var(--muted-text-color);- --ck-color-button-on-background: transparent;+ --ck-color-button-default-background: var(--main-background-color);+ --ck-color-button-on-background: var(--main-background-color);+ --ck-color-button-default-hover-background: var(--block-toolbar-button-hover-surface);+ --ck-color-button-on-hover-background: var(--block-toolbar-button-hover-surface);--ck-color-button-on-color: var(--ck-editor-toolbar-button-on-color);translate: -40% 0;min-width: 0;@@ -57,11 +65,14 @@z-index: 1600;}-:root .ck.ck-toolbar .ck-button:not(.ck-disabled):active,-.ck.ck-block-toolbar-button:active {+:root .ck.ck-toolbar .ck-button:not(.ck-disabled):active {background-color: var(--hover-item-background-color);}+:root .ck.ck-block-toolbar-button:active {+ background: var(--block-toolbar-button-hover-surface);+}+.ck.ck-toolbar .ck-button:active:not(.ck-list-item-button):not(.ck-button_with-text):not(.ck-disabled) svg:not(.ck-dropdown__arrow),.ck.ck-block-toolbar-button:active svg {transform: scale(.8);