@pngwasi/config-editor 0.0.0-stage → 0.1.0

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.
package/preset.css ADDED
@@ -0,0 +1,2899 @@
1
+ :where(.config-editor, .config-editor-documents, .config-editor-theme) {
2
+ --config-editor-bg: #1e1e1e;
3
+ --config-editor-panel: #252526;
4
+ --config-editor-border: #3c3c3c;
5
+ --config-editor-text: #d4d4d4;
6
+ --config-editor-muted: #858585;
7
+ --config-editor-accent: #007acc;
8
+ --config-editor-error: #f14c4c;
9
+ --config-editor-toolbar-text: #cccccc;
10
+ --config-editor-line-active: #c6c6c6;
11
+ --config-editor-added: #89d185;
12
+ --config-editor-modified: #75beff;
13
+ --config-editor-removed: var(--config-editor-error);
14
+ --config-editor-raised: #252526;
15
+ --config-editor-raised-border: #454545;
16
+ --config-editor-raised-text: #d4d4d4;
17
+ --config-editor-raised-muted: #a8a8a8;
18
+ --config-editor-raised-hover: #3c3c3c;
19
+ --config-editor-control-bg: #333333;
20
+ --config-editor-control-text: #cccccc;
21
+ --config-editor-completion-active: #094771;
22
+ --config-editor-comment: #83aa71;
23
+ --config-editor-key: #9cdcfe;
24
+ --config-editor-punctuation: #d4d4d4;
25
+ --config-editor-string: #ce9178;
26
+ --config-editor-literal: #65a5da;
27
+ --config-editor-value: #ce9178;
28
+ --config-editor-reference: #4ec9b0;
29
+ --config-editor-interpolation: #d7a0d2;
30
+ --config-editor-active-line: rgb(255 255 255 / 4%);
31
+ --config-editor-error-line: rgb(241 76 76 / 5%);
32
+ --config-editor-added-line: rgb(129 184 139 / 10%);
33
+ --config-editor-modified-line: rgb(117 190 255 / 10%);
34
+ --config-editor-selection: rgb(38 79 120 / 40%);
35
+ --config-editor-caret: #aeafad;
36
+ --config-editor-warning: #cca700;
37
+ --config-editor-info: #3794ff;
38
+ --config-editor-hint: #8a8a8a;
39
+ --config-editor-line-number: #858585;
40
+ --config-editor-file-icon-bg: #8a6e2f;
41
+ --config-editor-file-icon-text: #fff;
42
+ /* Disabled: the control's text part way to its background, in every theme. */
43
+ --config-editor-control-disabled-text: color-mix(in srgb, var(--config-editor-control-text) 60%, var(--config-editor-control-bg));
44
+ --config-editor-focus-ring: #75beff;
45
+ --config-editor-diff-focus-ring: #ffffff;
46
+ --config-editor-diff-peek-divider: #383838;
47
+ --config-editor-diff-removed-bg: rgb(241 76 76 / 18%);
48
+ --config-editor-diff-removed-text: #f1b3b3;
49
+ --config-editor-diff-current-bg: rgb(117 190 255 / 13%);
50
+ --config-editor-diff-current-text: #c5e1f9;
51
+ --config-editor-tooltip-text: #f0f0f0;
52
+ --config-editor-completion-key: #e8e8e8;
53
+ --config-editor-completion-type: #9da0a3;
54
+ --config-editor-completion-detail: #a7a7a7;
55
+ --config-editor-completion-icon-border: #6b6b6b;
56
+ --config-editor-completion-icon-text: #bdbdbd;
57
+ /* Matched letters on the selected suggestion: the accent toward the
58
+ label's color, so they stay readable on the selection. */
59
+ --config-editor-completion-match-active: color-mix(in srgb, var(--config-editor-accent-text) 50%, var(--config-editor-completion-key));
60
+ /* The type on the selected suggestion, toward the label's color: readable
61
+ (4.5:1) on the selection. */
62
+ --config-editor-completion-type-active: color-mix(in srgb, var(--config-editor-completion-type) 50%, var(--config-editor-completion-key));
63
+ /* The accent as text (links, matched letters): toward the text color,
64
+ readable (4.5:1) on popups in every theme. */
65
+ --config-editor-accent-text: color-mix(in srgb, var(--config-editor-accent) 70%, var(--config-editor-text));
66
+ --config-editor-scrollbar-thumb: #686868;
67
+ --config-editor-status-error: #f48771;
68
+ --config-editor-status-warning: #cca700;
69
+ --config-editor-status-info: #3794ff;
70
+ --config-editor-status-hint: #a0a0a0;
71
+ --config-editor-status-changes: var(--config-editor-modified);
72
+ --config-editor-popup-shadow: rgb(0 0 0 / 35%);
73
+ --config-editor-peek-shadow: rgb(0 0 0 / 45%);
74
+ --config-editor-hover-shadow: rgba(0, 0, 0, 0.28);
75
+ --config-editor-search-match: rgb(234 92 0 / 33%);
76
+ --config-editor-search-match-current: rgb(81 92 106 / 90%);
77
+ --config-editor-search-match-current-border: #74879f;
78
+ --config-editor-input-bg: #3c3c3c;
79
+ --config-editor-input-border: #3c3c3c;
80
+ --config-editor-toggle-active: rgb(36 137 219 / 51%);
81
+ /* Read-only values: dimmer than the text, readable as text (4.5:1). */
82
+ --config-editor-locked: color-mix(in srgb, var(--config-editor-muted) 45%, var(--config-editor-text));
83
+ --config-editor-secret-chip: rgb(204 167 0 / 16%);
84
+ --config-editor-secret-chip-border: rgb(204 167 0 / 55%);
85
+ --config-editor-fold-toggle: var(--config-editor-line-number);
86
+ --config-editor-fold-chip: color-mix(in srgb, var(--config-editor-muted) 24%, transparent);
87
+ --config-editor-fold-chip-text: color-mix(in srgb, var(--config-editor-muted) 50%, var(--config-editor-text));
88
+ --config-editor-tab-bar: var(--config-editor-panel);
89
+ --config-editor-tab-bg: var(--config-editor-panel);
90
+ --config-editor-tab-active-bg: var(--config-editor-bg);
91
+ /* A tab's name is text: the muted color toward the text, 4.5:1. */
92
+ --config-editor-tab-text: color-mix(in srgb, var(--config-editor-muted) 60%, var(--config-editor-text));
93
+ --config-editor-tab-active-text: var(--config-editor-text);
94
+ --config-editor-tab-border: var(--config-editor-border);
95
+ --config-editor-tab-active-border: var(--config-editor-accent);
96
+ --config-editor-tab-dirty: var(--config-editor-text);
97
+ --config-editor-font-size: 12px;
98
+ --config-editor-line-height: round(var(--config-editor-font-size) * 1.8, 1px);
99
+ --config-editor-padding-top: 15px;
100
+ --config-editor-padding-bottom: 15px;
101
+ --config-editor-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
102
+ }
103
+
104
+ /* The page's text properties are not inherited. The textarea takes none
105
+ of them, and the highlighted text over it must lay out as it does; the
106
+ rest of the editor reads the same on every page. Each is set to its
107
+ initial value (what a plain page gives), so nothing the page sets on
108
+ `body` or on the element the editor is in (alignment, spacing, wrapping,
109
+ decoration, emphasis, font features, stroke…) reaches inside. An
110
+ editor in a documents view is shielded as what it holds is (see below),
111
+ so its root rules name it with the shield too. */
112
+ .config-editor,
113
+ .config-editor-documents,
114
+ :not(#\#):not(#\#) .config-editor-documents .config-editor {
115
+ display: block;
116
+ }
117
+ /* The text properties come with the shield's weight, so a page rule for
118
+ bare elements (`#app div { letter-spacing }`) cannot move the drawn text
119
+ off the textarea's: both read the root's values. */
120
+ :not(#\#):not(#\#) .config-editor,
121
+ :not(#\#):not(#\#) .config-editor-documents {
122
+ writing-mode: horizontal-tb;
123
+ text-orientation: mixed;
124
+ text-align: start;
125
+ text-align-last: auto;
126
+ text-justify: auto;
127
+ text-indent: 0;
128
+ text-transform: none;
129
+ text-shadow: none;
130
+ text-emphasis: none;
131
+ text-emphasis-position: over right;
132
+ text-underline-position: auto;
133
+ text-underline-offset: auto;
134
+ text-decoration-skip-ink: auto;
135
+ text-rendering: auto;
136
+ -webkit-text-size-adjust: auto;
137
+ text-size-adjust: auto;
138
+ text-autospace: normal;
139
+ text-spacing-trim: normal;
140
+ letter-spacing: normal;
141
+ word-spacing: normal;
142
+ white-space: normal;
143
+ text-wrap-style: auto;
144
+ word-break: normal;
145
+ overflow-wrap: normal;
146
+ line-break: auto;
147
+ hyphens: manual;
148
+ hyphenate-character: auto;
149
+ tab-size: 8;
150
+ font-kerning: auto;
151
+ font-variant: normal;
152
+ font-feature-settings: normal;
153
+ font-variation-settings: normal;
154
+ font-optical-sizing: auto;
155
+ font-size-adjust: none;
156
+ font-synthesis: weight style small-caps;
157
+ font-palette: normal;
158
+ -webkit-font-smoothing: auto;
159
+ -webkit-text-stroke: 0;
160
+ -webkit-text-fill-color: currentcolor;
161
+ -webkit-text-security: none;
162
+ paint-order: normal;
163
+ quotes: auto;
164
+ list-style: disc outside none;
165
+ caret-color: auto;
166
+ cursor: auto;
167
+ }
168
+
169
+ /* The roots' own box: a page's rules for bare elements (`div { padding:
170
+ 1rem; margin: 8px }`, `main div`) do not reach it, while any rule of the
171
+ page's naming a class (`.config-editor`, the `className` given) does,
172
+ wherever it sits. Each `:not()` of an element name no element has
173
+ weighs one element: these outweigh a rule of one or two element names
174
+ and stay under a class. */
175
+ :where(.config-editor, .config-editor-documents):not(config-editor-root):not(config-editor-root):not(config-editor-root) {
176
+ margin: 0;
177
+ padding: 0;
178
+ }
179
+
180
+ .config-editor,
181
+ :not(#\#):not(#\#) .config-editor-documents .config-editor {
182
+ position: relative;
183
+ /* A whole number of pixels: fractional line heights round differently in the
184
+ textarea and the overlay, and the gap grows with every line. */
185
+ color: var(--config-editor-text);
186
+ font: 13px/1.65 ui-monospace, var(--config-editor-mono);
187
+ }
188
+
189
+ .config-editor *,
190
+ .config-editor *::before,
191
+ .config-editor *::after {
192
+ box-sizing: border-box;
193
+ }
194
+
195
+ /* The host shield. The page's own rules for bare elements, attributes or
196
+ `:not()` (`input { width: 100% }`, `div { padding: 1rem }`, a framework's
197
+ `input:not([type=checkbox])` or `[type='text']`, loaded before the
198
+ editor or after) never reach what the editor draws: every element inside
199
+ its roots (and its `::before`, `::after` and placeholder) starts from the
200
+ browser's own styles, and every rule of the editor's for what is inside
201
+ it carries `:not(#\#):not(#\#)` (two ids' weight, matching every element), so it
202
+ outweighs the page's rules, one id in them too (`#app div`), but for
203
+ `!important`. Restyle the
204
+ editor through its color tokens and its roots (`.config-editor`,
205
+ `.config-editor-documents`). A host's own toolbar or footer
206
+ (`ConfigEditorToolbar`, `ConfigEditorFooter`, roots themselves) holds the
207
+ page's elements: their contents keep the page's look. An icon's shapes
208
+ keep their SVG attributes. */
209
+ :where(.config-editor, .config-editor-documents) :where(:not(.config-editor.config-editor__toolbar *, .config-editor.config-editor__status *, svg *)):not(#\#):not(#\#),
210
+ :where(.config-editor, .config-editor-documents) :where(:not(.config-editor.config-editor__toolbar *, .config-editor.config-editor__status *, svg *)):not(#\#):not(#\#)::before,
211
+ :where(.config-editor, .config-editor-documents) :where(:not(.config-editor.config-editor__toolbar *, .config-editor.config-editor__status *, svg *)):not(#\#):not(#\#)::after,
212
+ :where(.config-editor, .config-editor-documents) :where(:not(.config-editor.config-editor__toolbar *, .config-editor.config-editor__status *)):not(#\#):not(#\#)::placeholder {
213
+ all: revert;
214
+ box-sizing: border-box;
215
+ }
216
+
217
+ /* A column as tall as the editor: given a height (`height: 100%` in an
218
+ element of a set height, or a documents panel), the text area takes what
219
+ the toolbar and footer leave, down to its minimum height; without one,
220
+ the text sizes it. */
221
+ /* Inline-level, as wide as the editor: the page's text decoration
222
+ (`body { text-decoration: underline }`) is drawn on every block inside
223
+ it but not inside an inline box (as on a textarea), so the frame keeps
224
+ it off the editor's text. */
225
+ :not(#\#):not(#\#) .config-editor__frame {
226
+ height: 100%;
227
+ width: 100%;
228
+ vertical-align: top;
229
+ display: inline-flex;
230
+ flex-direction: column;
231
+ min-height: 0;
232
+ overflow: hidden;
233
+ border: 1px solid var(--config-editor-border);
234
+ border-radius: 6px;
235
+ background: var(--config-editor-panel);
236
+ }
237
+
238
+ :not(#\#):not(#\#) .config-editor__frame > * { flex: none; }
239
+
240
+ /* Tells the editor whether its height is given (see `fill.rs`): as tall as
241
+ the editor then, nothing when the content sizes it. */
242
+ :not(#\#):not(#\#) .config-editor__fill-probe {
243
+ float: left;
244
+ width: 0;
245
+ height: 100%;
246
+ visibility: hidden;
247
+ pointer-events: none;
248
+ }
249
+
250
+ /* A given height is filled however short or tall: the text area takes what
251
+ the toolbar and footer leave, with no minimum or maximum of its own
252
+ (unless the host sets one). */
253
+ :not(#\#):not(#\#) .config-editor__fills .config-editor__surface {
254
+ min-height: var(--config-editor-min-height, 0);
255
+ height: auto;
256
+ max-height: var(--config-editor-max-height, none);
257
+ }
258
+ :not(#\#):not(#\#) .config-editor__fills .config-editor__highlight,
259
+ :not(#\#):not(#\#) .config-editor__fills .config-editor__input {
260
+ min-height: var(--config-editor-min-height, 0);
261
+ }
262
+ :not(#\#):not(#\#) .config-editor__fills .config-editor__input {
263
+ flex: 1 1 0;
264
+ height: auto;
265
+ max-height: var(--config-editor-max-height, none);
266
+ resize: none;
267
+ }
268
+
269
+ :not(#\#):not(#\#) .config-editor__frame:focus-within {
270
+ border-color: var(--config-editor-accent);
271
+ }
272
+
273
+ .config-editor__toolbar,
274
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__toolbar {
275
+ min-height: 36px;
276
+ display: flex;
277
+ flex-wrap: wrap;
278
+ align-items: stretch;
279
+ justify-content: space-between;
280
+ gap: 14px;
281
+ padding: 0 14px;
282
+ border-bottom: 1px solid var(--config-editor-border);
283
+ background: var(--config-editor-panel);
284
+ color: var(--config-editor-toolbar-text);
285
+ font: 12px/1.2 ui-sans-serif, system-ui, sans-serif;
286
+ }
287
+
288
+ .config-editor__file,
289
+ .config-editor__toolbar-meta,
290
+ .config-editor__schema-state,
291
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__file,
292
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__toolbar-meta,
293
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__schema-state {
294
+ display: flex;
295
+ flex-wrap: wrap;
296
+ align-items: center;
297
+ gap: 9px;
298
+ min-width: 0;
299
+ }
300
+
301
+ .config-editor__file,
302
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__file {
303
+ flex-wrap: nowrap;
304
+ max-width: 100%;
305
+ border-bottom: 1px solid var(--config-editor-accent);
306
+ }
307
+ /* A long name ends in an ellipsis (its title tells it whole). */
308
+ .config-editor__file-name,
309
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__file-name {
310
+ min-width: 0;
311
+ overflow: hidden;
312
+ text-overflow: ellipsis;
313
+ white-space: nowrap;
314
+ }
315
+ :not(#\#):not(#\#) .config-editor__file-icon { flex: none; }
316
+ :not(#\#):not(#\#) .config-editor__file-icon {
317
+ width: 17px;
318
+ height: 17px;
319
+ display: grid;
320
+ place-items: center;
321
+ border-radius: 3px;
322
+ background: var(--config-editor-file-icon-bg);
323
+ color: var(--config-editor-file-icon-text);
324
+ font: 10px var(--config-editor-mono);
325
+ }
326
+
327
+ .config-editor__toolbar-meta,
328
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__toolbar-meta { color: var(--config-editor-raised-muted); }
329
+ .config-editor__schema-state,
330
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__schema-state { color: var(--config-editor-raised-muted); }
331
+ .config-editor__schema-check,
332
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__schema-check { color: var(--config-editor-schema-check, var(--config-editor-added)); }
333
+ .config-editor__language,
334
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__language { font: 10px var(--config-editor-mono); }
335
+ /* A separator between the schema state and the language, not before a
336
+ language alone. */
337
+ .config-editor__schema-state + .config-editor__language,
338
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__schema-state + .config-editor__language {
339
+ padding-left: 12px;
340
+ border-left: 1px solid var(--config-editor-border);
341
+ }
342
+
343
+ :not(#\#):not(#\#) .config-editor__action-button {
344
+ padding: 5px 10px;
345
+ border: 1px solid var(--config-editor-raised-border);
346
+ border-radius: 4px;
347
+ background: var(--config-editor-control-bg);
348
+ color: var(--config-editor-control-text);
349
+ font: 12px ui-sans-serif, system-ui, sans-serif;
350
+ cursor: pointer;
351
+ }
352
+
353
+ /* A host's button in the toolbar keeps its own height (the row stretches
354
+ the file name's underline, not buttons). */
355
+ :not(#\#):not(#\#) .config-editor__toolbar > .config-editor__action-button { align-self: center; }
356
+
357
+ :not(#\#):not(#\#) .config-editor__action-button:hover:not(:disabled) {
358
+ background: var(--config-editor-raised-hover);
359
+ }
360
+
361
+ :not(#\#):not(#\#) .config-editor__action-button:disabled {
362
+ color: var(--config-editor-control-disabled-text);
363
+ cursor: default;
364
+ }
365
+
366
+ /* The notice when the host's baseline changed under unsaved edits. */
367
+ :not(#\#):not(#\#) .config-editor__notice {
368
+ display: flex;
369
+ flex-wrap: wrap;
370
+ align-items: center;
371
+ justify-content: space-between;
372
+ gap: 6px 12px;
373
+ padding: 6px 10px;
374
+ border-bottom: 1px solid var(--config-editor-raised-border);
375
+ border-left: 3px solid var(--config-editor-warning);
376
+ background: var(--config-editor-raised);
377
+ color: var(--config-editor-raised-text);
378
+ font: 12px ui-sans-serif, system-ui, sans-serif;
379
+ }
380
+
381
+ :not(#\#):not(#\#) .config-editor__notice[hidden] { display: none; }
382
+
383
+ /* Editing as another language: a quiet line under the toolbar. */
384
+ :not(#\#):not(#\#) .config-editor__edit-as-notice {
385
+ display: flex;
386
+ align-items: flex-start;
387
+ gap: 8px;
388
+ padding: 4px 6px 4px 10px;
389
+ border-bottom: 1px solid var(--config-editor-raised-border);
390
+ border-left: 3px solid var(--config-editor-accent);
391
+ background: var(--config-editor-panel);
392
+ color: var(--config-editor-raised-muted);
393
+ font: 12px/1.5 ui-sans-serif, system-ui, sans-serif;
394
+ }
395
+
396
+ :not(#\#):not(#\#) .config-editor__edit-as-notice[hidden] { display: none; }
397
+
398
+ :not(#\#):not(#\#) .config-editor__edit-as-notice-message { flex: 1; min-width: 0; }
399
+
400
+ :not(#\#):not(#\#) .config-editor__edit-as-notice-dismiss {
401
+ flex: none;
402
+ /* A 24px target (WCAG 2.5.8), taking no more room than its line. */
403
+ width: 24px;
404
+ height: 24px;
405
+ margin-block: -3px;
406
+ padding: 0;
407
+ border: 0;
408
+ border-radius: 3px;
409
+ background: transparent;
410
+ color: inherit;
411
+ font: 14px/1 ui-sans-serif, system-ui, sans-serif;
412
+ cursor: pointer;
413
+ }
414
+
415
+ :not(#\#):not(#\#) .config-editor__edit-as-notice-dismiss:hover {
416
+ background: var(--config-editor-raised-hover);
417
+ color: var(--config-editor-raised-text);
418
+ }
419
+
420
+ :not(#\#):not(#\#) .config-editor__edit-as-notice-dismiss:focus-visible {
421
+ outline: 2px solid var(--config-editor-focus-ring);
422
+ outline-offset: -2px;
423
+ }
424
+
425
+ :not(#\#):not(#\#) .config-editor__notice-detail { color: var(--config-editor-raised-muted); }
426
+
427
+ :not(#\#):not(#\#) .config-editor__notice-actions { display: flex; gap: 6px; }
428
+
429
+ :not(#\#):not(#\#) .config-editor__notice-button {
430
+ padding: 3px 10px;
431
+ border: 1px solid var(--config-editor-raised-border);
432
+ border-radius: 4px;
433
+ background: var(--config-editor-control-bg);
434
+ color: var(--config-editor-control-text);
435
+ font: inherit;
436
+ cursor: pointer;
437
+ }
438
+
439
+ :not(#\#):not(#\#) .config-editor__notice-button:hover { background: var(--config-editor-raised-hover); }
440
+
441
+ :not(#\#):not(#\#) .config-editor__notice-button:focus-visible {
442
+ outline: 2px solid var(--config-editor-focus-ring);
443
+ outline-offset: 1px;
444
+ }
445
+
446
+ /* At most 80% of the window, and short enough that the editor with its
447
+ tab bar and footer fits a short window whole (in a 300px window the
448
+ footer was once cut off). */
449
+ :not(#\#):not(#\#) .config-editor__surface {
450
+ position: relative;
451
+ flex: 1 1 auto;
452
+ min-height: var(--config-editor-min-height, min(240px, var(--config-editor-height, 240px), 100vh - 80px));
453
+ height: var(--config-editor-height, auto);
454
+ max-height: var(--config-editor-max-height, min(80vh, 100vh - 80px));
455
+ display: flex;
456
+ background: var(--config-editor-bg);
457
+ overflow: hidden;
458
+ }
459
+
460
+ /* Above the text layers, opaque: code scrolled sideways passes under it. */
461
+ :not(#\#):not(#\#) .config-editor__gutter {
462
+ position: relative;
463
+ z-index: 5;
464
+ background: var(--config-editor-bg);
465
+ /* A column for the markers (a lock or key, the problem dot, then the
466
+ change bar), the longest line number (`--config-editor-gutter-digits`,
467
+ set from the line count, at least 3), the padding after it, then the
468
+ fold chevrons' column when folding is on. The change bars sit before
469
+ the number, not after it: each bar and each chevron takes a 24px hit
470
+ area, and side by side after the number they would need 48px of empty
471
+ space between the number and the text. */
472
+ --config-editor-marker-column: 28px;
473
+ --config-editor-gutter-padding: 10px;
474
+ --config-editor-fold-gutter: 0px;
475
+ width: calc(
476
+ var(--config-editor-marker-column) + var(--config-editor-gutter-digits, 3) * 1ch +
477
+ var(--config-editor-gutter-padding) + var(--config-editor-fold-gutter)
478
+ );
479
+ flex: 0 0 auto;
480
+ /* Its rows never size it: it stretches to the textarea, so resizing the
481
+ textarea (or a short document) sets the editor's height. */
482
+ contain: size;
483
+ align-self: stretch;
484
+ min-height: 0;
485
+ overflow: hidden;
486
+ /* A finger dragging over the line numbers scrolls the text (the editor
487
+ moves it), not the page; two fingers still zoom. */
488
+ touch-action: pinch-zoom;
489
+ padding: var(--config-editor-padding-top)
490
+ calc(var(--config-editor-gutter-padding) + var(--config-editor-fold-gutter))
491
+ var(--config-editor-padding-bottom) 0;
492
+ color: var(--config-editor-line-number);
493
+ text-align: right;
494
+ user-select: none;
495
+ font: var(--config-editor-font-size)/1.8 var(--config-editor-mono);
496
+ line-height: var(--config-editor-line-height);
497
+ }
498
+
499
+ :not(#\#):not(#\#) .config-editor__gutter-content > div {
500
+ position: relative;
501
+ height: 1lh;
502
+ cursor: pointer;
503
+ }
504
+
505
+ :not(#\#):not(#\#) .config-editor__line-number-active { color: var(--config-editor-line-active); }
506
+ /* A changed or broken line's number takes its marker's color, unless the
507
+ theme gives a darker one (a line number is text, 4.5:1 on the editor). */
508
+ :not(#\#):not(#\#) .config-editor__line-number-error { color: var(--config-editor-line-number-error, var(--config-editor-error)); }
509
+ :not(#\#):not(#\#) .config-editor__line-number-added { color: var(--config-editor-line-number-added, var(--config-editor-added)); }
510
+ :not(#\#):not(#\#) .config-editor__line-number-modified { color: var(--config-editor-line-number-modified, var(--config-editor-modified)); }
511
+ :not(#\#):not(#\#) .config-editor__line-number-error::before {
512
+ position: absolute;
513
+ z-index: 2;
514
+ top: 8px;
515
+ left: calc(var(--config-editor-marker-column) - 13px);
516
+ width: 5px;
517
+ height: 5px;
518
+ border-radius: 50%;
519
+ background: var(--config-editor-error);
520
+ content: "";
521
+ }
522
+
523
+ /* A read-only line: a lock before the number. Above the change bars' hit
524
+ areas (see the change bar), so it takes its own pointer and title. */
525
+ :not(#\#):not(#\#) .config-editor__lock-marker {
526
+ position: absolute;
527
+ z-index: 2;
528
+ top: calc(50% - 5px);
529
+ left: calc(var(--config-editor-marker-column) - 25px);
530
+ width: 9px;
531
+ height: 10px;
532
+ color: var(--config-editor-locked);
533
+ }
534
+
535
+ /* The lock's and the key's icons: inline SVG (a strict CSP refuses
536
+ `data:` images). */
537
+ :not(#\#):not(#\#) .config-editor__lock-marker svg,
538
+ :not(#\#):not(#\#) .config-editor__secret-marker svg {
539
+ display: block;
540
+ width: 100%;
541
+ height: 100%;
542
+ fill: currentColor;
543
+ }
544
+
545
+ /* A line with a secret placeholder: a key before the number, above the
546
+ change bars' hit areas as the lock is. */
547
+ :not(#\#):not(#\#) .config-editor__secret-marker {
548
+ position: absolute;
549
+ z-index: 2;
550
+ top: calc(50% - 5px);
551
+ left: calc(var(--config-editor-marker-column) - 25px);
552
+ width: 10px;
553
+ height: 10px;
554
+ color: var(--config-editor-secret-chip-border);
555
+ }
556
+
557
+ /* A secret placeholder: a chip, drawn without changing the text's width
558
+ (the textarea above holds the same characters). */
559
+ :not(#\#):not(#\#) .config-editor__highlight .config-editor__secret,
560
+ :not(#\#):not(#\#) .config-editor__sticky .config-editor__secret {
561
+ border-radius: 3px;
562
+ background: var(--config-editor-secret-chip);
563
+ box-shadow: inset 0 0 0 1px var(--config-editor-secret-chip-border);
564
+ }
565
+
566
+ /* A read-only value, muted (its key keeps its color). */
567
+ :not(#\#):not(#\#) .config-editor__highlight .config-editor__locked,
568
+ :not(#\#):not(#\#) .config-editor__highlight .config-editor__locked > span,
569
+ :not(#\#):not(#\#) .config-editor__sticky .config-editor__locked,
570
+ :not(#\#):not(#\#) .config-editor__sticky .config-editor__locked > span {
571
+ color: var(--config-editor-locked);
572
+ }
573
+
574
+ /* A changed line's bar: last in the marker column, before the number.
575
+ The markers of a line stack in two layers of the gutter's rows: the
576
+ change markers' large hit areas (their `::after`, z-index 1; a row's
577
+ over the row above, which it overlaps by a pixel), then every marker
578
+ drawn (the lock or key, the problem dot, the bar, the removed lines'
579
+ mark; z-index 2). Each marker is then what the pointer finds on it,
580
+ and a bar's area still takes the pointer around the others. The
581
+ buttons have no z-index of their own, which would lift their hit areas
582
+ with them. */
583
+ :not(#\#):not(#\#) .config-editor__diff-marker {
584
+ position: absolute;
585
+ top: 0;
586
+ left: calc(var(--config-editor-marker-column) - 6px);
587
+ bottom: 0;
588
+ width: 3px;
589
+ padding: 0;
590
+ border: 0;
591
+ background: transparent;
592
+ }
593
+
594
+ :not(#\#):not(#\#) .config-editor__diff-marker-added,
595
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified {
596
+ cursor: pointer;
597
+ }
598
+
599
+ :not(#\#):not(#\#) .config-editor__diff-marker-added::before,
600
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified::before {
601
+ position: absolute;
602
+ z-index: 2;
603
+ top: 0;
604
+ left: 0;
605
+ bottom: 0;
606
+ width: 3px;
607
+ content: "";
608
+ transition: width 100ms ease, left 100ms ease, box-shadow 100ms ease;
609
+ }
610
+
611
+ :not(#\#):not(#\#) .config-editor__diff-marker-added::before { background: var(--config-editor-added); }
612
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified::before { background: var(--config-editor-modified); }
613
+
614
+ :not(#\#):not(#\#) .config-editor__diff-marker-added::after,
615
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified::after {
616
+ position: absolute;
617
+ z-index: 1;
618
+ content: "";
619
+ }
620
+
621
+ :not(#\#):not(#\#) .config-editor__diff-marker-added:hover::before,
622
+ :not(#\#):not(#\#) .config-editor__diff-marker-added:focus-visible::before,
623
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified:hover::before,
624
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified:focus-visible::before {
625
+ left: -1px;
626
+ width: 5px;
627
+ }
628
+
629
+ :not(#\#):not(#\#) .config-editor__diff-marker-added:hover::before,
630
+ :not(#\#):not(#\#) .config-editor__diff-marker-added:focus-visible::before {
631
+ box-shadow: 0 0 4px color-mix(in srgb, var(--config-editor-added) 70%, transparent);
632
+ }
633
+
634
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified:hover::before,
635
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified:focus-visible::before {
636
+ box-shadow: 0 0 4px color-mix(in srgb, var(--config-editor-modified) 70%, transparent);
637
+ }
638
+
639
+ :not(#\#):not(#\#) .config-editor__diff-deleted {
640
+ position: absolute;
641
+ top: -3px;
642
+ left: calc(var(--config-editor-marker-column) - 12px);
643
+ width: 9px;
644
+ height: 12px;
645
+ padding: 0;
646
+ border: 0;
647
+ background: transparent;
648
+ cursor: pointer;
649
+ }
650
+
651
+ :not(#\#):not(#\#) .config-editor__diff-deleted-after {
652
+ top: auto;
653
+ bottom: -3px;
654
+ }
655
+
656
+ :not(#\#):not(#\#) .config-editor__diff-deleted::before {
657
+ position: absolute;
658
+ z-index: 2;
659
+ /* A triangle pointing at the text, centred on the edge between the
660
+ lines where lines were removed (the button's 3px below its top), in
661
+ the change bars' column, as VS Code draws it. */
662
+ top: -1px;
663
+ right: 0;
664
+ width: 5px;
665
+ height: 8px;
666
+ clip-path: polygon(0 0, 100% 50%, 0 100%);
667
+ background: var(--config-editor-removed);
668
+ content: "";
669
+ transition: width 100ms ease, height 100ms ease, top 100ms ease, bottom 100ms ease;
670
+ }
671
+
672
+ :not(#\#):not(#\#) .config-editor__diff-deleted-after::before {
673
+ top: auto;
674
+ bottom: -1px;
675
+ }
676
+
677
+ :not(#\#):not(#\#) .config-editor__diff-deleted:hover::before,
678
+ :not(#\#):not(#\#) .config-editor__diff-deleted:focus-visible::before {
679
+ top: -2px;
680
+ width: 6px;
681
+ height: 10px;
682
+ }
683
+
684
+ :not(#\#):not(#\#) .config-editor__diff-deleted-after:hover::before,
685
+ :not(#\#):not(#\#) .config-editor__diff-deleted-after:focus-visible::before {
686
+ top: auto;
687
+ bottom: -2px;
688
+ }
689
+
690
+ :not(#\#):not(#\#) .config-editor__diff-change-trigger:focus-visible,
691
+ :not(#\#):not(#\#) .config-editor__diff-deleted:focus-visible {
692
+ outline: 1px solid var(--config-editor-diff-focus-ring);
693
+ outline-offset: 1px;
694
+ }
695
+
696
+ :not(#\#):not(#\#) .config-editor__diff-peek {
697
+ position: absolute;
698
+ /* Above the find and Go to Line widgets: the peek hangs from its line,
699
+ they sit in the corner, and on a narrow editor they cover its header
700
+ (Revert, Close), which then take no pointer. */
701
+ z-index: 8;
702
+ min-width: 180px;
703
+ overflow: auto;
704
+ border: 1px solid var(--config-editor-raised-border);
705
+ border-radius: 5px;
706
+ background: var(--config-editor-raised);
707
+ color: var(--config-editor-raised-text);
708
+ box-shadow: 0 6px 20px var(--config-editor-peek-shadow);
709
+ font: 12px/1.5 ui-sans-serif, system-ui, sans-serif;
710
+ }
711
+
712
+ :not(#\#):not(#\#) .config-editor__diff-peek-header {
713
+ position: sticky;
714
+ z-index: 1;
715
+ top: 0;
716
+ display: flex;
717
+ align-items: center;
718
+ justify-content: space-between;
719
+ gap: 12px;
720
+ padding: 7px 10px;
721
+ border-bottom: 1px solid var(--config-editor-raised-border);
722
+ background: var(--config-editor-raised);
723
+ }
724
+
725
+ :not(#\#):not(#\#) .config-editor__diff-peek-header button {
726
+ width: 24px;
727
+ height: 24px;
728
+ padding: 0;
729
+ border: 0;
730
+ border-radius: 3px;
731
+ background: transparent;
732
+ color: var(--config-editor-control-text);
733
+ cursor: pointer;
734
+ font: 18px/1 ui-sans-serif, system-ui, sans-serif;
735
+ }
736
+
737
+ :not(#\#):not(#\#) .config-editor__diff-peek-header button:hover,
738
+ :not(#\#):not(#\#) .config-editor__diff-peek-header button:focus-visible { background: var(--config-editor-raised-hover); }
739
+
740
+ /* On one line however narrow the screen (its title tells it whole). */
741
+ :not(#\#):not(#\#) .config-editor__diff-peek-title {
742
+ min-width: 0;
743
+ overflow: hidden;
744
+ text-overflow: ellipsis;
745
+ white-space: nowrap;
746
+ }
747
+
748
+ :not(#\#):not(#\#) .config-editor__diff-peek-actions { display: flex; flex: none; align-items: center; gap: 4px; }
749
+
750
+ :not(#\#):not(#\#) .config-editor__diff-peek-header .config-editor__diff-peek-revert {
751
+ width: auto;
752
+ padding: 0 8px;
753
+ border: 1px solid var(--config-editor-raised-border);
754
+ font: 12px/1 ui-sans-serif, system-ui, sans-serif;
755
+ }
756
+
757
+ :not(#\#):not(#\#) .config-editor__diff-peek-header .config-editor__diff-peek-revert:focus-visible {
758
+ outline: 1px solid var(--config-editor-focus-ring);
759
+ outline-offset: 1px;
760
+ }
761
+
762
+ :not(#\#):not(#\#) .config-editor__diff-peek-columns {
763
+ display: grid;
764
+ grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
765
+ }
766
+
767
+ :not(#\#):not(#\#) .config-editor__diff-peek-side { min-width: 0; }
768
+ :not(#\#):not(#\#) .config-editor__diff-peek-side + .config-editor__diff-peek-side { border-left: 1px solid var(--config-editor-raised-border); }
769
+
770
+ :not(#\#):not(#\#) .config-editor__diff-peek-side h3 {
771
+ margin: 0;
772
+ padding: 5px 10px;
773
+ border-bottom: 1px solid var(--config-editor-diff-peek-divider);
774
+ color: var(--config-editor-raised-muted);
775
+ font: 11px/1.4 ui-sans-serif, system-ui, sans-serif;
776
+ }
777
+
778
+ :not(#\#):not(#\#) .config-editor__diff-peek-line {
779
+ min-height: 22px;
780
+ display: flex;
781
+ gap: 9px;
782
+ padding: 2px 10px;
783
+ font: 12px/1.5 var(--config-editor-mono);
784
+ }
785
+
786
+ :not(#\#):not(#\#) .config-editor__diff-peek-line > span { flex: 0 0 10px; text-align: center; }
787
+ :not(#\#):not(#\#) .config-editor__diff-peek-line code { overflow-wrap: anywhere; white-space: pre-wrap; }
788
+ :not(#\#):not(#\#) .config-editor__diff-peek-removed {
789
+ background: var(--config-editor-diff-removed-bg);
790
+ color: var(--config-editor-diff-removed-text);
791
+ }
792
+
793
+ :not(#\#):not(#\#) .config-editor__diff-peek-current {
794
+ background: var(--config-editor-diff-current-bg);
795
+ color: var(--config-editor-diff-current-text);
796
+ }
797
+
798
+ :not(#\#):not(#\#) .config-editor__input-wrap {
799
+ position: relative;
800
+ display: flex;
801
+ flex-direction: column;
802
+ min-width: 0;
803
+ min-height: 0;
804
+ flex: 1;
805
+ }
806
+ /* Within the surface's bounds, so the gutter (stretched to the surface)
807
+ covers every row in a short window. */
808
+ :not(#\#):not(#\#) .config-editor__highlight,
809
+ :not(#\#):not(#\#) .config-editor__input {
810
+ min-height: var(--config-editor-min-height, min(240px, var(--config-editor-height, 240px), 100vh - 80px));
811
+ padding: var(--config-editor-padding-top) 20px var(--config-editor-padding-bottom) 0;
812
+ border: 0;
813
+ margin: 0;
814
+ tab-size: 2;
815
+ white-space: pre;
816
+ font: var(--config-editor-font-size)/1.8 var(--config-editor-mono);
817
+ line-height: var(--config-editor-line-height);
818
+ }
819
+
820
+ /* Above the textarea: its selection and caret paint under the highlighted
821
+ text, so selected text keeps its colors and contrast. The overlay takes
822
+ no pointer events, so the textarea still gets every click. */
823
+ :not(#\#):not(#\#) .config-editor__highlight {
824
+ position: absolute;
825
+ z-index: 2;
826
+ inset: 0 auto auto 0;
827
+ width: max-content;
828
+ min-width: 100%;
829
+ overflow: visible;
830
+ color: var(--config-editor-text);
831
+ pointer-events: none;
832
+ }
833
+
834
+ /* The overlay must use exactly the textarea's font, or the caret and selection
835
+ drift off the text; browsers give <code> their own monospace otherwise. */
836
+ :not(#\#):not(#\#) .config-editor__highlight code,
837
+ :not(#\#):not(#\#) .config-editor__highlight span {
838
+ font: inherit;
839
+ }
840
+
841
+ :not(#\#):not(#\#) .config-editor__row-spacer { display: block; }
842
+
843
+ :not(#\#):not(#\#) .config-editor__code-line {
844
+ width: max-content;
845
+ min-width: 100%;
846
+ height: 1lh;
847
+ display: block;
848
+ }
849
+
850
+ /* A piece of a long row: laid out on its own, so an edit lays out again
851
+ only the pieces it changed (see `highlight::pieces`). */
852
+ :not(#\#):not(#\#) .config-editor__code-piece { display: inline-block; }
853
+
854
+ :not(#\#):not(#\#) .config-editor__gutter-content {
855
+ position: relative;
856
+ }
857
+
858
+ /* Folding: chevrons between the number and the text, shown while the
859
+ gutter is hovered (always on touch screens and on folded lines). Their
860
+ column is their 24px hit area; the number keeps a small gap from it. */
861
+ :not(#\#):not(#\#) .config-editor__gutter.config-editor__gutter-folding {
862
+ --config-editor-fold-gutter: 24px;
863
+ --config-editor-gutter-padding: 2px;
864
+ }
865
+
866
+ :not(#\#):not(#\#) .config-editor__fold-toggle {
867
+ position: absolute;
868
+ z-index: 1;
869
+ right: calc(0px - var(--config-editor-gutter-padding) - var(--config-editor-fold-gutter));
870
+ top: calc((1lh - max(24px, 1lh)) / 2);
871
+ width: var(--config-editor-fold-gutter);
872
+ height: max(24px, 1lh);
873
+ line-height: var(--config-editor-line-height);
874
+ padding: 0;
875
+ border: 0;
876
+ background: transparent;
877
+ color: var(--config-editor-fold-toggle);
878
+ cursor: pointer;
879
+ opacity: 0;
880
+ transition: opacity 120ms ease;
881
+ }
882
+
883
+ :not(#\#):not(#\#) .config-editor__fold-toggle::before {
884
+ position: absolute;
885
+ top: 50%;
886
+ left: 9px;
887
+ width: 5px;
888
+ height: 5px;
889
+ border-right: 1.5px solid currentColor;
890
+ border-bottom: 1.5px solid currentColor;
891
+ content: "";
892
+ transform: translateY(-75%) rotate(45deg);
893
+ }
894
+
895
+ :not(#\#):not(#\#) .config-editor__fold-toggle-closed::before {
896
+ transform: translate(-25%, -50%) rotate(-45deg);
897
+ }
898
+
899
+ :not(#\#):not(#\#) .config-editor__gutter:hover .config-editor__fold-toggle,
900
+ :not(#\#):not(#\#) .config-editor__fold-toggle-closed,
901
+ :not(#\#):not(#\#) .config-editor__fold-toggle:focus-visible {
902
+ opacity: 1;
903
+ }
904
+
905
+ :not(#\#):not(#\#) .config-editor__fold-toggle:hover {
906
+ color: var(--config-editor-line-active);
907
+ }
908
+
909
+ @media (hover: none) {
910
+ :not(#\#):not(#\#) .config-editor__fold-toggle { opacity: 1; }
911
+ }
912
+
913
+ /* A closed fold hiding changes: a dotted bar where the change bars go. */
914
+ :not(#\#):not(#\#) .config-editor__fold-changes {
915
+ position: absolute;
916
+ left: calc(var(--config-editor-marker-column) - 6px);
917
+ width: 3px;
918
+ height: calc(1lh - 6px);
919
+ margin-top: 3px;
920
+ background: repeating-linear-gradient(var(--config-editor-modified) 0 2px, transparent 2px 4px);
921
+ }
922
+
923
+ /* The chips after folded lines, over the text; only the chips take the
924
+ pointer. */
925
+ :not(#\#):not(#\#) .config-editor__fold-chips {
926
+ position: absolute;
927
+ z-index: 3;
928
+ inset: 0 auto auto 0;
929
+ width: max-content;
930
+ min-width: 100%;
931
+ height: 100%;
932
+ pointer-events: none;
933
+ font: var(--config-editor-font-size)/1.8 var(--config-editor-mono);
934
+ }
935
+
936
+ :not(#\#):not(#\#) .config-editor__fold-chip {
937
+ position: absolute;
938
+ height: 1lh;
939
+ padding: 0 0.6ch;
940
+ border: 0;
941
+ border-radius: 3px;
942
+ background: var(--config-editor-fold-chip);
943
+ color: var(--config-editor-fold-chip-text);
944
+ font: inherit;
945
+ line-height: var(--config-editor-line-height);
946
+ cursor: pointer;
947
+ pointer-events: auto;
948
+ }
949
+
950
+ :not(#\#):not(#\#) .config-editor__fold-chip:hover {
951
+ color: var(--config-editor-text);
952
+ }
953
+
954
+ /* A fold hiding problems: its chip underlined in the most serious one's
955
+ colour. */
956
+ :not(#\#):not(#\#) .config-editor__fold-chip--error { box-shadow: inset 0 -2px var(--config-editor-error); }
957
+ :not(#\#):not(#\#) .config-editor__fold-chip--warning { box-shadow: inset 0 -2px var(--config-editor-warning); }
958
+ :not(#\#):not(#\#) .config-editor__fold-chip--info { box-shadow: inset 0 -2px var(--config-editor-info); }
959
+ :not(#\#):not(#\#) .config-editor__fold-chip--hint { box-shadow: inset 0 -2px var(--config-editor-hint); }
960
+
961
+ /* Sticky scroll: the header lines of the blocks scrolled past, over the top
962
+ of the text and of the gutter, opaque, a line under the last one. Each
963
+ line sits at its depth's top (`--config-editor-sticky-top-<depth>`, set
964
+ with the scroll); the layers take the pointer only on their lines. */
965
+ :not(#\#):not(#\#) .config-editor__sticky,
966
+ :not(#\#):not(#\#) .config-editor__sticky-numbers {
967
+ position: absolute;
968
+ top: 0;
969
+ left: 0;
970
+ height: var(--config-editor-sticky-height, 0);
971
+ overflow: hidden;
972
+ pointer-events: none;
973
+ }
974
+
975
+ :not(#\#):not(#\#) .config-editor__sticky {
976
+ z-index: 4;
977
+ touch-action: pinch-zoom;
978
+ color: var(--config-editor-text);
979
+ white-space: pre;
980
+ tab-size: 2;
981
+ font: var(--config-editor-font-size)/1.8 var(--config-editor-mono);
982
+ line-height: var(--config-editor-line-height);
983
+ }
984
+
985
+ :not(#\#):not(#\#) .config-editor__sticky-numbers {
986
+ z-index: 2;
987
+ right: 0;
988
+ padding-right: inherit;
989
+ }
990
+
991
+ :not(#\#):not(#\#) .config-editor__sticky-line,
992
+ :not(#\#):not(#\#) .config-editor__sticky-number {
993
+ position: absolute;
994
+ left: 0;
995
+ right: 0;
996
+ height: 1lh;
997
+ background: var(--config-editor-bg);
998
+ cursor: pointer;
999
+ pointer-events: auto;
1000
+ }
1001
+
1002
+ :not(#\#):not(#\#) .config-editor__sticky-number {
1003
+ padding-right: inherit;
1004
+ }
1005
+
1006
+ :not(#\#):not(#\#) .config-editor__sticky-line:last-child,
1007
+ :not(#\#):not(#\#) .config-editor__sticky-number:last-child {
1008
+ box-shadow: inset 0 -1px 0 var(--config-editor-border);
1009
+ }
1010
+
1011
+ :not(#\#):not(#\#) .config-editor__sticky-line:hover .config-editor__sticky-code,
1012
+ :not(#\#):not(#\#) .config-editor__sticky-number:hover {
1013
+ text-decoration: underline;
1014
+ }
1015
+
1016
+ :not(#\#):not(#\#) .config-editor__sticky-code {
1017
+ display: inline-block;
1018
+ transform: translateX(var(--config-editor-sticky-x, 0));
1019
+ }
1020
+
1021
+ :not(#\#):not(#\#) .config-editor__sticky-code span {
1022
+ font: inherit;
1023
+ }
1024
+
1025
+ :not(#\#):not(#\#) .config-editor__code-line-active { background: var(--config-editor-active-line); }
1026
+ :not(#\#):not(#\#) .config-editor__code-line-error { background: var(--config-editor-error-line); }
1027
+ :not(#\#):not(#\#) .config-editor__code-line-added { background: var(--config-editor-added-line); }
1028
+ :not(#\#):not(#\#) .config-editor__code-line-modified { background: var(--config-editor-modified-line); }
1029
+
1030
+ :not(#\#):not(#\#) .config-editor__input {
1031
+ position: relative;
1032
+ z-index: 1;
1033
+ flex: 1 1 auto;
1034
+ width: 100%;
1035
+ display: block;
1036
+ resize: vertical;
1037
+ outline: 0;
1038
+ background: transparent;
1039
+ color: transparent;
1040
+ caret-color: var(--config-editor-caret);
1041
+ -webkit-text-fill-color: transparent;
1042
+ overflow: auto;
1043
+ height: var(--config-editor-height, var(--config-editor-content-height, auto));
1044
+ max-height: var(--config-editor-max-height, min(80vh, 100vh - 80px));
1045
+ }
1046
+
1047
+ :not(#\#):not(#\#) .config-editor__input::selection { background: var(--config-editor-selection); color: transparent; }
1048
+ :not(#\#):not(#\#) .config-editor__input:focus-visible { outline: none; }
1049
+
1050
+ :not(#\#):not(#\#) .config-editor__diagnostic-overlay {
1051
+ position: absolute;
1052
+ z-index: 3;
1053
+ inset: 0 auto auto 0;
1054
+ width: max-content;
1055
+ min-width: 100%;
1056
+ height: 100%;
1057
+ pointer-events: none;
1058
+ }
1059
+
1060
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker {
1061
+ position: absolute;
1062
+ height: 1lh;
1063
+ overflow: visible;
1064
+ padding: 0;
1065
+ border: 0;
1066
+ background: transparent;
1067
+ color: transparent;
1068
+ text-align: left;
1069
+ white-space: pre;
1070
+ font: var(--config-editor-font-size)/1.8 var(--config-editor-mono);
1071
+ line-height: var(--config-editor-line-height);
1072
+ -webkit-text-fill-color: transparent;
1073
+ text-decoration: underline wavy var(--config-editor-error);
1074
+ text-decoration-thickness: 1px;
1075
+ text-underline-offset: 3px;
1076
+ /* Clicks, drags and taps reach the text under it (see problem_hit.rs). */
1077
+ pointer-events: none;
1078
+ }
1079
+
1080
+ /* Warnings (for example a value a converted document's host language cannot
1081
+ keep exactly) use VS Code's warning yellow unless a theme sets the token. */
1082
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-warning {
1083
+ text-decoration-color: var(--config-editor-warning);
1084
+ }
1085
+
1086
+ /* Info is VS Code's blue; a hint is a quiet dotted underline. */
1087
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-info {
1088
+ text-decoration-color: var(--config-editor-info);
1089
+ }
1090
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-hint {
1091
+ text-decoration: underline dotted var(--config-editor-hint);
1092
+ text-decoration-thickness: 2px;
1093
+ }
1094
+
1095
+ /* A deprecated key is struck through (in the muted text colour) under its
1096
+ wavy underline, as VS Code does. */
1097
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-deprecated > span {
1098
+ text-decoration: line-through var(--config-editor-muted);
1099
+ text-decoration-thickness: 1px;
1100
+ }
1101
+
1102
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker:focus-visible {
1103
+ outline: 1px solid var(--config-editor-focus-ring);
1104
+ outline-offset: 1px;
1105
+ }
1106
+
1107
+ /* Over the same text, the more serious problem's underline is drawn on top
1108
+ (an error over a warning), and an identical less serious one not at all. */
1109
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker { z-index: 4; }
1110
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-warning { z-index: 3; }
1111
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-info { z-index: 2; }
1112
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-hint { z-index: 1; }
1113
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-covered { text-decoration-line: none; }
1114
+
1115
+ /* The problem tip: the messages of the problems at the hovered underline
1116
+ (or where F8 went), each with who reported it, its code and docs link.
1117
+ Placed inside the editor and the window; no taller than the room there,
1118
+ it scrolls. */
1119
+ :not(#\#):not(#\#) .config-editor__problem-tip {
1120
+ position: fixed;
1121
+ z-index: 59;
1122
+ box-sizing: border-box;
1123
+ width: max-content;
1124
+ max-width: 360px;
1125
+ overflow-y: auto;
1126
+ overscroll-behavior: contain;
1127
+ display: grid;
1128
+ gap: 6px;
1129
+ padding: 7px 10px;
1130
+ border: 1px solid var(--config-editor-raised-border);
1131
+ border-radius: 4px;
1132
+ background: var(--config-editor-raised);
1133
+ color: var(--config-editor-tooltip-text);
1134
+ box-shadow: 0 3px 10px var(--config-editor-popup-shadow);
1135
+ font: 12px/1.45 ui-sans-serif, system-ui, sans-serif;
1136
+ overflow-wrap: anywhere;
1137
+ white-space: pre-line;
1138
+ }
1139
+ :not(#\#):not(#\#) .config-editor__problem-tip[hidden] { display: none; }
1140
+ /* Clicks go through to the text under it, unless it has a docs link or
1141
+ scrolls. */
1142
+ :not(#\#):not(#\#) .config-editor__problem-tip { pointer-events: none; }
1143
+ :not(#\#):not(#\#) .config-editor__problem-tip--interactive { pointer-events: auto; }
1144
+ /* Unseen for the moment until its height is measured and it is placed
1145
+ beside its line (never over it). */
1146
+ :not(#\#):not(#\#) .config-editor__problem-tip--unmeasured { visibility: hidden; }
1147
+ /* The pointer came onto the tip or the hover card another way than from
1148
+ what it is for (a card below its line covers the next lines): it goes
1149
+ through to the text under it. */
1150
+ :not(#\#):not(#\#) .config-editor__problem-tip[data-passing],
1151
+ :not(#\#):not(#\#) .config-editor__hover[data-passing] { pointer-events: none; }
1152
+ :not(#\#):not(#\#) .config-editor__problem-tip-entry {
1153
+ padding-left: 7px;
1154
+ border-left: 3px solid var(--config-editor-error);
1155
+ }
1156
+ :not(#\#):not(#\#) .config-editor__problem-tip-entry--warning { border-left-color: var(--config-editor-warning); }
1157
+ :not(#\#):not(#\#) .config-editor__problem-tip-entry--info { border-left-color: var(--config-editor-info); }
1158
+ :not(#\#):not(#\#) .config-editor__problem-tip-entry--hint { border-left-color: var(--config-editor-hint); }
1159
+ :not(#\#):not(#\#) .config-editor__problem-tip-entry--current { background: var(--config-editor-raised-hover); }
1160
+ :not(#\#):not(#\#) .config-editor__problem-tip-message,
1161
+ :not(#\#):not(#\#) .config-editor__problem-tip-detail { margin: 0; }
1162
+ :not(#\#):not(#\#) .config-editor__problem-tip-message--docs { cursor: pointer; }
1163
+ :not(#\#):not(#\#) .config-editor__problem-tip-severity { font-weight: 600; }
1164
+ :not(#\#):not(#\#) .config-editor__problem-tip-detail { color: var(--config-editor-raised-muted); }
1165
+ :not(#\#):not(#\#) .config-editor__problem-tip-link {
1166
+ /* A 24px target (WCAG 2.5.8), taking no more room than its line. */
1167
+ display: inline-flex;
1168
+ align-items: center;
1169
+ min-height: 24px;
1170
+ margin-block: -4px;
1171
+ color: var(--config-editor-accent-text);
1172
+ }
1173
+ /* The problems on a documented key's line, listed in its hover card above
1174
+ the docs (the tip yields to the card there); scrolled when many. */
1175
+ :not(#\#):not(#\#) .config-editor__hover-problems {
1176
+ display: grid;
1177
+ gap: 6px;
1178
+ padding-bottom: 6px;
1179
+ border-bottom: 1px solid var(--config-editor-raised-border);
1180
+ color: var(--config-editor-tooltip-text);
1181
+ overflow-wrap: anywhere;
1182
+ white-space: pre-line;
1183
+ }
1184
+
1185
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-eof::before {
1186
+ position: absolute;
1187
+ right: 0;
1188
+ bottom: 3px;
1189
+ left: 0;
1190
+ border-bottom: 1px solid var(--config-editor-error);
1191
+ content: "";
1192
+ }
1193
+
1194
+ /* Go to line: a field over the top right of the text, like the find widget. */
1195
+ :not(#\#):not(#\#) .config-editor__goto {
1196
+ position: absolute;
1197
+ z-index: 7;
1198
+ top: 0;
1199
+ right: 14px;
1200
+ width: min(300px, calc(100% - 22px));
1201
+ max-height: 100%;
1202
+ overflow-y: auto;
1203
+ display: grid;
1204
+ gap: 3px;
1205
+ padding: 5px 6px;
1206
+ border: 1px solid var(--config-editor-raised-border);
1207
+ border-top: 0;
1208
+ border-radius: 0 0 5px 5px;
1209
+ background: var(--config-editor-raised);
1210
+ color: var(--config-editor-raised-muted);
1211
+ box-shadow: 0 4px 12px var(--config-editor-popup-shadow);
1212
+ font: 11px/1.4 ui-sans-serif, system-ui, sans-serif;
1213
+ }
1214
+
1215
+ :not(#\#):not(#\#) .config-editor__goto[hidden] { display: none; }
1216
+
1217
+ /* Scoped to the widget: the shared `find-input` rule below drops borders. */
1218
+ :not(#\#):not(#\#) .config-editor__goto .config-editor__goto-input {
1219
+ border: 1px solid var(--config-editor-input-border);
1220
+ border-radius: 3px;
1221
+ background: var(--config-editor-input-bg);
1222
+ }
1223
+
1224
+ :not(#\#):not(#\#) .config-editor__goto .config-editor__goto-input:focus { border-color: var(--config-editor-focus-ring); }
1225
+
1226
+ /* Lined up with the field's text (its border and padding). */
1227
+ :not(#\#):not(#\#) .config-editor__goto-hint { padding: 0 7px; min-width: 0; overflow-wrap: anywhere; }
1228
+
1229
+ /* Find matches sit under the textarea and the highlighted text, like the
1230
+ selection, so the text keeps its colors. */
1231
+ :not(#\#):not(#\#) .config-editor__search-highlights {
1232
+ position: absolute;
1233
+ z-index: 1;
1234
+ inset: 0 auto auto 0;
1235
+ width: max-content;
1236
+ min-width: 100%;
1237
+ height: 100%;
1238
+ pointer-events: none;
1239
+ font: var(--config-editor-font-size)/1.8 var(--config-editor-mono);
1240
+ line-height: var(--config-editor-line-height);
1241
+ }
1242
+
1243
+ /* A line's copy: the same font, as wide as the text lays out, the text
1244
+ itself not shown. */
1245
+ :not(#\#):not(#\#) .config-editor__search-line {
1246
+ position: absolute;
1247
+ height: 1lh;
1248
+ white-space: pre;
1249
+ tab-size: 2;
1250
+ color: transparent;
1251
+ -webkit-text-fill-color: transparent;
1252
+ }
1253
+
1254
+ /* A match is an inline box: as tall as the font's glyph area (about 1.17em
1255
+ in the monospace fonts the stack names), grown by padding to the line. */
1256
+ :not(#\#):not(#\#) .config-editor__search-match {
1257
+ padding-block: calc((1lh - 1.17em) / 2);
1258
+ border-radius: 2px;
1259
+ background: var(--config-editor-search-match);
1260
+ }
1261
+
1262
+ :not(#\#):not(#\#) .config-editor__search-match-bare {
1263
+ display: inline-block;
1264
+ width: 0.5ch;
1265
+ }
1266
+
1267
+ :not(#\#):not(#\#) .config-editor__search-match-current {
1268
+ background: var(--config-editor-search-match-current);
1269
+ box-shadow: inset 0 0 0 1px var(--config-editor-search-match-current-border);
1270
+ }
1271
+
1272
+ /* The find widget: over the top right of the text, clear of the scrollbar. */
1273
+ :not(#\#):not(#\#) .config-editor__find {
1274
+ position: absolute;
1275
+ z-index: 6;
1276
+ top: 0;
1277
+ right: 14px;
1278
+ width: min(440px, calc(100% - 22px));
1279
+ /* In a window a few lines tall the widget scrolls inside the text area
1280
+ rather than being cut by it. */
1281
+ max-height: 100%;
1282
+ overflow-y: auto;
1283
+ display: grid;
1284
+ gap: 4px;
1285
+ padding: 5px 6px;
1286
+ border: 1px solid var(--config-editor-raised-border);
1287
+ border-top: 0;
1288
+ border-radius: 0 0 5px 5px;
1289
+ background: var(--config-editor-raised);
1290
+ color: var(--config-editor-raised-text);
1291
+ box-shadow: 0 4px 12px var(--config-editor-popup-shadow);
1292
+ font: 12px/1.4 ui-sans-serif, system-ui, sans-serif;
1293
+ /* Its width (not its content's) sizes the query (`cqw`). */
1294
+ container-type: inline-size;
1295
+ }
1296
+
1297
+ :not(#\#):not(#\#) .config-editor__find[hidden],
1298
+ :not(#\#):not(#\#) .config-editor__find [hidden] { display: none; }
1299
+
1300
+ :not(#\#):not(#\#) .config-editor__find-row {
1301
+ display: flex;
1302
+ flex-wrap: wrap;
1303
+ align-items: center;
1304
+ gap: 4px;
1305
+ min-width: 0;
1306
+ }
1307
+
1308
+ :not(#\#):not(#\#) .config-editor__find-field {
1309
+ min-width: 0;
1310
+ max-width: 100%;
1311
+ flex: 0 1 auto;
1312
+ display: flex;
1313
+ /* The match options go under the query when the widget is too narrow to
1314
+ leave it room to type in. */
1315
+ flex-wrap: wrap;
1316
+ align-items: center;
1317
+ gap: 1px;
1318
+ padding-right: 2px;
1319
+ border: 1px solid var(--config-editor-input-border);
1320
+ border-radius: 3px;
1321
+ background: var(--config-editor-input-bg);
1322
+ }
1323
+
1324
+ :not(#\#):not(#\#) .config-editor__find-field:focus-within { border-color: var(--config-editor-focus-ring); }
1325
+ :not(#\#):not(#\#) .config-editor__find-field-invalid,
1326
+ :not(#\#):not(#\#) .config-editor__find-field-invalid:focus-within { border-color: var(--config-editor-error); }
1327
+
1328
+ :not(#\#):not(#\#) .config-editor__find-input {
1329
+ /* Its own size whatever the page says of `input` (a framework's
1330
+ `width: 100%; display: block; padding: …; font-size: …`). */
1331
+ display: block;
1332
+ box-sizing: border-box;
1333
+ width: auto;
1334
+ margin: 0;
1335
+ min-width: 10ch;
1336
+ flex: 1 1 10ch;
1337
+ height: 24px;
1338
+ padding: 0 6px;
1339
+ line-height: normal;
1340
+ border: 0;
1341
+ outline: 0;
1342
+ background: transparent;
1343
+ color: var(--config-editor-raised-text);
1344
+ font: 12px var(--config-editor-mono);
1345
+ }
1346
+
1347
+ /* The query's width follows the widget's alone (never what wraps beside
1348
+ it, so it never narrows as the window widens): on one row with the
1349
+ count and the buttons, all the room they leave (from 100px); narrower,
1350
+ 100px while the row above them holds it, then all the row leaves the
1351
+ match options. 79px: the field's options, border and padding; 225px:
1352
+ those, the count and the buttons with their gaps; and the expand
1353
+ button with its gap (none read-only, where it is hidden). */
1354
+ :not(#\#):not(#\#) .config-editor__find-field .config-editor__find-input {
1355
+ --config-editor-find-expand: 28px;
1356
+ flex: none;
1357
+ width: max(
1358
+ min(100px, 100cqw - 79px - var(--config-editor-find-expand)),
1359
+ 100cqw - 225px - var(--config-editor-find-expand)
1360
+ );
1361
+ }
1362
+ :not(#\#):not(#\#) .config-editor__readonly .config-editor__find-field .config-editor__find-input {
1363
+ --config-editor-find-expand: 0px;
1364
+ }
1365
+
1366
+ :not(#\#):not(#\#) .config-editor__replace-input {
1367
+ flex: 1 1 90px;
1368
+ border: 1px solid var(--config-editor-input-border);
1369
+ border-radius: 3px;
1370
+ background: var(--config-editor-input-bg);
1371
+ }
1372
+
1373
+ :not(#\#):not(#\#) .config-editor__replace-input:focus { border-color: var(--config-editor-focus-ring); }
1374
+
1375
+ :not(#\#):not(#\#) .config-editor__find-input::placeholder { color: var(--config-editor-raised-muted); }
1376
+
1377
+ :not(#\#):not(#\#) .config-editor__find-toggle,
1378
+ :not(#\#):not(#\#) .config-editor__find-button {
1379
+ min-width: 22px;
1380
+ height: 22px;
1381
+ flex: none;
1382
+ padding: 0 4px;
1383
+ border: 1px solid transparent;
1384
+ border-radius: 3px;
1385
+ background: transparent;
1386
+ color: var(--config-editor-control-text);
1387
+ cursor: pointer;
1388
+ font: 12px/1 var(--config-editor-mono);
1389
+ }
1390
+
1391
+ :not(#\#):not(#\#) .config-editor__find-toggle:hover,
1392
+ :not(#\#):not(#\#) .config-editor__find-button:hover { background: var(--config-editor-raised-hover); }
1393
+
1394
+ :not(#\#):not(#\#) .config-editor__find-toggle-on,
1395
+ :not(#\#):not(#\#) .config-editor__find-toggle-on:hover {
1396
+ border-color: var(--config-editor-accent);
1397
+ background: var(--config-editor-toggle-active);
1398
+ }
1399
+
1400
+ :not(#\#):not(#\#) .config-editor__find-toggle:focus-visible,
1401
+ :not(#\#):not(#\#) .config-editor__find-button:focus-visible {
1402
+ outline: 1px solid var(--config-editor-focus-ring);
1403
+ outline-offset: -1px;
1404
+ }
1405
+
1406
+ :not(#\#):not(#\#) .config-editor__find-text-button {
1407
+ /* A long text wraps inside the button instead of leaving the widget. */
1408
+ flex: 0 1 auto;
1409
+ min-width: 0;
1410
+ max-width: 100%;
1411
+ height: auto;
1412
+ min-height: 22px;
1413
+ padding: 3px 7px;
1414
+ border-color: var(--config-editor-raised-border);
1415
+ background: var(--config-editor-control-bg);
1416
+ font: 12px/1.2 ui-sans-serif, system-ui, sans-serif;
1417
+ overflow-wrap: anywhere;
1418
+ }
1419
+
1420
+ /* Unavailable with no match (still focusable, and said so). */
1421
+ :not(#\#):not(#\#) .config-editor__find-button[aria-disabled="true"] {
1422
+ color: var(--config-editor-control-disabled-text);
1423
+ cursor: default;
1424
+ }
1425
+ :not(#\#):not(#\#) .config-editor__find-button[aria-disabled="true"]:hover { background: transparent; }
1426
+ :not(#\#):not(#\#) .config-editor__find-text-button[aria-disabled="true"]:hover { background: var(--config-editor-control-bg); }
1427
+
1428
+ :not(#\#):not(#\#) .config-editor__find-expand { font-size: 15px; transition: transform 100ms ease; }
1429
+ :not(#\#):not(#\#) .config-editor__find-expand-open { transform: rotate(90deg); }
1430
+
1431
+ :not(#\#):not(#\#) .config-editor__find-count {
1432
+ min-width: 64px;
1433
+ max-width: 100%;
1434
+ /* Short counts keep their size; a long result or translation wraps inside
1435
+ the widget instead of being cut. */
1436
+ flex: 0 1 auto;
1437
+ padding: 0 2px;
1438
+ color: var(--config-editor-raised-muted);
1439
+ overflow-wrap: anywhere;
1440
+ }
1441
+
1442
+ :not(#\#):not(#\#) .config-editor__find-count-empty { color: var(--config-editor-status-error); }
1443
+
1444
+ :not(#\#):not(#\#) .config-editor__find-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; min-width: 0; gap: 1px; margin-left: auto; }
1445
+
1446
+ :not(#\#):not(#\#) .config-editor__comment { color: var(--config-editor-comment); }
1447
+ :not(#\#):not(#\#) .config-editor__key { color: var(--config-editor-key); }
1448
+ :not(#\#):not(#\#) .config-editor__punctuation { color: var(--config-editor-punctuation); }
1449
+ :not(#\#):not(#\#) .config-editor__reference { color: var(--config-editor-reference); }
1450
+ :not(#\#):not(#\#) .config-editor__interpolation { color: var(--config-editor-interpolation); }
1451
+ :not(#\#):not(#\#) .config-editor__string { color: var(--config-editor-string); }
1452
+ :not(#\#):not(#\#) .config-editor__literal { color: var(--config-editor-literal); }
1453
+ :not(#\#):not(#\#) .config-editor__value { color: var(--config-editor-value); }
1454
+
1455
+ :not(#\#):not(#\#) .config-editor__completions {
1456
+ position: fixed;
1457
+ z-index: 1000;
1458
+ width: min(420px, calc(100vw - 16px));
1459
+ max-height: min(320px, 45vh, calc(100vh - 64px));
1460
+ overflow-x: hidden;
1461
+ overflow-y: auto;
1462
+ border: 1px solid var(--config-editor-raised-border);
1463
+ border-radius: 4px;
1464
+ background: var(--config-editor-raised);
1465
+ color: var(--config-editor-raised-text);
1466
+ box-shadow: 0 6px 16px var(--config-editor-popup-shadow);
1467
+ overscroll-behavior: contain;
1468
+ scrollbar-width: thin;
1469
+ }
1470
+
1471
+ :not(#\#):not(#\#) .config-editor__completions::-webkit-scrollbar { width: 8px; }
1472
+ :not(#\#):not(#\#) .config-editor__completions::-webkit-scrollbar-thumb {
1473
+ border: 2px solid transparent;
1474
+ border-radius: 8px;
1475
+ background: var(--config-editor-scrollbar-thumb);
1476
+ background-clip: padding-box;
1477
+ }
1478
+
1479
+ :not(#\#):not(#\#) .config-editor__completions.hidden { display: none; }
1480
+ :not(#\#):not(#\#) .config-editor__completion {
1481
+ width: 100%;
1482
+ /* Every row of a list as high (`RowSize`: 44px, 28px in a list without
1483
+ descriptions): only the rows around the
1484
+ list's scroll position are rendered, each at its place. */
1485
+ height: 44px;
1486
+ box-sizing: border-box;
1487
+ overflow: hidden;
1488
+ display: flex;
1489
+ align-items: center;
1490
+ gap: 9px;
1491
+ padding: 5px 9px;
1492
+ border: 0;
1493
+ background: transparent;
1494
+ color: inherit;
1495
+ text-align: left;
1496
+ cursor: pointer;
1497
+ font: 12px/1.45 ui-sans-serif, system-ui, sans-serif;
1498
+ }
1499
+
1500
+ :not(#\#):not(#\#) .config-editor__completions--compact .config-editor__completion { height: 28px; }
1501
+
1502
+ :not(#\#):not(#\#) .config-editor__completion-active { background: var(--config-editor-completion-active); }
1503
+
1504
+ /* The highlighted row while the list is scrolled away from it, at its
1505
+ place (top set inline). */
1506
+ :not(#\#):not(#\#) .config-editor__completion--pinned {
1507
+ position: absolute;
1508
+ left: 0;
1509
+ }
1510
+
1511
+ :not(#\#):not(#\#) .config-editor__hover {
1512
+ position: fixed;
1513
+ z-index: 60;
1514
+ width: max-content;
1515
+ max-width: 340px;
1516
+ display: grid;
1517
+ gap: 6px;
1518
+ padding: 8px 10px;
1519
+ border: 1px solid var(--config-editor-raised-border);
1520
+ border-radius: 6px;
1521
+ background: var(--config-editor-raised);
1522
+ color: var(--config-editor-raised-text);
1523
+ box-shadow: 0 8px 24px var(--config-editor-hover-shadow);
1524
+ font: 12px/1.45 ui-sans-serif, system-ui, sans-serif;
1525
+ /* No taller than the window's room beside its line (set inline): the
1526
+ rest scrolls, with a scroll bar and a shade where more is hidden. */
1527
+ box-sizing: border-box;
1528
+ overflow-y: auto;
1529
+ overscroll-behavior: contain;
1530
+ /* A long word or web address wraps inside the card. */
1531
+ overflow-wrap: anywhere;
1532
+ }
1533
+
1534
+ /* A title, description or deprecation keeps the schema's line breaks (its
1535
+ paragraphs and lists). */
1536
+ :not(#\#):not(#\#) .config-editor__hover-title,
1537
+ :not(#\#):not(#\#) .config-editor__hover-description,
1538
+ :not(#\#):not(#\#) .config-editor__hover-deprecation { white-space: pre-line; }
1539
+
1540
+ /* A touch screen: a tap on a card with nothing to tap (no link) or scroll
1541
+ goes through to the text under it, to place the caret there. */
1542
+ @media (hover: none) {
1543
+ :not(#\#):not(#\#) .config-editor__hover:not(.config-editor__hover--interactive) { pointer-events: none; }
1544
+ }
1545
+
1546
+ /* Unseen for the moment until its height is measured: it goes above its
1547
+ line when it fits there whole. */
1548
+ :not(#\#):not(#\#) .config-editor__hover--unmeasured { visibility: hidden; }
1549
+
1550
+ :not(#\#):not(#\#) .config-editor__hover--scrolls {
1551
+ scrollbar-width: thin;
1552
+ background:
1553
+ linear-gradient(var(--config-editor-raised) 30%, transparent) top / 100% 24px no-repeat local,
1554
+ linear-gradient(transparent, var(--config-editor-raised) 70%) bottom / 100% 24px no-repeat local,
1555
+ radial-gradient(farthest-side at 50% 0, var(--config-editor-hover-shadow), transparent) top / 100% 10px no-repeat scroll,
1556
+ radial-gradient(farthest-side at 50% 100%, var(--config-editor-hover-shadow), transparent) bottom / 100% 10px no-repeat scroll,
1557
+ var(--config-editor-raised);
1558
+ }
1559
+
1560
+ :not(#\#):not(#\#) .config-editor__protect-tip,
1561
+ :not(#\#):not(#\#) .config-editor__read-only-notice {
1562
+ position: fixed;
1563
+ z-index: 61;
1564
+ width: max-content;
1565
+ max-width: 340px;
1566
+ padding: 4px 8px;
1567
+ border: 1px solid var(--config-editor-raised-border);
1568
+ border-radius: 4px;
1569
+ background: var(--config-editor-raised);
1570
+ color: var(--config-editor-raised-text);
1571
+ box-shadow: 0 4px 12px var(--config-editor-hover-shadow);
1572
+ pointer-events: none;
1573
+ font: 12px/1.4 ui-sans-serif, system-ui, sans-serif;
1574
+ /* A host's reason may hold a long URL or word: it wraps inside the tip. */
1575
+ overflow-wrap: anywhere;
1576
+ }
1577
+
1578
+ :not(#\#):not(#\#) .config-editor__protect-tip--refused,
1579
+ :not(#\#):not(#\#) .config-editor__read-only-notice {
1580
+ border-color: var(--config-editor-locked);
1581
+ }
1582
+
1583
+ :not(#\#):not(#\#) .config-editor__hover-header {
1584
+ display: flex;
1585
+ align-items: baseline;
1586
+ flex-wrap: wrap;
1587
+ gap: 8px;
1588
+ }
1589
+
1590
+ :not(#\#):not(#\#) .config-editor__hover-key {
1591
+ font: 12px var(--config-editor-mono);
1592
+ color: var(--config-editor-key);
1593
+ }
1594
+
1595
+ :not(#\#):not(#\#) .config-editor__hover-type {
1596
+ color: var(--config-editor-raised-muted);
1597
+ font: 11px var(--config-editor-mono);
1598
+ }
1599
+
1600
+ :not(#\#):not(#\#) .config-editor__hover-required {
1601
+ padding: 0 5px;
1602
+ border-radius: 3px;
1603
+ color: var(--config-editor-raised-muted);
1604
+ border: 1px solid var(--config-editor-raised-border);
1605
+ font: 10px var(--config-editor-mono);
1606
+ }
1607
+
1608
+ /* Focused from the keyboard (a second Ctrl+K Ctrl+I), to scroll it. */
1609
+ :not(#\#):not(#\#) .config-editor__hover:focus-visible {
1610
+ outline: 2px solid var(--config-editor-focus-ring);
1611
+ outline-offset: -2px;
1612
+ }
1613
+
1614
+ /* Text, held to 4.5:1 on the card like the footer's warning count (the
1615
+ underline's warning color is lighter in the light themes). */
1616
+ :not(#\#):not(#\#) .config-editor__hover-deprecated {
1617
+ padding: 0 5px;
1618
+ border-radius: 3px;
1619
+ color: var(--config-editor-status-warning);
1620
+ border: 1px solid currentColor;
1621
+ font: 10px var(--config-editor-mono);
1622
+ }
1623
+
1624
+ :not(#\#):not(#\#) .config-editor__hover-deprecation {
1625
+ margin: 0;
1626
+ color: var(--config-editor-raised-muted);
1627
+ font-style: italic;
1628
+ }
1629
+
1630
+ :not(#\#):not(#\#) .config-editor__hover-value {
1631
+ display: grid;
1632
+ gap: 4px;
1633
+ padding-bottom: 6px;
1634
+ border-bottom: 1px solid var(--config-editor-raised-border);
1635
+ }
1636
+
1637
+ :not(#\#):not(#\#) .config-editor__hover-value-label {
1638
+ font: 12px var(--config-editor-mono);
1639
+ color: var(--config-editor-string);
1640
+ }
1641
+
1642
+ :not(#\#):not(#\#) .config-editor__hover-link {
1643
+ justify-self: start;
1644
+ /* A 24px target (WCAG 2.5.8), taking no more room than its line. */
1645
+ display: inline-flex;
1646
+ align-items: center;
1647
+ min-height: 24px;
1648
+ margin-block: -4px;
1649
+ color: var(--config-editor-accent-text);
1650
+ font-size: 11px;
1651
+ }
1652
+
1653
+ :not(#\#):not(#\#) .config-editor__hover-item,
1654
+ :not(#\#):not(#\#) .config-editor__hover-choice {
1655
+ display: grid;
1656
+ gap: 2px;
1657
+ padding-left: 8px;
1658
+ border-left: 2px solid var(--config-editor-raised-border);
1659
+ }
1660
+
1661
+ :not(#\#):not(#\#) .config-editor__hover-item-title,
1662
+ :not(#\#):not(#\#) .config-editor__hover-choice-title {
1663
+ color: var(--config-editor-raised-text);
1664
+ font-size: 12px;
1665
+ }
1666
+
1667
+ :not(#\#):not(#\#) .config-editor__hover-title {
1668
+ margin: 0;
1669
+ color: var(--config-editor-raised-text);
1670
+ font-weight: 600;
1671
+ }
1672
+
1673
+ :not(#\#):not(#\#) .config-editor__hover-description {
1674
+ margin: 0;
1675
+ color: var(--config-editor-raised-text);
1676
+ }
1677
+
1678
+ :not(#\#):not(#\#) .config-editor__hover-meta {
1679
+ display: flex;
1680
+ /* A long label keeps its line and the value moves under it. */
1681
+ flex-wrap: wrap;
1682
+ gap: 2px 8px;
1683
+ align-items: baseline;
1684
+ color: var(--config-editor-raised-muted);
1685
+ font-size: 11px;
1686
+ }
1687
+
1688
+ /* The label stays whole (its line is its own once it does not fit beside a
1689
+ usable value); only a single word wider than the card breaks. */
1690
+ :not(#\#):not(#\#) .config-editor__hover-meta > span {
1691
+ flex: 0 1 auto;
1692
+ min-width: 0;
1693
+ max-width: 100%;
1694
+ overflow-wrap: anywhere;
1695
+ }
1696
+
1697
+ /* The value asks for about eight characters beside the label, or the line
1698
+ under it, and takes the rest. */
1699
+ :not(#\#):not(#\#) .config-editor__hover-meta code {
1700
+ flex: 1 1 8em;
1701
+ min-width: 0;
1702
+ font: 11px var(--config-editor-mono);
1703
+ color: var(--config-editor-raised-text);
1704
+ overflow-wrap: anywhere;
1705
+ }
1706
+ :not(#\#):not(#\#) .config-editor__completion-icon {
1707
+ width: 17px;
1708
+ height: 17px;
1709
+ flex: 0 0 17px;
1710
+ display: grid;
1711
+ place-items: center;
1712
+ margin-top: 1px;
1713
+ border: 1px solid var(--config-editor-completion-icon-border);
1714
+ border-radius: 3px;
1715
+ color: var(--config-editor-completion-icon-text);
1716
+ font: 10px var(--config-editor-mono);
1717
+ }
1718
+
1719
+ :not(#\#):not(#\#) .config-editor__completion-content {
1720
+ min-width: 0;
1721
+ flex: 1;
1722
+ display: grid;
1723
+ gap: 2px;
1724
+ }
1725
+
1726
+ :not(#\#):not(#\#) .config-editor__completion-primary {
1727
+ min-width: 0;
1728
+ display: flex;
1729
+ align-items: baseline;
1730
+ justify-content: space-between;
1731
+ gap: 16px;
1732
+ }
1733
+
1734
+ :not(#\#):not(#\#) .config-editor__completion-key {
1735
+ overflow: hidden;
1736
+ color: var(--config-editor-completion-key);
1737
+ font: 12px var(--config-editor-mono);
1738
+ text-overflow: ellipsis;
1739
+ white-space: nowrap;
1740
+ }
1741
+
1742
+ :not(#\#):not(#\#) .config-editor__completion-match { color: var(--config-editor-accent-text); }
1743
+ :not(#\#):not(#\#) .config-editor__completion-active .config-editor__completion-match {
1744
+ color: var(--config-editor-completion-match-active);
1745
+ }
1746
+ :not(#\#):not(#\#) .config-editor__completion-active .config-editor__completion-type,
1747
+ :not(#\#):not(#\#) .config-editor__completion-active .config-editor__completion-detail,
1748
+ :not(#\#):not(#\#) .config-editor__completion-active .config-editor__completion-deprecated {
1749
+ color: var(--config-editor-completion-type-active);
1750
+ }
1751
+
1752
+ :not(#\#):not(#\#) .config-editor__completion--deprecated .config-editor__completion-key {
1753
+ text-decoration: line-through;
1754
+ /* Dimmer than a current key, still text (4.5:1). */
1755
+ color: color-mix(in srgb, var(--config-editor-completion-key) 80%, var(--config-editor-completion-type));
1756
+ }
1757
+
1758
+ :not(#\#):not(#\#) .config-editor__completion-deprecated {
1759
+ flex: 0 0 auto;
1760
+ color: var(--config-editor-completion-type);
1761
+ font: italic 10px ui-sans-serif, system-ui, sans-serif;
1762
+ }
1763
+
1764
+ :not(#\#):not(#\#) .config-editor__completion-type {
1765
+ flex: 0 0 auto;
1766
+ color: var(--config-editor-completion-type);
1767
+ font: 11px var(--config-editor-mono);
1768
+ }
1769
+
1770
+ :not(#\#):not(#\#) .config-editor__completion-detail {
1771
+ overflow: hidden;
1772
+ color: var(--config-editor-completion-detail);
1773
+ font: 11px/1.4 ui-sans-serif, system-ui, sans-serif;
1774
+ text-overflow: ellipsis;
1775
+ white-space: nowrap;
1776
+ }
1777
+
1778
+ .config-editor__status,
1779
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__status {
1780
+ min-height: 28px;
1781
+ display: flex;
1782
+ align-items: center;
1783
+ justify-content: space-between;
1784
+ gap: 12px;
1785
+ padding: 0 10px;
1786
+ border-top: 1px solid var(--config-editor-border);
1787
+ background: var(--config-editor-panel);
1788
+ color: var(--config-editor-raised-muted);
1789
+ font: 10px/1.4 ui-sans-serif, system-ui, sans-serif;
1790
+ }
1791
+
1792
+ :not(#\#):not(#\#) .config-editor__hint,
1793
+ :not(#\#):not(#\#) .config-editor__hint > span,
1794
+ :not(#\#):not(#\#) .config-editor__status-meta { display: flex; align-items: center; gap: 8px; }
1795
+ :not(#\#):not(#\#) .config-editor__hint kbd {
1796
+ padding: 1px 4px;
1797
+ border: 1px solid var(--config-editor-raised-border);
1798
+ border-radius: 3px;
1799
+ background: var(--config-editor-control-bg);
1800
+ color: var(--config-editor-control-text);
1801
+ font: 10px var(--config-editor-mono);
1802
+ }
1803
+
1804
+ :not(#\#):not(#\#) .config-editor__line-count { font-family: var(--config-editor-mono); }
1805
+ /* The message shrinks with an ellipsis; the line count always stays. */
1806
+ :not(#\#):not(#\#) .config-editor__status-meta { min-width: 0; flex: 0 1 auto; }
1807
+ :not(#\#):not(#\#) .config-editor__line-count { flex: none; }
1808
+ /* One row: the summary and the line count first, on the right; the hint
1809
+ on the left only when it fits whole beside them (else it wraps to a
1810
+ second row, cut off), never squeezed onto two lines. */
1811
+ @media (min-width: 541px) {
1812
+ .config-editor__status,
1813
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__status {
1814
+ height: 28px;
1815
+ overflow: hidden;
1816
+ flex-direction: row-reverse;
1817
+ flex-wrap: wrap;
1818
+ align-content: flex-start;
1819
+ }
1820
+ :not(#\#):not(#\#) .config-editor__status-meta { order: -1; }
1821
+ :not(#\#):not(#\#) .config-editor__hint,
1822
+ :not(#\#):not(#\#) .config-editor__status-meta { min-height: 27px; white-space: nowrap; }
1823
+ }
1824
+ @media (max-width: 540px) {
1825
+ :not(#\#):not(#\#) .config-editor__hint { display: none; }
1826
+ .config-editor__status,
1827
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__status { justify-content: flex-end; }
1828
+ }
1829
+
1830
+ :not(#\#):not(#\#) .config-editor__diagnostic-status {
1831
+ min-width: 0;
1832
+ max-width: min(60vw, 680px);
1833
+ overflow: hidden;
1834
+ text-overflow: ellipsis;
1835
+ white-space: nowrap;
1836
+ /* A button since it jumps to the first error; reset UA chrome so it reads
1837
+ as status text, with a pointer affordance only when errors exist. */
1838
+ padding: 0;
1839
+ border: 0;
1840
+ background: transparent;
1841
+ color: inherit;
1842
+ font: inherit;
1843
+ text-align: left;
1844
+ }
1845
+
1846
+ :not(#\#):not(#\#) .config-editor__diagnostic-status:not(:disabled) { cursor: pointer; }
1847
+
1848
+ :not(#\#):not(#\#) .config-editor__diagnostic-status:not(:disabled):hover { text-decoration: underline; }
1849
+
1850
+ :not(#\#):not(#\#) .config-editor__diagnostic-status:disabled { cursor: default; }
1851
+
1852
+ :not(#\#):not(#\#) .config-editor__diagnostic-status:focus-visible {
1853
+ outline: 1px solid var(--config-editor-focus-ring);
1854
+ outline-offset: 1px;
1855
+ }
1856
+
1857
+ /* Each count in its severity's color; the detail after them stays muted. */
1858
+ :not(#\#):not(#\#) .config-editor__diagnostic-count-error { color: var(--config-editor-status-error); }
1859
+ :not(#\#):not(#\#) .config-editor__diagnostic-count-warning { color: var(--config-editor-status-warning); }
1860
+ :not(#\#):not(#\#) .config-editor__diagnostic-count-info { color: var(--config-editor-status-info); }
1861
+ :not(#\#):not(#\#) .config-editor__diagnostic-count-hint { color: var(--config-editor-status-hint); }
1862
+
1863
+ /* On a phone (no hint) the summary takes the row's free width, left of
1864
+ the line count: one row while it fits, else wrapped rather than cut
1865
+ (an unplaced problem's message), never with an empty half. */
1866
+ @media (max-width: 540px) {
1867
+ :not(#\#):not(#\#) .config-editor__status-meta { flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 0 8px; }
1868
+ :not(#\#):not(#\#) .config-editor__diagnostic-status { flex: 1 1 auto; max-width: none; white-space: normal; }
1869
+ }
1870
+
1871
+ /* "Tab moves focus" while Ctrl+M is on; clicking it turns it off. */
1872
+ :not(#\#):not(#\#) .config-editor__tab-focus-status {
1873
+ flex: none;
1874
+ padding: 0 4px;
1875
+ border: 1px solid var(--config-editor-raised-border);
1876
+ border-radius: 3px;
1877
+ background: var(--config-editor-control-bg);
1878
+ color: var(--config-editor-control-text);
1879
+ cursor: pointer;
1880
+ font: inherit;
1881
+ }
1882
+
1883
+ :not(#\#):not(#\#) .config-editor__tab-focus-status:focus-visible {
1884
+ outline: 1px solid var(--config-editor-focus-ring);
1885
+ outline-offset: 1px;
1886
+ }
1887
+
1888
+ /* Read by screen readers only: the caret's note, announcements. */
1889
+ :not(#\#):not(#\#) .config-editor__sr-only {
1890
+ position: absolute;
1891
+ width: 1px;
1892
+ height: 1px;
1893
+ margin: -1px;
1894
+ padding: 0;
1895
+ overflow: hidden;
1896
+ clip: rect(0 0 0 0);
1897
+ clip-path: inset(50%);
1898
+ border: 0;
1899
+ white-space: nowrap;
1900
+ }
1901
+
1902
+ /* "2 changes": status text that jumps to the next change. */
1903
+ :not(#\#):not(#\#) .config-editor__change-status {
1904
+ flex: none;
1905
+ padding: 0;
1906
+ border: 0;
1907
+ background: transparent;
1908
+ color: var(--config-editor-status-changes);
1909
+ cursor: pointer;
1910
+ font: inherit;
1911
+ white-space: nowrap;
1912
+ }
1913
+
1914
+ /* On a phone a long text wraps on a row of its own, not squeezed beside the others. */
1915
+ @media (max-width: 540px) {
1916
+ :not(#\#):not(#\#) .config-editor__change-status,
1917
+ :not(#\#):not(#\#) .config-editor__line-count { max-width: 100%; white-space: normal; text-align: right; }
1918
+ }
1919
+
1920
+ :not(#\#):not(#\#) .config-editor__change-status:hover { text-decoration: underline; }
1921
+
1922
+ :not(#\#):not(#\#) .config-editor__change-status:focus-visible {
1923
+ outline: 1px solid var(--config-editor-focus-ring);
1924
+ outline-offset: 1px;
1925
+ }
1926
+
1927
+ :where(.config-editor[data-theme="vscode-light"], .config-editor-documents[data-theme="vscode-light"], .config-editor-theme[data-theme="vscode-light"]) {
1928
+ --config-editor-bg: #ffffff;
1929
+ --config-editor-status-error: #c72e0f;
1930
+ --config-editor-status-warning: #8a6100;
1931
+ --config-editor-status-info: #0969da;
1932
+ --config-editor-status-hint: #59636e;
1933
+ --config-editor-panel: #f3f3f3;
1934
+ --config-editor-border: #dedede;
1935
+ --config-editor-text: #333333;
1936
+ --config-editor-muted: #777777;
1937
+ --config-editor-line-number: #737373;
1938
+ --config-editor-accent: #007acc;
1939
+ --config-editor-error: #d32f2f;
1940
+ --config-editor-toolbar-text: #333333;
1941
+ --config-editor-line-active: #222222;
1942
+ --config-editor-added: #16803c;
1943
+ --config-editor-modified: #006ab1;
1944
+ --config-editor-raised: #ffffff;
1945
+ --config-editor-raised-border: #cccccc;
1946
+ --config-editor-raised-text: #333333;
1947
+ --config-editor-raised-muted: #666666;
1948
+ --config-editor-raised-hover: #e8e8e8;
1949
+ --config-editor-control-bg: #f8f8f8;
1950
+ --config-editor-control-text: #333333;
1951
+ --config-editor-completion-active: #cce8ff;
1952
+ --config-editor-comment: #007600;
1953
+ --config-editor-key: #0451a5;
1954
+ --config-editor-punctuation: #333333;
1955
+ --config-editor-string: #a31515;
1956
+ --config-editor-literal: #08734c;
1957
+ --config-editor-value: #216d84;
1958
+ --config-editor-reference: #795e26;
1959
+ --config-editor-interpolation: #0000ff;
1960
+ --config-editor-active-line: rgb(0 0 0 / 5%);
1961
+ --config-editor-error-line: rgb(211 47 47 / 6%);
1962
+ --config-editor-added-line: rgb(22 128 60 / 9%);
1963
+ --config-editor-modified-line: rgb(0 106 177 / 9%);
1964
+ --config-editor-selection: rgb(173 214 255 / 40%);
1965
+ --config-editor-caret: #333333;
1966
+ }
1967
+
1968
+ :where(.config-editor[data-theme="obsidian"], .config-editor-documents[data-theme="obsidian"], .config-editor-theme[data-theme="obsidian"]) {
1969
+ --config-editor-bg: #090b0c;
1970
+ --config-editor-panel: #0c0f10;
1971
+ --config-editor-border: #24292c;
1972
+ --config-editor-text: #cbd2d8;
1973
+ --config-editor-muted: #687178;
1974
+ --config-editor-accent: #69baff;
1975
+ --config-editor-error: #ff6868;
1976
+ --config-editor-toolbar-text: #d0d5da;
1977
+ --config-editor-line-active: #f0f3f5;
1978
+ --config-editor-added: #acd99d;
1979
+ --config-editor-modified: #81c8ff;
1980
+ --config-editor-raised: #101415;
1981
+ --config-editor-raised-border: #30383c;
1982
+ --config-editor-raised-text: #d5dce1;
1983
+ --config-editor-raised-muted: #9aa2a8;
1984
+ --config-editor-raised-hover: #20282c;
1985
+ --config-editor-control-bg: #171d20;
1986
+ --config-editor-control-text: #d5dce1;
1987
+ --config-editor-completion-active: #173a50;
1988
+ --config-editor-comment: #858c92;
1989
+ --config-editor-key: #83c8ff;
1990
+ --config-editor-punctuation: #cbd2d8;
1991
+ --config-editor-string: #b4e1a5;
1992
+ --config-editor-literal: #b4e1a5;
1993
+ --config-editor-value: #b4e1a5;
1994
+ --config-editor-reference: #7fd1c3;
1995
+ --config-editor-interpolation: #d0a8ff;
1996
+ --config-editor-active-line: rgb(255 255 255 / 4%);
1997
+ --config-editor-error-line: rgb(255 104 104 / 7%);
1998
+ --config-editor-added-line: rgb(172 217 157 / 8%);
1999
+ --config-editor-modified-line: rgb(129 200 255 / 8%);
2000
+ --config-editor-selection: rgb(78 124 157 / 40%);
2001
+ --config-editor-caret: #e6edf2;
2002
+ }
2003
+
2004
+ :where(.config-editor[data-theme="obsidian-light"], .config-editor-documents[data-theme="obsidian-light"], .config-editor-theme[data-theme="obsidian-light"]) {
2005
+ --config-editor-bg: #f8faf8;
2006
+ --config-editor-status-error: #b42318;
2007
+ --config-editor-status-warning: #8a6100;
2008
+ --config-editor-status-info: #0969da;
2009
+ --config-editor-status-hint: #59636e;
2010
+ --config-editor-status-changes: #1d6fa5;
2011
+ --config-editor-panel: #f0f3f1;
2012
+ --config-editor-border: #d7dfda;
2013
+ --config-editor-text: #35413a;
2014
+ --config-editor-muted: #7b8780;
2015
+ --config-editor-line-number: #69736d;
2016
+ --config-editor-accent: #2780b8;
2017
+ --config-editor-error: #c43d3d;
2018
+ --config-editor-toolbar-text: #35413a;
2019
+ --config-editor-line-active: #26342c;
2020
+ /* Line numbers are text: the modified color, darkened to 4.5:1. */
2021
+ --config-editor-line-number-modified: color-mix(in srgb, var(--config-editor-modified) 60%, var(--config-editor-line-active));
2022
+ --config-editor-added: #347b42;
2023
+ --config-editor-modified: #267eb4;
2024
+ --config-editor-raised: #ffffff;
2025
+ --config-editor-raised-border: #d5ddd8;
2026
+ --config-editor-raised-text: #35413a;
2027
+ --config-editor-raised-muted: #5f6b63;
2028
+ --config-editor-raised-hover: #e7ece9;
2029
+ --config-editor-control-bg: #f5f8f6;
2030
+ --config-editor-control-text: #35413a;
2031
+ --config-editor-completion-active: #dceef8;
2032
+ --config-editor-comment: #5c6860;
2033
+ --config-editor-key: #236a96;
2034
+ --config-editor-punctuation: #526058;
2035
+ --config-editor-string: #406f40;
2036
+ --config-editor-literal: #30723d;
2037
+ --config-editor-value: #406f40;
2038
+ --config-editor-reference: #1d6b67;
2039
+ --config-editor-interpolation: #7347a0;
2040
+ --config-editor-active-line: rgb(20 50 30 / 5%);
2041
+ --config-editor-error-line: rgb(196 61 61 / 6%);
2042
+ --config-editor-added-line: rgb(52 123 66 / 8%);
2043
+ --config-editor-modified-line: rgb(38 126 180 / 8%);
2044
+ --config-editor-selection: rgb(130 181 215 / 40%);
2045
+ --config-editor-caret: #35413a;
2046
+ }
2047
+
2048
+ /* Tokens that VS Code Dark tunes by hand; the other families derive them
2049
+ from their palette, so every data-color-theme on top of them follows. */
2050
+ .config-editor[data-theme="vscode-light"],
2051
+ .config-editor-documents[data-theme="vscode-light"], .config-editor-theme[data-theme="vscode-light"],
2052
+ .config-editor[data-theme="obsidian"],
2053
+ .config-editor-documents[data-theme="obsidian"], .config-editor-theme[data-theme="obsidian"],
2054
+ :where(.config-editor[data-theme="obsidian-light"], .config-editor-documents[data-theme="obsidian-light"], .config-editor-theme[data-theme="obsidian-light"]) {
2055
+ --config-editor-diff-removed-bg: color-mix(in srgb, var(--config-editor-error) 14%, transparent);
2056
+ --config-editor-diff-removed-text: var(--config-editor-text);
2057
+ --config-editor-diff-current-bg: color-mix(in srgb, var(--config-editor-modified) 12%, transparent);
2058
+ --config-editor-diff-current-text: var(--config-editor-text);
2059
+ --config-editor-tooltip-text: var(--config-editor-raised-text);
2060
+ --config-editor-completion-key: var(--config-editor-raised-text);
2061
+ --config-editor-completion-type: var(--config-editor-raised-muted);
2062
+ --config-editor-completion-detail: var(--config-editor-raised-muted);
2063
+ --config-editor-completion-icon-text: var(--config-editor-raised-muted);
2064
+ --config-editor-completion-icon-border: color-mix(in srgb, var(--config-editor-raised-muted) 55%, transparent);
2065
+ --config-editor-diff-peek-divider: var(--config-editor-raised-border);
2066
+ /* The accent: VS Code Dark's light blue fades on a light background. */
2067
+ --config-editor-focus-ring: var(--config-editor-accent);
2068
+ --config-editor-diff-focus-ring: var(--config-editor-focus-ring);
2069
+ /* The match fills are per theme, at the end of themes.css. */
2070
+ --config-editor-search-match-current-border: var(--config-editor-accent);
2071
+ --config-editor-input-bg: var(--config-editor-bg);
2072
+ --config-editor-input-border: var(--config-editor-raised-border);
2073
+ --config-editor-toggle-active: color-mix(in srgb, var(--config-editor-accent) 30%, transparent);
2074
+ }
2075
+
2076
+ /* The peek's single-side dividers also colour their undrawn sides in these
2077
+ families (invisible; kept so computed styles stay identical). */
2078
+ :not(#\#):not(#\#) .config-editor[data-theme="vscode-light"] .config-editor__diff-peek-header,
2079
+ :not(#\#):not(#\#) .config-editor[data-theme="obsidian"] .config-editor__diff-peek-header,
2080
+ :not(#\#):not(#\#) .config-editor[data-theme="obsidian-light"] .config-editor__diff-peek-header,
2081
+ :not(#\#):not(#\#) .config-editor[data-theme="vscode-light"] .config-editor__diff-peek-side + .config-editor__diff-peek-side,
2082
+ :not(#\#):not(#\#) .config-editor[data-theme="obsidian"] .config-editor__diff-peek-side + .config-editor__diff-peek-side,
2083
+ :not(#\#):not(#\#) .config-editor[data-theme="obsidian-light"] .config-editor__diff-peek-side + .config-editor__diff-peek-side {
2084
+ border-color: var(--config-editor-raised-border);
2085
+ }
2086
+
2087
+ :not(#\#):not(#\#) .config-editor__code-line-active.config-editor__code-line-added {
2088
+ background:
2089
+ linear-gradient(var(--config-editor-active-line), var(--config-editor-active-line)),
2090
+ var(--config-editor-added-line);
2091
+ }
2092
+
2093
+ :not(#\#):not(#\#) .config-editor__code-line-active.config-editor__code-line-modified {
2094
+ background:
2095
+ linear-gradient(var(--config-editor-active-line), var(--config-editor-active-line)),
2096
+ var(--config-editor-modified-line);
2097
+ }
2098
+
2099
+ :not(#\#):not(#\#) .config-editor__code-line-active.config-editor__code-line-error {
2100
+ background:
2101
+ linear-gradient(var(--config-editor-active-line), var(--config-editor-active-line)),
2102
+ var(--config-editor-error-line);
2103
+ }
2104
+
2105
+ @media (max-width: 600px) {
2106
+ .config-editor__toolbar,
2107
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__toolbar { padding: 0 10px; }
2108
+ /* The schema state as its check mark alone (its words still named). */
2109
+ .config-editor__schema-state,
2110
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__schema-state { font-size: 0; }
2111
+ .config-editor__schema-check,
2112
+ :not(#\#):not(#\#) .config-editor__frame .config-editor__schema-check { font-size: 12px; }
2113
+ :not(#\#):not(#\#) .config-editor__status-meta { gap: 5px; }
2114
+ }
2115
+
2116
+ /* Every small control is at least 24×24px, by its own box or through a
2117
+ larger invisible hit area (WCAG 2.5.8, for a mouse as for a finger): the
2118
+ change bars, the chevrons, the chip and the find buttons. A bar's area
2119
+ is the whole marker column (it ends 3px before the column's edge), so it
2120
+ never reaches the number or the chevrons; the chevron's is its column. */
2121
+ :not(#\#):not(#\#) .config-editor__diff-marker-added::after,
2122
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified::after {
2123
+ top: -1px;
2124
+ right: -3px;
2125
+ bottom: -1px;
2126
+ left: calc(6px - var(--config-editor-marker-column));
2127
+ }
2128
+ :not(#\#):not(#\#) .config-editor__diff-deleted::after {
2129
+ position: absolute;
2130
+ z-index: 1;
2131
+ top: -6px;
2132
+ left: calc(12px - var(--config-editor-marker-column));
2133
+ width: var(--config-editor-marker-column);
2134
+ height: 24px;
2135
+ content: "";
2136
+ }
2137
+ :not(#\#):not(#\#) .config-editor__find-toggle,
2138
+ :not(#\#):not(#\#) .config-editor__find-button {
2139
+ min-width: 24px;
2140
+ height: 24px;
2141
+ }
2142
+ :not(#\#):not(#\#) .config-editor__fold-chip { min-width: 24px; }
2143
+ /* The chip is a line tall; its hit area is 24px. */
2144
+ :not(#\#):not(#\#) .config-editor__fold-chip::before {
2145
+ position: absolute;
2146
+ inset: calc((1lh - max(24px, 1lh)) / 2) 0;
2147
+ content: "";
2148
+ }
2149
+
2150
+ /* The footer's and the notices' buttons too (their rows have the room). */
2151
+ :not(#\#):not(#\#) .config-editor__diagnostic-status,
2152
+ :not(#\#):not(#\#) .config-editor__change-status,
2153
+ :not(#\#):not(#\#) .config-editor__tab-focus-status,
2154
+ :not(#\#):not(#\#) .config-editor__notice-button,
2155
+ :not(#\#):not(#\#) .config-editor__action-button {
2156
+ min-height: 24px;
2157
+ }
2158
+
2159
+ /* Forced colors (Windows high contrast) drop backgrounds and shadows:
2160
+ whatever shows only through them (the gutter's problem dots, change bars,
2161
+ lock and key icons, find matches, the active suggestion, toggles that
2162
+ are on, the current problem in the tip, a secret's chip, a fold's
2163
+ problem mark) is drawn in system colors instead. */
2164
+ @media (forced-colors: active) {
2165
+ :not(#\#):not(#\#) .config-editor__find-button[aria-disabled="true"] { color: GrayText; }
2166
+ :not(#\#):not(#\#) .config-editor__line-number-error::before,
2167
+ :not(#\#):not(#\#) .config-editor__diff-marker-added::before,
2168
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified::before,
2169
+ :not(#\#):not(#\#) .config-editor__diff-deleted::before,
2170
+ :not(#\#):not(#\#) .config-editor__lock-marker,
2171
+ :not(#\#):not(#\#) .config-editor__secret-marker,
2172
+ :not(#\#):not(#\#) .config-editor__search-match,
2173
+ :not(#\#):not(#\#) .config-editor__highlight .config-editor__secret,
2174
+ :not(#\#):not(#\#) .config-editor__sticky .config-editor__secret,
2175
+ :not(#\#):not(#\#) .config-editor__completion-active,
2176
+ :not(#\#):not(#\#) .config-editor__find-toggle-on,
2177
+ :not(#\#):not(#\#) .config-editor__fold-chip--error,
2178
+ :not(#\#):not(#\#) .config-editor__fold-chip--warning,
2179
+ :not(#\#):not(#\#) .config-editor__fold-chip--info,
2180
+ :not(#\#):not(#\#) .config-editor__fold-chip--hint {
2181
+ forced-color-adjust: none;
2182
+ }
2183
+ :not(#\#):not(#\#) .config-editor__line-number-error::before { background: CanvasText; }
2184
+ :not(#\#):not(#\#) .config-editor__diff-marker-added::before,
2185
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified::before { background: Highlight; }
2186
+ :not(#\#):not(#\#) .config-editor__diff-deleted::before { background: CanvasText; }
2187
+ :not(#\#):not(#\#) .config-editor__lock-marker,
2188
+ :not(#\#):not(#\#) .config-editor__secret-marker { color: CanvasText; }
2189
+ /* Matches outlined (the text stays readable over them), the current one
2190
+ filled. */
2191
+ :not(#\#):not(#\#) .config-editor__search-match {
2192
+ background: transparent;
2193
+ box-shadow: inset 0 0 0 1px Highlight;
2194
+ }
2195
+ :not(#\#):not(#\#) .config-editor__search-match-current {
2196
+ background: transparent;
2197
+ box-shadow: inset 0 0 0 2px Highlight;
2198
+ }
2199
+ /* Its text too: the theme's string colour stays otherwise (forced
2200
+ colours do not reach inside `forced-color-adjust: none`). */
2201
+ :not(#\#):not(#\#) .config-editor__highlight .config-editor__secret,
2202
+ .config-editor__highlight .config-editor__secret *,
2203
+ :not(#\#):not(#\#) .config-editor__sticky .config-editor__secret,
2204
+ .config-editor__sticky .config-editor__secret * {
2205
+ background: Canvas;
2206
+ color: CanvasText;
2207
+ }
2208
+ :not(#\#):not(#\#) .config-editor__highlight .config-editor__secret,
2209
+ :not(#\#):not(#\#) .config-editor__sticky .config-editor__secret {
2210
+ box-shadow: inset 0 0 0 1px CanvasText;
2211
+ }
2212
+ :not(#\#):not(#\#) .config-editor__completion-active,
2213
+ :not(#\#):not(#\#) .config-editor__find-toggle-on,
2214
+ :not(#\#):not(#\#) .config-editor__find-toggle-on:hover {
2215
+ border-color: HighlightText;
2216
+ background: Highlight;
2217
+ color: HighlightText;
2218
+ }
2219
+ /* Every part of the selected suggestion, over the rules that color
2220
+ them there (its type kept its grey on Highlight). */
2221
+ .config-editor__completion-active *,
2222
+ :not(#\#):not(#\#) .config-editor__completion-active .config-editor__completion-match,
2223
+ :not(#\#):not(#\#) .config-editor__completion-active .config-editor__completion-type,
2224
+ :not(#\#):not(#\#) .config-editor__completion-active .config-editor__completion-deprecated,
2225
+ :not(#\#):not(#\#) .config-editor__completion-active .config-editor__completion-key,
2226
+ :not(#\#):not(#\#) .config-editor__completion-active .config-editor__completion-detail,
2227
+ :not(#\#):not(#\#) .config-editor__completion-active .config-editor__completion-icon {
2228
+ border-color: HighlightText;
2229
+ color: HighlightText;
2230
+ }
2231
+ :not(#\#):not(#\#) .config-editor__problem-tip-entry--current { outline: 1px solid Highlight; }
2232
+ :not(#\#):not(#\#) .config-editor__fold-chip--error,
2233
+ :not(#\#):not(#\#) .config-editor__fold-chip--warning,
2234
+ :not(#\#):not(#\#) .config-editor__fold-chip--info,
2235
+ :not(#\#):not(#\#) .config-editor__fold-chip--hint {
2236
+ background: ButtonFace;
2237
+ color: ButtonText;
2238
+ box-shadow: inset 0 -2px ButtonText;
2239
+ }
2240
+ /* The selection tinted, not the system Highlight: the highlighted code is
2241
+ painted over the text area, in CanvasText (2.07:1 over Highlight in the
2242
+ light scheme, 2.62:1 in the dark one), so the fill
2243
+ stays near Canvas, which that text always reads on. */
2244
+ :not(#\#):not(#\#) .config-editor__input {
2245
+ forced-color-adjust: none;
2246
+ caret-color: CanvasText;
2247
+ }
2248
+ :not(#\#):not(#\#) .config-editor__input::selection {
2249
+ background: color-mix(in srgb, Highlight 40%, Canvas);
2250
+ color: transparent;
2251
+ }
2252
+ /* The find field's focus: its border is CanvasText either way, so a ring
2253
+ shows it. */
2254
+ :not(#\#):not(#\#) .config-editor__find-field:focus-within {
2255
+ outline: 2px solid Highlight;
2256
+ outline-offset: 1px;
2257
+ }
2258
+ /* The line under the sticky lines (a shadow, which forced colors drop),
2259
+ drawn in the text's system color, as VS Code's high contrast themes
2260
+ draw it. */
2261
+ :not(#\#):not(#\#) .config-editor__sticky-line:last-child::after,
2262
+ :not(#\#):not(#\#) .config-editor__sticky-number:last-child::after {
2263
+ position: absolute;
2264
+ right: 0;
2265
+ bottom: 0;
2266
+ left: 0;
2267
+ height: 1px;
2268
+ background: CanvasText;
2269
+ forced-color-adjust: none;
2270
+ content: "";
2271
+ }
2272
+ /* The caret's line, outlined. */
2273
+ :not(#\#):not(#\#) .config-editor__code-line-active { outline: 1px solid GrayText; outline-offset: -1px; }
2274
+ /* One color for every severity: each keeps its own line style (an
2275
+ error wavy, a warning dashed, an info double, a hint dotted), in the
2276
+ underlines and the tip's entries alike. */
2277
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-warning { text-decoration-style: dashed; }
2278
+ :not(#\#):not(#\#) .config-editor__diagnostic-marker-info { text-decoration-style: double; }
2279
+ :not(#\#):not(#\#) .config-editor__problem-tip-entry--warning { border-left-style: dashed; }
2280
+ :not(#\#):not(#\#) .config-editor__problem-tip-entry--info { border-left-style: double; }
2281
+ :not(#\#):not(#\#) .config-editor__problem-tip-entry--hint { border-left-style: dotted; }
2282
+ }
2283
+
2284
+ /* No sliding or fading for those who ask for less motion. */
2285
+ @media (prefers-reduced-motion: reduce) {
2286
+ :not(#\#):not(#\#) .config-editor__fold-toggle,
2287
+ :not(#\#):not(#\#) .config-editor__find-expand,
2288
+ :not(#\#):not(#\#) .config-editor__diff-marker-added::before,
2289
+ :not(#\#):not(#\#) .config-editor__diff-marker-modified::before,
2290
+ :not(#\#):not(#\#) .config-editor__diff-deleted::before {
2291
+ transition: none;
2292
+ }
2293
+ }
2294
+ /* VS Code Dark is the default palette (`base.css`); its accent, as text,
2295
+ needs more of the text color to read on popups (4.5:1). */
2296
+ :where(.config-editor[data-color-theme="vscode-dark"], .config-editor-documents[data-color-theme="vscode-dark"], .config-editor-theme[data-color-theme="vscode-dark"]) {
2297
+ --config-editor-accent-text: color-mix(in srgb, var(--config-editor-accent) 40%, var(--config-editor-text));
2298
+ }
2299
+
2300
+ :where(.config-editor[data-color-theme="dracula"], .config-editor-documents[data-color-theme="dracula"], .config-editor-theme[data-color-theme="dracula"]) {
2301
+ --config-editor-bg: #282a36;
2302
+ --config-editor-panel: #21222c;
2303
+ --config-editor-border: #44475a;
2304
+ --config-editor-text: #f8f8f2;
2305
+ --config-editor-muted: #8b91a8;
2306
+ --config-editor-line-number: #8d93aa;
2307
+ --config-editor-accent: #bd93f9;
2308
+ --config-editor-error: #ff5555;
2309
+ --config-editor-toolbar-text: #f8f8f2;
2310
+ --config-editor-line-active: #f8f8f2;
2311
+ --config-editor-added: #50fa7b;
2312
+ --config-editor-modified: #8be9fd;
2313
+ --config-editor-raised: #343746;
2314
+ --config-editor-raised-border: #50546a;
2315
+ --config-editor-raised-text: #f8f8f2;
2316
+ --config-editor-raised-muted: #b6bbd1;
2317
+ --config-editor-raised-hover: #44475a;
2318
+ --config-editor-control-bg: #343746;
2319
+ --config-editor-control-text: #f8f8f2;
2320
+ --config-editor-completion-active: #44475a;
2321
+ --config-editor-comment: #acb0bf;
2322
+ --config-editor-key: #8be9fd;
2323
+ --config-editor-punctuation: #f8f8f2;
2324
+ --config-editor-string: #f1fa8c;
2325
+ --config-editor-literal: #c49ffa;
2326
+ --config-editor-value: #f1fa8c;
2327
+ --config-editor-reference: #ffb86c;
2328
+ --config-editor-interpolation: #ff92d0;
2329
+ --config-editor-active-line: rgb(255 255 255 / 5%);
2330
+ --config-editor-error-line: rgb(255 85 85 / 8%);
2331
+ --config-editor-added-line: rgb(80 250 123 / 8%);
2332
+ --config-editor-modified-line: rgb(139 233 253 / 8%);
2333
+ --config-editor-selection: rgb(98 114 164 / 40%);
2334
+ --config-editor-caret: #f8f8f2;
2335
+ }
2336
+
2337
+ :where(.config-editor[data-color-theme="nord"], .config-editor-documents[data-color-theme="nord"], .config-editor-theme[data-color-theme="nord"]) {
2338
+ /* Line numbers are text: the error color, lightened to 4.5:1. */
2339
+ --config-editor-line-number-error: color-mix(in srgb, var(--config-editor-error) 60%, var(--config-editor-line-active));
2340
+ /* The footer's counts, readable (4.5:1) on its panel. */
2341
+ --config-editor-status-error: #f4a3a9;
2342
+ --config-editor-status-warning: #ebcb8b;
2343
+ --config-editor-status-info: #88c0d0;
2344
+ --config-editor-status-hint: #b0bacb;
2345
+ --config-editor-bg: #2e3440;
2346
+ --config-editor-panel: #3b4252;
2347
+ --config-editor-border: #434c5e;
2348
+ --config-editor-text: #d8dee9;
2349
+ --config-editor-muted: #8792aa;
2350
+ --config-editor-line-number: #959fb4;
2351
+ --config-editor-accent: #88c0d0;
2352
+ --config-editor-error: #bf616a;
2353
+ --config-editor-toolbar-text: #e5e9f0;
2354
+ --config-editor-line-active: #eceff4;
2355
+ --config-editor-added: #a3be8c;
2356
+ --config-editor-modified: #88c0d0;
2357
+ --config-editor-raised: #3b4252;
2358
+ --config-editor-raised-border: #4c566a;
2359
+ --config-editor-raised-text: #e5e9f0;
2360
+ --config-editor-raised-muted: #b5bece;
2361
+ --config-editor-raised-hover: #434c5e;
2362
+ --config-editor-control-bg: #3b4252;
2363
+ --config-editor-control-text: #e5e9f0;
2364
+ --config-editor-completion-active: #434c5e;
2365
+ --config-editor-comment: #aeb9ca;
2366
+ --config-editor-key: #88c0d0;
2367
+ --config-editor-punctuation: #d8dee9;
2368
+ --config-editor-string: #a6c08f;
2369
+ --config-editor-literal: #ccafc7;
2370
+ --config-editor-value: #a6c08f;
2371
+ --config-editor-reference: #eab08f;
2372
+ --config-editor-interpolation: #b9c7dc;
2373
+ --config-editor-active-line: rgb(255 255 255 / 5%);
2374
+ --config-editor-error-line: rgb(191 97 106 / 8%);
2375
+ --config-editor-added-line: rgb(163 190 140 / 8%);
2376
+ --config-editor-modified-line: rgb(136 192 208 / 8%);
2377
+ --config-editor-selection: rgb(94 129 172 / 40%);
2378
+ --config-editor-caret: #eceff4;
2379
+ }
2380
+
2381
+ :where(.config-editor[data-color-theme="github-light"], .config-editor-documents[data-color-theme="github-light"], .config-editor-theme[data-color-theme="github-light"]) {
2382
+ --config-editor-status-error: #cf222e;
2383
+ --config-editor-status-warning: #8a6100;
2384
+ --config-editor-status-info: #0969da;
2385
+ --config-editor-status-hint: #59636e;
2386
+ --config-editor-bg: #ffffff;
2387
+ --config-editor-panel: #f6f8fa;
2388
+ --config-editor-border: #d0d7de;
2389
+ --config-editor-text: #1f2328;
2390
+ --config-editor-muted: #59636e;
2391
+ --config-editor-line-number: #59636e;
2392
+ --config-editor-accent: #0969da;
2393
+ --config-editor-error: #cf222e;
2394
+ --config-editor-toolbar-text: #1f2328;
2395
+ --config-editor-line-active: #1f2328;
2396
+ --config-editor-added: #1a7f37;
2397
+ --config-editor-modified: #0969da;
2398
+ --config-editor-raised: #ffffff;
2399
+ --config-editor-raised-border: #d0d7de;
2400
+ --config-editor-raised-text: #1f2328;
2401
+ --config-editor-raised-muted: #59636e;
2402
+ --config-editor-raised-hover: #eaeef2;
2403
+ --config-editor-control-bg: #f6f8fa;
2404
+ --config-editor-control-text: #1f2328;
2405
+ --config-editor-completion-active: #ddf4ff;
2406
+ --config-editor-comment: #606870;
2407
+ --config-editor-key: #0550ae;
2408
+ --config-editor-punctuation: #57606a;
2409
+ --config-editor-string: #0a3069;
2410
+ --config-editor-literal: #0550ae;
2411
+ --config-editor-value: #116329;
2412
+ --config-editor-reference: #953800;
2413
+ --config-editor-interpolation: #6f3fcc;
2414
+ --config-editor-active-line: rgb(31 35 40 / 5%);
2415
+ --config-editor-error-line: rgb(207 34 46 / 6%);
2416
+ --config-editor-added-line: rgb(26 127 55 / 8%);
2417
+ --config-editor-modified-line: rgb(9 105 218 / 8%);
2418
+ --config-editor-selection: rgb(84 174 255 / 35%);
2419
+ --config-editor-caret: #1f2328;
2420
+ }
2421
+
2422
+ :where(.config-editor[data-color-theme="solarized-light"], .config-editor-documents[data-color-theme="solarized-light"], .config-editor-theme[data-color-theme="solarized-light"]) {
2423
+ /* Line numbers are text: the markers' colors, darkened to 4.5:1. */
2424
+ --config-editor-line-number-added: color-mix(in srgb, var(--config-editor-added) 60%, var(--config-editor-line-active));
2425
+ --config-editor-line-number-modified: color-mix(in srgb, var(--config-editor-modified) 60%, var(--config-editor-line-active));
2426
+ --config-editor-line-number-error: color-mix(in srgb, var(--config-editor-error) 60%, var(--config-editor-line-active));
2427
+ --config-editor-status-error: #b8281f;
2428
+ --config-editor-status-warning: #8a6100;
2429
+ --config-editor-status-info: #0860c9;
2430
+ --config-editor-status-hint: #59636e;
2431
+ --config-editor-status-changes: #1a6aa0;
2432
+ --config-editor-bg: #fdf6e3;
2433
+ --config-editor-panel: #eee8d5;
2434
+ --config-editor-border: #d6ceb9;
2435
+ --config-editor-text: #51666c;
2436
+ --config-editor-muted: #657b83;
2437
+ --config-editor-line-number: #5e727a;
2438
+ --config-editor-accent: #268bd2;
2439
+ --config-editor-error: #dc322f;
2440
+ --config-editor-toolbar-text: #536870;
2441
+ --config-editor-line-active: #073642;
2442
+ --config-editor-added: #859900;
2443
+ --config-editor-modified: #268bd2;
2444
+ --config-editor-raised: #fdf6e3;
2445
+ --config-editor-raised-border: #d6ceb9;
2446
+ --config-editor-raised-text: #51656d;
2447
+ --config-editor-raised-muted: #4f646b;
2448
+ --config-editor-raised-hover: #e5dfcc;
2449
+ --config-editor-control-bg: #f7f0dc;
2450
+ --config-editor-control-text: #4a5f66;
2451
+ --config-editor-completion-active: #d8e6e8;
2452
+ --config-editor-comment: #51666c;
2453
+ --config-editor-key: #1a6a95;
2454
+ --config-editor-punctuation: #51666c;
2455
+ --config-editor-string: #586b00;
2456
+ --config-editor-literal: #b52a6d;
2457
+ --config-editor-value: #137068;
2458
+ --config-editor-reference: #9b3c0c;
2459
+ --config-editor-interpolation: #5458ad;
2460
+ --config-editor-active-line: rgb(7 54 66 / 5%);
2461
+ --config-editor-error-line: rgb(220 50 47 / 6%);
2462
+ --config-editor-added-line: rgb(133 153 0 / 8%);
2463
+ --config-editor-modified-line: rgb(38 139 210 / 8%);
2464
+ --config-editor-selection: rgb(38 139 210 / 24%);
2465
+ --config-editor-caret: #586e75;
2466
+ /* Text, 4.5:1: read-only values on every line tint, tab names, links. */
2467
+ --config-editor-locked: #53676d;
2468
+ --config-editor-tab-text: #566b71;
2469
+ --config-editor-accent-text: #1c669a;
2470
+ /* The footer's schema check mark, 3:1 on its panel. */
2471
+ --config-editor-schema-check: #758600;
2472
+ }
2473
+
2474
+ :where(.config-editor[data-color-theme="atom-one-dark"], .config-editor-documents[data-color-theme="atom-one-dark"], .config-editor-theme[data-color-theme="atom-one-dark"]) {
2475
+ /* Line numbers are text: the error color, lightened to 4.5:1. */
2476
+ --config-editor-line-number-error: color-mix(in srgb, var(--config-editor-error) 60%, var(--config-editor-line-active));
2477
+ --config-editor-bg: #282c34;
2478
+ --config-editor-panel: #21252b;
2479
+ --config-editor-border: #3e4451;
2480
+ --config-editor-text: #abb2bf;
2481
+ --config-editor-muted: #737984;
2482
+ --config-editor-line-number: #90959e;
2483
+ --config-editor-accent: #61afef;
2484
+ --config-editor-error: #e06c75;
2485
+ --config-editor-toolbar-text: #abb2bf;
2486
+ --config-editor-line-active: #d7dae0;
2487
+ --config-editor-added: #98c379;
2488
+ --config-editor-modified: #61afef;
2489
+ --config-editor-raised: #21252b;
2490
+ --config-editor-raised-border: #3e4451;
2491
+ --config-editor-raised-text: #d7dae0;
2492
+ --config-editor-raised-muted: #9ca2ad;
2493
+ --config-editor-raised-hover: #323842;
2494
+ --config-editor-control-bg: #292e37;
2495
+ --config-editor-control-text: #d7dae0;
2496
+ --config-editor-completion-active: #2c313a;
2497
+ --config-editor-comment: #a7acb4;
2498
+ --config-editor-key: #ec9299;
2499
+ --config-editor-punctuation: #abb2bf;
2500
+ --config-editor-string: #98c379;
2501
+ --config-editor-literal: #d4a171;
2502
+ --config-editor-value: #e5c07b;
2503
+ --config-editor-reference: #62c0cc;
2504
+ --config-editor-interpolation: #d19ae5;
2505
+ --config-editor-active-line: rgb(255 255 255 / 4%);
2506
+ --config-editor-error-line: rgb(224 108 117 / 8%);
2507
+ --config-editor-added-line: rgb(152 195 121 / 8%);
2508
+ --config-editor-modified-line: rgb(97 175 239 / 8%);
2509
+ --config-editor-selection: rgb(97 126 178 / 40%);
2510
+ --config-editor-caret: #abb2bf;
2511
+ /* Read-only values on every line tint: 4.5:1. */
2512
+ --config-editor-locked: #a6abb5;
2513
+ }
2514
+
2515
+ :where(.config-editor[data-color-theme="github-dark"], .config-editor-documents[data-color-theme="github-dark"], .config-editor-theme[data-color-theme="github-dark"]) {
2516
+ --config-editor-bg: #0d1117;
2517
+ --config-editor-panel: #161b22;
2518
+ --config-editor-border: #30363d;
2519
+ --config-editor-text: #e6edf3;
2520
+ --config-editor-muted: #7d8590;
2521
+ --config-editor-accent: #2f81f7;
2522
+ --config-editor-error: #f85149;
2523
+ --config-editor-toolbar-text: #e6edf3;
2524
+ --config-editor-line-active: #e6edf3;
2525
+ --config-editor-added: #3fb950;
2526
+ --config-editor-modified: #58a6ff;
2527
+ --config-editor-raised: #161b22;
2528
+ --config-editor-raised-border: #30363d;
2529
+ --config-editor-raised-text: #e6edf3;
2530
+ --config-editor-raised-muted: #9ea5ae;
2531
+ --config-editor-raised-hover: #21262d;
2532
+ --config-editor-control-bg: #21262d;
2533
+ --config-editor-control-text: #e6edf3;
2534
+ --config-editor-completion-active: #1f3a5f;
2535
+ --config-editor-comment: #8b949e;
2536
+ --config-editor-key: #79c0ff;
2537
+ --config-editor-punctuation: #c9d1d9;
2538
+ --config-editor-string: #a5d6ff;
2539
+ --config-editor-literal: #79c0ff;
2540
+ --config-editor-value: #a5d6ff;
2541
+ --config-editor-reference: #ffa657;
2542
+ --config-editor-interpolation: #d2a8ff;
2543
+ --config-editor-active-line: rgb(177 186 196 / 8%);
2544
+ --config-editor-error-line: rgb(248 81 73 / 8%);
2545
+ --config-editor-added-line: rgb(63 185 80 / 8%);
2546
+ --config-editor-modified-line: rgb(88 166 255 / 8%);
2547
+ --config-editor-selection: rgb(56 139 253 / 40%);
2548
+ --config-editor-caret: #e6edf3;
2549
+ }
2550
+
2551
+ :where(.config-editor[data-color-theme="vira-inspired"], .config-editor-documents[data-color-theme="vira-inspired"], .config-editor-theme[data-color-theme="vira-inspired"]) {
2552
+ --config-editor-bg: #171b24;
2553
+ --config-editor-panel: #1e2430;
2554
+ --config-editor-border: #343c4b;
2555
+ --config-editor-text: #c6ceda;
2556
+ --config-editor-muted: #798493;
2557
+ --config-editor-accent: #83b4cb;
2558
+ --config-editor-error: #d27676;
2559
+ --config-editor-toolbar-text: #d2d9e2;
2560
+ --config-editor-line-active: #e0e5ec;
2561
+ --config-editor-added: #a6c58d;
2562
+ --config-editor-modified: #83b4cb;
2563
+ --config-editor-raised: #202734;
2564
+ --config-editor-raised-border: #3b4555;
2565
+ --config-editor-raised-text: #d2d9e2;
2566
+ --config-editor-raised-muted: #9faab7;
2567
+ --config-editor-raised-hover: #2a3341;
2568
+ --config-editor-control-bg: #242c39;
2569
+ --config-editor-control-text: #d2d9e2;
2570
+ --config-editor-completion-active: #303e4d;
2571
+ --config-editor-comment: #8f99a5;
2572
+ --config-editor-key: #83b4cb;
2573
+ --config-editor-punctuation: #b7c1ce;
2574
+ --config-editor-string: #c9ad86;
2575
+ --config-editor-literal: #b39acb;
2576
+ --config-editor-value: #b8c99a;
2577
+ --config-editor-reference: #ff8b7b;
2578
+ --config-editor-interpolation: #c8a6dc;
2579
+ --config-editor-active-line: rgb(207 221 239 / 5%);
2580
+ --config-editor-error-line: rgb(210 118 118 / 7%);
2581
+ --config-editor-added-line: rgb(166 197 141 / 7%);
2582
+ --config-editor-modified-line: rgb(131 180 203 / 7%);
2583
+ --config-editor-selection: rgb(90 117 145 / 40%);
2584
+ --config-editor-caret: #dce3eb;
2585
+ }
2586
+
2587
+ :not(#\#):not(#\#) .config-editor[data-theme] .config-editor__gutter {
2588
+ border-right: 0;
2589
+ background: var(--config-editor-bg);
2590
+ }
2591
+
2592
+ /* The text area's selection and find's matches, per theme: the code keeps
2593
+ its own colours over them, so each is the most visible colour that
2594
+ keeps every token at 4.5:1 over it, on the active line, and a match
2595
+ over the selection too (`e2e/tests/theme-contrast.spec.mjs`). */
2596
+ :where(.config-editor[data-color-theme="vscode-dark"], .config-editor-documents[data-color-theme="vscode-dark"], .config-editor-theme[data-color-theme="vscode-dark"]) {
2597
+ --config-editor-selection: rgb(27 55 84);
2598
+ --config-editor-search-match: rgb(94 37 0 / 98%);
2599
+ --config-editor-search-match-current: rgb(45 51 58);
2600
+ }
2601
+ :where(.config-editor[data-color-theme="vscode-light"], .config-editor-documents[data-color-theme="vscode-light"], .config-editor-theme[data-color-theme="vscode-light"]) {
2602
+ --config-editor-selection: rgb(206 230 255 / 94%);
2603
+ --config-editor-search-match: rgb(242 233 191);
2604
+ --config-editor-search-match-current: rgb(217 235 247);
2605
+ }
2606
+ :where(.config-editor[data-color-theme="obsidian"], .config-editor-documents[data-color-theme="obsidian"], .config-editor-theme[data-color-theme="obsidian"]) {
2607
+ --config-editor-selection: rgb(23 37 47 / 96%);
2608
+ --config-editor-search-match: rgb(41 33 0);
2609
+ --config-editor-search-match-current: rgb(16 28 38);
2610
+ }
2611
+ :where(.config-editor[data-color-theme="obsidian-light"], .config-editor-documents[data-color-theme="obsidian-light"], .config-editor-theme[data-color-theme="obsidian-light"]) {
2612
+ --config-editor-selection: rgb(218 233 243);
2613
+ --config-editor-search-match: rgb(242 233 191);
2614
+ --config-editor-search-match-current: rgb(223 236 244);
2615
+ }
2616
+ :where(.config-editor[data-color-theme="dracula"], .config-editor-documents[data-color-theme="dracula"], .config-editor-theme[data-color-theme="dracula"]) {
2617
+ --config-editor-selection: rgb(54 63 90);
2618
+ --config-editor-search-match: rgb(71 58 0);
2619
+ --config-editor-search-match-current: rgb(76 59 100 / 98%);
2620
+ }
2621
+ :where(.config-editor[data-color-theme="nord"], .config-editor-documents[data-color-theme="nord"], .config-editor-theme[data-color-theme="nord"]) {
2622
+ --config-editor-selection: rgb(14 19 26);
2623
+ --config-editor-search-match: rgb(82 67 0);
2624
+ --config-editor-search-match-current: rgb(20 29 31);
2625
+ }
2626
+ :where(.config-editor[data-color-theme="atom-one-dark"], .config-editor-documents[data-color-theme="atom-one-dark"], .config-editor-theme[data-color-theme="atom-one-dark"]) {
2627
+ --config-editor-selection: rgb(49 63 89 / 98%);
2628
+ --config-editor-search-match: rgb(71 58 0);
2629
+ --config-editor-search-match-current: rgb(34 61 84);
2630
+ }
2631
+ :where(.config-editor[data-color-theme="github-light"], .config-editor-documents[data-color-theme="github-light"], .config-editor-theme[data-color-theme="github-light"]) {
2632
+ --config-editor-selection: rgb(212 235 255);
2633
+ --config-editor-search-match: rgb(242 233 191);
2634
+ --config-editor-search-match-current: rgb(218 233 249 / 30%);
2635
+ }
2636
+ :where(.config-editor[data-color-theme="github-dark"], .config-editor-documents[data-color-theme="github-dark"], .config-editor-theme[data-color-theme="github-dark"]) {
2637
+ --config-editor-selection: rgb(17 42 76);
2638
+ --config-editor-search-match: rgb(51 42 0);
2639
+ --config-editor-search-match-current: rgb(14 39 74);
2640
+ }
2641
+ :where(.config-editor[data-color-theme="solarized-light"], .config-editor-documents[data-color-theme="solarized-light"], .config-editor-theme[data-color-theme="solarized-light"]) {
2642
+ --config-editor-selection: rgb(212 232 246);
2643
+ --config-editor-search-match: rgb(240 229 179);
2644
+ --config-editor-search-match-current: rgb(212 232 246);
2645
+ }
2646
+ :where(.config-editor[data-color-theme="vira-inspired"], .config-editor-documents[data-color-theme="vira-inspired"], .config-editor-theme[data-color-theme="vira-inspired"]) {
2647
+ --config-editor-selection: rgb(36 47 58);
2648
+ --config-editor-search-match: rgb(51 42 0);
2649
+ --config-editor-search-match-current: rgb(33 45 51);
2650
+ }
2651
+
2652
+ /* The documents view (`ConfigDocuments`): a tab strip over one editor per
2653
+ document. Colors come from the `--config-editor-tab-*` tokens. Given a
2654
+ height (`height: 100%` in a container of a set height), the strip keeps
2655
+ its own and the shown editor fills the rest; without one, the view is
2656
+ as tall as the strip and the editor, which sizes itself. */
2657
+ .config-editor-documents {
2658
+ min-width: 0;
2659
+ max-width: 100%;
2660
+ color: var(--config-editor-text);
2661
+ font: 13px/1.4 ui-sans-serif, system-ui, sans-serif;
2662
+ }
2663
+
2664
+ /* The view's column, inline-level as the editor's frame is (see
2665
+ `.config-editor__frame`): the page's text decoration stays off the tabs. */
2666
+ :not(#\#):not(#\#) .config-editor-documents__view {
2667
+ width: 100%;
2668
+ height: 100%;
2669
+ min-width: 0;
2670
+ vertical-align: top;
2671
+ display: inline-flex;
2672
+ flex-direction: column;
2673
+ }
2674
+
2675
+ /* The strip: the tab list, then the "+" (with `on_add`), which stays at
2676
+ the end while the tabs scroll. */
2677
+ :not(#\#):not(#\#) .config-editor-documents__strip {
2678
+ flex: none;
2679
+ display: flex;
2680
+ min-width: 0;
2681
+ overflow: hidden;
2682
+ border: 1px solid var(--config-editor-tab-border);
2683
+ border-bottom: 0;
2684
+ border-radius: 6px 6px 0 0;
2685
+ background: var(--config-editor-tab-bar);
2686
+ font: 12px/1.2 ui-sans-serif, system-ui, sans-serif;
2687
+ }
2688
+
2689
+ :not(#\#):not(#\#) .config-editor-documents__tabs {
2690
+ position: relative;
2691
+ flex: 0 1 auto;
2692
+ display: flex;
2693
+ min-width: 0;
2694
+ overflow-x: auto;
2695
+ overflow-y: hidden;
2696
+ scrollbar-width: thin;
2697
+ scrollbar-color: var(--config-editor-scrollbar-thumb) transparent;
2698
+ }
2699
+
2700
+ :not(#\#):not(#\#) .config-editor-documents__add {
2701
+ flex: none;
2702
+ width: 35px;
2703
+ height: 35px;
2704
+ display: grid;
2705
+ place-items: center;
2706
+ padding: 0;
2707
+ border: 0;
2708
+ background: var(--config-editor-tab-bar);
2709
+ color: var(--config-editor-tab-text);
2710
+ font: 18px/1 ui-sans-serif, system-ui, sans-serif;
2711
+ cursor: pointer;
2712
+ }
2713
+ :not(#\#):not(#\#) .config-editor-documents__add:hover {
2714
+ background: var(--config-editor-tab-bg);
2715
+ color: var(--config-editor-tab-active-text);
2716
+ }
2717
+ :not(#\#):not(#\#) .config-editor-documents__add:focus-visible {
2718
+ outline: 1px solid var(--config-editor-focus-ring);
2719
+ outline-offset: -1px;
2720
+ }
2721
+
2722
+ :not(#\#):not(#\#) .config-editor-documents__tab {
2723
+ position: relative;
2724
+ flex: none;
2725
+ display: flex;
2726
+ align-items: center;
2727
+ gap: 6px;
2728
+ height: 35px;
2729
+ padding: 0 6px 0 10px;
2730
+ border-right: 1px solid var(--config-editor-tab-border);
2731
+ background: var(--config-editor-tab-bg);
2732
+ color: var(--config-editor-tab-text);
2733
+ white-space: nowrap;
2734
+ cursor: pointer;
2735
+ user-select: none;
2736
+ box-sizing: border-box;
2737
+ }
2738
+
2739
+ :not(#\#):not(#\#) .config-editor-documents__tab-active {
2740
+ background: var(--config-editor-tab-active-bg);
2741
+ color: var(--config-editor-tab-active-text);
2742
+ }
2743
+
2744
+ :not(#\#):not(#\#) .config-editor-documents__tab-active::before {
2745
+ content: "";
2746
+ position: absolute;
2747
+ inset: 0 0 auto 0;
2748
+ height: 2px;
2749
+ background: var(--config-editor-tab-active-border);
2750
+ }
2751
+
2752
+ :not(#\#):not(#\#) .config-editor-documents__tab:focus-visible {
2753
+ outline: 1px solid var(--config-editor-focus-ring);
2754
+ outline-offset: -1px;
2755
+ }
2756
+
2757
+ :not(#\#):not(#\#) .config-editor-documents__icon { flex: none; }
2758
+
2759
+ /* The name's room, whatever the tab's other parts take (a touch screen's
2760
+ wider close button, none on a tab that cannot be closed); more by the
2761
+ letters that tell a shared file's name apart (set on the tab), so the
2762
+ rest of the name keeps its room. */
2763
+ :not(#\#):not(#\#) .config-editor-documents__name {
2764
+ display: flex;
2765
+ min-width: 0;
2766
+ max-width: calc(154px + var(--config-editor-tab-kept, 0px));
2767
+ overflow: hidden;
2768
+ }
2769
+
2770
+ /* A name's end stays whole (`service-con…production.yaml`, the file's own
2771
+ name after a folder: `eu-west-1/…limits.toml`): a narrow tab cuts its
2772
+ start, so names sharing a start still differ. */
2773
+ :not(#\#):not(#\#) .config-editor-documents__name-start {
2774
+ flex: 0 1 auto;
2775
+ min-width: 0;
2776
+ overflow: hidden;
2777
+ text-overflow: ellipsis;
2778
+ }
2779
+ :not(#\#):not(#\#) .config-editor-documents__name-start:empty { display: none; }
2780
+ :not(#\#):not(#\#) .config-editor-documents__name-end { flex: none; }
2781
+ /* The letters that tell a name from the other tabs' with the same file's
2782
+ name (`eu-…limits.toml` beside `eu/limits.toml`) stay whole, and the
2783
+ ellipsis after them shows. */
2784
+ :not(#\#):not(#\#) .config-editor-documents__name-kept { flex: none; }
2785
+ :not(#\#):not(#\#) .config-editor-documents__name-kept + .config-editor-documents__name-start { min-width: 1em; }
2786
+
2787
+ :not(#\#):not(#\#) .config-editor-documents__tab-readonly .config-editor-documents__name { font-style: italic; }
2788
+
2789
+ /* A tab that cannot be closed keeps no room for the button: only its
2790
+ unsaved dot, while it has one. */
2791
+ :not(#\#):not(#\#) .config-editor-documents__tab:not(.config-editor-documents__tab-dirty) .config-editor-documents__marker {
2792
+ display: none;
2793
+ }
2794
+
2795
+ /* At least 24×24px, to a mouse as to a finger (WCAG 2.5.8). */
2796
+ :not(#\#):not(#\#) .config-editor-documents__close,
2797
+ :not(#\#):not(#\#) .config-editor-documents__marker {
2798
+ flex: none;
2799
+ width: 24px;
2800
+ height: 24px;
2801
+ display: grid;
2802
+ place-items: center;
2803
+ padding: 0;
2804
+ border: 0;
2805
+ border-radius: 4px;
2806
+ background: transparent;
2807
+ color: inherit;
2808
+ font: 14px/1 ui-sans-serif, system-ui, sans-serif;
2809
+ }
2810
+
2811
+ :not(#\#):not(#\#) .config-editor-documents__close { cursor: pointer; }
2812
+ :not(#\#):not(#\#) .config-editor-documents__close:hover { background: var(--config-editor-raised-hover); }
2813
+ :not(#\#):not(#\#) .config-editor-documents__close > span,
2814
+ :not(#\#):not(#\#) .config-editor-documents__marker > span { grid-area: 1 / 1; }
2815
+
2816
+ /* A dirty tab shows its dot; hovering a closable tab (or a clean active
2817
+ one) shows the close button instead. */
2818
+ :not(#\#):not(#\#) .config-editor-documents__dirty-dot {
2819
+ color: var(--config-editor-tab-dirty);
2820
+ font-size: 11px;
2821
+ visibility: hidden;
2822
+ }
2823
+ :not(#\#):not(#\#) .config-editor-documents__close-icon { visibility: hidden; }
2824
+ :not(#\#):not(#\#) .config-editor-documents__tab-dirty .config-editor-documents__dirty-dot { visibility: visible; }
2825
+ :not(#\#):not(#\#) .config-editor-documents__tab:hover .config-editor-documents__close-icon,
2826
+ :not(#\#):not(#\#) .config-editor-documents__tab-active:not(.config-editor-documents__tab-dirty) .config-editor-documents__close-icon {
2827
+ visibility: visible;
2828
+ }
2829
+ :not(#\#):not(#\#) .config-editor-documents__tab-dirty:hover .config-editor-documents__close .config-editor-documents__dirty-dot {
2830
+ visibility: hidden;
2831
+ }
2832
+
2833
+ :not(#\#):not(#\#) .config-editor-documents__panels {
2834
+ position: relative;
2835
+ flex: 1 1 auto;
2836
+ display: flex;
2837
+ flex-direction: column;
2838
+ min-width: 0;
2839
+ min-height: 0;
2840
+ }
2841
+
2842
+ :not(#\#):not(#\#) .config-editor-documents__panel {
2843
+ flex: 1 1 auto;
2844
+ display: flex;
2845
+ flex-direction: column;
2846
+ min-height: 0;
2847
+ }
2848
+
2849
+ /* The shown editor fills its panel when the view has a height, as an
2850
+ editor with `height: 100%` fills its element. */
2851
+ :not(#\#):not(#\#) .config-editor-documents__panel > .config-editor {
2852
+ flex: 1 1 auto;
2853
+ min-height: 0;
2854
+ }
2855
+
2856
+ :not(#\#):not(#\#) .config-editor-documents__panels .config-editor__frame {
2857
+ border-top-left-radius: 0;
2858
+ border-top-right-radius: 0;
2859
+ }
2860
+
2861
+ /* Hidden panels keep their editor laid out (so its scroll position and
2862
+ measurements stay), out of sight and out of the page's height. */
2863
+ :not(#\#):not(#\#) .config-editor-documents__panel-hidden {
2864
+ position: absolute;
2865
+ inset: 0 0 auto 0;
2866
+ height: 0;
2867
+ overflow: hidden;
2868
+ visibility: hidden;
2869
+ pointer-events: none;
2870
+ }
2871
+
2872
+ :not(#\#):not(#\#) .config-editor-documents__empty {
2873
+ margin: 0;
2874
+ padding: 24px;
2875
+ border: 1px solid var(--config-editor-tab-border);
2876
+ border-radius: 0 0 6px 6px;
2877
+ background: var(--config-editor-bg);
2878
+ color: var(--config-editor-text);
2879
+ font: 13px/1.4 ui-sans-serif, system-ui, sans-serif;
2880
+ }
2881
+
2882
+ @media (max-width: 600px) {
2883
+ :not(#\#):not(#\#) .config-editor-documents__tab { padding-left: 8px; }
2884
+ /* Room for a short folder before a shared file's name (prod/). */
2885
+ :not(#\#):not(#\#) .config-editor-documents__name { max-width: calc(100px + var(--config-editor-tab-kept, 0px)); }
2886
+ /* A tab's folder (`conf.d/`) is left out, so the names that tell the
2887
+ tabs apart show; the title keeps the whole name. */
2888
+ :not(#\#):not(#\#) .config-editor-documents__name-folder { display: none; }
2889
+ }
2890
+
2891
+ /* Forced colors (Windows high contrast) drop backgrounds: the selected
2892
+ tab's bar would be gone (closable or not), so it is drawn in a system
2893
+ color. */
2894
+ @media (forced-colors: active) {
2895
+ :not(#\#):not(#\#) .config-editor-documents__tab-active::before {
2896
+ forced-color-adjust: none;
2897
+ background: Highlight;
2898
+ }
2899
+ }