Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: use accent color for text selection

thecodrr9e145821f546
diff --git a/apps/web/src/app.css b/apps/web/src/app.css
index 268d8c101..41bc31a96 100644
--- a/apps/web/src/app.css
+++ b/apps/web/src/app.css
@@ -95,3 +95,14 @@
flex: 1;
opacity: 1;
}
+
+::-moz-selection {
+ /* Code for Firefox */
+ background-color: var(--primary);
+ color: var(--static);
+}
+
+::selection {
+ background-color: var(--primary);
+ color: var(--static);
+}
diff --git a/apps/web/src/components/editor/editor.css b/apps/web/src/components/editor/editor.css
index 160ebf73d..4f0590b23 100644
--- a/apps/web/src/components/editor/editor.css
+++ b/apps/web/src/components/editor/editor.css
@@ -173,6 +173,7 @@
.mce-content-body [data-mce-selected="inline-boundary"] {
background-color: var(--shade) !important;
}
+
.mce-content-body a[data-mce-selected] {
box-shadow: none !important;
}