This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch feat/1.3.6/ui in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 64aebf35abf6cbf34ca933facb586fb812f1ab7f Author: shuai <[email protected]> AuthorDate: Thu Jul 11 17:29:33 2024 +0800 fix: dark mode for editor style #1012 --- ui/src/common/color.scss | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/ui/src/common/color.scss b/ui/src/common/color.scss index 66436873..1a96b31d 100644 --- a/ui/src/common/color.scss +++ b/ui/src/common/color.scss @@ -72,19 +72,27 @@ } /** CodeMirror **/ - .CodeMirror { + .cm-editor { background: var(--bs-body-bg); color: var(--bs-body-color); } - .CodeMirror-cursor { - border-left: 1px solid var(--bs-body-color); + + .cm-cursor { + border-left-color: var(--bs-body-color); + } + .ͼ2.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground { + background-color: #3E4451; } - .cm-header, .cm-link, .cm-url { + /** link color **/ + .ͼc { + color: rgb(60, 138, 233); + } + .ͼ5 { color: var(--bs-body-color); } - div.CodeMirror-selected { background: rgba(127, 190, 244, 0.4); } - .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: rgba(84,174,255,0.4); } - .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: rgba(84,174,255,0.4); } + + .ͼ2 .cm-selectionBackground {background: #3E4451;} + /** CodeMirror end **/ .bg-light { background-color: rgba(0, 0, 0, 0.5) !important;
