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
style/canvas: tweak the UI
Adorian Doran7b24f7f57d62
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex 44ed769979..653eca57f2 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -371,7 +371,8 @@ button kbd {}body.desktop .dropdown-menu,-body.desktop .tabulator-popup-container {+body.desktop .tabulator-popup-container,+:root .excalidraw .dropdown-menu .dropdown-menu-container {border: 1px solid var(--dropdown-border-color);column-rule: 1px solid var(--dropdown-border-color);box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.cssindex a167c08b58..d75f17bf38 100644--- a/apps/client/src/stylesheets/theme-next/base.css+++ b/apps/client/src/stylesheets/theme-next/base.css@@ -4,6 +4,7 @@@import url(./pages.css);@import url(./ribbon.css);@import url(./notes/text.css);+@import url(./notes/canvas.css);@import url(./notes/collections/table.css);@font-face {diff --git a/apps/client/src/stylesheets/theme-next/notes/canvas.css b/apps/client/src/stylesheets/theme-next/notes/canvas.cssnew file mode 100644index 0000000000..00b801cf84--- /dev/null+++ b/apps/client/src/stylesheets/theme-next/notes/canvas.css@@ -0,0 +1,48 @@+:root .excalidraw {+ --ui-font: var(--main-font-family);+++ /* Button hover background color */+ --button-hover-bg: var(--hover-item-background-color);+ --color-surface-high: var(--hover-item-background-color);+++ --button-active-border: transparent;+ --color-brand-active: transparent;++ --color-surface-mid: transparent;+ --color-surface-low: transparent;++ /* Selected button icon fill color */+ --color-on-primary-container: var(--ck-editor-toolbar-button-on-color);+ --color-primary: var(--ck-editor-toolbar-button-on-color);++ /* Selected button icon background color */+ --color-surface-primary-container: var(--ck-editor-toolbar-button-on-background);+ --color-primary-light: var(--ck-editor-toolbar-button-on-background);++ --island-bg-color: var(--floating-button-background-color);++}++.excalidraw .Island,+.excalidraw .zoom-actions,+.undo-redo-buttons {+ box-shadow: 1px 1px 1px var(--floating-button-shadow-color);+ backdrop-filter: blur(10px) saturate(6);+}++:root .excalidraw .main-menu-trigger,+:root .excalidraw .sidebar-trigger,+:root .excalidraw .help-icon {+ box-shadow: none;+}++/* Selected color outline */+:root .excalidraw .color-picker__button.active .color-picker__button-outline {+ box-shadow: 0 0 0 2px var(--input-focus-outline-color)+}++:root .excalidraw .buttonList label.active {+ border-color: transparent;+}\ No newline at end of file