mirror of https://github.com/gorhill/uBlock.git
Fine tune CodeMirror search highlight rendering
This commit is contained in:
parent
7a48c9f187
commit
1ef1e02b86
|
@ -35,6 +35,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CodeMirror theme overrides */
|
/* CodeMirror theme overrides */
|
||||||
|
.CodeMirror-focused .CodeMirror-selected {
|
||||||
|
background: var(--cm-selection-surface);
|
||||||
|
color: var(--cm-selection-ink);
|
||||||
|
}
|
||||||
|
.CodeMirror-line::selection,
|
||||||
|
.CodeMirror-line > span::selection,
|
||||||
|
.CodeMirror-line > span > span::selection {
|
||||||
|
background: var(--cm-selection-surface);
|
||||||
|
color: var(--cm-selection-ink);
|
||||||
|
}
|
||||||
|
|
||||||
.cm-s-default .cm-comment {
|
.cm-s-default .cm-comment {
|
||||||
color: var(--sf-comment-ink);
|
color: var(--sf-comment-ink);
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@
|
||||||
--cm-gutter-border: var(--light-gray-40);
|
--cm-gutter-border: var(--light-gray-40);
|
||||||
--cm-gutter-ink: var(--light-gray-90);
|
--cm-gutter-ink: var(--light-gray-90);
|
||||||
--cm-gutter-surface: var(--light-gray-25);
|
--cm-gutter-surface: var(--light-gray-25);
|
||||||
--cm-searching-surface: var(--yellow-10);
|
--cm-selection-surface: #d7d4f0;
|
||||||
|
--cm-selection-ink: var(--default-ink);
|
||||||
|
--cm-searching-surface: #ffff0066;
|
||||||
|
|
||||||
/* syntax highlight: static filtering */
|
/* syntax highlight: static filtering */
|
||||||
--sf-comment-ink: var(--light-gray-90);
|
--sf-comment-ink: var(--light-gray-90);
|
||||||
|
|
Loading…
Reference in New Issue