| 1 |
.ve-init-mw-desktopArticleTarget { |
| 2 |
.CodeMirror { |
| 3 |
height: auto; |
| 4 |
z-index: -1; |
| 5 |
position: absolute; |
| 6 |
top: 0; |
| 7 |
left: 0; |
| 8 |
width: 100%; |
| 9 |
box-sizing: border-box; |
| 10 |
pointer-events: none; |
| 11 |
background: transparent; |
| 12 |
|
| 13 |
// Core VE default padding |
| 14 |
padding: 1.5em; |
| 15 |
|
| 16 |
// Skin specific paddings |
| 17 |
.skin-vector & { |
| 18 |
padding: 0 1rem; |
| 19 |
|
| 20 |
@media screen and ( min-width: 982px ) { |
| 21 |
.skin-vector-legacy& { |
| 22 |
padding: 0 1.5rem; |
| 23 |
} |
| 24 |
} |
| 25 |
} |
| 26 |
|
| 27 |
.skin-minerva &, |
| 28 |
.skin-monobook & { |
| 29 |
padding: 0; |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
.CodeMirror-lines, |
| 34 |
.CodeMirror pre.CodeMirror-line, |
| 35 |
.CodeMirror pre.CodeMirror-line-like { |
| 36 |
padding: 0; |
| 37 |
} |
| 38 |
|
| 39 |
.CodeMirror-scroll { |
| 40 |
margin-right: 0; |
| 41 |
overflow: auto !important; /* stylelint-disable-line declaration-no-important */ |
| 42 |
} |
| 43 |
|
| 44 |
.CodeMirror-sizer { |
| 45 |
border-right: 0; |
| 46 |
} |
| 47 |
|
| 48 |
.CodeMirror-selected { |
| 49 |
display: none; |
| 50 |
} |
| 51 |
|
| 52 |
.CodeMirror pre.cm-mw-section-1, |
| 53 |
.CodeMirror pre.cm-mw-section-2 { |
| 54 |
font-size: inherit; |
| 55 |
line-height: inherit; |
| 56 |
} |
| 57 |
|
| 58 |
// Ensure surfaces are using identical font rules |
| 59 |
.CodeMirror-code, |
| 60 |
.CodeMirror-code *, |
| 61 |
.ve-ui-mwWikitextSurface .ve-ce-paragraphNode { |
| 62 |
// The following are already set by mw-editfont-monospace on the parent: font-size, font-family |
| 63 |
line-height: 1.5em; |
| 64 |
word-wrap: break-word; |
| 65 |
// Support: Chrome<76, Firefox<69 |
| 66 |
// Fallback for browsers which don't support break-spaces |
| 67 |
white-space: pre-wrap; |
| 68 |
// T347902 |
| 69 |
white-space: break-spaces; |
| 70 |
word-break: normal; |
| 71 |
-webkit-hyphens: manual; |
| 72 |
-moz-hyphens: manual; |
| 73 |
-ms-hyphens: manual; |
| 74 |
hyphens: manual; |
| 75 |
-webkit-font-variant-ligatures: contextual; |
| 76 |
font-variant-ligatures: contextual; |
| 77 |
|
| 78 |
// Monospace fonts can change width when bold |
| 79 |
// stylelint-disable-next-line declaration-no-important |
| 80 |
font-weight: normal !important; |
| 81 |
// T252965 |
| 82 |
line-break: initial; |
| 83 |
} |
| 84 |
|
| 85 |
.CodeMirror-gutters { |
| 86 |
background-color: transparent; |
| 87 |
border-right: 0; |
| 88 |
} |
| 89 |
.CodeMirror-linenumber { |
| 90 |
color: #72777d; // Codex Gray300 |
| 91 |
padding-left: 0; |
| 92 |
} |
| 93 |
.CodeMirror-linenumber-padding { |
| 94 |
// Create a 12px padding between the line numbers and content. |
| 95 |
width: 8px; |
| 96 |
} |
| 97 |
} |
| 98 |
|
| 99 |
.ve-ce-documentNode-codeEditor-hide { |
| 100 |
opacity: 0.4; |
| 101 |
|
| 102 |
&::selection, |
| 103 |
& *::selection { |
| 104 |
background: #6da9f7 !important; /* stylelint-disable-line declaration-no-important */ |
| 105 |
} |
| 106 |
} |
| 107 |
|
| 108 |
.ve-ce-documentNode-codeEditor-webkit-hide { |
| 109 |
-webkit-text-fill-color: transparent; |
| 110 |
} |