fixed text selection color conflicts with codemirror
mellbacon committed
May 15, 2023 at 18:46 UTC
92ff8786b7d78a9a61fa4f36ae63becb949f420a
2 files changed
+2
-2
src/lib/Editor.svelte
+1
-1
@@ -63,7 +63,7 @@
63
}
64
:global(.cm-scroller) {
65
font-size: 14px !important;
66
- line-height: 1.3;
66
+ line-height: 1.3 !important;
67
overflow-y: overlay;
68
overflow-x: overlay !important;
69
padding-top: 3px;
src/theme.scss
+1
-1
@@ -177,7 +177,7 @@ html {
177
.cm-cursor {
178
border-left-color: var(--window-foreground) !important;
179
}
180
-.ͼ4 .cm-line::selection {
180
+.ͼ4 .cm-line::selection, .ͼ2 .cm-selectionBackground {
181
background-color: #4d5054 !important;
182
}
183