|
42 | 42 |
|
43 | 43 | .dxc-editor-gutter { |
44 | 44 | background: inherit; |
45 | | - color: var(--muted, currentColor); |
| 45 | + color: var(--dxc-muted, currentColor); |
46 | 46 | left: 0; |
47 | 47 | padding: var(--dxc-editor-gutter-padding, 14px 0); |
48 | 48 | pointer-events: none; |
|
64 | 64 | .dxc-editor-input { |
65 | 65 | background: transparent; |
66 | 66 | border: 0; |
67 | | - caret-color: var(--dxc-editor-caret, currentColor); |
| 67 | + caret-color: var(--dxc-editor-caret, var(--dxc-fg, CanvasText)); |
68 | 68 | color: transparent; |
69 | 69 | display: block; |
70 | 70 | font: inherit; |
|
83 | 83 | } |
84 | 84 |
|
85 | 85 | .dxc-editor-input::selection { |
86 | | - background: var(--dxc-editor-selection, rgba(122, 162, 247, 0.34)); |
| 86 | + background: var(--dxc-editor-selection); |
87 | 87 | color: transparent; |
88 | 88 | } |
89 | 89 |
|
90 | 90 | .dxc-editor-input:empty::before { |
91 | | - color: var(--muted, currentColor); |
| 91 | + color: var(--dxc-muted, currentColor); |
92 | 92 | content: attr(data-placeholder); |
93 | 93 | opacity: 0.72; |
94 | 94 | } |
95 | 95 |
|
96 | 96 | .dxc-editor-input::placeholder { |
97 | | - color: var(--muted, currentColor); |
| 97 | + color: var(--dxc-muted, currentColor); |
98 | 98 | opacity: 0.72; |
99 | 99 | } |
100 | 100 |
|
101 | 101 | .dxc-editor:focus-within { |
102 | | - box-shadow: var(--dxc-editor-focus-ring, 0 0 0 3px rgba(122, 162, 247, 0.22)); |
| 102 | + box-shadow: var(--dxc-editor-focus-ring, none); |
| 103 | +} |
| 104 | + |
| 105 | +@supports (color: color-mix(in srgb, white 50%, transparent)) { |
| 106 | + .dxc-editor-gutter { |
| 107 | + color: var(--dxc-muted, color-mix(in srgb, var(--dxc-fg, currentColor) 62%, transparent)); |
| 108 | + } |
| 109 | + |
| 110 | + .dxc-editor-input::selection { |
| 111 | + background: var(--dxc-editor-selection, color-mix(in srgb, var(--dxc-accent, Highlight) 34%, transparent)); |
| 112 | + } |
| 113 | + |
| 114 | + .dxc-editor-input:empty::before, |
| 115 | + .dxc-editor-input::placeholder { |
| 116 | + color: var(--dxc-muted, color-mix(in srgb, var(--dxc-fg, currentColor) 62%, transparent)); |
| 117 | + } |
| 118 | + |
| 119 | + .dxc-editor:focus-within { |
| 120 | + box-shadow: var(--dxc-editor-focus-ring, 0 0 0 3px color-mix(in srgb, var(--dxc-accent, Highlight) 22%, transparent)); |
| 121 | + } |
103 | 122 | } |
104 | 123 |
|
105 | 124 | .dxc-editor-line, |
|
0 commit comments