Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Move inline emoji styles under rendered markdown.
Karl Stolleycbb0cb9a7336
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex e168cbe9307..f948e65d392 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -180,6 +180,14 @@.emoji {height: calc(20em / 14);width: calc(20em / 14);+ /* "Eyeballed" styles to compensate for inline-block emoji+ positioning in messages.+ By coordinating the emoji height and width above with the+ `line-height` on messages in the future, these properties+ should no longer be necessary: */+ position: relative;+ margin-top: -7px;+ top: 3px;}/* Mentions and alert words */diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 01b662de097..06ebd2ded87 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -2631,10 +2631,13 @@ select.invite-as {.emoji {height: 25px;width: 25px;- position: relative;- margin-top: -7px;+ /* Maintain `vertical-align` for inline-block styles in messages: */vertical-align: middle;- top: 3px;+ /* But, for all others, use flexbox and its align-self property.+ What is excellent about this is that flexbox will ignore the+ `vertical-align` value, while inline-block contexts will ignore+ the `align-self` property: */+ align-self: center;}.status-emoji {