mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 10:19:27 +00:00
e795883f0d
Bug: T185299 Change-Id: Iea8e61654608259ddc90286aef59014a37e4f44d
67 lines
1.1 KiB
Plaintext
67 lines
1.1 KiB
Plaintext
.ve-init-mw-desktopArticleTarget {
|
|
.CodeMirror {
|
|
height: auto;
|
|
z-index: -1;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
line-height: 1.5em;
|
|
width: 100%;
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
pointer-events: none;
|
|
background: transparent;
|
|
|
|
// Core VE default padding
|
|
padding: 0.5em 1.5em;
|
|
|
|
// Skin specific paddings
|
|
.skin-vector & {
|
|
padding: 0 1.2em;
|
|
|
|
@media screen and ( min-width: 982px ) {
|
|
padding: 0 1.8em;
|
|
}
|
|
}
|
|
|
|
.skin-monobook & {
|
|
padding: 0;
|
|
}
|
|
|
|
.skin-timeless & {
|
|
padding-left: 2em;
|
|
padding-right: 2em;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
.ve-ce-documentNode-codeEditor-hide {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.ve-ce-documentNode-codeEditor-webkit-hide {
|
|
-webkit-text-fill-color: transparent;
|
|
}
|