From 2b4e31abda482afac7b61a0a16fc993a70eae84d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9?= Date: Fri, 15 Nov 2019 20:44:25 -0300 Subject: [PATCH] Fix style for multi-line code --- src/assets/style/_code.scss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/assets/style/_code.scss b/src/assets/style/_code.scss index 72cdeff..11fea9e 100644 --- a/src/assets/style/_code.scss +++ b/src/assets/style/_code.scss @@ -16,10 +16,7 @@ pre { } code { - background-color: var(--bg-code); - border: 1px solid var(--border-color); font-size: .85em; - padding: .2em .5em; } code[class*="language-"], @@ -57,7 +54,10 @@ pre[class*="language-"] { /* Inline code */ :not(pre) > code[class*="language-"] { + background-color: var(--bg-code); + border: 1px solid var(--border-color); border-radius: var(--radius); + padding: .2em .5em; white-space: normal; } @@ -101,7 +101,6 @@ pre[class*="language-"] { .language-css .token.string, .style .token.string { color: #9a6e3a; - background: hsla(0, 0%, 100%, .5); } .token.atrule, @@ -131,4 +130,4 @@ pre[class*="language-"] { .token.entity { cursor: help; -} \ No newline at end of file +}