FIX: Remove list double padding (#12275)

Enabling support_mixed_text_direction added both left-side and
right-side padding.

Follow up to 4bee7fb458.
This commit is contained in:
Bianca Nenciu 2021-03-03 18:09:48 +02:00 committed by GitHub
parent c047640ad4
commit 1fc67cc26a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 3 deletions

View File

@ -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