ve.ui.CodeMirror.v6: don't auto-flip CSS rules affecting gutter

RTL rules within and around the content need to apply to the content
language, not the interface language, so we want to disable the normal
CSSJanus auto-flipping.

Bug: T357482
Bug: T374196
Change-Id: If0becbf7e0baa61118a22af375be0d107567226d
This commit is contained in:
MusikAnimal 2024-10-31 16:17:05 -04:00
parent cac24f0fa6
commit c4286f2bef

View file

@ -28,8 +28,14 @@
} }
} }
.cm-gutterElement {
/* @noflip */
padding: 0 3px 0 4px !important; /* stylelint-disable-line declaration-no-important */
}
.cm-gutters { .cm-gutters {
background-color: transparent; background-color: transparent;
/* @noflip */
padding-right: 8px; padding-right: 8px;
/* @noflip */ /* @noflip */
border-right: 0; border-right: 0;
@ -41,6 +47,11 @@
padding-left: 8px; padding-left: 8px;
/* @noflip */ /* @noflip */
padding-right: initial; padding-right: initial;
.cm-gutterElement {
/* @noflip */
text-align: left;
}
} }
.cm-focused { .cm-focused {
@ -55,11 +66,6 @@
padding: 0; padding: 0;
} }
.cm-gutterElement {
// stylelint-disable-next-line declaration-no-important
padding: 0 3px 0 4px !important;
}
.CodeMirror-selected { .CodeMirror-selected {
display: none; display: none;
} }
@ -107,6 +113,7 @@
} }
.ext-codemirror-wrapper .mw-content-ltr .ve-ce-paragraphNode { .ext-codemirror-wrapper .mw-content-ltr .ve-ce-paragraphNode {
/* @noflip */
margin-left: 6px !important; /* stylelint-disable-line declaration-no-important */ margin-left: 6px !important; /* stylelint-disable-line declaration-no-important */
} }