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/text selection: refactor, apply custom color tint over the note title selection
Adorian Doran6d80323a7664
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.cssindex d7865d757b..80acfe2e0a 100644--- a/apps/client/src/stylesheets/theme-next-dark.css+++ b/apps/client/src/stylesheets/theme-next-dark.css@@ -349,5 +349,5 @@ body .todo-list input[type="checkbox"]:not(:checked):before {.note-split.with-hue *::selection,.quick-edit-dialog-wrapper.with-hue *::selection {- background: hsl(var(--custom-color-hue), 49.2%, 35%);+ --selection-background-color: hsl(var(--custom-color-hue), 49.2%, 35%);}\ No newline at end of filediff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.cssindex fb39917611..1e50200d9a 100644--- a/apps/client/src/stylesheets/theme-next-light.css+++ b/apps/client/src/stylesheets/theme-next-light.css@@ -320,5 +320,5 @@.note-split.with-hue *::selection,.quick-edit-dialog-wrapper.with-hue *::selection {- background: hsl(var(--custom-color-hue), 60%, 90%);+ --selection-background-color: hsl(var(--custom-color-hue), 60%, 90%);}\ No newline at end of filediff --git a/apps/client/src/widgets/note_title.css b/apps/client/src/widgets/note_title.cssindex fca994e5bc..ebc6ec33eb 100644--- a/apps/client/src/widgets/note_title.css+++ b/apps/client/src/widgets/note_title.css@@ -21,6 +21,7 @@ div.note-title-widget {&::selection {color: var(--main-text-color);+ background: var(--selection-background-color);}}