Skip to content

Commit

Permalink
style: 更改了编辑区选中区域的颜色
Browse files Browse the repository at this point in the history
使颜色与主题风格更加统一
  • Loading branch information
he-weilai committed Jul 11, 2024
1 parent 75400ec commit f14d216
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sass/themes/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
}
}

// 更改编辑区域选中文字区域的背景色
// 覆盖了 codemirror.css 中的默认样式
.CodeMirror-focused .CodeMirror-selected { background: #bac8ff; }
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #bac8ff; }
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #bac8ff; }


/** 光标focus到空行时联想出的按钮 */
.cherry-floatmenu {
Expand Down

0 comments on commit f14d216

Please sign in to comment.