From e3c8b3d71aa8e04b171d7fa5e752f13406c5cc2a Mon Sep 17 00:00:00 2001 From: Zack Stickles Date: Tue, 28 Jul 2020 11:19:27 -0700 Subject: [PATCH] fix: code block background colors --- src/components/MDXContainer.module.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/MDXContainer.module.scss b/src/components/MDXContainer.module.scss index 925cdad5e..bc543d28d 100644 --- a/src/components/MDXContainer.module.scss +++ b/src/components/MDXContainer.module.scss @@ -5,10 +5,13 @@ code { padding: 0.125rem; - background: var(--tertiary-background-color); border-radius: 2px; } + :not(pre) > code { + background: var(--tertiary-background-color); + } + p:last-child { margin-bottom: 0; }