style: 代码块主题调整

This commit is contained in:
2026-08-16 15:49:40 +08:00
parent ce2185a4c0
commit 3867a7f6cc
2 changed files with 10 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
.markdown-body pre code {
font-size: 1.15em;
font-size: 1.1em;
line-height: 1.6;
}
.markdown-body h1,
@@ -31,7 +32,7 @@
.code-header {
height: 36px;
background: #f4f4f5;
background: var(--code-block-header-bg);
display: flex;
justify-content: space-between;
color: var(--text-primary);
@@ -79,5 +80,5 @@
}
.code-copy-btn:hover {
color: #1d4ed8;
color: var(--code-block-copy-btn-hover-color);
}

View File

@@ -15,6 +15,9 @@
--text-meta: #71717a;
--article-text-color: #404040;
--text-title-hover: #000;
--code-block-header-bg: #f5f5f4;
--code-block-copy-btn-hover-color: #6b7280;
}
.dark {
@@ -28,6 +31,9 @@
--text-meta: #d4d4d8;
--article-text-color: #d4d4d8;
--text-title-hover: #fff;
--code-block-header-bg: #374151;
--code-block-copy-btn-hover-color: #9ca3af;
}
html,