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
|
|
|
|
padding: 0.5em 1.5em;
|
|
|
|
|
|
|
|
// Skin specific paddings
|
|
|
|
.skin-vector & {
|
2018-01-19 10:10:40 +00:00
|
|
|
padding: 0 1.2em;
|
|
|
|
|
2017-08-13 15:13:36 +00:00
|
|
|
@media screen and ( min-width: 982px ) {
|
2018-01-19 10:10:40 +00:00
|
|
|
padding: 0 1.8em;
|
2017-08-13 15:13:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.skin-monobook & {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.skin-timeless & {
|
|
|
|
padding-left: 2em;
|
|
|
|
padding-right: 2em;
|
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
|
|
|
|
.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;
|
|
|
|
}
|