mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 23:42:12 +08:00

Stylelint is a css linter: https://stylelint.io/ As part of this change we have added two javascript scripts: ``` pnpm lint:css pnpm lint:css:fix ``` Look at `.vscode/settings.json.sample` and `.vscode/extensions.json` for configuration in VSCode. --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
44 lines
897 B
SCSS
44 lines
897 B
SCSS
// Right to left styles.
|
|
.rtl {
|
|
.d-icon-align-right,
|
|
.d-icon-angles-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-angles-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;
|
|
}
|
|
}
|