From aad61c42a300de866af78faccf453780fe89cbcc Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 11 Mar 2019 17:12:53 -0700 Subject: [PATCH] css: Replace generated U+202A LEFT-TO-RIGHT EMBEDDING with CSS properties. These generated characters (added in #9889) were causing poor wrapping behavior, at least in Firefox. Signed-off-by: Anders Kaseorg --- static/styles/zulip.scss | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/static/styles/zulip.scss b/static/styles/zulip.scss index e9149b7c57..175a88cce0 100644 --- a/static/styles/zulip.scss +++ b/static/styles/zulip.scss @@ -435,16 +435,8 @@ code { /* 12/14 em, so bootstrap's default 12 px, when body is the default 14 px */ font-size: 0.857em; -} - -code::before { - /* Add a left-to-right embedding character before each code block */ - content: '\202a'; -} - -code::after { - /* And add a pop directional formatting character after each code block */ - content: '\202c'; + unicode-bidi: embed; + direction: ltr; } .message_content code {