@limetech/lime-elements 36.2.0 → 36.3.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/cjs/limel-badge.cjs.entry.js +1 -1
  2. package/dist/cjs/limel-banner.cjs.entry.js +1 -1
  3. package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
  4. package/dist/cjs/limel-button.cjs.entry.js +1 -1
  5. package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
  6. package/dist/cjs/limel-chip-set.cjs.entry.js +2 -2
  7. package/dist/cjs/limel-circular-progress_2.cjs.entry.js +2 -2
  8. package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
  9. package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
  10. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
  12. package/dist/cjs/limel-dialog.cjs.entry.js +1 -1
  13. package/dist/cjs/limel-dock-button.cjs.entry.js +1 -1
  14. package/dist/cjs/limel-dock.cjs.entry.js +1 -1
  15. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +12 -2
  16. package/dist/cjs/limel-form.cjs.entry.js +1 -1
  17. package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
  18. package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
  19. package/dist/cjs/limel-input-field.cjs.entry.js +1 -1
  20. package/dist/cjs/limel-list_2.cjs.entry.js +2 -2
  21. package/dist/cjs/limel-menu-list.cjs.entry.js +1 -1
  22. package/dist/cjs/limel-popover_4.cjs.entry.js +1 -1
  23. package/dist/cjs/limel-select.cjs.entry.js +1 -1
  24. package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
  25. package/dist/cjs/limel-slider.cjs.entry.js +1 -1
  26. package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
  27. package/dist/cjs/limel-spinner.cjs.entry.js +1 -1
  28. package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
  29. package/dist/cjs/limel-switch.cjs.entry.js +1 -1
  30. package/dist/cjs/limel-tab-bar.cjs.entry.js +1 -1
  31. package/dist/cjs/limel-table.cjs.entry.js +1 -1
  32. package/dist/collection/components/badge/badge.css +5 -1
  33. package/dist/collection/components/banner/banner.css +5 -1
  34. package/dist/collection/components/button/button.css +24 -20
  35. package/dist/collection/components/button-group/button-group.css +18 -11
  36. package/dist/collection/components/checkbox/checkbox.css +20 -9
  37. package/dist/collection/components/chip-set/chip-set.css +32 -13
  38. package/dist/collection/components/chip-set/chip-set.js +1 -1
  39. package/dist/collection/components/circular-progress/circular-progress.css +5 -1
  40. package/dist/collection/components/code-editor/code-editor.css +93 -67
  41. package/dist/collection/components/collapsible-section/collapsible-section.css +5 -1
  42. package/dist/collection/components/color-picker/color-picker-palette.css +7 -504
  43. package/dist/collection/components/color-picker/color-picker.css +6 -2
  44. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +29 -18
  45. package/dist/collection/components/dialog/dialog.css +10 -2
  46. package/dist/collection/components/dock/dock-button/dock-button.css +8 -5
  47. package/dist/collection/components/dock/dock.css +6 -2
  48. package/dist/collection/components/form/form.css +5 -1
  49. package/dist/collection/components/icon-button/icon-button.css +5 -2
  50. package/dist/collection/components/info-tile/info-tile.css +16 -7
  51. package/dist/collection/components/input-field/input-field.css +28 -11
  52. package/dist/collection/components/linear-progress/linear-progress.css +5 -1
  53. package/dist/collection/components/list/list.css +942 -47
  54. package/dist/collection/components/menu-list/menu-list.css +1010 -47
  55. package/dist/collection/components/menu-surface/menu-surface.css +1 -0
  56. package/dist/collection/components/popover/popover.css +1 -1
  57. package/dist/collection/components/popover-surface/popover-surface.css +1 -1
  58. package/dist/collection/components/select/select.css +17 -3
  59. package/dist/collection/components/shortcut/shortcut.css +6 -3
  60. package/dist/collection/components/slider/slider.css +11 -3
  61. package/dist/collection/components/snackbar/snackbar.css +10 -5
  62. package/dist/collection/components/spinner/spinner.css +5 -1
  63. package/dist/collection/components/split-button/split-button.css +5 -1
  64. package/dist/collection/components/switch/switch.css +50 -2
  65. package/dist/collection/components/tab-bar/tab-bar.css +14 -2
  66. package/dist/collection/components/table/table.css +73 -32
  67. package/dist/collection/style/_theme-color-variables.scss +5 -1
  68. package/dist/collection/style/color-palette-extended-light-mode-only.css +1 -1
  69. package/dist/collection/style/color-palette-extended.css +173 -3
  70. package/dist/collection/style/color-palette-primary.scss.bak +1 -1
  71. package/dist/collection/style/color-palette-ui.scss.bak +1 -1
  72. package/dist/collection/style/colors.scss +11 -13
  73. package/dist/collection/style/internal/shared_input-select-picker.scss +16 -0
  74. package/dist/collection/style/internal/z-index.scss +0 -2
  75. package/dist/collection/style/mixins.scss +84 -20
  76. package/dist/collection/style/shadows.scss +117 -27
  77. package/dist/esm/limel-badge.entry.js +1 -1
  78. package/dist/esm/limel-banner.entry.js +1 -1
  79. package/dist/esm/limel-button-group.entry.js +1 -1
  80. package/dist/esm/limel-button.entry.js +1 -1
  81. package/dist/esm/limel-checkbox.entry.js +1 -1
  82. package/dist/esm/limel-chip-set.entry.js +2 -2
  83. package/dist/esm/limel-circular-progress_2.entry.js +2 -2
  84. package/dist/esm/limel-code-editor.entry.js +1 -1
  85. package/dist/esm/limel-collapsible-section.entry.js +1 -1
  86. package/dist/esm/limel-color-picker-palette.entry.js +1 -1
  87. package/dist/esm/limel-color-picker.entry.js +1 -1
  88. package/dist/esm/limel-dialog.entry.js +1 -1
  89. package/dist/esm/limel-dock-button.entry.js +1 -1
  90. package/dist/esm/limel-dock.entry.js +1 -1
  91. package/dist/esm/limel-flatpickr-adapter.entry.js +12 -2
  92. package/dist/esm/limel-form.entry.js +1 -1
  93. package/dist/esm/limel-icon-button.entry.js +1 -1
  94. package/dist/esm/limel-info-tile.entry.js +1 -1
  95. package/dist/esm/limel-input-field.entry.js +1 -1
  96. package/dist/esm/limel-list_2.entry.js +2 -2
  97. package/dist/esm/limel-menu-list.entry.js +1 -1
  98. package/dist/esm/limel-popover_4.entry.js +1 -1
  99. package/dist/esm/limel-select.entry.js +1 -1
  100. package/dist/esm/limel-shortcut.entry.js +1 -1
  101. package/dist/esm/limel-slider.entry.js +1 -1
  102. package/dist/esm/limel-snackbar.entry.js +1 -1
  103. package/dist/esm/limel-spinner.entry.js +1 -1
  104. package/dist/esm/limel-split-button.entry.js +1 -1
  105. package/dist/esm/limel-switch.entry.js +1 -1
  106. package/dist/esm/limel-tab-bar.entry.js +1 -1
  107. package/dist/esm/limel-table.entry.js +1 -1
  108. package/dist/lime-elements/lime-elements.css +15 -19
  109. package/dist/lime-elements/lime-elements.esm.js +1 -1
  110. package/dist/lime-elements/p-029360c8.entry.js +1 -0
  111. package/dist/lime-elements/{p-21058db5.entry.js → p-05d88196.entry.js} +2 -2
  112. package/dist/lime-elements/{p-9984b31c.entry.js → p-0bf916a0.entry.js} +1 -1
  113. package/dist/lime-elements/p-2f2ea041.entry.js +1 -0
  114. package/dist/lime-elements/{p-6534e16a.entry.js → p-405207fa.entry.js} +1 -1
  115. package/dist/lime-elements/p-524bd0cc.entry.js +1 -0
  116. package/dist/lime-elements/p-52e18d94.entry.js +1 -0
  117. package/dist/lime-elements/p-5409b92f.entry.js +1 -0
  118. package/dist/lime-elements/{p-768b7cbb.entry.js → p-61b3352f.entry.js} +1 -1
  119. package/dist/lime-elements/p-65a3be2c.entry.js +1 -0
  120. package/dist/lime-elements/{p-e7bb664f.entry.js → p-6784c5c3.entry.js} +1 -1
  121. package/dist/lime-elements/p-864db270.entry.js +126 -0
  122. package/dist/lime-elements/p-8ca53aa2.entry.js +1 -0
  123. package/dist/lime-elements/{p-600464a9.entry.js → p-91604294.entry.js} +1 -1
  124. package/dist/lime-elements/{p-059e0a64.entry.js → p-934456bc.entry.js} +1 -1
  125. package/dist/lime-elements/p-93ad8b90.entry.js +1 -0
  126. package/dist/lime-elements/p-95fd48d0.entry.js +82 -0
  127. package/dist/lime-elements/{p-5bd9b025.entry.js → p-a0c78744.entry.js} +3 -3
  128. package/dist/lime-elements/{p-16eb9071.entry.js → p-a8d38277.entry.js} +1 -1
  129. package/dist/lime-elements/p-a94e949f.entry.js +82 -0
  130. package/dist/lime-elements/{p-8ab597a8.entry.js → p-b079fc71.entry.js} +1 -1
  131. package/dist/lime-elements/p-bf3d6097.entry.js +1 -0
  132. package/dist/lime-elements/p-c234a991.entry.js +37 -0
  133. package/dist/lime-elements/{p-5f29f099.entry.js → p-c4a89055.entry.js} +2 -2
  134. package/dist/lime-elements/p-c6c37de3.entry.js +1 -0
  135. package/dist/lime-elements/p-cc9f89a9.entry.js +1 -0
  136. package/dist/lime-elements/{p-15ca0d70.entry.js → p-d379f4d6.entry.js} +1 -1
  137. package/dist/lime-elements/{p-e1ab52f4.entry.js → p-d9c96100.entry.js} +1 -1
  138. package/dist/lime-elements/{p-8fb83e83.entry.js → p-e5213a54.entry.js} +4 -4
  139. package/dist/lime-elements/p-e6a11b73.entry.js +1 -0
  140. package/dist/lime-elements/p-eed2a202.entry.js +73 -0
  141. package/dist/lime-elements/style/_theme-color-variables.scss +5 -1
  142. package/dist/lime-elements/style/color-palette-extended-light-mode-only.css +1 -1
  143. package/dist/lime-elements/style/color-palette-extended.css +173 -3
  144. package/dist/lime-elements/style/color-palette-primary.scss.bak +1 -1
  145. package/dist/lime-elements/style/color-palette-ui.scss.bak +1 -1
  146. package/dist/lime-elements/style/colors.scss +11 -13
  147. package/dist/lime-elements/style/internal/shared_input-select-picker.scss +16 -0
  148. package/dist/lime-elements/style/internal/z-index.scss +0 -2
  149. package/dist/lime-elements/style/mixins.scss +84 -20
  150. package/dist/lime-elements/style/shadows.scss +117 -27
  151. package/package.json +7 -7
  152. package/dist/lime-elements/p-12a7453b.entry.js +0 -73
  153. package/dist/lime-elements/p-15c2eb16.entry.js +0 -1
  154. package/dist/lime-elements/p-37fe095f.entry.js +0 -1
  155. package/dist/lime-elements/p-4eda8b67.entry.js +0 -82
  156. package/dist/lime-elements/p-4fc38050.entry.js +0 -1
  157. package/dist/lime-elements/p-5ce60a32.entry.js +0 -126
  158. package/dist/lime-elements/p-6a4a5ddd.entry.js +0 -1
  159. package/dist/lime-elements/p-738aedc1.entry.js +0 -1
  160. package/dist/lime-elements/p-8a5a6ac9.entry.js +0 -1
  161. package/dist/lime-elements/p-c90fc327.entry.js +0 -82
  162. package/dist/lime-elements/p-d8e5a9ee.entry.js +0 -1
  163. package/dist/lime-elements/p-dc030055.entry.js +0 -1
  164. package/dist/lime-elements/p-de161bb5.entry.js +0 -1
  165. package/dist/lime-elements/p-e4bca82b.entry.js +0 -1
  166. package/dist/lime-elements/p-e6f84d68.entry.js +0 -1
  167. package/dist/lime-elements/p-e88f7922.entry.js +0 -1
  168. package/dist/lime-elements/p-fa0d0733.entry.js +0 -37
