opt: 优化编辑器、charts等页面主题样式

This commit is contained in:
gary
2026-02-01 16:43:14 +08:00
parent 350b6dadef
commit fb95c8e934
4 changed files with 42 additions and 1 deletions

View File

@@ -567,4 +567,36 @@ body,
.dark::view-transition-new(root) {
z-index: 1;
}
/* 整体编辑器区域 */
.monaco-editor.vs {
background-color: #f5f7fa;
}
/* gutter行号区 */
.monaco-editor.vs .margin {
background-color: #f0f2f5;
box-shadow: inset -1px 0 0 #dcdfe6;
}
/* 内容区 */
.monaco-editor.vs .monaco-editor-background {
background-color: #ffffff;
}
/* Dark Mode Editor Contrast */
.dark .monaco-editor.vs-dark {
background-color: var(--el-bg-color);
border: none;
}
.dark .monaco-editor.vs-dark .margin {
background-color: #252526 !important;
box-shadow: inset -1px 0 0 #424242;
border: none;
}
.dark .monaco-editor.vs-dark .monaco-editor-background {
background-color: #1e1e1e !important;
}