mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
refactor: use global css for code block
This commit is contained in:
@@ -5,7 +5,7 @@ const theme: PrismTheme = {
|
||||
...dracula,
|
||||
plain: {
|
||||
...dracula.plain,
|
||||
backgroundColor: 'rgba(255, 255, 255, 0.08)',
|
||||
backgroundColor: 'rgba(var(--lsd-surface-secondary), 0.08)',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ const theme: PrismTheme = {
|
||||
...vsLight,
|
||||
plain: {
|
||||
...vsLight.plain,
|
||||
backgroundColor: 'rgba(0, 0, 0, 0.08)',
|
||||
backgroundColor: 'rgba(var(--lsd-surface-secondary), 0.08)',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
}
|
||||
|
||||
.codeBlockTitle {
|
||||
background: rgba(var(--lsd-theme-primary), 0.08);
|
||||
background: var(--prism-background-color);
|
||||
border-bottom: 1px solid var(--ifm-color-primary);
|
||||
font-size: var(--ifm-code-font-size);
|
||||
font-weight: 500;
|
||||
|
||||
Reference in New Issue
Block a user