@@ -326,7 +326,7 @@ export class ChipSet {
326
326
  return (h("span", { role: "gridcell" }, h("a", Object.assign({ role: "button", tabindex: this.disabled ? '-1' : '0', class: "mdc-chip__text" }, attributes), chip.text)));
327
327
  }
328
328
  renderFilterChip(chip) {
329
- return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` }, h("span", { class: "mdc-chip__checkmark" }, h("svg", { class: "mdc-chip__checkmark-svg", viewBox: "-2 -3 30 30" }, h("path", { class: "mdc-chip__checkmark-path", fill: "none", stroke: "black", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))), h("span", { role: "gridcell" }, h("span", { role: "checkbox", tabindex: this.disabled ? '-1' : '0', "aria-checked": "false", class: "mdc-chip__text" }, chip.text)), this.renderBadge(chip)));
329
+ return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` }, h("span", { class: "mdc-chip__checkmark" }, h("svg", { class: "mdc-chip__checkmark-svg", viewBox: "-2 -3 30 30" }, h("path", { class: "mdc-chip__checkmark-path", fill: "none", stroke: "currentColor", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))), h("span", { role: "gridcell" }, h("span", { role: "checkbox", tabindex: this.disabled ? '-1' : '0', "aria-checked": "false", class: "mdc-chip__text" }, chip.text)), this.renderBadge(chip)));
330
330
  }
