UX: Fix extra indent on lists when supporting mixed text direction (#15110)

This commit is contained in:
Penar Musaraj 2021-11-26 12:32:45 -05:00 committed by GitHub
parent f1178514fa
commit a12b73f881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 12 deletions

View File

@ -55,21 +55,14 @@
float: left !important;
}
// This is for the support_mixed_text_direction setting
.cooked ul[dir="ltr"],
.d-editor-preview ul[dir="ltr"],
.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"],
// For the support_mixed_text_direction setting
html:not(.rtl) .cooked ul[dir="rtl"],
html:not(.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;
padding-right: 1.25em;
margin-right: 1.25em;
}
// Fixes github oneboxes for RTL sites