From a0129f79306556a752b5e20a2fe94f8efe5d8b3d Mon Sep 17 00:00:00 2001 From: Sid <122173059+hugo-sid@users.noreply.github.com> Date: Sat, 23 Dec 2023 01:01:25 +0530 Subject: [PATCH] fix: inconsistent appearance of inline code, in lists, in light theme (#159) * chore: add code blocks in list * fix: inconsistent code style in lists in light mode closes #158 --- assets/sass/_code.scss | 3 ++- exampleSite/content/en/posts/markdown-syntax/index.md | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/sass/_code.scss b/assets/sass/_code.scss index 42f87e22..48f5ebf4 100644 --- a/assets/sass/_code.scss +++ b/assets/sass/_code.scss @@ -10,7 +10,8 @@ code { word-wrap: normal; font-size: inherit; } - +// Inline code +li>code, p > code { font-size: 0.9em; padding: 1px 3px; diff --git a/exampleSite/content/en/posts/markdown-syntax/index.md b/exampleSite/content/en/posts/markdown-syntax/index.md index aa8365e2..f67a1082 100644 --- a/exampleSite/content/en/posts/markdown-syntax/index.md +++ b/exampleSite/content/en/posts/markdown-syntax/index.md @@ -132,13 +132,13 @@ Use the backtick to refer to a `variable` within a sentence. ### Ordered List 1. First item -2. Second item +2. Second item with some `code` in it 3. Third item ### Unordered List * List item -* Another item +* Another item with some `code` in it * And another item ### Nested list