A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: dark mode for editor style #1012
shuai64aebf35abf6
diff --git a/ui/src/common/color.scss b/ui/src/common/color.scssindex 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;