Skip to content

Commit 72202ea

Browse files
committed
Fixed selected bg text color on Windows
1 parent 48fa198 commit 72202ea

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

github-night.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ Tags: dark, github, typora
118118
--active-toggle-btn-color: #192133;
119119
--blur-text-color: rgba(200, 200, 200, 0.33);
120120
--rawblock-edit-panel-bd: #161b22 !important;
121-
--select-text-bg-color: #355274;
121+
--select-text-bg-color: rgba(53, 82, 116, 0.97) !important;
122+
--select-text-font-color: #fff !important;
122123
/* Mermaid diagrams*/
123124
--mermaid-node-color: #b87f62 !important;
124125
--mermaid-node-border: #bd7958;
@@ -1205,9 +1206,12 @@ input {
12051206
}
12061207

12071208
.cm-s-inner .CodeMirror-selected,
1208-
.cm-s-inner .CodeMirror-selectedtext {
1209-
background: #3b4254 !important;
1210-
color: inherit;
1209+
.cm-s-inner .CodeMirror-selectedtext,
1210+
body::selection,
1211+
body::-moz-selection {
1212+
background: var(--select-text-bg-color) !important;
1213+
background-color: var(--select-text-bg-color) !important;
1214+
color: var(--select-text-font-color) !important;
12111215
text-shadow: none;
12121216
}
12131217

0 commit comments

Comments
 (0)