1 |
|
2 |
|
3 | .CodeMirror {
|
4 |
|
5 | font-family: 'Roboto Mono', monospace;
|
6 | font-weight: 500;
|
7 | font-size: 12px;
|
8 | height: 300px;
|
9 | color: black;
|
10 | direction: ltr;
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 | .CodeMirror-lines {
|
16 | padding: 4px 0;
|
17 | }
|
18 | .CodeMirror pre {
|
19 | padding: 0 4px;
|
20 | }
|
21 |
|
22 | .CodeMirror-scrollbar-filler,
|
23 | .CodeMirror-gutter-filler {
|
24 | background-color: white;
|
25 | }
|
26 |
|
27 |
|
28 |
|
29 | .CodeMirror-gutters {
|
30 | border-right: 1px solid #ddd;
|
31 | background-color: #f7f7f7;
|
32 | white-space: nowrap;
|
33 | }
|
34 | .CodeMirror-linenumbers {
|
35 | }
|
36 | .CodeMirror-linenumber {
|
37 | padding: 0 3px 0 5px;
|
38 | min-width: 20px;
|
39 | text-align: right;
|
40 | color: #999;
|
41 | white-space: nowrap;
|
42 | }
|
43 |
|
44 | .CodeMirror-guttermarker {
|
45 | color: black;
|
46 | }
|
47 | .CodeMirror-guttermarker-subtle {
|
48 | color: #999;
|
49 | }
|
50 |
|
51 |
|
52 |
|
53 | .CodeMirror-cursor {
|
54 | border-left: 1px solid black;
|
55 | border-right: none;
|
56 | width: 0;
|
57 | }
|
58 |
|
59 | .CodeMirror div.CodeMirror-secondarycursor {
|
60 | border-left: 1px solid silver;
|
61 | }
|
62 | .cm-fat-cursor .CodeMirror-cursor {
|
63 | width: auto;
|
64 | border: 0 !important;
|
65 | background: #7e7;
|
66 | }
|
67 | .cm-fat-cursor div.CodeMirror-cursors {
|
68 | z-index: 1;
|
69 | }
|
70 | .cm-fat-cursor-mark {
|
71 | background-color: rgba(20, 255, 20, 0.5);
|
72 | -webkit-animation: blink 1.06s steps(1) infinite;
|
73 | -moz-animation: blink 1.06s steps(1) infinite;
|
74 | animation: blink 1.06s steps(1) infinite;
|
75 | }
|
76 | .cm-animate-fat-cursor {
|
77 | width: auto;
|
78 | border: 0;
|
79 | -webkit-animation: blink 1.06s steps(1) infinite;
|
80 | -moz-animation: blink 1.06s steps(1) infinite;
|
81 | animation: blink 1.06s steps(1) infinite;
|
82 | background-color: #7e7;
|
83 | }
|
84 | @-moz-keyframes blink {
|
85 | 0% {
|
86 | }
|
87 | 50% {
|
88 | background-color: transparent;
|
89 | }
|
90 | 100% {
|
91 | }
|
92 | }
|
93 | @-webkit-keyframes blink {
|
94 | 0% {
|
95 | }
|
96 | 50% {
|
97 | background-color: transparent;
|
98 | }
|
99 | 100% {
|
100 | }
|
101 | }
|
102 | @keyframes blink {
|
103 | 0% {
|
104 | }
|
105 | 50% {
|
106 | background-color: transparent;
|
107 | }
|
108 | 100% {
|
109 | }
|
110 | }
|
111 |
|
112 |
|
113 | .CodeMirror-overwrite .CodeMirror-cursor {
|
114 | }
|
115 |
|
116 | .cm-tab {
|
117 | display: inline-block;
|
118 | text-decoration: inherit;
|
119 | }
|
120 |
|
121 | .CodeMirror-rulers {
|
122 | position: absolute;
|
123 | left: 0;
|
124 | right: 0;
|
125 | top: -50px;
|
126 | bottom: -20px;
|
127 | overflow: hidden;
|
128 | }
|
129 | .CodeMirror-ruler {
|
130 | border-left: 1px solid #ccc;
|
131 | top: 0;
|
132 | bottom: 0;
|
133 | position: absolute;
|
134 | }
|
135 |
|
136 |
|
137 |
|
138 | .cm-s-default .cm-header {
|
139 | color: blue;
|
140 | }
|
141 | .cm-s-default .cm-quote {
|
142 | color: #090;
|
143 | }
|
144 | .cm-negative {
|
145 | color: #d44;
|
146 | }
|
147 | .cm-positive {
|
148 | color: #292;
|
149 | }
|
150 | .cm-header,
|
151 | .cm-strong {
|
152 | font-weight: bold;
|
153 | }
|
154 | .cm-em {
|
155 | font-style: italic;
|
156 | }
|
157 | .cm-link {
|
158 | text-decoration: underline;
|
159 | }
|
160 | .cm-strikethrough {
|
161 | text-decoration: line-through;
|
162 | }
|
163 |
|
164 | .cm-s-default .cm-keyword {
|
165 | color: #ab0e90;
|
166 | }
|
167 | .cm-s-default .cm-atom {
|
168 | color: #219;
|
169 | }
|
170 | .cm-s-default .cm-number {
|
171 | color: #00f;
|
172 | }
|
173 | .cm-s-default .cm-def {
|
174 | color: #00f;
|
175 | }
|
176 | .cm-s-default .cm-variable,
|
177 | .cm-s-default .cm-punctuation,
|
178 | .cm-s-default .cm-property,
|
179 | .cm-s-default .cm-operator {
|
180 | }
|
181 | .cm-s-default .cm-variable-2 {
|
182 | color: #05a;
|
183 | }
|
184 | .cm-s-default .cm-variable-3,
|
185 | .cm-s-default .cm-type {
|
186 | color: #085;
|
187 | }
|
188 | .cm-s-default .cm-comment {
|
189 | color: #a50;
|
190 | }
|
191 | .cm-s-default .cm-string {
|
192 | color: #c92924;
|
193 | }
|
194 | .cm-s-default .cm-string-2 {
|
195 | color: #f50;
|
196 | }
|
197 | .cm-s-default .cm-meta {
|
198 | color: #555;
|
199 | }
|
200 | .cm-s-default .cm-qualifier {
|
201 | color: #555;
|
202 | }
|
203 | .cm-s-default .cm-builtin {
|
204 | color: #30a;
|
205 | }
|
206 | .cm-s-default .cm-bracket {
|
207 | color: #997;
|
208 | }
|
209 | .cm-s-default .cm-tag {
|
210 | color: #170;
|
211 | }
|
212 | .cm-s-default .cm-attribute {
|
213 | color: #00c;
|
214 | }
|
215 | .cm-s-default .cm-hr {
|
216 | color: #999;
|
217 | }
|
218 | .cm-s-default .cm-link {
|
219 | color: #00c;
|
220 | }
|
221 |
|
222 | .cm-s-default .cm-error {
|
223 | color: #f00;
|
224 | }
|
225 | .cm-invalidchar {
|
226 | color: #f00;
|
227 | }
|
228 |
|
229 | .CodeMirror-composing {
|
230 | border-bottom: 2px solid;
|
231 | }
|
232 |
|
233 |
|
234 |
|
235 | div.CodeMirror span.CodeMirror-matchingbracket {
|
236 | color: #0b0;
|
237 | }
|
238 | div.CodeMirror span.CodeMirror-nonmatchingbracket {
|
239 | color: #a22;
|
240 | }
|
241 | .CodeMirror-matchingtag {
|
242 | background: rgba(255, 150, 0, 0.3);
|
243 | }
|
244 | .CodeMirror-activeline-background {
|
245 | background: #e8f2ff;
|
246 | }
|
247 |
|
248 |
|
249 |
|
250 |
|
251 |
|
252 |
|
253 | .CodeMirror {
|
254 | position: relative;
|
255 | overflow: hidden;
|
256 |
|
257 | }
|
258 |
|
259 | .CodeMirror-scroll {
|
260 | overflow: scroll !important;
|
261 |
|
262 |
|
263 | margin-bottom: -30px;
|
264 | margin-right: -30px;
|
265 | padding-bottom: 30px;
|
266 | height: 100%;
|
267 | outline: none;
|
268 | position: relative;
|
269 | }
|
270 | .CodeMirror-sizer {
|
271 | position: relative;
|
272 | border-right: 30px solid transparent;
|
273 | }
|
274 |
|
275 |
|
276 |
|
277 |
|
278 | .CodeMirror-vscrollbar,
|
279 | .CodeMirror-hscrollbar,
|
280 | .CodeMirror-scrollbar-filler,
|
281 | .CodeMirror-gutter-filler {
|
282 | position: absolute;
|
283 | z-index: 6;
|
284 | display: none;
|
285 | }
|
286 | .CodeMirror-vscrollbar {
|
287 | right: 0;
|
288 | top: 0;
|
289 | overflow-x: hidden;
|
290 | overflow-y: scroll;
|
291 | }
|
292 | .CodeMirror-hscrollbar {
|
293 | bottom: 0;
|
294 | left: 0;
|
295 | overflow-y: hidden;
|
296 | overflow-x: scroll;
|
297 | }
|
298 | .CodeMirror-scrollbar-filler {
|
299 | right: 0;
|
300 | bottom: 0;
|
301 | }
|
302 | .CodeMirror-gutter-filler {
|
303 | left: 0;
|
304 | bottom: 0;
|
305 | }
|
306 |
|
307 | .CodeMirror-gutters {
|
308 | position: absolute;
|
309 | left: 0;
|
310 | top: 0;
|
311 | min-height: 100%;
|
312 | z-index: 3;
|
313 | }
|
314 | .CodeMirror-gutter {
|
315 | white-space: normal;
|
316 | height: 100%;
|
317 | display: inline-block;
|
318 | vertical-align: top;
|
319 | margin-bottom: -30px;
|
320 | }
|
321 | .CodeMirror-gutter-wrapper {
|
322 | position: absolute;
|
323 | z-index: 4;
|
324 | background: none !important;
|
325 | border: none !important;
|
326 | }
|
327 | .CodeMirror-gutter-background {
|
328 | position: absolute;
|
329 | top: 0;
|
330 | bottom: 0;
|
331 | z-index: 4;
|
332 | }
|
333 | .CodeMirror-gutter-elt {
|
334 | position: absolute;
|
335 | cursor: default;
|
336 | z-index: 4;
|
337 | }
|
338 | .CodeMirror-gutter-wrapper ::selection {
|
339 | background-color: transparent;
|
340 | }
|
341 | .CodeMirror-gutter-wrapper ::-moz-selection {
|
342 | background-color: transparent;
|
343 | }
|
344 |
|
345 | .CodeMirror-lines {
|
346 | cursor: text;
|
347 | min-height: 1px;
|
348 | }
|
349 | .CodeMirror pre {
|
350 |
|
351 | -moz-border-radius: 0;
|
352 | -webkit-border-radius: 0;
|
353 | border-radius: 0;
|
354 | border-width: 0;
|
355 | background: transparent;
|
356 | font-family: inherit;
|
357 | font-size: inherit;
|
358 | margin: 0;
|
359 | white-space: pre;
|
360 | word-wrap: normal;
|
361 | line-height: inherit;
|
362 | color: inherit;
|
363 | z-index: 2;
|
364 | position: relative;
|
365 | overflow: visible;
|
366 | -webkit-tap-highlight-color: transparent;
|
367 | -webkit-font-variant-ligatures: contextual;
|
368 | font-variant-ligatures: contextual;
|
369 | }
|
370 | .CodeMirror-wrap pre {
|
371 | word-wrap: break-word;
|
372 | white-space: pre-wrap;
|
373 | word-break: normal;
|
374 | }
|
375 |
|
376 | .CodeMirror-linebackground {
|
377 | position: absolute;
|
378 | left: 0;
|
379 | right: 0;
|
380 | top: 0;
|
381 | bottom: 0;
|
382 | z-index: 0;
|
383 | }
|
384 |
|
385 | .CodeMirror-linewidget {
|
386 | position: relative;
|
387 | z-index: 2;
|
388 | padding: 0.1px;
|
389 | }
|
390 |
|
391 | .CodeMirror-widget {
|
392 | }
|
393 |
|
394 | .CodeMirror-rtl pre {
|
395 | direction: rtl;
|
396 | }
|
397 |
|
398 | .CodeMirror-code {
|
399 | outline: none;
|
400 | }
|
401 |
|
402 |
|
403 | .CodeMirror-scroll,
|
404 | .CodeMirror-sizer,
|
405 | .CodeMirror-gutter,
|
406 | .CodeMirror-gutters,
|
407 | .CodeMirror-linenumber {
|
408 | -moz-box-sizing: content-box;
|
409 | box-sizing: content-box;
|
410 | }
|
411 |
|
412 | .CodeMirror-measure {
|
413 | position: absolute;
|
414 | width: 100%;
|
415 | height: 0;
|
416 | overflow: hidden;
|
417 | visibility: hidden;
|
418 | }
|
419 |
|
420 | .CodeMirror-cursor {
|
421 | position: absolute;
|
422 | pointer-events: none;
|
423 | }
|
424 | .CodeMirror-measure pre {
|
425 | position: static;
|
426 | }
|
427 |
|
428 | div.CodeMirror-cursors {
|
429 | visibility: hidden;
|
430 | position: relative;
|
431 | z-index: 3;
|
432 | }
|
433 | div.CodeMirror-dragcursors {
|
434 | visibility: visible;
|
435 | }
|
436 |
|
437 | .CodeMirror-focused div.CodeMirror-cursors {
|
438 | visibility: visible;
|
439 | }
|
440 |
|
441 | .CodeMirror-selected {
|
442 | background: #d9d9d9;
|
443 | }
|
444 | .CodeMirror-focused .CodeMirror-selected {
|
445 | background: #d7d4f0;
|
446 | }
|
447 | .CodeMirror-crosshair {
|
448 | cursor: crosshair;
|
449 | }
|
450 | .CodeMirror-line::selection,
|
451 | .CodeMirror-line > span::selection,
|
452 | .CodeMirror-line > span > span::selection {
|
453 | background: #d7d4f0;
|
454 | }
|
455 | .CodeMirror-line::-moz-selection,
|
456 | .CodeMirror-line > span::-moz-selection,
|
457 | .CodeMirror-line > span > span::-moz-selection {
|
458 | background: #d7d4f0;
|
459 | }
|
460 |
|
461 | .cm-searching {
|
462 | background-color: #ffa;
|
463 | background-color: rgba(255, 255, 0, 0.4);
|
464 | }
|
465 |
|
466 |
|
467 | .cm-force-border {
|
468 | padding-right: 0.1px;
|
469 | }
|
470 |
|
471 | @media print {
|
472 |
|
473 | .CodeMirror div.CodeMirror-cursors {
|
474 | visibility: hidden;
|
475 | }
|
476 | }
|
477 |
|
478 |
|
479 | .cm-tab-wrap-hack:after {
|
480 | content: '';
|
481 | }
|
482 |
|
483 |
|
484 | span.CodeMirror-selectedtext {
|
485 | background: none;
|
486 | }
|