Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

spoilers: Style headers in Markdown-neutral way.

Karl Stolley0884b96fc6d8
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.css
index e3ce72897b7..a8b8894dc26 100644
--- a/web/styles/rendered_markdown.css
+++ b/web/styles/rendered_markdown.css
@@ -247,11 +247,11 @@
padding: 8px 5px;
font-weight: bold;
- > p {
+ > :not(.spoiler-button) {
/* Disallow margin from ordinary rendered-markdown
- paragraphs. The header's vertical space is handled
+ elements. The header's vertical space is handled
independently by padding on .spoiler-header. */
- margin: 0;
+ margin-bottom: 0;
/* Message grows to push the arrow to the right,
but shrinks so as to allow long multi-line
spoiler messages to wrap. */