From 5743b8a71e247c423573b914947b73b5718b6f7d Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 6 Feb 2019 13:47:17 +0100 Subject: [PATCH] more specific with inline code --- src/components/DocContent.module.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/DocContent.module.scss b/src/components/DocContent.module.scss index 30ed90bf..58731f28 100644 --- a/src/components/DocContent.module.scss +++ b/src/components/DocContent.module.scss @@ -28,13 +28,16 @@ word-break: normal; } - :not(pre) > code { + // stylelint-disable selector-no-qualifying-type + :not(pre) > code, + :not(pre) > code[class*='language-'] { background: darken($brand-white, 5%); color: $brand-grey-dark; display: inline-block; padding-left: .3rem; padding-right: .3rem; } + // stylelint-enable selector-no-qualifying-type pre { display: block;