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