From e439e652583683dfeea5d33f85284b3064762f60 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 23 Aug 2020 16:09:35 +0800 Subject: [PATCH] Reduce the font size of inline code. --- assets/css/_addon/syntax.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/css/_addon/syntax.scss b/assets/css/_addon/syntax.scss index 012b2a9..cd3bab7 100644 --- a/assets/css/_addon/syntax.scss +++ b/assets/css/_addon/syntax.scss @@ -43,6 +43,8 @@ html[mode=dark] { padding: 0.8rem 1rem; } +$code-font-size: 0.85rem; + div > pre { @extend %code-snippet-bg; @extend %code-snippet-radius; @@ -82,7 +84,7 @@ div > pre { } pre { margin-bottom: 0; - font-size: 0.85rem; + font-size: $code-font-size; line-height: 1.4rem; word-wrap: normal; /* Fixed Safari overflow-x */ } @@ -107,6 +109,7 @@ code { hyphens: none; &.highlighter-rouge { + font-size: $code-font-size; padding: 3px 5px; margin: 0 0.15rem; border-radius: 4px;