| 1 |
.ve-init-mw-desktopArticleTarget { |
| 2 |
.cm-editor { |
| 3 |
background: transparent; |
| 4 |
border: 0; |
| 5 |
box-sizing: border-box; |
| 6 |
height: auto; |
| 7 |
left: 0; |
| 8 |
pointer-events: none; |
| 9 |
// stylelint-disable-next-line declaration-no-important |
| 10 |
position: absolute !important; |
| 11 |
top: 0; |
| 12 |
width: 100%; |
| 13 |
|
| 14 |
// Skin specific paddings |
| 15 |
.skin-vector & { |
| 16 |
padding: 0 1rem; |
| 17 |
|
| 18 |
@media screen and ( min-width: 982px ) { |
| 19 |
.skin-vector-legacy& { |
| 20 |
padding: 0 1.5rem; |
| 21 |
} |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
.skin-minerva &, |
| 26 |
.skin-monobook & { |
| 27 |
padding: 0; |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
.cm-gutters { |
| 32 |
background-color: transparent; |
| 33 |
padding-right: 8px; |
| 34 |
/* @noflip */ |
| 35 |
border-right: 0; |
| 36 |
} |
| 37 |
|
| 38 |
/* RTL rules need to apply to the content, not the interface language */ |
| 39 |
.cm-editor[ dir='rtl' ] .cm-gutters { |
| 40 |
/* @noflip */ |
| 41 |
padding-left: 8px; |
| 42 |
/* @noflip */ |
| 43 |
padding-right: initial; |
| 44 |
} |
| 45 |
|
| 46 |
.cm-focused { |
| 47 |
outline: 0; |
| 48 |
} |
| 49 |
|
| 50 |
.cm-line { |
| 51 |
padding: 0; |
| 52 |
} |
| 53 |
|
| 54 |
.cm-content { |
| 55 |
padding: 0; |
| 56 |
} |
| 57 |
|
| 58 |
.cm-gutterElement { |
| 59 |
// stylelint-disable-next-line declaration-no-important |
| 60 |
padding: 0 3px 0 4px !important; |
| 61 |
} |
| 62 |
|
| 63 |
.CodeMirror-selected { |
| 64 |
display: none; |
| 65 |
} |
| 66 |
|
| 67 |
// Ensure surfaces are using identical font rules |
| 68 |
.cm-scroller, |
| 69 |
.cm-scroller *, |
| 70 |
.ext-codemirror-wrapper .ve-ce-paragraphNode { |
| 71 |
// The following are already set by mw-editfont-monospace on the parent: font-size, font-family |
| 72 |
word-wrap: break-word; |
| 73 |
// Support: Chrome<76, Firefox<69 |
| 74 |
// Fallback for browsers which don't support break-spaces |
| 75 |
white-space: pre-wrap; |
| 76 |
// T347902 |
| 77 |
white-space: break-spaces; |
| 78 |
word-break: normal; |
| 79 |
-webkit-hyphens: manual; |
| 80 |
-moz-hyphens: manual; |
| 81 |
-ms-hyphens: manual; |
| 82 |
hyphens: manual; |
| 83 |
-webkit-font-variant-ligatures: contextual; |
| 84 |
font-variant-ligatures: contextual; |
| 85 |
|
| 86 |
// Monospace fonts can change width when bold |
| 87 |
// stylelint-disable-next-line declaration-no-important |
| 88 |
font-weight: normal !important; |
| 89 |
// T252965 |
| 90 |
line-break: initial; |
| 91 |
// T357482#10111614 |
| 92 |
font-style: normal; |
| 93 |
} |
| 94 |
|
| 95 |
.cm-mw-section-1, |
| 96 |
.cm-mw-section-1 ~ *, |
| 97 |
.cm-mw-section-2, |
| 98 |
.cm-mw-section-2 ~ *, |
| 99 |
/* TODO: remove overqualified `span` after CM6 upgrade */ |
| 100 |
span.cm-mw-section-3 ~ *, |
| 101 |
span.cm-mw-section-4 ~ *, |
| 102 |
span.cm-mw-section-5 ~ *, |
| 103 |
span.cm-mw-section-6 ~ * { |
| 104 |
font-size: inherit; |
| 105 |
line-height: inherit; |
| 106 |
font-weight: inherit; |
| 107 |
} |
| 108 |
|
| 109 |
.ext-codemirror-wrapper .mw-content-ltr .ve-ce-paragraphNode { |
| 110 |
margin-left: 6px !important; /* stylelint-disable-line declaration-no-important */ |
| 111 |
} |
| 112 |
|
| 113 |
.ext-codemirror-wrapper .mw-content-rtl .ve-ce-paragraphNode { |
| 114 |
/* @noflip */ |
| 115 |
margin-right: 6px !important; /* stylelint-disable-line declaration-no-important */ |
| 116 |
} |
| 117 |
|
| 118 |
.cm-activeLineGutter { |
| 119 |
background-color: transparent; |
| 120 |
border-right: 0; |
| 121 |
} |
| 122 |
} |
| 123 |
|
| 124 |
.ext-codemirror-wrapper .ve-ce-documentNode-codeEditor-hide { |
| 125 |
opacity: 0.4; |
| 126 |
|
| 127 |
&::selection, |
| 128 |
& *::selection { |
| 129 |
background: #6da9f7 !important; /* stylelint-disable-line declaration-no-important */ |
| 130 |
} |
| 131 |
} |
| 132 |
|
| 133 |
.ext-codemirror-wrapper .ve-ce-documentNode-codeEditor-webkit-hide { |
| 134 |
-webkit-text-fill-color: transparent; |
| 135 |
} |