2024-06-08 03:10:11 +00:00
|
|
|
.ve-init-mw-desktopArticleTarget {
|
|
|
|
.cm-editor {
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: auto;
|
|
|
|
left: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
position: absolute !important;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
2024-11-06 01:15:22 +00:00
|
|
|
// Core VE default padding
|
|
|
|
padding: 1.5em;
|
|
|
|
|
2024-06-08 03:10:11 +00:00
|
|
|
// Skin specific paddings
|
|
|
|
.skin-vector & {
|
|
|
|
padding: 0 1rem;
|
|
|
|
|
|
|
|
@media screen and ( min-width: 982px ) {
|
|
|
|
.skin-vector-legacy& {
|
|
|
|
padding: 0 1.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.skin-minerva &,
|
|
|
|
.skin-monobook & {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-31 20:17:05 +00:00
|
|
|
.cm-gutterElement {
|
|
|
|
/* @noflip */
|
|
|
|
padding: 0 3px 0 4px !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
}
|
|
|
|
|
2024-06-08 03:10:11 +00:00
|
|
|
.cm-gutters {
|
|
|
|
background-color: transparent;
|
2024-10-31 20:17:05 +00:00
|
|
|
/* @noflip */
|
2024-06-08 03:10:11 +00:00
|
|
|
padding-right: 8px;
|
|
|
|
/* @noflip */
|
|
|
|
border-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* RTL rules need to apply to the content, not the interface language */
|
|
|
|
.cm-editor[ dir='rtl' ] .cm-gutters {
|
|
|
|
/* @noflip */
|
|
|
|
padding-left: 8px;
|
|
|
|
/* @noflip */
|
|
|
|
padding-right: initial;
|
2024-10-31 20:17:05 +00:00
|
|
|
|
|
|
|
.cm-gutterElement {
|
|
|
|
/* @noflip */
|
|
|
|
text-align: left;
|
|
|
|
}
|
2024-06-08 03:10:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.cm-focused {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-line {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-content {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-selected {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ensure surfaces are using identical font rules
|
|
|
|
.cm-scroller,
|
|
|
|
.cm-scroller *,
|
2024-08-23 17:37:56 +00:00
|
|
|
.ext-codemirror-wrapper .ve-ce-paragraphNode {
|
2024-06-08 03:10:11 +00:00
|
|
|
// The following are already set by mw-editfont-monospace on the parent: font-size, font-family
|
|
|
|
word-wrap: break-word;
|
|
|
|
// Support: Chrome<76, Firefox<69
|
|
|
|
// Fallback for browsers which don't support break-spaces
|
|
|
|
white-space: pre-wrap;
|
2024-08-29 23:59:15 +00:00
|
|
|
// T347902
|
|
|
|
white-space: break-spaces;
|
2024-06-08 03:10:11 +00:00
|
|
|
word-break: normal;
|
|
|
|
-webkit-hyphens: manual;
|
|
|
|
-moz-hyphens: manual;
|
|
|
|
-ms-hyphens: manual;
|
|
|
|
hyphens: manual;
|
|
|
|
-webkit-font-variant-ligatures: contextual;
|
|
|
|
font-variant-ligatures: contextual;
|
|
|
|
|
|
|
|
// Monospace fonts can change width when bold
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
font-weight: normal !important;
|
|
|
|
// T252965
|
|
|
|
line-break: initial;
|
2024-09-03 18:46:41 +00:00
|
|
|
// T357482#10111614
|
|
|
|
font-style: normal;
|
2024-06-08 03:10:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.cm-mw-section-1,
|
|
|
|
.cm-mw-section-1 ~ *,
|
|
|
|
.cm-mw-section-2,
|
|
|
|
.cm-mw-section-2 ~ *,
|
|
|
|
/* TODO: remove overqualified `span` after CM6 upgrade */
|
|
|
|
span.cm-mw-section-3 ~ *,
|
|
|
|
span.cm-mw-section-4 ~ *,
|
|
|
|
span.cm-mw-section-5 ~ *,
|
|
|
|
span.cm-mw-section-6 ~ * {
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-activeLineGutter {
|
|
|
|
background-color: transparent;
|
|
|
|
border-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-23 17:37:56 +00:00
|
|
|
.ext-codemirror-wrapper .ve-ce-documentNode-codeEditor-hide {
|
2024-06-08 03:10:11 +00:00
|
|
|
opacity: 0.4;
|
|
|
|
|
|
|
|
&::selection,
|
|
|
|
& *::selection {
|
|
|
|
background: #6da9f7 !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-23 17:37:56 +00:00
|
|
|
.ext-codemirror-wrapper .ve-ce-documentNode-codeEditor-webkit-hide {
|
2024-06-08 03:10:11 +00:00
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
|
}
|