From 62f2396ee27f132a25f906107b60fa19b35c97ab Mon Sep 17 00:00:00 2001 From: vinitS101 Date: Sat, 6 Apr 2019 22:13:01 +0530 Subject: [PATCH] message view: Reduce extra white space above quotes and unordered lists. Blockquotes and unordered lists had a large amount of space above them when preceded by a paragraph tag, which looks ugly. This is a common issue with the CSS rendering of essentially all markdown implementations (e.g. GitHub has this bug). We resolve the issue by reducing that whitespace with negative margins. Hopefully, this won't create other weird glitches in the process. Fixes #11631. --- static/styles/zulip.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/styles/zulip.scss b/static/styles/zulip.scss index ae4bf8f5c2..ae6d6e7843 100644 --- a/static/styles/zulip.scss +++ b/static/styles/zulip.scss @@ -1475,6 +1475,14 @@ blockquote p { font-size: inherit; } +.rendered_markdown p + ul { + margin-top: -7px; +} + +.rendered_markdown p + blockquote { + margin-top: -4px; +} + .messagebox { word-wrap: break-word; cursor: pointer;