From 1fc67cc26a451c1e48a42d2284f83a9893194969 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Wed, 3 Mar 2021 18:09:48 +0200 Subject: [PATCH] FIX: Remove list double padding (#12275) Enabling support_mixed_text_direction added both left-side and right-side padding. Follow up to 4bee7fb458532d95d2ef49dde976a9f06dbce3da. --- app/assets/stylesheets/common/base/rtl.scss | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/common/base/rtl.scss b/app/assets/stylesheets/common/base/rtl.scss index 0995f19ca62..f1b141939cc 100644 --- a/app/assets/stylesheets/common/base/rtl.scss +++ b/app/assets/stylesheets/common/base/rtl.scss @@ -55,10 +55,18 @@ // This is for the support_mixed_text_direction setting .cooked ul[dir="ltr"], .d-editor-preview ul[dir="ltr"], -.cooked ul[dir="rtl"], -.d-editor-preview ul[dir="rtl"] { - padding-right: 40px; +.rtl .cooked ul[dir="rtl"], +.rtl .d-editor-preview ul[dir="rtl"] { padding-left: 40px; + padding-right: 0; +} + +.cooked ul[dir="rtl"], +.d-editor-preview ul[dir="rtl"], +.rtl .cooked ul[dir="ltr"], +.rtl .d-editor-preview ul[dir="ltr"] { + padding-left: 0; + padding-right: 40px; } // Fixes github oneboxes for RTL sites