Skip to content

Commit 62936d6

Browse files
feat(styles): add background to code block title (#4323)
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
1 parent 69b13b3 commit 62936d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/styles/components/_code.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ code {
5151
// Overrides
5252
#__docusaurus {
5353
[class*='codeBlockContainer_'] {
54+
--prism-background-color: var(--code-block-bg-c);
55+
5456
box-shadow: none;
5557
}
5658
}
@@ -63,7 +65,6 @@ code {
6365

6466
code[class*='language-'],
6567
pre[class*='language-'] {
66-
background: var(--code-block-bg-c);
6768
white-space: pre;
6869
word-spacing: normal;
6970
word-break: normal;

0 commit comments

Comments
 (0)