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