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(ui): Avoid the background invisible when selecting text with background color
SiriusXT729a32610ae0
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex 544b6581be..16fb87aefc 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -1222,6 +1222,10 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {background-color: inherit;}+::selection {+ background-color: var(--selection-background-color);+}+[data-bs-toggle="tooltip"]:not(.button-widget) span {padding-bottom: 0;border-bottom: 1px dotted;diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.cssindex 98f379c6e5..d8d4720977 100644--- a/apps/client/src/stylesheets/theme-next-dark.css+++ b/apps/client/src/stylesheets/theme-next-dark.css@@ -195,6 +195,8 @@--scrollbar-background-color: transparent;--scrollbar-border-color: unset; /* Deprecated */+ --selection-background-color: #3399FF70;+--link-color: lightskyblue;--mermaid-theme: dark;diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.cssindex 7793d8ece2..bdf3ae2280 100644--- a/apps/client/src/stylesheets/theme-next-light.css+++ b/apps/client/src/stylesheets/theme-next-light.css@@ -194,6 +194,8 @@--scrollbar-background-color: transparent;--scrollbar-border-color: unset; /* Deprecated */+ --selection-background-color: #3399FF70;+--link-color: blue;--mermaid-theme: default;