Extract HTML template into separate views file
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
/* Dark theme for highlight.js - GitHub Dark-like */
|
||||
.hljs { display: block; overflow-x: auto; padding: 0; background: transparent; color: #c9d1d9; }
|
||||
.hljs-comment,
|
||||
.hljs-quote { color: #8b949e; font-style: italic; }
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-subst { color: #ff7b72; font-weight: bold; }
|
||||
.hljs-number,
|
||||
.hljs-literal,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-tag .hljs-attr { color: #79c0ff; }
|
||||
.hljs-string,
|
||||
.hljs-doctag { color: #a5d6ff; }
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-selector-id { color: #d2a8ff; font-weight: bold; }
|
||||
.hljs-subst { font-weight: normal; }
|
||||
.hljs-type,
|
||||
.hljs-class .hljs-title { color: #d2a8ff; font-weight: bold; }
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-attribute { color: #7ee787; font-weight: normal; }
|
||||
.hljs-regexp,
|
||||
.hljs-link { color: #a5d6ff; }
|
||||
.hljs-symbol,
|
||||
.hljs-bullet { color: #ffa657; }
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name { color: #79c0ff; }
|
||||
.hljs-meta { color: #8b949e; font-weight: bold; }
|
||||
.hljs-deletion { background: #490202; }
|
||||
.hljs-addition { background: #04260f; }
|
||||
.hljs-emphasis { font-style: italic; }
|
||||
.hljs-strong { font-weight: bold; }
|
||||
|
||||
/* Line numbers */
|
||||
.hljs-ln { border-collapse: collapse; }
|
||||
.hljs-ln td { padding: 0; }
|
||||
.hljs-ln-n { text-align: right; padding-right: 8px; color: #484f58; user-select: none; }
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Light theme for highlight.js - GitHub-like */
|
||||
.hljs { display: block; overflow-x: auto; padding: 0; background: transparent; color: #24292e; }
|
||||
.hljs-comment,
|
||||
.hljs-quote { color: #6a737d; font-style: italic; }
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-subst { color: #d73a49; font-weight: bold; }
|
||||
.hljs-number,
|
||||
.hljs-literal,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-tag .hljs-attr { color: #005cc5; }
|
||||
.hljs-string,
|
||||
.hljs-doctag { color: #032f62; }
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-selector-id { color: #6f42c1; font-weight: bold; }
|
||||
.hljs-subst { font-weight: normal; }
|
||||
.hljs-type,
|
||||
.hljs-class .hljs-title { color: #6f42c1; font-weight: bold; }
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-attribute { color: #22863a; font-weight: normal; }
|
||||
.hljs-regexp,
|
||||
.hljs-link { color: #032f62; }
|
||||
.hljs-symbol,
|
||||
.hljs-bullet { color: #e36209; }
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name { color: #005cc5; }
|
||||
.hljs-meta { color: #6a737d; font-weight: bold; }
|
||||
.hljs-deletion { background: #ffeef0; }
|
||||
.hljs-addition { background: #f0fff4; }
|
||||
.hljs-emphasis { font-style: italic; }
|
||||
.hljs-strong { font-weight: bold; }
|
||||
|
||||
/* Line numbers */
|
||||
.hljs-ln { border-collapse: collapse; }
|
||||
.hljs-ln td { padding: 0; }
|
||||
.hljs-ln-n { text-align: right; padding-right: 8px; color: #959da5; user-select: none; }
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "default",
|
||||
"label": "Aurora",
|
||||
"description": "当前默认的玻璃拟态文档主题。",
|
||||
"defaultMode": "light",
|
||||
"stylesheet": "theme.css",
|
||||
"highlight": {
|
||||
"light": "highlight-light.css",
|
||||
"dark": "highlight-dark.css"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
html[data-theme-id="default"][data-color-mode="light"] {
|
||||
--bg: #f6f7fb;
|
||||
--bg-elevated: rgba(255, 255, 255, 0.86);
|
||||
--bg-panel: #ffffff;
|
||||
--bg-soft: #eef2f7;
|
||||
--bg-hover: #e8eef7;
|
||||
--text: #1f2937;
|
||||
--text-muted: #6b7280;
|
||||
--text-soft: #94a3b8;
|
||||
--border: rgba(148, 163, 184, 0.22);
|
||||
--border-strong: rgba(148, 163, 184, 0.35);
|
||||
--brand: #3a6ff7;
|
||||
--brand-strong: #2757d6;
|
||||
--brand-soft: rgba(58, 111, 247, 0.12);
|
||||
--code-bg: #0f172a;
|
||||
--code-fg: #e5edf9;
|
||||
--shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
|
||||
--shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
|
||||
--shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
|
||||
--body-bg:
|
||||
radial-gradient(circle at top left, rgba(58, 111, 247, 0.12), transparent 30%),
|
||||
radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 26%),
|
||||
linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
|
||||
--brand-mark-bg: linear-gradient(135deg, var(--brand), #7c3aed);
|
||||
--active-file-bg: linear-gradient(180deg, rgba(58,111,247,0.12), rgba(58,111,247,0.08));
|
||||
--active-file-border: rgba(58,111,247,0.18);
|
||||
--active-file-shadow: 0 8px 18px rgba(58,111,247,0.08);
|
||||
--loading-bar-bg: linear-gradient(90deg, var(--brand), #38bdf8);
|
||||
}
|
||||
|
||||
html[data-theme-id="default"][data-color-mode="dark"] {
|
||||
--bg: #0b1120;
|
||||
--bg-elevated: rgba(15, 23, 42, 0.82);
|
||||
--bg-panel: #0f172a;
|
||||
--bg-soft: #111827;
|
||||
--bg-hover: #182033;
|
||||
--text: #e5edf9;
|
||||
--text-muted: #a3b2c6;
|
||||
--text-soft: #6f8099;
|
||||
--border: rgba(148, 163, 184, 0.16);
|
||||
--border-strong: rgba(148, 163, 184, 0.26);
|
||||
--brand: #7aa2ff;
|
||||
--brand-strong: #93b4ff;
|
||||
--brand-soft: rgba(122, 162, 255, 0.14);
|
||||
--code-bg: #020617;
|
||||
--code-fg: #dbeafe;
|
||||
--shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.34);
|
||||
--shadow-md: 0 14px 32px rgba(2, 6, 23, 0.28);
|
||||
--shadow-sm: 0 6px 18px rgba(2, 6, 23, 0.2);
|
||||
--body-bg:
|
||||
radial-gradient(circle at top left, rgba(58, 111, 247, 0.16), transparent 30%),
|
||||
radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 26%),
|
||||
linear-gradient(180deg, #0b1120 0%, #09101c 100%);
|
||||
--brand-mark-bg: linear-gradient(135deg, #7aa2ff, #38bdf8);
|
||||
--active-file-bg: linear-gradient(180deg, rgba(122,162,255,0.18), rgba(122,162,255,0.09));
|
||||
--active-file-border: rgba(122,162,255,0.24);
|
||||
--active-file-shadow: 0 12px 22px rgba(2,6,23,0.26);
|
||||
--loading-bar-bg: linear-gradient(90deg, #7aa2ff, #38bdf8);
|
||||
}
|
||||
Reference in New Issue
Block a user