mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
c2fcd55a80
Prior to this commit, we didn't have RTL versions of our admin and plugins CSS bundles and we always served LTR versions of those bundles even when users used an RTL locale, causing admin and plugins UI elements to never look as good as when an LTR locale was used. Example of UI issues prior to this commit were: missing margins, borders on the wrong side and buttons too close to each other etc. This commit creates an RTL version for the admin CSS bundle as well as RTL bundles for all the installed plugins and serves those RTL bundles to users/sites who use RTL locales.
45 lines
910 B
SCSS
45 lines
910 B
SCSS
// Right to left styles.
|
|
|
|
.rtl {
|
|
.d-icon-align-right,
|
|
.d-icon-angle-double-right,
|
|
.d-icon-angle-right,
|
|
.d-icon-arrow-right,
|
|
.d-icon-caret-right,
|
|
.d-icon-chevron-right,
|
|
.d-icon-hand-point-right,
|
|
.d-icon-quote-right {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.d-icon-align-left,
|
|
.d-icon-angle-double-left,
|
|
.d-icon-angle-left,
|
|
.d-icon-arrow-left,
|
|
.d-icon-caret-left,
|
|
.d-icon-chevron-left,
|
|
.d-icon-hand-point-left,
|
|
.d-icon-quote-left {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
|
|
// 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: 1.25em;
|
|
margin-right: 1.25em;
|
|
}
|
|
|
|
.rtl .ace_placeholder {
|
|
direction: rtl !important;
|
|
text-align: right !important;
|
|
|
|
[dir="ltr"] {
|
|
text-align: left !important;
|
|
}
|
|
}
|