diff --git a/sass/parts/_admonitions.scss b/sass/parts/_admonitions.scss index 7c6010185..6feec4354 100644 --- a/sass/parts/_admonitions.scss +++ b/sass/parts/_admonitions.scss @@ -2,7 +2,7 @@ border-color: var(--admonition-#{$type}-border); background-color: var(--admonition-#{$type}-bg); - code { + > .admonition-content > p > code { background-color: var(--admonition-#{$type}-code); }