|
299 | 299 | } |
300 | 300 | } |
301 | 301 |
|
302 | | -.CodeMirror { |
| 302 | +.cm-editor { |
303 | 303 | @apply h-full; |
304 | 304 | background-color: inherit; |
305 | 305 | color: inherit; |
306 | 306 | } |
307 | 307 |
|
308 | | -.CodeMirror-gutters .errors { |
| 308 | +.cm-gutters .errors { |
309 | 309 | /*@apply bg-white text-red-500;*/ |
310 | 310 | @apply w-6; |
311 | 311 | background-color: inherit; |
312 | 312 | } |
313 | 313 |
|
314 | | -/*.CodeMirror-scroll {*/ |
| 314 | +/*.cm-scroller {*/ |
315 | 315 | /*min-height: 40vh;*/ |
316 | 316 | /*}*/ |
317 | 317 |
|
318 | | -.cm-s-material.CodeMirror { |
| 318 | +.cm-s-material.mc-editor { |
319 | 319 | /*background-color: #263238;*/ |
320 | 320 | @apply font-mono; |
321 | 321 | /*py-8;*/ |
322 | 322 | } |
323 | 323 |
|
324 | | -.cm-s-material .CodeMirror-gutters { |
| 324 | +.cm-s-material .cm-gutters { |
325 | 325 | /*@apply text-gray-80;*/ |
326 | 326 | border: none; |
327 | 327 | background-color: inherit; |
328 | 328 | color: inherit; |
329 | 329 | } |
330 | 330 |
|
331 | | -/*.CodeMirror pre.CodeMirror-line,*/ |
332 | | -/*.CodeMirror pre.CodeMirror-line-like {*/ |
| 331 | +/*.CodeMirror pre.cm-line,*/ |
| 332 | +/*.CodeMirror pre.cm-line-like {*/ |
333 | 333 | /*}*/ |
334 | 334 |
|
335 | | -.cm-s-material .CodeMirror-guttermarker, |
336 | | -.cm-s-material .CodeMirror-guttermarker-subtle, |
337 | | -.cm-s-material .CodeMirror-linenumber { |
| 335 | +.cm-s-material .cm-guttermarker, |
| 336 | +.cm-s-material .cm-guttermarker-subtle, |
| 337 | +.cm-s-material .cm-linenumber { |
338 | 338 | @apply text-gray-80; |
339 | 339 | } |
340 | 340 |
|
341 | | -.cm-s-material .CodeMirror-cursor { |
| 341 | +.cm-s-material .cm-cursor { |
342 | 342 | border-left: 1px solid #ffcc00; |
343 | 343 | } |
344 | 344 |
|
345 | | -.cm-s-material div.CodeMirror-selected { |
| 345 | +.cm-s-material div.cm-selected { |
346 | 346 | background: rgba(128, 203, 196, 0.2); |
347 | 347 | } |
348 | 348 |
|
349 | | -.cm-s-material.CodeMirror-focused div.CodeMirror-selected { |
| 349 | +.cm-s-material.cm-focused div.cm-selected { |
350 | 350 | background: rgba(128, 203, 196, 0.2); |
351 | 351 | } |
352 | 352 |
|
353 | | -.cm-s-material .CodeMirror-line::selection, |
354 | | -.cm-s-material .CodeMirror-line > span::selection, |
355 | | -.cm-s-material .CodeMirror-line > span > span::selection { |
| 353 | +.cm-s-material .cm-line::selection, |
| 354 | +.cm-s-material .cm-line > span::selection, |
| 355 | +.cm-s-material .cm-line > span > span::selection { |
356 | 356 | background: rgba(128, 203, 196, 0.2); |
357 | 357 | } |
358 | 358 |
|
359 | | -.cm-s-material .CodeMirror-line::-moz-selection, |
360 | | -.cm-s-material .CodeMirror-line > span::-moz-selection, |
361 | | -.cm-s-material .CodeMirror-line > span > span::-moz-selection { |
| 359 | +.cm-s-material .cm-line::-moz-selection, |
| 360 | +.cm-s-material .cm-line > span::-moz-selection, |
| 361 | +.cm-s-material .cm-line > span > span::-moz-selection { |
362 | 362 | background: rgba(128, 203, 196, 0.2); |
363 | 363 | } |
364 | 364 |
|
365 | | -.cm-s-material .CodeMirror-activeline-background { |
| 365 | +.cm-s-material .cm-activeline-background { |
366 | 366 | background: rgba(0, 0, 0, 0.5); |
367 | 367 | } |
368 | 368 |
|
|
435 | 435 | @apply text-gray-30; |
436 | 436 | } |
437 | 437 |
|
438 | | -.cm-s-material .cm-tag { |
| 438 | + .cm-tag { |
439 | 439 | color: #ff5370; |
440 | 440 | } |
441 | 441 |
|
|
465 | 465 | background-color: #ff5370; |
466 | 466 | } |
467 | 467 |
|
468 | | -.cm-s-material .CodeMirror-matchingbracket { |
| 468 | +.cm-s-material .cm-matchingbracket { |
469 | 469 | text-decoration: underline; |
470 | 470 | color: white !important; |
471 | 471 | } |
472 | 472 |
|
473 | 473 | /* simplescrollbars style */ |
474 | | -.CodeMirror-simplescroll-horizontal div, |
475 | | -.CodeMirror-simplescroll-vertical div { |
| 474 | +.cm-simplescroll-horizontal div, |
| 475 | +.cm-simplescroll-vertical div { |
476 | 476 | position: absolute; |
477 | 477 | background: #ccc; |
478 | 478 | -moz-box-sizing: border-box; |
|
481 | 481 | border-radius: 2px; |
482 | 482 | } |
483 | 483 |
|
484 | | -.CodeMirror-simplescroll-horizontal, |
485 | | -.CodeMirror-simplescroll-vertical { |
| 484 | +.cm-simplescroll-horizontal, |
| 485 | +.cm-simplescroll-vertical { |
486 | 486 | position: absolute; |
487 | 487 | z-index: 6; |
488 | 488 | background: #eee; |
489 | 489 | } |
490 | 490 |
|
491 | | -.CodeMirror-simplescroll-horizontal { |
| 491 | +.cm-simplescroll-horizontal { |
492 | 492 | bottom: 0; |
493 | 493 | left: 0; |
494 | 494 | height: 8px; |
495 | 495 | } |
496 | 496 |
|
497 | | -.CodeMirror-simplescroll-horizontal div { |
| 497 | +.cm-simplescroll-horizontal div { |
498 | 498 | bottom: 0; |
499 | 499 | height: 100%; |
500 | 500 | } |
501 | 501 |
|
502 | | -.CodeMirror-simplescroll-vertical { |
| 502 | +.cm-simplescroll-vertical { |
503 | 503 | right: 0; |
504 | 504 | top: 0; |
505 | 505 | width: 8px; |
506 | 506 | } |
507 | 507 |
|
508 | | -.CodeMirror-simplescroll-vertical div { |
| 508 | +.cm-simplescroll-vertical div { |
509 | 509 | right: 0; |
510 | 510 | width: 100%; |
511 | 511 | } |
512 | 512 |
|
513 | | -.CodeMirror-overlayscroll .CodeMirror-scrollbar-filler, |
514 | | -.CodeMirror-overlayscroll .CodeMirror-gutter-filler { |
| 513 | +.cm-overlayscroll .cm-scrollbar-filler, |
| 514 | +.cm-overlayscroll .cm-gutter-filler { |
515 | 515 | display: none; |
516 | 516 | } |
517 | 517 |
|
518 | | -.CodeMirror-overlayscroll-horizontal div, |
519 | | -.CodeMirror-overlayscroll-vertical div { |
| 518 | +.cm-overlayscroll-horizontal div, |
| 519 | +.cm-overlayscroll-vertical div { |
520 | 520 | position: absolute; |
521 | 521 | background: #bcd; |
522 | 522 | border-radius: 3px; |
523 | 523 | } |
524 | 524 |
|
525 | | -.CodeMirror-overlayscroll-horizontal, |
526 | | -.CodeMirror-overlayscroll-vertical { |
| 525 | +.cm-overlayscroll-horizontal, |
| 526 | +.cm-overlayscroll-vertical { |
527 | 527 | position: absolute; |
528 | 528 | z-index: 6; |
529 | 529 | } |
530 | 530 |
|
531 | | -.CodeMirror-overlayscroll-horizontal { |
| 531 | +.cm-overlayscroll-horizontal { |
532 | 532 | bottom: 0; |
533 | 533 | left: 0; |
534 | 534 | height: 6px; |
535 | 535 | } |
536 | 536 |
|
537 | | -.CodeMirror-overlayscroll-horizontal div { |
| 537 | +.cm-overlayscroll-horizontal div { |
538 | 538 | bottom: 0; |
539 | 539 | height: 100%; |
540 | 540 | } |
541 | 541 |
|
542 | | -.CodeMirror-overlayscroll-vertical { |
| 542 | +.cm-overlayscroll-vertical { |
543 | 543 | right: 0; |
544 | 544 | top: 0; |
545 | 545 | width: 6px; |
546 | 546 | } |
547 | 547 |
|
548 | | -.CodeMirror-overlayscroll-vertical div { |
| 548 | +.cm-overlayscroll-vertical div { |
549 | 549 | right: 0; |
550 | 550 | width: 100%; |
551 | 551 | } |
|
0 commit comments