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
client/text editor: tweak the block grip
Adorian Doran6d3326eb4f3b
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex b68dc8df34..ba14d732cc 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -588,9 +588,9 @@ button.btn-sm {}.ck.ck-button.ck-block-toolbar-button {- transform: translateX(7px);+ transform: translateX(10px);+ --ck-color-button-default-background: transparent;color: var(--muted-text-color);- background-color: var(--main-background-color);/* Making this narrower because https://github.com/zadam/trilium/issues/502 (problem only in smaller font sizes) */min-width: 0;padding: 0;@@ -600,7 +600,7 @@ button.btn-sm {}body[dir=rtl] .ck.ck-block-toolbar-button {- transform: translateX(-7px);+ transform: translateX(-10px);}pre:not(.hljs) {diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.cssindex 18f8bf7cef..6d6b0470c4 100644--- a/apps/client/src/stylesheets/theme-next/notes/text.css+++ b/apps/client/src/stylesheets/theme-next/notes/text.css@@ -52,14 +52,14 @@}/* 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. */+ floats free, so its hover and on states need a surface of their 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-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);