From 47ef2e6edf15d07c6e719ade9f72febd055a395b Mon Sep 17 00:00:00 2001 From: grummbeer <67791701+grummbeer@users.noreply.github.com> Date: Sun, 7 Apr 2024 10:42:06 +0200 Subject: [PATCH] Equalize the appearance of inline code and code blocks Fixes #22181 #22485, PR https://github.com/mantisbt/mantisbt/pull/1987 --- plugins/MantisCoreFormatting/files/markdown.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/MantisCoreFormatting/files/markdown.css b/plugins/MantisCoreFormatting/files/markdown.css index 6eebe1c4b5..1ee3db7849 100644 --- a/plugins/MantisCoreFormatting/files/markdown.css +++ b/plugins/MantisCoreFormatting/files/markdown.css @@ -1,3 +1,17 @@ +/* Adjust color of inline code */ +code { + color: #333; + background-color: #f5f5f5; +} + +/* + * Increases the distance between a code block + * and its previous line within a list. + */ +li > pre { + margin-top: .4rem; +} + /* quotes */ blockquote { padding: 0.13em 1em;