Skip to content

Commit 81556b2

Browse files
committed
refactor(styles): update to use --prism-background-color
1 parent 99b8151 commit 81556b2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/styles/components/_code.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,9 @@ code {
5151
// Overrides
5252
#__docusaurus {
5353
[class*='codeBlockContainer_'] {
54-
box-shadow: none;
55-
}
54+
--prism-background-color: var(--code-block-bg-c);
5655

57-
// Code block title
58-
[class*='codeBlockTitle_'] {
59-
background: var(--code-block-bg-c);
56+
box-shadow: none;
6057
}
6158
}
6259

@@ -68,7 +65,6 @@ code {
6865

6966
code[class*='language-'],
7067
pre[class*='language-'] {
71-
background: var(--code-block-bg-c);
7268
white-space: pre;
7369
word-spacing: normal;
7470
word-break: normal;

0 commit comments

Comments
 (0)