2014-10-05 17:43:05 +00:00
|
|
|
/* BASICS */
|
|
|
|
|
2012-11-27 18:06:37 +00:00
|
|
|
.CodeMirror {
|
2014-10-05 17:43:05 +00:00
|
|
|
/* Set height, width, borders, and global font properties here */
|
2012-11-27 18:06:37 +00:00
|
|
|
font-family: monospace;
|
2014-10-05 17:43:05 +00:00
|
|
|
height: 300px;
|
2015-02-25 02:42:17 +00:00
|
|
|
color: black;
|
2017-11-05 06:12:57 +00:00
|
|
|
direction: ltr;
|
2014-10-05 17:43:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* PADDING */
|
|
|
|
|
|
|
|
.CodeMirror-lines {
|
|
|
|
padding: 4px 0; /* Vertical padding around content */
|
|
|
|
}
|
2019-11-05 19:30:45 +00:00
|
|
|
.CodeMirror pre.CodeMirror-line,
|
|
|
|
.CodeMirror pre.CodeMirror-line-like {
|
2014-10-05 17:43:05 +00:00
|
|
|
padding: 0 4px; /* Horizontal padding of content */
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
|
|
|
background-color: white; /* The little square between H and V scrollbars */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* GUTTER */
|
|
|
|
|
|
|
|
.CodeMirror-gutters {
|
|
|
|
border-right: 1px solid #ddd;
|
|
|
|
background-color: #f7f7f7;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
.CodeMirror-linenumbers {}
|
|
|
|
.CodeMirror-linenumber {
|
|
|
|
padding: 0 3px 0 5px;
|
|
|
|
min-width: 20px;
|
|
|
|
text-align: right;
|
|
|
|
color: #999;
|
2015-04-23 02:44:04 +00:00
|
|
|
white-space: nowrap;
|
2014-10-05 17:43:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-guttermarker { color: black; }
|
|
|
|
.CodeMirror-guttermarker-subtle { color: #999; }
|
|
|
|
|
|
|
|
/* CURSOR */
|
|
|
|
|
2017-02-08 12:35:49 +00:00
|
|
|
.CodeMirror-cursor {
|
2014-10-05 17:43:05 +00:00
|
|
|
border-left: 1px solid black;
|
2017-02-08 12:35:49 +00:00
|
|
|
border-right: none;
|
|
|
|
width: 0;
|
2014-10-05 17:43:05 +00:00
|
|
|
}
|
|
|
|
/* Shown when moving in bi-directional text */
|
|
|
|
.CodeMirror div.CodeMirror-secondarycursor {
|
|
|
|
border-left: 1px solid silver;
|
|
|
|
}
|
2017-02-08 12:35:49 +00:00
|
|
|
.cm-fat-cursor .CodeMirror-cursor {
|
2014-10-05 17:43:05 +00:00
|
|
|
width: auto;
|
2017-02-08 12:35:49 +00:00
|
|
|
border: 0 !important;
|
2014-10-05 17:43:05 +00:00
|
|
|
background: #7e7;
|
|
|
|
}
|
2017-02-08 12:35:49 +00:00
|
|
|
.cm-fat-cursor div.CodeMirror-cursors {
|
2014-10-05 17:43:05 +00:00
|
|
|
z-index: 1;
|
|
|
|
}
|
2017-11-05 06:12:57 +00:00
|
|
|
.cm-fat-cursor-mark {
|
|
|
|
background-color: rgba(20, 255, 20, 0.5);
|
|
|
|
-webkit-animation: blink 1.06s steps(1) infinite;
|
|
|
|
-moz-animation: blink 1.06s steps(1) infinite;
|
|
|
|
animation: blink 1.06s steps(1) infinite;
|
|
|
|
}
|
2014-10-05 17:43:05 +00:00
|
|
|
.cm-animate-fat-cursor {
|
|
|
|
width: auto;
|
|
|
|
border: 0;
|
|
|
|
-webkit-animation: blink 1.06s steps(1) infinite;
|
|
|
|
-moz-animation: blink 1.06s steps(1) infinite;
|
|
|
|
animation: blink 1.06s steps(1) infinite;
|
2015-07-29 23:36:59 +00:00
|
|
|
background-color: #7e7;
|
2014-10-05 17:43:05 +00:00
|
|
|
}
|
|
|
|
@-moz-keyframes blink {
|
2015-07-29 23:36:59 +00:00
|
|
|
0% {}
|
|
|
|
50% { background-color: transparent; }
|
|
|
|
100% {}
|
2014-10-05 17:43:05 +00:00
|
|
|
}
|
|
|
|
@-webkit-keyframes blink {
|
2015-07-29 23:36:59 +00:00
|
|
|
0% {}
|
|
|
|
50% { background-color: transparent; }
|
|
|
|
100% {}
|
2014-10-05 17:43:05 +00:00
|
|
|
}
|
|
|
|
@keyframes blink {
|
2015-07-29 23:36:59 +00:00
|
|
|
0% {}
|
|
|
|
50% { background-color: transparent; }
|
|
|
|
100% {}
|
2014-10-05 17:43:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Can style cursor different in overwrite (non-insert) mode */
|
2017-02-08 12:35:49 +00:00
|
|
|
.CodeMirror-overwrite .CodeMirror-cursor {}
|
2014-10-05 17:43:05 +00:00
|
|
|
|
2015-02-25 02:42:17 +00:00
|
|
|
.cm-tab { display: inline-block; text-decoration: inherit; }
|
2014-10-05 17:43:05 +00:00
|
|
|
|
2017-02-08 12:35:49 +00:00
|
|
|
.CodeMirror-rulers {
|
|
|
|
position: absolute;
|
2019-11-05 19:30:45 +00:00
|
|
|
left: 0; right: 0; top: -50px; bottom: 0;
|
2017-02-08 12:35:49 +00:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror-ruler {
|
|
|
|
border-left: 1px solid #ccc;
|
2017-02-08 12:35:49 +00:00
|
|
|
top: 0; bottom: 0;
|
2014-10-05 17:43:05 +00:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* DEFAULT THEME */
|
|
|
|
|
2015-07-29 23:36:59 +00:00
|
|
|
.cm-s-default .cm-header {color: blue;}
|
|
|
|
.cm-s-default .cm-quote {color: #090;}
|
|
|
|
.cm-negative {color: #d44;}
|
|
|
|
.cm-positive {color: #292;}
|
|
|
|
.cm-header, .cm-strong {font-weight: bold;}
|
|
|
|
.cm-em {font-style: italic;}
|
|
|
|
.cm-link {text-decoration: underline;}
|
|
|
|
.cm-strikethrough {text-decoration: line-through;}
|
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
.cm-s-default .cm-keyword {color: #708;}
|
|
|
|
.cm-s-default .cm-atom {color: #219;}
|
|
|
|
.cm-s-default .cm-number {color: #164;}
|
|
|
|
.cm-s-default .cm-def {color: #00f;}
|
|
|
|
.cm-s-default .cm-variable,
|
|
|
|
.cm-s-default .cm-punctuation,
|
|
|
|
.cm-s-default .cm-property,
|
|
|
|
.cm-s-default .cm-operator {}
|
|
|
|
.cm-s-default .cm-variable-2 {color: #05a;}
|
2017-06-29 13:39:01 +00:00
|
|
|
.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}
|
2014-10-05 17:43:05 +00:00
|
|
|
.cm-s-default .cm-comment {color: #a50;}
|
|
|
|
.cm-s-default .cm-string {color: #a11;}
|
|
|
|
.cm-s-default .cm-string-2 {color: #f50;}
|
|
|
|
.cm-s-default .cm-meta {color: #555;}
|
|
|
|
.cm-s-default .cm-qualifier {color: #555;}
|
|
|
|
.cm-s-default .cm-builtin {color: #30a;}
|
|
|
|
.cm-s-default .cm-bracket {color: #997;}
|
|
|
|
.cm-s-default .cm-tag {color: #170;}
|
|
|
|
.cm-s-default .cm-attribute {color: #00c;}
|
|
|
|
.cm-s-default .cm-hr {color: #999;}
|
|
|
|
.cm-s-default .cm-link {color: #00c;}
|
|
|
|
|
|
|
|
.cm-s-default .cm-error {color: #f00;}
|
|
|
|
.cm-invalidchar {color: #f00;}
|
|
|
|
|
2015-04-23 02:44:04 +00:00
|
|
|
.CodeMirror-composing { border-bottom: 2px solid; }
|
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
/* Default styles for common addons */
|
|
|
|
|
2017-11-23 22:50:09 +00:00
|
|
|
div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}
|
|
|
|
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
|
|
|
|
.CodeMirror-activeline-background {background: #e8f2ff;}
|
2012-11-27 18:06:37 +00:00
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
/* STOP */
|
|
|
|
|
|
|
|
/* The rest of this file contains styles related to the mechanics of
|
|
|
|
the editor. You probably shouldn't touch them. */
|
|
|
|
|
|
|
|
.CodeMirror {
|
2012-11-27 18:06:37 +00:00
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
2014-10-05 17:43:05 +00:00
|
|
|
background: white;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-scroll {
|
2015-02-25 02:42:17 +00:00
|
|
|
overflow: scroll !important; /* Things will break if this is overridden */
|
2020-06-02 08:08:02 +00:00
|
|
|
/* 50px is the magic margin used to hide the element's real scrollbars */
|
2014-10-05 17:43:05 +00:00
|
|
|
/* See overflow: hidden in .CodeMirror */
|
2020-06-02 08:08:02 +00:00
|
|
|
margin-bottom: -50px; margin-right: -50px;
|
|
|
|
padding-bottom: 50px;
|
2014-10-05 17:43:05 +00:00
|
|
|
height: 100%;
|
|
|
|
outline: none; /* Prevent dragging from highlighting the element */
|
2012-11-27 18:06:37 +00:00
|
|
|
position: relative;
|
2014-10-05 17:43:05 +00:00
|
|
|
}
|
|
|
|
.CodeMirror-sizer {
|
|
|
|
position: relative;
|
2020-06-02 08:08:02 +00:00
|
|
|
border-right: 50px solid transparent;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
/* The fake, visible scrollbars. Used to force redraw during scrolling
|
2017-02-08 12:35:49 +00:00
|
|
|
before actual scrolling happens, thus preventing shaking and
|
2014-10-05 17:43:05 +00:00
|
|
|
flickering artifacts. */
|
|
|
|
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
2012-11-27 18:06:37 +00:00
|
|
|
position: absolute;
|
2014-10-05 17:43:05 +00:00
|
|
|
z-index: 6;
|
|
|
|
display: none;
|
2020-09-22 11:03:31 +00:00
|
|
|
outline: none;
|
2014-10-05 17:43:05 +00:00
|
|
|
}
|
|
|
|
.CodeMirror-vscrollbar {
|
2012-11-27 18:06:37 +00:00
|
|
|
right: 0; top: 0;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror-hscrollbar {
|
|
|
|
bottom: 0; left: 0;
|
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: scroll;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror-scrollbar-filler {
|
|
|
|
right: 0; bottom: 0;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror-gutter-filler {
|
|
|
|
left: 0; bottom: 0;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror-gutters {
|
2012-11-27 18:06:37 +00:00
|
|
|
position: absolute; left: 0; top: 0;
|
2017-02-08 12:35:49 +00:00
|
|
|
min-height: 100%;
|
2014-10-05 17:43:05 +00:00
|
|
|
z-index: 3;
|
|
|
|
}
|
|
|
|
.CodeMirror-gutter {
|
|
|
|
white-space: normal;
|
2012-11-27 18:06:37 +00:00
|
|
|
height: 100%;
|
2014-10-05 17:43:05 +00:00
|
|
|
display: inline-block;
|
2017-02-08 12:35:49 +00:00
|
|
|
vertical-align: top;
|
2020-06-02 08:08:02 +00:00
|
|
|
margin-bottom: -50px;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
2015-02-25 02:42:17 +00:00
|
|
|
.CodeMirror-gutter-wrapper {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 4;
|
2015-07-29 23:36:59 +00:00
|
|
|
background: none !important;
|
|
|
|
border: none !important;
|
|
|
|
}
|
|
|
|
.CodeMirror-gutter-background {
|
|
|
|
position: absolute;
|
|
|
|
top: 0; bottom: 0;
|
|
|
|
z-index: 4;
|
2015-02-25 02:42:17 +00:00
|
|
|
}
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror-gutter-elt {
|
|
|
|
position: absolute;
|
2012-11-27 18:06:37 +00:00
|
|
|
cursor: default;
|
2014-10-05 17:43:05 +00:00
|
|
|
z-index: 4;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
2017-03-18 00:24:59 +00:00
|
|
|
.CodeMirror-gutter-wrapper ::selection { background-color: transparent }
|
|
|
|
.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
|
2014-10-05 17:43:05 +00:00
|
|
|
|
2012-11-27 18:06:37 +00:00
|
|
|
.CodeMirror-lines {
|
|
|
|
cursor: text;
|
2014-10-05 17:43:05 +00:00
|
|
|
min-height: 1px; /* prevents collapsing before first draw */
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
2019-11-05 19:30:45 +00:00
|
|
|
.CodeMirror pre.CodeMirror-line,
|
|
|
|
.CodeMirror pre.CodeMirror-line-like {
|
2014-10-05 17:43:05 +00:00
|
|
|
/* Reset some styles that the rest of the page might have set */
|
|
|
|
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
|
|
|
|
border-width: 0;
|
|
|
|
background: transparent;
|
2012-11-27 18:06:37 +00:00
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
2014-10-05 17:43:05 +00:00
|
|
|
margin: 0;
|
2012-11-27 18:06:37 +00:00
|
|
|
white-space: pre;
|
|
|
|
word-wrap: normal;
|
|
|
|
line-height: inherit;
|
|
|
|
color: inherit;
|
2014-10-05 17:43:05 +00:00
|
|
|
z-index: 2;
|
|
|
|
position: relative;
|
2012-11-27 18:06:37 +00:00
|
|
|
overflow: visible;
|
2015-02-25 02:42:17 +00:00
|
|
|
-webkit-tap-highlight-color: transparent;
|
2017-02-08 12:35:49 +00:00
|
|
|
-webkit-font-variant-ligatures: contextual;
|
|
|
|
font-variant-ligatures: contextual;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
2019-11-05 19:30:45 +00:00
|
|
|
.CodeMirror-wrap pre.CodeMirror-line,
|
|
|
|
.CodeMirror-wrap pre.CodeMirror-line-like {
|
2012-11-27 18:06:37 +00:00
|
|
|
word-wrap: break-word;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-break: normal;
|
|
|
|
}
|
2014-10-05 17:43:05 +00:00
|
|
|
|
|
|
|
.CodeMirror-linebackground {
|
|
|
|
position: absolute;
|
|
|
|
left: 0; right: 0; top: 0; bottom: 0;
|
|
|
|
z-index: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-linewidget {
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
2018-03-03 20:03:05 +00:00
|
|
|
padding: 0.1px; /* Force widget margins to stay inside of the container */
|
2014-10-05 17:43:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-widget {}
|
|
|
|
|
2017-03-18 00:24:59 +00:00
|
|
|
.CodeMirror-rtl pre { direction: rtl; }
|
|
|
|
|
2015-02-25 02:42:17 +00:00
|
|
|
.CodeMirror-code {
|
|
|
|
outline: none;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
|
|
|
|
2015-04-23 02:44:04 +00:00
|
|
|
/* Force content-box sizing for the elements where we expect it */
|
|
|
|
.CodeMirror-scroll,
|
|
|
|
.CodeMirror-sizer,
|
|
|
|
.CodeMirror-gutter,
|
|
|
|
.CodeMirror-gutters,
|
|
|
|
.CodeMirror-linenumber {
|
|
|
|
-moz-box-sizing: content-box;
|
|
|
|
box-sizing: content-box;
|
|
|
|
}
|
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror-measure {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
visibility: hidden;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
|
|
|
|
2017-02-08 12:35:49 +00:00
|
|
|
.CodeMirror-cursor {
|
2012-11-27 18:06:37 +00:00
|
|
|
position: absolute;
|
2017-02-08 12:35:49 +00:00
|
|
|
pointer-events: none;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
2017-02-08 12:35:49 +00:00
|
|
|
.CodeMirror-measure pre { position: static; }
|
2014-10-05 17:43:05 +00:00
|
|
|
|
|
|
|
div.CodeMirror-cursors {
|
|
|
|
visibility: hidden;
|
|
|
|
position: relative;
|
|
|
|
z-index: 3;
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
2017-02-08 12:35:49 +00:00
|
|
|
div.CodeMirror-dragcursors {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror-focused div.CodeMirror-cursors {
|
2012-11-27 18:06:37 +00:00
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror-selected { background: #d9d9d9; }
|
|
|
|
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
|
|
|
.CodeMirror-crosshair { cursor: crosshair; }
|
2015-07-29 23:36:59 +00:00
|
|
|
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
|
|
|
|
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
|
2012-11-27 18:06:37 +00:00
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
.cm-searching {
|
2017-11-05 06:12:57 +00:00
|
|
|
background-color: #ffa;
|
|
|
|
background-color: rgba(255, 255, 0, .4);
|
2012-11-27 18:06:37 +00:00
|
|
|
}
|
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
/* Used to force a border model for a node */
|
|
|
|
.cm-force-border { padding-right: .1px; }
|
2012-11-27 18:06:37 +00:00
|
|
|
|
|
|
|
@media print {
|
|
|
|
/* Hide the cursor when printing */
|
2014-10-05 17:43:05 +00:00
|
|
|
.CodeMirror div.CodeMirror-cursors {
|
2012-11-27 18:06:37 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
2014-10-05 17:43:05 +00:00
|
|
|
|
2015-02-25 02:42:17 +00:00
|
|
|
/* See issue #2901 */
|
|
|
|
.cm-tab-wrap-hack:after { content: ''; }
|
|
|
|
|
2014-10-05 17:43:05 +00:00
|
|
|
/* Help users use markselection to safely style text background */
|
|
|
|
span.CodeMirror-selectedtext { background: none; }
|