fix(05-02): single dark theme for code blocks — github-dark always, remove dual-theme CSS
This commit is contained in:
@@ -7,15 +7,9 @@
|
|||||||
scroll-margin-top: 5rem;
|
scroll-margin-top: 5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Code blocks: always dark regardless of color mode.
|
/* Code blocks: single dark theme (github-dark), background transparent — ProsePre div owns #0d1117 */
|
||||||
ProsePre wrapper owns the background (#0d1117).
|
pre span {
|
||||||
Target pre span directly — .shiki class is absent when ProsePre overrides <pre>. */
|
|
||||||
.shiki, pre span {
|
|
||||||
color: var(--shiki-dark) !important;
|
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
font-style: var(--shiki-dark-font-style) !important;
|
|
||||||
font-weight: var(--shiki-dark-font-weight) !important;
|
|
||||||
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
|
|||||||
+1
-4
@@ -67,10 +67,7 @@ export default defineNuxtConfig({
|
|||||||
build: {
|
build: {
|
||||||
markdown: {
|
markdown: {
|
||||||
highlight: {
|
highlight: {
|
||||||
theme: {
|
theme: 'github-dark',
|
||||||
default: 'github-light',
|
|
||||||
dark: 'github-dark'
|
|
||||||
},
|
|
||||||
langs: ['kotlin', 'java', 'typescript', 'shell', 'bash', 'json', 'vue', 'html', 'css']
|
langs: ['kotlin', 'java', 'typescript', 'shell', 'bash', 'json', 'vue', 'html', 'css']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user