diff --git a/scss/content/_code.scss b/scss/content/_code.scss index 9fc86595..0f959ae8 100644 --- a/scss/content/_code.scss +++ b/scss/content/_code.scss @@ -13,7 +13,7 @@ // 1. Correct the inheritance and scaling of font size in all browsers // 2. Correct the odd `em` font sizing in all browsers - pre:not(:has(code)), + pre, code, kbd, samp { @@ -21,6 +21,11 @@ font-family: var(#{$✨}font-family); // 1 } + pre code { + font-size: inherit; + font-family: inherit; + } + // Prevent overflow of the container in all browsers (opinionated) pre { -ms-overflow-style: scrollbar;