@@ -25,6 +25,9 @@
|
||||
-apple-system, 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Noto Sans SC', sans-serif;
|
||||
--font-serif: Georgia, 'Times New Roman', 'Songti SC', serif;
|
||||
--font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
|
||||
|
||||
/* 浮层(下拉/整页提示卡)统一投影:比卡片的 1px 分层重一档,仍保持克制 */
|
||||
--shadow-overlay: 0 8px 24px rgba(20, 20, 19, 0.1);
|
||||
}
|
||||
|
||||
/* 暗色主题:html.dark 由 stores/app.ts 挂载,色值与 tokens.ts 的 darkTokens 同步 */
|
||||
@@ -296,3 +299,45 @@ html.theme-switching *::before,
|
||||
html.theme-switching *::after {
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
/* 区间树形选择器菜单(teleport 至 body,scoped 样式不可达):
|
||||
容器留白,展开箭头与文本节奏对齐 Select 下拉 */
|
||||
.n-tree-select-menu .n-tree {
|
||||
padding: 5px 6px;
|
||||
}
|
||||
|
||||
/* 代码高亮配色(highlight.js 输出):贴设计 token 的低饱和土色系,
|
||||
预览弹窗与编辑器 overlay 共用;明暗两态随 token 自动切换 */
|
||||
.code-hl .hljs-comment,
|
||||
.code-hl .hljs-quote {
|
||||
color: var(--color-ink-3);
|
||||
font-style: italic;
|
||||
}
|
||||
.code-hl .hljs-keyword,
|
||||
.code-hl .hljs-selector-tag,
|
||||
.code-hl .hljs-meta {
|
||||
color: var(--color-warn);
|
||||
}
|
||||
.code-hl .hljs-string,
|
||||
.code-hl .hljs-regexp {
|
||||
color: var(--color-ok);
|
||||
}
|
||||
.code-hl .hljs-number,
|
||||
.code-hl .hljs-literal,
|
||||
.code-hl .hljs-symbol {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
.code-hl .hljs-attr,
|
||||
.code-hl .hljs-attribute,
|
||||
.code-hl .hljs-property,
|
||||
.code-hl .hljs-section,
|
||||
.code-hl .hljs-selector-class,
|
||||
.code-hl .hljs-selector-id {
|
||||
color: var(--color-info);
|
||||
}
|
||||
.code-hl .hljs-title,
|
||||
.code-hl .hljs-name,
|
||||
.code-hl .hljs-built_in {
|
||||
color: var(--color-ink);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user