331
331
  renderInputChip(chip, index) {
332
332
  return [
@@ -49,6 +49,10 @@
49
49
  --lime-text-secondary-on-background-color,
50
50
  rgba(var(--contrast-1700), 0.54)
51
51
  );
52
+ --mdc-theme-error: var(
53
+ --lime-error-background-color,
54
+ rgb(var(--color-red-dark))
55
+ );
52
56
  --lime-error-text-color: rgb(var(--color-red-darker));
53
57
  --mdc-theme-surface: var(
54
58
  --lime-surface-background-color,
@@ -56,7 +60,7 @@
56
60
  );
57
61
  --mdc-theme-on-surface: var(
58
62
  --lime-on-surface-color,
59
- var(--lime-text-primary-on-background-color)
63
+ rgb(var(--contrast-1500))
60
64
  );
61
65
  }
62
66
 
@@ -457,14 +457,6 @@ span.CodeMirror-selectedtext { background: none; }
457
457
  :host {
458
458
  display: flex;
459
459
  font-size: var(--code-editor-font-size, 0.875rem);
460
- }
461
-
462
- .editor {
463
- display: flex;
464
- align-items: stretch;
465
- width: 100%;
466
- }
467
- .editor.is-light-mode {
468
460
  --code-editor-neutral-text-color: var(--contrast-1100);
469
461
  --code-editor-background-color: var(--contrast-200);
470
462
  --code-editor-gutter-background-color: var(--contrast-300);
@@ -473,111 +465,145 @@ span.CodeMirror-selectedtext { background: none; }
473
465
  --code-editor-selection-highlight-color: var(--color-cyan-default);
474
466
  --code-editor-selection-lowlight-color: var(--contrast-600);
475
467
  }
