2017-03-21 14:42:04 +00:00
|
|
|
.ve-init-mw-desktopArticleTarget {
|
|
|
|
.CodeMirror {
|
|
|
|
height: auto;
|
|
|
|
z-index: -1;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
2017-07-10 16:40:51 +00:00
|
|
|
pointer-events: none;
|
2018-01-04 12:37:42 +00:00
|
|
|
background: transparent;
|
2017-03-21 14:42:04 +00:00
|
|
|
|
2017-08-13 15:13:36 +00:00
|
|
|
// Core VE default padding
|
2018-09-27 20:03:17 +00:00
|
|
|
padding: 1.5em;
|
2017-08-13 15:13:36 +00:00
|
|
|
|
|
|
|
// Skin specific paddings
|
|
|
|
.skin-vector & {
|
2019-12-13 13:31:56 +00:00
|
|
|
/* stylelint-disable-next-line unit-blacklist */
|
|
|
|
padding: 0 1rem;
|
2018-01-19 10:10:40 +00:00
|
|
|
|
2017-08-13 15:13:36 +00:00
|
|
|
@media screen and ( min-width: 982px ) {
|
2020-05-11 22:42:03 +00:00
|
|
|
.skin-vector-legacy& {
|
|
|
|
/* stylelint-disable-next-line unit-blacklist */
|
|
|
|
padding: 0 1.5rem;
|
|
|
|
}
|
2017-08-13 15:13:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-19 00:09:06 +00:00
|
|
|
.skin-minerva &,
|
2017-08-13 15:13:36 +00:00
|
|
|
.skin-monobook & {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2017-03-21 14:42:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror pre,
|
|
|
|
.CodeMirror-lines {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-scroll {
|
|
|
|
margin-right: 0;
|
|
|
|
overflow: auto !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-sizer {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror pre.cm-mw-section-1,
|
|
|
|
.CodeMirror pre.cm-mw-section-2 {
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
2018-03-07 19:56:51 +00:00
|
|
|
}
|
|
|
|
|
2018-04-16 15:38:45 +00:00
|
|
|
// Ensure surfaces are using identical font rules
|
2018-04-27 20:42:45 +00:00
|
|
|
.CodeMirror-code,
|
2018-04-16 15:38:45 +00:00
|
|
|
.CodeMirror-code *,
|
2018-03-27 21:35:00 +00:00
|
|
|
.ve-ui-mwWikitextSurface .ve-ce-paragraphNode {
|
2018-04-16 15:38:45 +00:00
|
|
|
// The following are already set by mw-editfont-monospace on the parent: font-size, font-family
|
|
|
|
line-height: 1.5em;
|
|
|
|
word-wrap: break-word;
|
|
|
|
white-space: pre-wrap;
|
2018-03-27 21:35:00 +00:00
|
|
|
word-break: normal;
|
2018-04-16 15:38:45 +00:00
|
|
|
-webkit-hyphens: manual;
|
|
|
|
-moz-hyphens: manual;
|
|
|
|
-ms-hyphens: manual;
|
|
|
|
hyphens: manual;
|
2018-03-27 21:35:00 +00:00
|
|
|
-webkit-font-variant-ligatures: contextual;
|
|
|
|
font-variant-ligatures: contextual;
|
2018-04-16 15:38:45 +00:00
|
|
|
|
|
|
|
// Monospace fonts can change width when bold
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
font-weight: normal !important;
|
2018-03-27 21:35:00 +00:00
|
|
|
}
|
2017-03-21 14:42:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ce-documentNode-codeEditor-hide {
|
2017-11-30 16:35:57 +00:00
|
|
|
opacity: 0.4;
|
2017-03-21 14:42:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ce-documentNode-codeEditor-webkit-hide {
|
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
|
}
|