476
- .editor.is-light-mode .cm-attribute,
477
- .editor.is-light-mode .cm-property,
478
- .editor.is-light-mode .cm-keyword {
468
+ :host .cm-attribute,
469
+ :host .cm-property,
470
+ :host .cm-keyword {
479
471
  color: rgb(var(--color-violet-light));
480
472
  }
481
- .editor.is-light-mode .cm-operator {
473
+ :host .cm-operator {
482
474
  color: rgb(var(--color-sky-dark));
483
475
  }
484
- .editor.is-light-mode .cm-variable {
476
+ :host .cm-variable {
485
477
  color: rgb(var(--color-pink-light));
486
478
  }
487
- .editor.is-light-mode .cm-variable-2 {
479
+ :host .cm-variable-2 {
488
480
  color: rgb(var(--contrast-1100));
489
481
  }
490
- .editor.is-light-mode .cm-variable-3,
491
- .editor.is-light-mode .cm-type {
482
+ :host .cm-variable-3,
483
+ :host .cm-type {
492
484
  color: rgb(var(--color-amber-darker));
493
485
  }
494
- .editor.is-light-mode .cm-builtin,
495
- .editor.is-light-mode .cm-meta {
486
+ :host .cm-builtin,
487
+ :host .cm-meta {
496
488
  color: rgb(var(--color-amber-default));
497
489
  }
498
- .editor.is-light-mode .cm-atom {
490
+ :host .cm-atom {
499
491
  color: rgb(var(--color-coral-default));
500
492
  }
501
- .editor.is-light-mode .cm-tag,
502
- .editor.is-light-mode .cm-number {
493
+ :host .cm-tag,
494
+ :host .cm-number {
503
495
  color: rgb(var(--color-magenta-default));
504
496
  }
505
- .editor.is-light-mode .cm-def {
497
+ :host .cm-def {
506
498
  color: rgb(var(--color-sky-default));
507
499
  }
508
- .editor.is-light-mode .cm-string {
500
+ :host .cm-string {
509
501
  color: rgb(var(--color-green-dark));
510
502
  }
511
- .editor.is-light-mode .cm-string-2 {
503
+ :host .cm-string-2 {
512
504
  color: rgb(var(--color-pink-default));
513
505
  }
514
- .editor.is-light-mode .cm-qualifier {
506
+ :host .cm-qualifier {
515
507
  color: rgb(var(--color-grass-default));
516
508
  }
517
- .editor.is-light-mode .cm-error {
509
+ :host .cm-error {
518
510
  color: rgb(var(--color-white));
519
511
  background-color: rgb(var(--color-red-default));
520
512
  }
521
- .editor.is-light-mode .cm-comment {
513
+ :host .cm-comment {
522
514
  color: rgba(var(--code-editor-neutral-text-color), 0.7);
523
515
  }
524
- .editor.is-dark-mode {
525
- --code-editor-neutral-text-color: var(--contrast-200);
526
- --code-editor-background-color: var(--contrast-1600);
527
- --code-editor-gutter-background-color: var(--contrast-1500);
528
- --code-editor-line-number-text-color: var(--contrast-1000);
516
+
517
+ @media (prefers-color-scheme: dark) {
518
+ :root:not([data-theme=force-light]) :host {
519
+ --code-editor-neutral-text-color: var(--contrast-1600);
520
+ --code-editor-line-number-text-color: var(--contrast-800);
521
+ --code-editor-cursor-color: var(--color-amber-default);
522
+ --code-editor-selection-highlight-color: var(--color-cyan-light);
523
+ --code-editor-selection-lowlight-color: var(--contrast-100);
524
+ }
525
+ :root:not([data-theme=force-light]) :host .cm-attribute,
526
+ :root:not([data-theme=force-light]) :host .cm-property,
527
+ :root:not([data-theme=force-light]) :host .cm-keyword {
528
+ color: rgb(var(--color-purple-lighter));
529
+ }
530
+ :root:not([data-theme=force-light]) :host .cm-operator {
531
+ color: rgb(var(--color-sky-lighter));
532
+ }
533
+ :root:not([data-theme=force-light]) :host .cm-variable-3,
534
+ :root:not([data-theme=force-light]) :host .cm-type {
535
+ color: rgb(var(--color-yellow-light));
536
+ }
537
+ :root:not([data-theme=force-light]) :host .cm-atom {
538
+ color: rgb(var(--color-coral-light));
539
+ }
540
+ :root:not([data-theme=force-light]) :host .cm-tag,
541
+ :root:not([data-theme=force-light]) :host .cm-number {
542
+ color: rgb(var(--color-magenta-light));
543
+ }
544
+ :root:not([data-theme=force-light]) :host .cm-def {
545
+ color: rgb(var(--color-sky-light));
546
+ }
547
+ :root:not([data-theme=force-light]) :host .cm-string {
548
+ color: rgb(var(--color-lime-light));
549
+ }
550
+ :root:not([data-theme=force-light]) :host .cm-string-2 {
551
+ color: rgb(var(--color-pink-lighter));
552
+ }
553
+ :root:not([data-theme=force-light]) :host .cm-qualifier {
554
+ color: rgb(var(--color-grass-light));
555
+ }
556
+ :root:not([data-theme=force-light]) :host .cm-comment {
557
+ color: rgba(var(--code-editor-neutral-text-color), 0.4);
558
+ }
559
+ }
560
+ :root[data-theme=force-dark] :host {
561
+ --code-editor-neutral-text-color: var(--contrast-1600);
562
+ --code-editor-line-number-text-color: var(--contrast-800);
529
563
  --code-editor-cursor-color: var(--color-amber-default);
530
564
  --code-editor-selection-highlight-color: var(--color-cyan-light);
531
- --code-editor-selection-lowlight-color: var(--contrast-1700);
565
+ --code-editor-selection-lowlight-color: var(--contrast-100);
532
566
  }
533
- .editor.is-dark-mode .cm-attribute,
534
- .editor.is-dark-mode .cm-property,
535
- .editor.is-dark-mode .cm-keyword {
567
+ :root[data-theme=force-dark] :host .cm-attribute,
568
+ :root[data-theme=force-dark] :host .cm-property,
569
+ :root[data-theme=force-dark] :host .cm-keyword {
536
570
  color: rgb(var(--color-purple-lighter));
537
571
  }
538
- .editor.is-dark-mode .cm-operator {
572
+ :root[data-theme=force-dark] :host .cm-operator {
539
573
  color: rgb(var(--color-sky-lighter));
540
574
  }
541
- .editor.is-dark-mode .cm-variable {
542
- color: rgb(var(--color-pink-light));
543
- }
544
- .editor.is-dark-mode .cm-variable-2 {
545
- color: rgb(var(--contrast-300));
546
- }
547
- .editor.is-dark-mode .cm-variable-3,
548
- .editor.is-dark-mode .cm-type {
575
+ :root[data-theme=force-dark] :host .cm-variable-3,
576
+ :root[data-theme=force-dark] :host .cm-type {
549
577
  color: rgb(var(--color-yellow-light));
550
578
  }
551
- .editor.is-dark-mode .cm-builtin,
552
- .editor.is-dark-mode .cm-meta {
553
- color: rgb(var(--color-amber-default));
554
- }
555
- .editor.is-dark-mode .cm-atom {
579
+ :root[data-theme=force-dark] :host .cm-atom {
556
580
  color: rgb(var(--color-coral-light));
557
581
  }
558
- .editor.is-dark-mode .cm-tag,
559
- .editor.is-dark-mode .cm-number {
582
+ :root[data-theme=force-dark] :host .cm-tag,
583
+ :root[data-theme=force-dark] :host .cm-number {
560
584
  color: rgb(var(--color-magenta-light));
561
585
  }
562
- .editor.is-dark-mode .cm-def {
586
+ :root[data-theme=force-dark] :host .cm-def {
563
587
  color: rgb(var(--color-sky-light));
564
588
  }
565
- .editor.is-dark-mode .cm-string {
589
+ :root[data-theme=force-dark] :host .cm-string {
566
590
  color: rgb(var(--color-lime-light));
567
591
  }
568
- .editor.is-dark-mode .cm-string-2 {
592
+ :root[data-theme=force-dark] :host .cm-string-2 {
569
593
  color: rgb(var(--color-pink-lighter));
570
594
  }
571
- .editor.is-dark-mode .cm-qualifier {
595
+ :root[data-theme=force-dark] :host .cm-qualifier {
572
596
  color: rgb(var(--color-grass-light));
573
597
  }
574
- .editor.is-dark-mode .cm-error {
575
- color: rgb(var(--color-white));
576
- background-color: rgb(var(--color-red-default));
577
- }
578
- .editor.is-dark-mode .cm-comment {
598
+ :root[data-theme=force-dark] :host .cm-comment {
579
599
  color: rgba(var(--code-editor-neutral-text-color), 0.4);
580
600
  }
601
+
602
+ .editor {
603
+ display: flex;
604
+ align-items: stretch;
605
+ width: 100%;
606
+ }
581
607
  .editor.readonly .CodeMirror-focused .CodeMirror-cursors {
582
608
  visibility: visible !important;
583
609
  }
@@ -639,27 +665,27 @@ span.CodeMirror-selectedtext { background: none; }
639
665
  }
640
666
  .cm-s-lime .CodeMirror-foldmarker {
641
667
  position: relative;
642
- transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;
643
- box-shadow: var(--button-shadow-normal);
668
+ transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;
644
669
  color: transparent;
670
+ background-color: var(--lime-elevated-surface-background-color);
671
+ box-shadow: var(--button-shadow-normal);
645
672
  text-shadow: none;
646
673
  padding: 0 0.5rem;
647
674
  border-radius: 1rem;
648
- background-image: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' xml:space='preserve'><circle cx='16' cy='16' r='2'/><circle cx='26' cy='16' r='2'/><circle cx='6' cy='16' r='2'/></svg>");
675
+ background-image: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' xml:space='preserve'><circle fill='rgba(186,186,192,0.7)' cx='16' cy='16' r='2'/><circle fill='rgba(186,186,192,0.7)' cx='26' cy='16' r='2'/><circle fill='rgba(186,186,192,0.7)' cx='6' cy='16' r='2'/></svg>");
649
676
  background-size: contain;
650
677
  background-repeat: no-repeat;
651
678
  background-position: center;
652
679
  }
653
680
  .cm-s-lime .CodeMirror-foldmarker:hover {
681
+ color: var(--mdc-theme-on-surface);
682
+ background-color: var(--lime-elevated-surface-background-color);
654
683
  box-shadow: var(--button-shadow-hovered);
655
684
  }
656
685
  .cm-s-lime .CodeMirror-foldmarker:active {
657
686
  box-shadow: var(--button-shadow-pressed);
658
687
  transform: translate3d(0, 0.08rem, 0);
659
688
  }
660
- .is-dark-mode .cm-s-lime .CodeMirror-foldmarker {
661
- background-color: rgb(var(--contrast-1200));
662
- }
663
689
  .cm-s-lime [class^=CodeMirror-foldgutter] {
664
690
  color: var(--code-editor-neutral-text-color);
665
691
  transition: opacity 0.2s ease;
@@ -49,6 +49,10 @@
49
49
  --lime-text-secondary-on-background-color,
50
50
  rgba(var(--contrast-1700), 0.54)
51
51
  );
52
+ --mdc-theme-error: var(
53
+ --lime-error-background-color,
54
+ rgb(var(--color-red-dark))
55
+ );
52
56
  --lime-error-text-color: rgb(var(--color-red-darker));
53
57
  --mdc-theme-surface: var(
54
58
  --lime-surface-background-color,
@@ -56,7 +60,7 @@
56
60
  );
57
61
  --mdc-theme-on-surface: var(
58
62
  --lime-on-surface-color,
59
- var(--lime-text-primary-on-background-color)
63
+ rgb(var(--contrast-1500))
60
64
  );
61
65
  }
62
66