@mdzip/editor 2.4.2 → 2.5.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.
Files changed (77) hide show
  1. package/AGENTS.md +8 -0
  2. package/README.md +266 -5
  3. package/dist/diff-rendered.d.ts +54 -0
  4. package/dist/diff-rendered.d.ts.map +1 -0
  5. package/dist/diff-rendered.js +462 -0
  6. package/dist/diff-rendered.js.map +1 -0
  7. package/dist/diff-view-css.d.ts +2 -0
  8. package/dist/diff-view-css.d.ts.map +1 -1
  9. package/dist/diff-view-css.js +106 -43
  10. package/dist/diff-view-css.js.map +1 -1
  11. package/dist/diff-view.d.ts +112 -9
  12. package/dist/diff-view.d.ts.map +1 -1
  13. package/dist/diff-view.js +419 -33
  14. package/dist/diff-view.js.map +1 -1
  15. package/dist/front-matter-extension.d.ts.map +1 -1
  16. package/dist/front-matter-extension.js +2 -8
  17. package/dist/front-matter-extension.js.map +1 -1
  18. package/dist/heading-outline.d.ts +66 -0
  19. package/dist/heading-outline.d.ts.map +1 -0
  20. package/dist/heading-outline.js +208 -0
  21. package/dist/heading-outline.js.map +1 -0
  22. package/dist/index.d.ts +4 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +4 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/json-validation.d.ts +97 -0
  27. package/dist/json-validation.d.ts.map +1 -0
  28. package/dist/json-validation.js +496 -0
  29. package/dist/json-validation.js.map +1 -0
  30. package/dist/library-info.d.ts +7 -2
  31. package/dist/library-info.d.ts.map +1 -1
  32. package/dist/library-info.js +8 -2
  33. package/dist/library-info.js.map +1 -1
  34. package/dist/manifest-form.d.ts +40 -0
  35. package/dist/manifest-form.d.ts.map +1 -0
  36. package/dist/manifest-form.js +318 -0
  37. package/dist/manifest-form.js.map +1 -0
  38. package/dist/merge-conflicts.d.ts +56 -0
  39. package/dist/merge-conflicts.d.ts.map +1 -0
  40. package/dist/merge-conflicts.js +130 -0
  41. package/dist/merge-conflicts.js.map +1 -0
  42. package/dist/merge-regions.d.ts +92 -0
  43. package/dist/merge-regions.d.ts.map +1 -0
  44. package/dist/merge-regions.js +416 -0
  45. package/dist/merge-regions.js.map +1 -0
  46. package/dist/merge-view.d.ts +267 -0
  47. package/dist/merge-view.d.ts.map +1 -0
  48. package/dist/merge-view.js +2039 -0
  49. package/dist/merge-view.js.map +1 -0
  50. package/dist/preview-find.d.ts +30 -0
  51. package/dist/preview-find.d.ts.map +1 -0
  52. package/dist/preview-find.js +172 -0
  53. package/dist/preview-find.js.map +1 -0
  54. package/dist/rendering.d.ts +17 -52
  55. package/dist/rendering.d.ts.map +1 -1
  56. package/dist/rendering.js +21 -324
  57. package/dist/rendering.js.map +1 -1
  58. package/dist/scroll-anchors.d.ts +33 -0
  59. package/dist/scroll-anchors.d.ts.map +1 -0
  60. package/dist/scroll-anchors.js +80 -0
  61. package/dist/scroll-anchors.js.map +1 -0
  62. package/dist/view-css.d.ts.map +1 -1
  63. package/dist/view-css.js +2859 -2306
  64. package/dist/view-css.js.map +1 -1
  65. package/dist/view.d.ts +314 -7
  66. package/dist/view.d.ts.map +1 -1
  67. package/dist/view.js +1975 -419
  68. package/dist/view.js.map +1 -1
  69. package/dist/workspace-view.d.ts +2 -0
  70. package/dist/workspace-view.d.ts.map +1 -1
  71. package/dist/workspace-view.js +25 -2
  72. package/dist/workspace-view.js.map +1 -1
  73. package/dist/workspace.d.ts +29 -0
  74. package/dist/workspace.d.ts.map +1 -1
  75. package/dist/workspace.js +124 -9
  76. package/dist/workspace.js.map +1 -1
  77. package/package.json +93 -83
package/dist/view-css.js CHANGED
@@ -1,2311 +1,2864 @@
1
1
  import { MDZIP_DARK_THEME_CSS, MDZIP_LIGHT_THEME_CSS, MDZIP_VARIABLES_CSS } from './theme.js';
2
2
  const MDZIP_LIGHT_DEFAULTS_CSS = MDZIP_LIGHT_THEME_CSS.replaceAll('--theme-', '--mdzip-default-');
3
3
  const MDZIP_DARK_DEFAULTS_CSS = MDZIP_DARK_THEME_CSS.replaceAll('--theme-', '--mdzip-default-');
4
- export const WORKSPACE_CSS = `
5
- .mdzip-root {
6
- /* Layout variables */
7
- --mdz-zoom: 1;
8
- --nav-pane-width: 280px;
9
- --editor-pane-offset: 12px;
10
- --workspace-pane-offset: 0px;
11
- --split-edit-ratio: 0.5;
12
-
13
- /* Theme variable mappings */
14
- ${MDZIP_VARIABLES_CSS}
15
-
16
- display: flex;
17
- flex-direction: column;
18
- width: 100%;
19
- height: 100%;
20
- min-height: 520px;
21
- background: var(--mdzip-editor-background-color);
22
- color: var(--mdzip-editor-foreground-color);
23
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
24
- font-size: 13px;
25
- overflow: hidden;
26
- box-sizing: border-box;
27
- }
28
-
29
- .mdzip-root.toolbar-density-compact {
30
- --mdzip-density-toolbar-padding: 3px 10px;
31
- --mdzip-density-toolbar-gap: 4px;
32
- --mdzip-density-toolbar-start-gap: 8px;
33
- --mdzip-density-toolbar-group-padding: 2px;
34
- --mdzip-density-toolbar-button-width: 34px;
35
- --mdzip-density-toolbar-button-height: 30px;
36
- --mdzip-density-toolbar-compact-button-size: 28px;
37
- --mdzip-density-toolbar-icon-size: 15px;
38
- --mdzip-density-toolbar-icon-large-size: 19px;
39
- --mdzip-density-toolbar-icon-extra-large-size: 22px;
40
- --mdzip-density-theme-icon-size: 16px;
41
- --mdzip-density-format-toolbar-gap: 4px;
42
- --mdzip-density-format-toolbar-group-gap: 1px;
43
- --mdzip-density-format-button-size: 28px;
44
- --mdzip-density-format-menu-button-width: 36px;
45
- --mdzip-density-format-icon-size: 15px;
46
- }
47
-
48
- .mdzip-root.toolbar-density-dense {
49
- --mdzip-density-toolbar-padding: 2px 8px;
50
- --mdzip-density-toolbar-gap: 3px;
51
- --mdzip-density-toolbar-start-gap: 6px;
52
- --mdzip-density-toolbar-group-padding: 1px;
53
- --mdzip-density-toolbar-button-width: 30px;
54
- --mdzip-density-toolbar-button-height: 28px;
55
- --mdzip-density-toolbar-compact-button-size: 26px;
56
- --mdzip-density-toolbar-icon-size: 14px;
57
- --mdzip-density-toolbar-icon-large-size: 18px;
58
- --mdzip-density-toolbar-icon-extra-large-size: 20px;
59
- --mdzip-density-theme-icon-size: 15px;
60
- --mdzip-density-format-toolbar-gap: 3px;
61
- --mdzip-density-format-toolbar-group-gap: 1px;
62
- --mdzip-density-format-button-size: 26px;
63
- --mdzip-density-format-menu-button-width: 34px;
64
- --mdzip-density-format-icon-size: 14px;
65
- }
66
-
67
- .mdzip-root.content-density-compact {
68
- --mdzip-density-editor-content-padding: 20px 28px;
69
- --mdzip-density-preview-content-padding: 20px 24px 32px;
70
- }
71
-
72
- .mdzip-root.mdzip-theme-light {
73
- color-scheme: light;
74
- ${MDZIP_LIGHT_DEFAULTS_CSS}
75
- }
76
-
77
- .mdzip-root.mdzip-theme-dark {
78
- color-scheme: dark;
79
- ${MDZIP_DARK_DEFAULTS_CSS}
80
- }
81
-
82
- .mdzip-root *,
83
- .mdzip-root *::before,
84
- .mdzip-root *::after {
85
- box-sizing: border-box;
86
- }
87
-
88
- .mdzip-root [hidden] {
89
- display: none !important;
90
- }
91
-
92
- .mdzip-root .document-strip {
93
- display: flex;
94
- align-items: center;
95
- gap: 5px;
96
- min-height: 30px;
97
- padding: 3px 12px;
98
- background: var(--mdzip-editor-foreground-color);
99
- background: rgba(0, 0, 0, 0.05);
100
- border-bottom: 1px solid var(--mdzip-border-color);
101
- flex: 0 0 auto;
102
- }
103
-
104
- .mdzip-root.mdzip-theme-dark .document-strip {
105
- background: rgba(255, 255, 255, 0.08);
106
- }
107
-
108
- .mdzip-root .toolbar {
109
- --view-mode-min-left: calc(var(--editor-pane-offset) + 520px);
110
- --view-mode-max-left: calc(100% - 170px);
111
-
112
- display: grid;
113
- grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
114
- align-items: center;
115
- column-gap: 12px;
116
- padding: var(--mdzip-toolbar-padding, var(--mdzip-density-toolbar-padding, 4px 12px));
117
- background: var(--mdzip-toolbar-background-color);
118
- border-bottom: 1px solid var(--mdzip-border-color);
119
- min-height: 48px;
120
- flex: 0 0 auto;
121
- position: relative;
122
- z-index: 5;
123
- }
124
-
125
- .mdzip-root .toolbar-left,
126
- .mdzip-root .toolbar-controls {
127
- display: flex;
128
- align-items: center;
129
- min-width: 0;
130
- gap: var(--mdzip-toolbar-gap, var(--mdzip-density-toolbar-gap, 6px));
131
- }
132
-
133
- .mdzip-root .toolbar-start {
134
- display: flex;
135
- align-items: center;
136
- justify-self: start;
137
- min-width: 0;
138
- gap: var(--mdzip-toolbar-start-gap, var(--mdzip-density-toolbar-start-gap, 12px));
139
- }
140
-
141
- .mdzip-root.navigation-pane-visible {
142
- --editor-pane-offset: calc(var(--nav-pane-width) + 6px);
143
- --workspace-pane-offset: calc(var(--nav-pane-width) + 6px);
144
- }
145
-
146
- .mdzip-root .toolbar-left {
147
- flex: 0 0 auto;
148
- overflow: hidden;
149
- }
150
-
151
- .mdzip-root .toolbar-controls {
152
- grid-column: 3;
153
- justify-self: end;
154
- position: relative;
155
- }
156
-
157
- .mdzip-root .title-button {
158
- flex: 1 1 auto;
159
- border: 0;
160
- background: transparent;
161
- padding: 0;
162
- margin: 0;
163
- color: var(--mdzip-editor-foreground-color);
164
- font: inherit;
165
- font-size: 13px;
166
- font-weight: 500;
167
- text-decoration: none;
168
- cursor: pointer;
169
- min-width: 0;
170
- overflow: hidden;
171
- text-overflow: ellipsis;
172
- white-space: nowrap;
173
- }
174
-
175
- .mdzip-root .title-button:hover {
176
- text-decoration: underline;
177
- text-underline-offset: 2px;
178
- }
179
-
180
- .mdzip-root .title-button:disabled {
181
- color: var(--mdzip-editor-foreground-color);
182
- text-decoration: none;
183
- cursor: default;
184
- }
185
-
186
- .mdzip-root .title-filename {
187
- font-weight: 400;
188
- opacity: 0.6;
189
- }
190
-
191
- .mdzip-root .document-info-button {
192
- display: inline-flex;
193
- align-items: center;
194
- justify-content: center;
195
- flex: 0 0 24px;
196
- width: 24px;
197
- height: 24px;
198
- padding: 0;
199
- border: 0;
200
- border-radius: 4px;
201
- background: transparent;
202
- color: var(--mdzip-muted-foreground-color);
203
- cursor: pointer;
204
- }
205
-
206
- .mdzip-root .document-info-button:hover,
207
- .mdzip-root .document-info-button:focus-visible {
208
- outline: none;
209
- background: var(--mdzip-control-hover-background-color);
210
- color: var(--mdzip-control-foreground-color);
211
- }
212
-
213
- .mdzip-root .document-info-icon {
214
- width: 15px;
215
- height: 15px;
216
- }
217
-
218
- .mdzip-root .toolbar-buttons {
219
- display: flex;
220
- align-items: center;
221
- gap: 4px;
222
- justify-self: center;
223
- padding: var(--mdzip-toolbar-group-padding, var(--mdzip-density-toolbar-group-padding, 3px));
224
- border: 1px solid var(--mdzip-widget-border-color);
225
- border-radius: 8px;
226
- background: var(--mdzip-widget-background-color);
227
- }
228
-
229
- .mdzip-root .view-mode-toggle-group {
230
- position: absolute;
231
- left: clamp(
232
- var(--view-mode-min-left),
233
- calc((100% + var(--workspace-pane-offset)) / 2),
234
- var(--view-mode-max-left)
235
- );
236
- top: 50%;
237
- transform: translate(-50%, -50%);
238
- gap: 2px;
239
- /* Paint above the edit toolbar (z-index 6) with an opaque surface so any
240
- residual overlap at unusual widths reads as a clean layered control. */
241
- z-index: 7;
242
- background: var(--mdzip-widget-background-color);
243
- }
244
-
245
- .mdzip-root .icon-toggle {
246
- width: var(--mdzip-toolbar-button-width, var(--mdzip-toolbar-button-size, var(--mdzip-density-toolbar-button-width, 42px)));
247
- height: var(--mdzip-toolbar-button-height, var(--mdzip-toolbar-button-size, var(--mdzip-density-toolbar-button-height, 36px)));
248
- padding: 0;
249
- cursor: pointer;
250
- background: transparent;
251
- color: var(--mdzip-control-foreground-color);
252
- border: none;
253
- border-radius: 5px;
254
- display: inline-flex;
255
- align-items: center;
256
- justify-content: center;
257
- }
258
-
259
- .mdzip-root .icon-toggle.active {
260
- background: var(--mdzip-accent-color);
261
- color: var(--mdzip-accent-foreground-color);
262
- }
263
-
264
- .mdzip-root .icon-toggle:hover:not(.active):not(:disabled) {
265
- background: var(--mdzip-control-hover-background-color);
266
- }
267
-
268
- .mdzip-root .icon-toggle:disabled {
269
- opacity: 0.55;
270
- cursor: not-allowed;
271
- }
272
-
273
- .mdzip-root .toggle-icon {
274
- width: var(--mdzip-toolbar-icon-size, var(--mdzip-density-toolbar-icon-size, 17px));
275
- height: var(--mdzip-toolbar-icon-size, var(--mdzip-density-toolbar-icon-size, 17px));
276
- fill: none;
277
- stroke: currentColor;
278
- }
279
-
280
- .mdzip-root .view-mode-toggle {
281
- position: relative;
282
- width: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
283
- height: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
284
- border-radius: 6px;
285
- color: var(--mdzip-control-foreground-color);
286
- }
287
-
288
- .mdzip-root .view-mode-toggle.active {
289
- background: var(--mdzip-control-hover-background-color);
290
- color: var(--mdzip-link-color);
291
- }
292
-
293
- .mdzip-root .view-mode-toggle:hover:not(.active):not(:disabled) {
294
- background: var(--mdzip-control-hover-background-color);
295
- }
296
-
297
- .mdzip-root .view-mode-toggle.active:hover:not(:disabled) {
298
- background: var(--mdzip-control-hover-background-color);
299
- }
300
-
301
- .mdzip-root .view-mode-toggle .commandbar-flex-container {
302
- display: flex;
303
- align-items: center;
304
- justify-content: center;
305
- width: 100%;
306
- height: 100%;
307
- }
308
-
309
- .mdzip-root .view-mode-toggle .toggle-icon {
310
- width: var(--mdzip-toolbar-icon-large-size, var(--mdzip-density-toolbar-icon-large-size, 1.5em));
311
- height: var(--mdzip-toolbar-icon-large-size, var(--mdzip-density-toolbar-icon-large-size, 1.5em));
312
- }
313
-
314
- .mdzip-root .nav-toggle {
315
- width: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
316
- height: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
317
- border-radius: 6px;
318
- }
319
-
320
- .mdzip-root .nav-toggle.active {
321
- background: var(--mdzip-control-hover-background-color);
322
- color: var(--mdzip-link-color);
323
- }
324
-
325
- .mdzip-root .nav-toggle.convert-mdz-toggle {
326
- color: var(--mdzip-link-color);
327
- }
328
-
329
- .mdzip-root .nav-toggle.convert-mdz-toggle:hover:not(:disabled) {
330
- background: var(--mdzip-control-hover-background-color);
331
- }
332
-
333
- .mdzip-root .nav-toggle .toggle-icon {
334
- width: var(--mdzip-toolbar-icon-extra-large-size, var(--mdzip-density-toolbar-icon-extra-large-size, 1.9em));
335
- height: var(--mdzip-toolbar-icon-extra-large-size, var(--mdzip-density-toolbar-icon-extra-large-size, 1.9em));
336
- }
337
-
338
- .mdzip-root .zoom-toggle .toggle-icon {
339
- width: var(--mdzip-toolbar-icon-large-size, var(--mdzip-density-toolbar-icon-large-size, 1.5em));
340
- height: var(--mdzip-toolbar-icon-large-size, var(--mdzip-density-toolbar-icon-large-size, 1.5em));
341
- }
342
-
343
- /* Search, save and zoom match the menus beside them and the layout buttons:
344
- one compact button size and one icon size, so the icons are evenly spaced. */
345
- .mdzip-root .toolbar-controls > .icon-toggle {
346
- width: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
347
- height: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
348
- border-radius: 6px;
349
- }
350
-
351
- .mdzip-root .toolbar-controls > .icon-toggle .toggle-icon {
352
- width: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
353
- height: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
354
- }
355
-
356
- .mdzip-root .zoom-toggle.active {
357
- background: var(--mdzip-control-hover-background-color);
358
- color: var(--mdzip-link-color);
359
- }
360
-
361
- .mdzip-root .theme-menu,
362
- .mdzip-root .toolbar-menu {
363
- position: relative;
364
- display: flex;
365
- align-items: center;
366
- }
367
-
368
- .mdzip-root .theme-menu-toggle,
369
- .mdzip-root .toolbar-menu-toggle {
370
- display: inline-flex;
371
- align-items: center;
372
- justify-content: center;
373
- width: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
374
- height: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
375
- border-radius: 6px;
376
- }
377
-
378
- .mdzip-root .theme-menu-toggle.active,
379
- .mdzip-root .toolbar-menu-toggle.active {
380
- background: var(--mdzip-control-hover-background-color);
381
- color: var(--mdzip-link-color);
382
- }
383
-
384
- /* A host-supplied System icon (systemColorScheme.icon), sized by toggle-icon. */
385
- .mdzip-root .mdzip-host-icon {
386
- display: inline-flex;
387
- }
388
-
389
- .mdzip-root .mdzip-host-icon > svg {
390
- width: 100%;
391
- height: 100%;
392
- }
393
-
394
- .mdzip-root .theme-menu-icon,
395
- .mdzip-root .toolbar-menu-icon {
396
- display: inline-flex;
397
- }
398
-
399
- .mdzip-root .theme-menu-icon .toggle-icon,
400
- .mdzip-root .toolbar-menu-icon .toggle-icon {
401
- width: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
402
- height: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
403
- }
404
-
405
- .mdzip-root .theme-popover,
406
- .mdzip-root .toolbar-popover {
407
- position: absolute;
408
- top: calc(100% + 6px);
409
- right: 0;
410
- z-index: 20;
411
- display: flex;
412
- flex-direction: column;
413
- gap: 2px;
414
- padding: 4px;
415
- border: 1px solid var(--mdzip-widget-border-color);
416
- border-radius: 7px;
417
- background: var(--mdzip-widget-background-color);
418
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
419
- }
420
-
421
- .mdzip-root .theme-toggle,
422
- .mdzip-root .toolbar-menu-item {
423
- width: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
424
- height: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
425
- border-radius: 6px;
426
- }
427
-
428
- .mdzip-root .theme-toggle.active,
429
- .mdzip-root .toolbar-menu-item.active {
430
- background: var(--mdzip-control-hover-background-color);
431
- color: var(--mdzip-link-color);
432
- }
433
-
434
- .mdzip-root .theme-toggle .toggle-icon,
435
- .mdzip-root .toolbar-menu-item .toggle-icon {
436
- width: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
437
- height: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
438
- }
439
-
440
- .mdzip-root .workspace-shell {
441
- display: flex;
442
- flex: 1 1 auto;
443
- min-height: 0;
444
- }
445
-
446
- .mdzip-root.resizing,
447
- .mdzip-root.resizing * {
448
- cursor: col-resize !important;
449
- user-select: none;
450
- }
451
-
452
- .mdzip-root .nav-pane {
453
- flex: 0 0 var(--nav-pane-width);
454
- width: var(--nav-pane-width);
455
- min-width: 180px;
456
- max-width: 60vw;
457
- border-right: 1px solid var(--mdzip-border-color);
458
- background: var(--mdzip-sidebar-background-color);
459
- color: var(--mdzip-sidebar-foreground-color);
460
- overflow: auto;
461
- transition:
462
- flex-basis 0.18s ease,
463
- width 0.18s ease,
464
- min-width 0.18s ease,
465
- opacity 0.14s ease,
466
- border-color 0.18s ease;
467
- }
468
-
469
- .mdzip-root .nav-pane.hidden {
470
- flex-basis: 0;
471
- width: 0;
472
- min-width: 0;
473
- border-right-color: transparent;
474
- opacity: 0;
475
- overflow: hidden;
476
- pointer-events: none;
477
- }
478
-
479
- .mdzip-root .nav-resizer {
480
- position: relative;
481
- flex: 0 0 6px;
482
- background: transparent;
483
- cursor: col-resize;
484
- opacity: 1;
485
- transition:
486
- flex-basis 0.18s ease,
487
- opacity 0.14s ease;
488
- }
489
-
490
- .mdzip-root .nav-resizer.hidden {
491
- flex-basis: 0;
492
- opacity: 0;
493
- pointer-events: none;
494
- }
495
-
496
- .mdzip-root .nav-resizer::before,
497
- .mdzip-root .split-resizer::before {
498
- content: '';
499
- position: absolute;
500
- top: 0;
501
- bottom: 0;
502
- left: 2px;
503
- width: 2px;
504
- background: transparent;
505
- transition: background 0.12s ease;
506
- }
507
-
508
- .mdzip-root .nav-resizer:hover::before,
509
- .mdzip-root .split-resizer:hover::before {
510
- background: var(--mdzip-focus-outline-color);
511
- }
512
-
513
- .mdzip-root .nav-tree {
514
- padding: 14px 8px 24px;
515
- }
516
-
517
- .mdzip-root .nav-directory {
518
- margin: 0;
519
- position: relative;
520
- }
521
-
522
- .mdzip-root .nav-directory > summary {
523
- list-style: none;
524
- cursor: pointer;
525
- position: relative;
526
- }
527
-
528
- .mdzip-root .nav-directory > summary::-webkit-details-marker {
529
- display: none;
530
- }
531
-
532
- .mdzip-root .nav-directory > summary,
533
- .mdzip-root .nav-file {
534
- display: flex;
535
- align-items: center;
536
- gap: 9px;
537
- width: 100%;
538
- min-height: 34px;
539
- /* No vertical padding: row height comes from min-height, and zero top/bottom
540
- padding lets the stretched .nav-indent guide cells fill the full row so the
541
- per-row rails meet between siblings instead of leaving padding-sized gaps. */
542
- padding: 0 9px;
543
- border: none;
544
- border-radius: 4px;
545
- background: transparent;
546
- color: inherit;
547
- font: inherit;
548
- font-size: 14px;
549
- text-align: left;
550
- }
551
-
552
- .mdzip-root .nav-file {
553
- cursor: pointer;
554
- }
555
-
556
- .mdzip-root .nav-directory > summary:hover,
557
- .mdzip-root .nav-file:hover {
558
- background: var(--mdzip-hover-background-color);
559
- }
560
-
561
- /* Indentation comes from per-row guide cells (.nav-indent), not container
562
- margins, so each row owns its guide lines. */
563
- .mdzip-root .nav-directory-children {
564
- position: relative;
565
- }
566
-
567
- /* One guide cell per ancestor depth, prepended to each nested row. Fixed width
568
- gives the indentation; the rails/elbow are painted within the cell at the
569
- row's own height, so they never overshoot an expanded last subfolder.
570
-
571
- --nav-guide-x positions the rail so it drops straight from the parent
572
- folder's icon: the icon sits 19px (caret 10px + the 9px row gap) right of its
573
- disclosure column, and because the per-level step (cell 16px + 9px gap = 25)
574
- equals the rail-to-icon distance, the same offset keeps every depth aligned. */
575
- .mdzip-root .nav-indent {
576
- flex: 0 0 16px;
577
- align-self: stretch;
578
- position: relative;
579
- --nav-guide-x: 19px;
580
- }
581
-
582
- /* Ancestor column with more siblings below: continuous full-height rail. */
583
- .mdzip-root .nav-indent-rail::before {
584
- content: "";
585
- position: absolute;
586
- left: var(--nav-guide-x);
587
- top: 0;
588
- bottom: 0;
589
- width: 1px;
590
- background: var(--mdzip-tree-guide-color);
591
- }
592
-
593
- /* Connector to this row: vertical down to the row center (elbow └), extended
594
- full-height for a tee (├) when the row's folder has siblings below. */
595
- .mdzip-root .nav-indent-connector::before {
596
- content: "";
597
- position: absolute;
598
- left: var(--nav-guide-x);
599
- top: 0;
600
- height: 50%;
601
- width: 1px;
602
- background: var(--mdzip-tree-guide-color);
603
- }
604
-
605
- .mdzip-root .nav-indent-connector.nav-indent-continues::before {
606
- height: 100%;
607
- }
608
-
609
- /* Horizontal arm from the connector rail to the row's caret/icon. Reaches the
610
- disclosure triangle that sits one row-gap past the cell (folders). */
611
- .mdzip-root .nav-indent-connector::after {
612
- content: "";
613
- position: absolute;
614
- left: var(--nav-guide-x);
615
- right: -9px;
616
- top: 50%;
617
- height: 1px;
618
- background: var(--mdzip-tree-guide-color);
619
- }
620
-
621
- /* Files have no disclosure triangle in the caret slot, so extend the arm across
622
- it (the empty 10px caret plus the 9px row gaps on either side) to meet the
623
- file icon; folders keep the short arm because their triangle already sits at
624
- the cell edge. The right offset is measured from the cell edge, so this holds
625
- regardless of where --nav-guide-x places the rail. */
626
- .mdzip-root .nav-file > .nav-indent-connector::after {
627
- right: calc(-1 * (10px + 2 * 9px));
628
- }
629
-
630
- .mdzip-root .nav-caret {
631
- position: relative;
632
- width: 10px;
633
- flex: 0 0 10px;
634
- color: var(--mdzip-muted-foreground-color);
635
- }
636
-
637
- .mdzip-root .nav-directory > summary .nav-caret::before {
638
- content: "";
639
- position: absolute;
640
- left: 2px;
641
- top: 50%;
642
- width: 0;
643
- height: 0;
644
- border-top: 4px solid transparent;
645
- border-bottom: 4px solid transparent;
646
- border-left: 5px solid currentColor;
647
- transform: translateY(-50%);
648
- }
649
-
650
- .mdzip-root .nav-directory[open] > summary .nav-caret::before {
651
- transform: translateY(-45%) rotate(90deg);
652
- }
653
-
654
- .mdzip-root .nav-folder-icon {
655
- display: inline-flex;
656
- align-items: center;
657
- justify-content: center;
658
- flex: 0 0 22px;
659
- width: 22px;
660
- height: 22px;
661
- color: var(--mdzip-control-foreground-color);
662
- }
663
-
664
- .mdzip-root .nav-folder-icon svg {
665
- display: block;
666
- width: 21px;
667
- height: 21px;
668
- }
669
-
670
- .mdzip-root .nav-directory[open] > summary .nav-folder-icon.closed,
671
- .mdzip-root .nav-directory:not([open]) > summary .nav-folder-icon.open {
672
- display: none;
673
- }
674
-
675
- .mdzip-root .nav-file-icon {
676
- display: inline-flex;
677
- align-items: center;
678
- justify-content: center;
679
- flex: 0 0 30px;
680
- width: 30px;
681
- height: 24px;
682
- border: 1px solid var(--mdzip-border-color);
683
- border-radius: 3px;
684
- background: var(--mdzip-widget-background-color);
685
- color: var(--mdzip-muted-foreground-color);
686
- font-size: 10px;
687
- font-weight: 700;
688
- line-height: 1;
689
- }
690
-
691
- .mdzip-root .nav-file-icon svg {
692
- display: block;
693
- }
694
-
695
- .mdzip-root .nav-file-icon.markdown svg {
696
- width: 21px;
697
- height: 21px;
698
- }
699
-
700
- .mdzip-root .nav-file-icon.manifest svg {
701
- width: 21px;
702
- height: 21px;
703
- }
704
-
705
- .mdzip-root .nav-file-icon.markdown {
706
- border: 0;
707
- background: transparent;
708
- }
709
-
710
- .mdzip-root .nav-file-icon.manifest {
711
- border: 0;
712
- background: transparent;
713
- color: #d18616;
714
- }
715
-
716
- .mdzip-root .nav-file-icon.image {
717
- border: 0 !important;
718
- background: transparent !important;
719
- }
720
-
721
- .mdzip-root .nav-file-icon.image svg {
722
- width: 21px;
723
- height: 21px;
724
- }
725
-
726
- .mdzip-root .nav-label {
727
- flex: 1;
728
- min-width: 0;
729
- overflow: hidden;
730
- text-overflow: ellipsis;
731
- white-space: nowrap;
732
- }
733
-
734
- .mdzip-root .nav-file.current-entry {
735
- background: var(--mdzip-selection-background-color);
736
- }
737
-
738
- .mdzip-root .nav-file.current-entry::after {
739
- content: '';
740
- width: 10px;
741
- height: 10px;
742
- flex: 0 0 10px;
743
- border-radius: 50%;
744
- background: var(--mdzip-link-color);
745
- }
746
-
747
- .mdzip-root .nav-file.orphaned-asset {
748
- color: var(--mdzip-muted-foreground-color);
749
- }
750
-
751
- .mdzip-root .nav-orphan-button {
752
- flex: 0 0 22px;
753
- width: 22px;
754
- height: 22px;
755
- display: inline-flex;
756
- align-items: center;
757
- justify-content: center;
758
- border: 0;
759
- border-radius: 4px;
760
- background: transparent;
761
- color: #9a6700;
762
- cursor: pointer;
763
- }
764
-
765
- .mdzip-root .nav-orphan-button:hover {
766
- background: rgba(154, 103, 0, 0.12);
767
- }
768
-
769
- .mdzip-root .nav-orphan-button svg {
770
- width: 15px;
771
- height: 15px;
772
- fill: currentColor;
773
- }
774
-
775
- .mdzip-root .nav-context-menu {
776
- position: fixed;
777
- z-index: 200;
778
- min-width: 190px;
779
- padding: 4px;
780
- border: 1px solid var(--mdzip-widget-border-color);
781
- border-radius: 4px;
782
- background: var(--mdzip-editor-background-color);
783
- color: var(--mdzip-editor-foreground-color);
784
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
785
- }
786
-
787
- .mdzip-root .nav-context-menu button {
788
- display: flex;
789
- align-items: center;
790
- gap: 10px;
791
- width: 100%;
792
- min-height: 28px;
793
- padding: 4px 10px;
794
- border: none;
795
- border-radius: 3px;
796
- background: transparent;
797
- color: inherit;
798
- font: inherit;
799
- text-align: left;
800
- cursor: pointer;
801
- }
802
-
803
- .mdzip-root .nav-context-menu .nav-menu-icon {
804
- flex: 0 0 auto;
805
- width: 16px;
806
- height: 16px;
807
- opacity: 0.8;
808
- }
809
-
810
- .mdzip-root .nav-context-menu .nav-menu-label {
811
- flex: 1 1 auto;
812
- }
813
-
814
- .mdzip-root .nav-context-menu .nav-menu-shortcut {
815
- flex: 0 0 auto;
816
- margin-left: 16px;
817
- font-size: 0.85em;
818
- opacity: 0.55;
819
- font-variant-numeric: tabular-nums;
820
- }
821
-
822
- .mdzip-root .nav-context-menu .nav-menu-chevron {
823
- flex: 0 0 auto;
824
- width: 14px;
825
- height: 14px;
826
- margin-right: -2px;
827
- opacity: 0.55;
828
- }
829
-
830
- .mdzip-root .nav-menu-submenu-wrap {
831
- position: relative;
832
- }
833
-
834
- .mdzip-root .nav-context-submenu {
835
- position: absolute;
836
- left: 100%;
837
- top: -5px;
838
- display: none;
839
- min-width: 190px;
840
- max-height: min(60vh, 420px);
841
- overflow-y: auto;
842
- padding: 4px;
843
- border: 1px solid var(--mdzip-widget-border-color);
844
- border-radius: 4px;
845
- background: var(--mdzip-editor-background-color);
846
- color: var(--mdzip-editor-foreground-color);
847
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
848
- }
849
-
850
- .mdzip-root .nav-menu-submenu-wrap.open-left > .nav-context-submenu {
851
- left: auto;
852
- right: 100%;
853
- }
854
-
855
- .mdzip-root .nav-menu-submenu-wrap:hover > .nav-context-submenu,
856
- .mdzip-root .nav-menu-submenu-wrap:focus-within > .nav-context-submenu {
857
- display: block;
858
- }
859
-
860
- .mdzip-root .nav-context-menu button:hover,
861
- .mdzip-root .nav-context-menu button:focus-visible {
862
- outline: none;
863
- background: var(--mdzip-hover-background-color);
864
- }
865
-
866
- .mdzip-root .nav-context-menu button:disabled {
867
- opacity: 0.6;
868
- cursor: default;
869
- }
870
-
871
- .mdzip-root .nav-context-menu button:disabled:hover,
872
- .mdzip-root .nav-context-menu button:disabled:focus-visible {
873
- background: transparent;
874
- }
875
-
876
- .mdzip-root .nav-menu-separator {
877
- height: 1px;
878
- margin: 4px 6px;
879
- background: var(--mdzip-border-color);
880
- }
881
-
882
- .mdzip-root .nav-file.entry-point .nav-label {
883
- font-weight: 600;
884
- }
885
-
886
- .mdzip-root .nav-directory.pending-folder > summary {
887
- opacity: 0.7;
888
- }
889
-
890
- .mdzip-root details.nav-directory.drag-over > summary,
891
- .mdzip-root .nav-tree.drag-over {
892
- background: var(--mdzip-hover-background-color);
893
- border-radius: 4px;
894
- }
895
-
896
- .mdzip-root .title-dialog-actions .danger-action {
897
- border-color: #b42318;
898
- background: #b42318;
899
- color: #ffffff;
900
- }
901
-
902
- .mdzip-root .mdzip-tooltip {
903
- position: fixed;
904
- z-index: 10000;
905
- max-width: min(320px, calc(100vw - 16px));
906
- padding: 5px 8px;
907
- border: 1px solid var(--mdzip-border-color);
908
- border-radius: 5px;
909
- background: var(--mdzip-editor-foreground-color);
910
- color: var(--mdzip-editor-background-color);
911
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
912
- font-size: 12px;
913
- line-height: 1.35;
914
- /* One line up to max-width, then wraps instead of being cut off. */
915
- width: max-content;
916
- white-space: normal;
917
- pointer-events: none;
918
- }
919
-
920
- .mdzip-root .mdzip-copy-toast {
921
- position: fixed;
922
- z-index: 10000;
923
- left: 50%;
924
- bottom: 20px;
925
- transform: translateX(-50%);
926
- max-width: min(320px, calc(100vw - 32px));
927
- padding: 8px 14px;
928
- border-radius: 6px;
929
- background: var(--mdzip-editor-foreground-color);
930
- color: var(--mdzip-editor-background-color);
931
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
932
- font-size: 12px;
933
- line-height: 1.35;
934
- text-align: center;
935
- pointer-events: none;
936
- }
937
-
938
- .mdzip-root .pane-stack {
939
- display: block;
940
- flex: 1;
941
- min-width: 0;
942
- height: 100%;
943
- }
944
-
945
- .mdzip-root .pane-stack.split-mode {
946
- display: flex;
947
- flex-direction: row;
948
- }
949
-
950
- .mdzip-root .pane {
951
- display: none;
952
- height: 100%;
953
- overflow: hidden;
954
- }
955
-
956
- .mdzip-root .pane.active {
957
- display: block;
958
- }
959
-
960
- .mdzip-root .pane-stack.split-mode .pane {
961
- display: block !important;
962
- min-width: 0;
963
- height: 100%;
964
- }
965
-
966
- .mdzip-root .pane-stack.split-mode .edit-pane {
967
- flex: 0 0 calc((100% - 6px) * var(--split-edit-ratio));
968
- }
969
-
970
- .mdzip-root .pane-stack.split-mode .preview-pane {
971
- flex: 1 1 auto;
972
- }
973
-
974
- .mdzip-root .preview-pane {
975
- overflow: auto;
976
- /* Chrome's scroll-anchoring tries to keep the same visible content pinned
977
- * when a layout shift happens above the viewport (e.g. a chunk reconcile
978
- * re-rendering a mermaid diagram to a different height, or an image
979
- * finishing decode) by silently adjusting scrollTop on its own — firing a
980
- * genuine, non-echo 'scroll' event with no explicit write behind it. The
981
- * editor/preview scroll-sync listeners can't distinguish that from a real
982
- * user scroll, so they propagate it to the other pane, whose own
983
- * anchoring can then react in turn, compounding into a visible jump on
984
- * the very next edit after a layout-affecting mount. Disabling anchoring
985
- * here means a layout shift leaves scrollTop exactly where it was
986
- * instead of "helpfully" moving it.
987
- */
988
- overflow-anchor: none;
989
- }
990
-
991
- .mdzip-root .preview-pane:focus {
992
- outline: none;
993
- }
994
-
995
- .mdzip-root .entry-pane {
996
- overflow: auto;
997
- }
998
-
999
- .mdzip-root .pane-stack.entry-claimed .edit-pane,
1000
- .mdzip-root .pane-stack.entry-claimed .preview-pane,
1001
- .mdzip-root .pane-stack.entry-claimed .split-resizer {
1002
- display: none !important;
1003
- }
1004
-
1005
- .mdzip-root .edit-pane {
1006
- overflow: hidden;
1007
- flex-direction: column;
1008
- }
1009
-
1010
- /* See the matching comment on .preview-pane's overflow-anchor: none — same
1011
- * reasoning applies here. CodeMirror's own line-height re-measurement after
1012
- * an edit can shift content above the viewport too, and native scroll
1013
- * anchoring reacting to that is indistinguishable, from the sync listener's
1014
- * side, from the user actually scrolling.
1015
- */
1016
- .mdzip-root .cm-scroller {
1017
- overflow-anchor: none;
1018
- }
1019
-
1020
- .mdzip-root .edit-pane.active {
1021
- display: flex;
1022
- }
1023
-
1024
- .mdzip-root .pane-stack.split-mode .edit-pane {
1025
- display: flex !important;
1026
- }
1027
-
1028
- .mdzip-root .edit-toolbar {
1029
- display: flex;
1030
- align-items: center;
1031
- gap: var(--mdzip-format-toolbar-gap, var(--mdzip-density-format-toolbar-gap, 7px));
1032
- min-height: 32px;
1033
- padding: 0;
1034
- overflow: visible;
1035
- border: 0;
1036
- background: transparent;
1037
- flex: 0 0 auto;
1038
- position: absolute;
1039
- left: var(--editor-pane-offset);
1040
- top: 50%;
1041
- transform: translateY(-50%);
1042
- z-index: 6;
1043
- }
1044
-
1045
- .mdzip-root:not(.navigation-pane-visible) .edit-toolbar {
1046
- position: static;
1047
- transform: none;
1048
- }
1049
-
1050
- .mdzip-root .edit-toolbar-group {
1051
- display: flex;
1052
- align-items: center;
1053
- gap: var(--mdzip-format-toolbar-group-gap, var(--mdzip-density-format-toolbar-group-gap, 2px));
1054
- flex: 0 0 auto;
1055
- }
1056
-
1057
- .mdzip-root .edit-toolbar button {
1058
- display: inline-flex;
1059
- align-items: center;
1060
- justify-content: center;
1061
- gap: 2px;
1062
- width: var(--mdzip-format-button-size, var(--mdzip-density-format-button-size, 32px));
1063
- height: var(--mdzip-format-button-size, var(--mdzip-density-format-button-size, 32px));
1064
- padding: 0;
1065
- border: 0;
1066
- border-radius: 5px;
1067
- background: transparent;
1068
- color: var(--mdzip-control-foreground-color);
1069
- cursor: pointer;
1070
- }
1071
-
1072
- .mdzip-root .edit-toolbar button:hover,
1073
- .mdzip-root .edit-toolbar button:focus-visible {
1074
- outline: none;
1075
- background: var(--mdzip-control-hover-background-color);
1076
- }
1077
-
1078
- .mdzip-root .edit-toolbar button:focus-visible {
1079
- box-shadow: inset 0 0 0 1px var(--mdzip-focus-outline-color);
1080
- }
1081
-
1082
- .mdzip-root .edit-toolbar .format-menu {
1083
- position: relative;
1084
- flex: 0 0 auto;
1085
- }
1086
-
1087
- .mdzip-root .edit-toolbar .format-menu-toggle {
1088
- width: var(--mdzip-format-menu-button-width, var(--mdzip-density-format-menu-button-width, 42px));
1089
- gap: 2px;
1090
- }
1091
-
1092
- .mdzip-root .edit-toolbar .format-menu-toggle[aria-expanded="true"] {
1093
- background: var(--mdzip-control-hover-background-color);
1094
- box-shadow: inset 0 0 0 1px var(--mdzip-focus-outline-color);
1095
- }
1096
-
1097
- .mdzip-root .edit-toolbar .format-menu-popover {
1098
- position: absolute;
1099
- top: calc(100% + 6px);
1100
- left: 0;
1101
- z-index: 20;
1102
- min-width: 164px;
1103
- padding: 5px;
1104
- border: 1px solid var(--mdzip-widget-border-color);
1105
- border-radius: 7px;
1106
- background: var(--mdzip-widget-background-color);
1107
- color: var(--mdzip-editor-foreground-color);
1108
- box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
1109
- }
1110
-
1111
- .mdzip-root .edit-toolbar .format-menu-popover button {
1112
- display: flex;
1113
- justify-content: flex-start;
1114
- gap: 10px;
1115
- width: 100%;
1116
- height: 32px;
1117
- padding: 0 10px;
1118
- border-radius: 4px;
1119
- color: inherit;
1120
- font: inherit;
1121
- white-space: nowrap;
1122
- }
1123
-
1124
- .mdzip-root .edit-toolbar .format-menu-popover button:hover,
1125
- .mdzip-root .edit-toolbar .format-menu-popover button:focus-visible {
1126
- background: var(--mdzip-control-hover-background-color);
1127
- box-shadow: none;
1128
- }
1129
-
1130
- .mdzip-root .edit-toolbar .format-menu-popover strong {
1131
- display: inline-block;
1132
- width: 22px;
1133
- color: var(--mdzip-muted-foreground-color);
1134
- font-size: 11px;
1135
- text-align: center;
1136
- }
1137
-
1138
- .mdzip-root .format-icon {
1139
- width: var(--mdzip-format-icon-size, var(--mdzip-density-format-icon-size, 17px));
1140
- height: var(--mdzip-format-icon-size, var(--mdzip-density-format-icon-size, 17px));
1141
- fill: none;
1142
- stroke: currentColor;
1143
- }
1144
-
1145
- .mdzip-root .format-chevron {
1146
- width: 12px;
1147
- height: 12px;
1148
- fill: none;
1149
- stroke: currentColor;
1150
- }
1151
-
1152
- .mdzip-root .edit-toolbar-divider {
1153
- width: 1px;
1154
- height: 22px;
1155
- background: var(--mdzip-border-color);
1156
- flex: 0 0 auto;
1157
- }
1158
-
1159
- .mdzip-root .editor-host {
1160
- flex: 1 1 auto;
1161
- min-height: 0;
1162
- overflow: hidden;
1163
- }
1164
-
1165
- .mdzip-root .editor-host .cm-editor {
1166
- height: 100%;
1167
- }
1168
-
1169
- .mdzip-root .split-resizer {
1170
- display: none;
1171
- position: relative;
1172
- flex: 0 0 6px;
1173
- cursor: col-resize;
1174
- }
1175
-
1176
- .mdzip-root .pane-stack.split-mode .split-resizer {
1177
- display: block;
1178
- }
1179
-
1180
- .mdzip-root .pane-stack.split-mode .split-resizer::before {
1181
- background: var(--mdzip-border-color);
1182
- }
1183
-
1184
- .mdzip-root .pane-stack.split-mode .split-resizer:hover::before {
1185
- background: var(--mdzip-focus-outline-color);
1186
- }
1187
-
1188
- .mdzip-root .preview-content {
1189
- max-width: var(--mdzip-preview-content-max-width, calc(900px * var(--mdz-zoom)));
1190
- margin: 0 auto;
1191
- padding: var(--mdzip-preview-content-padding, var(--mdzip-density-preview-content-padding, 36px 32px 48px));
1192
- line-height: 1.55;
1193
- font-size: calc(16px * var(--mdz-zoom));
1194
- }
1195
-
1196
- .mdzip-root .preview-content h1,
1197
- .mdzip-root .preview-content h2,
1198
- .mdzip-root .preview-content h3,
1199
- .mdzip-root .preview-content h4,
1200
- .mdzip-root .preview-content h5,
1201
- .mdzip-root .preview-content h6 {
1202
- color: var(--mdzip-editor-foreground-color);
1203
- margin-top: 1.4em;
1204
- margin-bottom: 0.4em;
1205
- line-height: 1.25;
1206
- }
1207
-
1208
- .mdzip-root .preview-content h1 {
1209
- font-size: 2em;
1210
- border-bottom: 1px solid var(--mdzip-border-color);
1211
- padding-bottom: 0.25em;
1212
- }
1213
-
1214
- .mdzip-root .preview-content > :first-child {
1215
- margin-top: 0;
1216
- }
1217
-
1218
- /* Chunked (progressiveTextRendering) mounting wraps each rendered chunk in
1219
- a mount boundary. display:contents drops it from the box tree so margin
1220
- collapsing and other layout behave exactly as the non-chunked path (one
1221
- flat run of blocks) — but :first-child selector matching still follows
1222
- the real DOM tree regardless of display, so the rule above needs a
1223
- companion for the now one-level-deeper first real content element. */
1224
- .mdzip-root .preview-content > .mdzip-chunk {
1225
- display: contents;
1226
- }
1227
-
1228
- .mdzip-root .preview-content > .mdzip-chunk:first-child > :first-child {
1229
- margin-top: 0;
1230
- }
1231
-
1232
- .mdzip-root .preview-content h2 {
1233
- font-size: 1.5em;
1234
- border-bottom: 1px solid var(--mdzip-border-color);
1235
- padding-bottom: 0.2em;
1236
- }
1237
-
1238
- .mdzip-root .preview-content h3 {
1239
- font-size: 1.2em;
1240
- }
1241
-
1242
- .mdzip-root .preview-content p {
1243
- margin: 0.8em 0;
1244
- }
1245
-
1246
- .mdzip-root .preview-content code {
1247
- font-family: "Cascadia Code", Consolas, monospace;
1248
- font-variant-ligatures: none;
1249
- font-feature-settings: "liga" 0, "calt" 0;
1250
- font-size: 0.9em;
1251
- background: var(--mdzip-code-background-color);
1252
- border: 1px solid var(--mdzip-border-color);
1253
- border-radius: 3px;
1254
- padding: 1px 5px;
1255
- }
1256
-
1257
- .mdzip-root .preview-content pre {
1258
- background: var(--mdzip-code-background-color);
1259
- border: 1px solid var(--mdzip-border-color);
1260
- border-radius: 5px;
1261
- padding: 14px 18px;
1262
- overflow-x: auto;
1263
- }
1264
-
1265
- .mdzip-root .preview-content pre code {
1266
- background: none;
1267
- border: none;
1268
- padding: 0;
1269
- }
1270
-
1271
- /* Built-in code-block chrome (#29): the wrapper owns the outer border/radius
1272
- that .preview-content pre normally draws on itself, so the header sits
1273
- flush above it with no double border. */
1274
- .mdzip-root .preview-content .mdzip-code-block {
1275
- margin: 1em 0;
1276
- border: 1px solid var(--mdzip-border-color);
1277
- border-radius: 5px;
1278
- overflow: hidden;
1279
- }
1280
-
1281
- .mdzip-root .preview-content .mdzip-code-block pre {
1282
- margin: 0;
1283
- border: none;
1284
- border-radius: 0;
1285
- }
1286
-
1287
- .mdzip-root .preview-content .mdzip-code-block-header {
1288
- display: flex;
1289
- align-items: center;
1290
- justify-content: space-between;
1291
- gap: 8px;
1292
- padding: 3px 6px 3px 12px;
1293
- background: var(--mdzip-widget-background-color);
1294
- border-bottom: 1px solid var(--mdzip-border-color);
1295
- }
1296
-
1297
- .mdzip-root .preview-content .mdzip-code-block-lang {
1298
- font-family: "Cascadia Code", Consolas, monospace;
1299
- font-size: 0.75em;
1300
- color: var(--mdzip-muted-foreground-color);
1301
- }
1302
-
1303
- .mdzip-root .preview-content .mdzip-code-block-actions {
1304
- display: flex;
1305
- align-items: center;
1306
- gap: 2px;
1307
- }
1308
-
1309
- .mdzip-root .preview-content .mdzip-code-block-btn {
1310
- display: inline-flex;
1311
- align-items: center;
1312
- justify-content: center;
1313
- width: 24px;
1314
- height: 24px;
1315
- padding: 0;
1316
- border: none;
1317
- border-radius: 4px;
1318
- background: none;
1319
- color: var(--mdzip-muted-foreground-color);
1320
- cursor: pointer;
1321
- }
1322
-
1323
- .mdzip-root .preview-content .mdzip-code-block-btn:hover {
1324
- background: var(--mdzip-control-hover-background-color);
1325
- color: var(--mdzip-control-foreground-color);
1326
- }
1327
-
1328
- .mdzip-root .preview-content .mdzip-code-block-btn:disabled {
1329
- opacity: 0.4;
1330
- cursor: default;
1331
- }
1332
-
1333
- .mdzip-root .preview-content .mdzip-code-block-btn:disabled:hover {
1334
- background: none;
1335
- }
1336
-
1337
- .mdzip-root .preview-content .mdzip-code-block-btn-copied {
1338
- color: var(--mdzip-accent-color);
1339
- }
1340
-
1341
- .mdzip-root .preview-content .mdzip-code-block-icon {
1342
- width: 14px;
1343
- height: 14px;
1344
- }
1345
-
1346
- /* Chevron points "forward" (collapsed) vs down (expanded), driven by the
1347
- same aria-expanded state assistive tech reads — no separate visual-only
1348
- state to keep in sync. */
1349
- .mdzip-root .preview-content .mdzip-code-block-btn[aria-expanded="false"] .mdzip-code-block-icon {
1350
- transform: rotate(-90deg);
1351
- }
1352
-
1353
- .mdzip-root .preview-content .mdzip-code-block-body {
1354
- position: relative;
1355
- transition: max-height 0.2s ease-out;
1356
- }
1357
-
1358
- .mdzip-root .preview-content .mdzip-code-block-collapsed .mdzip-code-block-body {
1359
- max-height: 240px;
1360
- overflow: hidden;
1361
- }
1362
-
1363
- .mdzip-root .preview-content .mdzip-code-block-collapsed .mdzip-code-block-body::after {
1364
- content: "";
1365
- position: absolute;
1366
- inset: auto 0 0 0;
1367
- height: 48px;
1368
- background: linear-gradient(to bottom, transparent, var(--mdzip-code-background-color));
1369
- pointer-events: none;
1370
- }
1371
-
1372
- /* An explicit rule so consecutive rules stay separate (#57); host resets often
1373
- leave hr with no margin, and three in a row read as one thick band. */
1374
- .mdzip-root .preview-content hr {
1375
- height: 0;
1376
- margin: 1.5em 0;
1377
- border: 0;
1378
- border-top: 1px solid var(--mdzip-border-color);
1379
- }
1380
-
1381
- .mdzip-root .preview-content .footnotes {
1382
- margin-top: 2em;
1383
- padding-top: 0.75em;
1384
- border-top: 1px solid var(--mdzip-border-color);
1385
- font-size: 0.9em;
1386
- color: var(--mdzip-muted-foreground-color);
1387
- }
1388
-
1389
- /* Contains the visually hidden "Footnotes" heading below: without a positioned
1390
- ancestor it would be placed against the page, outside the preview's scroll
1391
- area, and make the host page itself scroll. */
1392
- .mdzip-root .preview-content .footnotes {
1393
- position: relative;
1394
- }
1395
-
1396
- .mdzip-root .preview-content .footnotes .sr-only {
1397
- position: absolute;
1398
- width: 1px;
1399
- height: 1px;
1400
- padding: 0;
1401
- margin: -1px;
1402
- overflow: hidden;
1403
- clip: rect(0, 0, 0, 0);
1404
- white-space: nowrap;
1405
- border: 0;
1406
- }
1407
-
1408
- .mdzip-root .preview-content sup > a[href^="#footnote-"] {
1409
- text-decoration: none;
1410
- }
1411
-
1412
- .mdzip-root .preview-content blockquote {
1413
- border-left: 4px solid var(--mdzip-link-color);
1414
- margin: 1em 0;
1415
- padding: 0.5em 1em;
1416
- color: var(--mdzip-muted-foreground-color);
1417
- background: var(--mdzip-code-background-color);
1418
- }
1419
-
1420
- .mdzip-root .preview-content .task-list-item {
1421
- list-style-type: none;
1422
- }
1423
-
1424
- .mdzip-root .preview-content .task-list-item-checkbox {
1425
- margin: 0 0.35em 0.2em -1.4em;
1426
- vertical-align: middle;
1427
- }
1428
-
1429
- .mdzip-root .preview-content .mdzip-table-scroll {
1430
- width: 100%;
1431
- margin: 1em 0;
1432
- overflow-x: auto;
1433
- }
1434
-
1435
- .mdzip-root .preview-content table {
1436
- width: 100%;
1437
- border-collapse: collapse;
1438
- border-spacing: 0;
1439
- }
1440
-
1441
- .mdzip-root .preview-content th,
1442
- .mdzip-root .preview-content td {
1443
- padding: 8px 12px;
1444
- border: 1px solid var(--mdzip-border-color);
1445
- text-align: left;
1446
- vertical-align: top;
1447
- }
1448
-
1449
- .mdzip-root .preview-content th {
1450
- background: var(--mdzip-widget-background-color);
1451
- font-weight: 600;
1452
- white-space: nowrap;
1453
- }
1454
-
1455
- .mdzip-root .preview-content td code,
1456
- .mdzip-root .preview-content th code {
1457
- white-space: nowrap;
1458
- }
1459
-
1460
- /* Markdown table alignment (left/center/right column syntax) survives as the
1461
- align attribute on th/td, but that's a presentational HTML hint — the plain
1462
- text-align: left above is a real stylesheet rule and would otherwise always
1463
- win regardless of column position. Right/center-aligned cells are also
1464
- typically short, fixed values (numbers, totals) that read better holding
1465
- their line, unlike left-aligned prose columns, which should wrap to fit
1466
- the pane. */
1467
- .mdzip-root .preview-content th[align="left"],
1468
- .mdzip-root .preview-content td[align="left"] {
1469
- text-align: left;
1470
- }
1471
-
1472
- .mdzip-root .preview-content th[align="center"],
1473
- .mdzip-root .preview-content td[align="center"] {
1474
- text-align: center;
1475
- white-space: nowrap;
1476
- }
1477
-
1478
- .mdzip-root .preview-content th[align="right"],
1479
- .mdzip-root .preview-content td[align="right"] {
1480
- text-align: right;
1481
- white-space: nowrap;
1482
- }
1483
-
1484
- .mdzip-root .preview-content td:last-child:not([align="center"]):not([align="right"]) {
1485
- min-width: 220px;
1486
- max-width: 320px;
1487
- }
1488
-
1489
- .mdzip-root .preview-content tbody tr:nth-child(even) {
1490
- background: var(--mdzip-hover-background-color);
1491
- }
1492
-
1493
- .mdzip-root .preview-content img {
1494
- max-width: 100%;
1495
- height: auto;
1496
- border-radius: 4px;
1497
- }
1498
-
1499
- .mdzip-root .preview-content img.mdzip-image-left,
1500
- .mdzip-root .preview-content img.mdzip-image-wrap-left {
1501
- float: left;
1502
- margin: 0.25em 1em 0.75em 0;
1503
- }
1504
-
1505
- .mdzip-root .preview-content img.mdzip-image-right,
1506
- .mdzip-root .preview-content img.mdzip-image-wrap-right {
1507
- float: right;
1508
- margin: 0.25em 0 0.75em 1em;
1509
- }
1510
-
1511
- .mdzip-root .preview-content img.mdzip-image-center {
1512
- display: block;
1513
- margin-left: auto;
1514
- margin-right: auto;
1515
- }
1516
-
1517
- /* Stands in for an image of a raw .drawio diagram, which the preview can't draw yet. */
1518
- .mdzip-root .preview-content .mdzip-drawio-placeholder {
1519
- display: flex;
1520
- gap: 0.85em;
1521
- align-items: flex-start;
1522
- max-width: 40em;
1523
- margin: 0.75em 0;
1524
- padding: 0.85em 1em;
1525
- border: 1px dashed var(--mdzip-border-color);
1526
- border-radius: 6px;
1527
- background: var(--mdzip-code-background-color);
1528
- color: var(--mdzip-editor-foreground-color);
1529
- font-size: 0.92em;
1530
- line-height: 1.5;
1531
- }
1532
-
1533
- .mdzip-root .preview-content .mdzip-drawio-placeholder-icon {
1534
- flex: 0 0 auto;
1535
- display: inline-flex;
1536
- color: var(--mdzip-muted-foreground-color);
1537
- padding-top: 0.1em;
1538
- }
1539
-
1540
- .mdzip-root .preview-content .mdzip-drawio-placeholder-body {
1541
- display: flex;
1542
- flex-direction: column;
1543
- gap: 0.2em;
1544
- min-width: 0;
1545
- }
1546
-
1547
- .mdzip-root .preview-content .mdzip-drawio-placeholder-file {
1548
- color: var(--mdzip-muted-foreground-color);
1549
- font-size: 0.92em;
1550
- overflow-wrap: anywhere;
1551
- }
1552
-
1553
- .mdzip-root .preview-content .mdzip-drawio-placeholder-text {
1554
- margin-top: 0.25em;
1555
- }
1556
-
1557
- .mdzip-root .preview-content .mdzip-drawio-placeholder-actions {
1558
- display: flex;
1559
- flex-wrap: wrap;
1560
- gap: 0.5em;
1561
- margin-top: 0.5em;
1562
- }
1563
-
1564
- .mdzip-root .preview-content .mdzip-drawio-placeholder-hint {
1565
- margin-top: 0.35em;
1566
- color: var(--mdzip-muted-foreground-color);
1567
- font-size: 0.92em;
1568
- }
1569
-
1570
- .mdzip-root .preview-content .mdzip-drawio-placeholder-action {
1571
- font: inherit;
1572
- font-size: 0.95em;
1573
- padding: 0.3em 0.85em;
1574
- border: 1px solid var(--mdzip-border-color);
1575
- border-radius: 4px;
1576
- background: var(--mdzip-editor-background-color);
1577
- color: var(--mdzip-editor-foreground-color);
1578
- cursor: pointer;
1579
- }
1580
-
1581
- .mdzip-root .preview-content .mdzip-drawio-placeholder-action:hover {
1582
- background: var(--mdzip-control-hover-background-color);
1583
- }
1584
-
1585
- .mdzip-root .preview-content .mdzip-drawio-placeholder-action:focus-visible {
1586
- outline: 2px solid var(--mdzip-focus-outline-color);
1587
- outline-offset: 1px;
1588
- }
1589
-
1590
- /* Progressive image hydration. Each archive image mounts inside a collapsed
1591
- slot so the text stays compact and immediately readable; when the image
1592
- resolves, the slot eases open (0fr -> 1fr) to the height reserved from its
1593
- sniffed dimensions, in a single slide, and the pixels drop into the exact
1594
- box with no further reflow. */
1595
- .mdzip-root .preview-content .mdzip-image-slot {
1596
- display: inline-grid;
1597
- grid-template-rows: 0fr;
1598
- overflow: hidden;
1599
- vertical-align: bottom;
1600
- transition: grid-template-rows 0.28s ease;
1601
- }
1602
-
1603
- .mdzip-root .preview-content .mdzip-image-slot.mdzip-image-open {
1604
- grid-template-rows: 1fr;
1605
- }
1606
-
1607
- .mdzip-root .preview-content .mdzip-image-slot.mdzip-image-animation-off {
1608
- transition: none;
1609
- }
1610
-
1611
- .mdzip-root .preview-content .mdzip-image-slot > img {
1612
- min-height: 0;
1613
- }
1614
-
1615
- .mdzip-root .preview-content .mdzip-image-slot.mdzip-image-align-left {
1616
- float: left;
1617
- margin: 0.25em 1em 0.75em 0;
1618
- }
1619
-
1620
- .mdzip-root .preview-content .mdzip-image-slot.mdzip-image-align-right {
1621
- float: right;
1622
- margin: 0.25em 0 0.75em 1em;
1623
- }
1624
-
1625
- .mdzip-root .preview-content img.mdzip-image-loading {
1626
- background: var(--mdzip-control-background-color, rgba(127, 127, 127, 0.12));
1627
- animation: mdzip-image-pulse 1.2s ease-in-out infinite;
1628
- }
1629
-
1630
- @keyframes mdzip-image-pulse {
1631
- 0%, 100% { opacity: 1; }
1632
- 50% { opacity: 0.55; }
1633
- }
1634
-
1635
- @media (prefers-reduced-motion: reduce) {
1636
- .mdzip-root .preview-content .mdzip-code-block-body {
1637
- transition: none;
1638
- }
1639
- .mdzip-root .preview-content .mdzip-image-slot {
1640
- transition: none;
1641
- }
1642
- .mdzip-root .preview-content img.mdzip-image-loading {
1643
- animation: none;
1644
- }
1645
- }
1646
-
1647
- .mdzip-root .preview-content .mdzip-frontmatter {
1648
- margin: 0 0 1em 0;
1649
- border: 1px solid var(--mdzip-border-color);
1650
- border-radius: 5px;
1651
- overflow: hidden;
1652
- }
1653
-
1654
- .mdzip-root .preview-content .mdzip-frontmatter-summary {
1655
- padding: 6px 12px;
1656
- background: var(--mdzip-widget-background-color);
1657
- color: var(--mdzip-muted-foreground-color);
1658
- font-size: 0.8em;
1659
- border-bottom: 1px solid var(--mdzip-border-color);
1660
- }
1661
-
1662
- /* Only the collapsible (<details>) variant is interactive — the static
1663
- variant's header is a plain <div>, never clickable. */
1664
- .mdzip-root .preview-content details.mdzip-frontmatter > .mdzip-frontmatter-summary {
1665
- cursor: pointer;
1666
- user-select: none;
1667
- }
1668
-
1669
- .mdzip-root .preview-content .mdzip-frontmatter-table {
1670
- width: 100%;
1671
- border-collapse: collapse;
1672
- }
1673
-
1674
- .mdzip-root .preview-content .mdzip-frontmatter-table th,
1675
- .mdzip-root .preview-content .mdzip-frontmatter-table td {
1676
- padding: 4px 12px;
1677
- border: none;
1678
- text-align: left;
1679
- vertical-align: top;
1680
- font-size: 0.85em;
1681
- }
1682
-
1683
- .mdzip-root .preview-content .mdzip-frontmatter-table th {
1684
- width: 1%;
1685
- white-space: nowrap;
1686
- color: var(--mdzip-muted-foreground-color);
1687
- font-weight: 600;
1688
- background: none;
1689
- }
1690
-
1691
- .mdzip-root .preview-content .mdzip-mermaid {
1692
- display: flex;
1693
- justify-content: center;
1694
- margin: 1em 0;
1695
- }
1696
-
1697
- .mdzip-root .preview-content .mdzip-mermaid > svg {
1698
- max-width: 100%;
1699
- height: auto;
1700
- }
1701
-
1702
- .mdzip-root .preview-content .mdzip-mermaid-error {
1703
- margin: 1em 0;
1704
- padding: 0.75em 1em;
1705
- border-radius: 6px;
1706
- border: 1px solid var(--mdzip-error-border-color, rgba(220, 70, 70, 0.5));
1707
- background: var(--mdzip-error-background-color, rgba(220, 70, 70, 0.08));
1708
- color: var(--mdzip-error-color, #b03030);
1709
- font-family: "Cascadia Code", Consolas, monospace;
1710
- font-size: 0.85em;
1711
- white-space: pre-wrap;
1712
- word-break: break-word;
1713
- }
1714
-
1715
- .mdzip-root .plain-text-preview {
1716
- margin: 0;
1717
- white-space: pre-wrap;
1718
- word-break: break-word;
1719
- font-family: "Cascadia Code", Consolas, monospace;
1720
- font-variant-ligatures: none;
1721
- font-feature-settings: "liga" 0, "calt" 0;
1722
- font-size: calc(20px * var(--mdz-zoom));
1723
- line-height: 1.5;
1724
- }
1725
-
1726
- .mdzip-root .asset-preview-wrap {
1727
- display: flex;
1728
- justify-content: center;
1729
- align-items: flex-start;
1730
- min-height: 240px;
1731
- }
1732
-
1733
- .mdzip-root .asset-preview-image {
1734
- max-width: min(100%, 1200px);
1735
- max-height: calc(100vh - 140px);
1736
- width: auto;
1737
- height: auto;
1738
- border: 1px solid var(--mdzip-border-color);
1739
- background: var(--mdzip-widget-background-color);
1740
- }
1741
-
1742
- .mdzip-root .asset-preview-empty {
1743
- padding: 14px 16px;
1744
- border: 1px solid var(--mdzip-border-color);
1745
- border-radius: 6px;
1746
- background: var(--mdzip-widget-background-color);
1747
- color: var(--mdzip-muted-foreground-color);
1748
- }
1749
-
1750
- .mdzip-root .md-syntax-heading { color: #c36f00; }
1751
- .mdzip-root .md-syntax-marker,
1752
- .mdzip-root .md-syntax-quote { color: #7a5c00; font-weight: 700; }
1753
- .mdzip-root .md-syntax-code,
1754
- .mdzip-root .md-syntax-fence { color: #8a8f00; }
1755
- .mdzip-root .md-syntax-link { color: #0969da; }
1756
- .mdzip-root .md-syntax-image { color: #d100d1; }
1757
- .mdzip-root .md-syntax-emphasis { color: #008b8b; }
1758
- .mdzip-root .md-syntax-rule { color: #6a9955; }
1759
-
1760
- .mdzip-root .mdzip-empty {
1761
- padding: 24px;
1762
- color: var(--mdzip-muted-foreground-color);
1763
- }
1764
-
1765
- .mdzip-root .zoom-popover {
1766
- position: absolute;
1767
- top: calc(100% + 6px);
1768
- right: 0;
1769
- z-index: 20;
1770
- display: flex;
1771
- align-items: center;
1772
- gap: 8px;
1773
- padding: 4px;
1774
- border: 1px solid var(--mdzip-widget-border-color);
1775
- border-radius: 7px;
1776
- background: var(--mdzip-widget-background-color);
1777
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
1778
- }
1779
-
1780
- .mdzip-root .zoom-level {
1781
- min-width: 44px;
1782
- padding: 0 6px;
1783
- font-size: 12px;
1784
- line-height: 1;
1785
- font-variant-numeric: tabular-nums;
1786
- color: var(--mdzip-editor-foreground-color);
1787
- }
1788
-
1789
- .mdzip-root .zoom-stepper {
1790
- display: inline-flex;
1791
- align-items: center;
1792
- gap: 2px;
1793
- padding-left: 8px;
1794
- border-left: 1px solid var(--mdzip-widget-border-color);
1795
- }
1796
-
1797
- .mdzip-root .zoom-popover button {
1798
- height: 24px;
1799
- min-width: 24px;
1800
- border: none;
1801
- border-radius: 6px;
1802
- background: transparent;
1803
- color: var(--mdzip-control-foreground-color);
1804
- cursor: pointer;
1805
- }
1806
-
1807
- .mdzip-root .zoom-popover button:hover {
1808
- background: var(--mdzip-control-hover-background-color);
1809
- }
1810
-
1811
- .mdzip-root .zoom-reset {
1812
- padding: 0 12px;
1813
- border-radius: 999px !important;
1814
- background: var(--mdzip-control-hover-background-color) !important;
1815
- font-size: 12px;
1816
- }
1817
-
1818
- .mdzip-root .title-dialog-backdrop {
1819
- position: fixed;
1820
- inset: 0;
1821
- display: flex;
1822
- align-items: center;
1823
- justify-content: center;
1824
- background: rgba(0, 0, 0, 0.32);
1825
- z-index: 100;
1826
- }
1827
-
1828
- .mdzip-root .title-dialog {
1829
- width: min(420px, calc(100vw - 32px));
1830
- background: var(--mdzip-editor-background-color);
1831
- border: 1px solid var(--mdzip-widget-border-color);
1832
- border-radius: 6px;
1833
- padding: 14px;
1834
- box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
1835
- }
1836
-
1837
- .mdzip-root .title-dialog h3 {
1838
- margin: 0;
1839
- font-size: 14px;
1840
- }
1841
-
1842
- .mdzip-root .title-dialog p {
1843
- margin: 8px 0 10px;
1844
- font-size: 12px;
1845
- color: var(--mdzip-muted-foreground-color);
1846
- }
1847
-
1848
- .mdzip-root .title-dialog input {
1849
- width: 100%;
1850
- border: 1px solid var(--mdzip-widget-border-color);
1851
- background: var(--mdzip-editor-background-color);
1852
- color: var(--mdzip-editor-foreground-color);
1853
- border-radius: 4px;
1854
- padding: 6px 8px;
1855
- font-size: 13px;
1856
- }
1857
-
1858
- .mdzip-root .title-dialog select {
1859
- width: 100%;
1860
- border: 1px solid var(--mdzip-widget-border-color);
1861
- background: var(--mdzip-editor-background-color);
1862
- color: var(--mdzip-editor-foreground-color);
1863
- border-radius: 4px;
1864
- padding: 6px 8px;
1865
- font-size: 13px;
1866
- }
1867
-
1868
- .mdzip-root .title-dialog input:disabled,
1869
- .mdzip-root .title-dialog select:disabled {
1870
- border-color: var(--mdzip-border-color);
1871
- background: var(--mdzip-secondary-background-color);
1872
- color: var(--mdzip-muted-foreground-color);
1873
- opacity: 0.72;
1874
- cursor: not-allowed;
1875
- }
1876
-
1877
- .mdzip-root .title-dialog input:disabled::placeholder {
1878
- color: var(--mdzip-muted-foreground-color);
1879
- }
1880
-
1881
- .mdzip-root .title-dialog-validation {
1882
- color: #cf222e !important;
1883
- }
1884
-
1885
- .mdzip-root .title-dialog-actions {
1886
- display: flex;
1887
- justify-content: flex-end;
1888
- gap: 8px;
1889
- margin-top: 12px;
1890
- }
1891
-
1892
- .mdzip-root .title-dialog-actions button {
1893
- padding: 5px 10px;
1894
- font-size: 12px;
1895
- cursor: pointer;
1896
- border-radius: 3px;
1897
- border: 1px solid var(--mdzip-border-color);
1898
- background: var(--mdzip-editor-background-color);
1899
- color: var(--mdzip-editor-foreground-color);
1900
- }
1901
-
1902
- .mdzip-root .title-dialog-actions .reset-title {
1903
- margin-right: auto;
1904
- }
1905
-
1906
- .mdzip-root .title-dialog-actions .save-title {
1907
- border-color: var(--mdzip-accent-color);
1908
- background: var(--mdzip-accent-color);
1909
- color: var(--mdzip-accent-foreground-color);
1910
- }
1911
-
1912
- .mdzip-root .image-insert-dialog {
1913
- width: min(460px, calc(100vw - 32px));
1914
- }
1915
-
1916
- .mdzip-root .image-insert-options {
1917
- display: grid;
1918
- gap: 6px;
1919
- margin: 10px 0;
1920
- padding: 10px;
1921
- border: 1px solid var(--mdzip-widget-border-color);
1922
- border-radius: 4px;
1923
- }
1924
-
1925
- .mdzip-root .image-insert-options legend {
1926
- padding: 0 4px;
1927
- color: var(--mdzip-muted-foreground-color);
1928
- font-size: 12px;
1929
- font-weight: 600;
1930
- }
1931
-
1932
- .mdzip-root .image-insert-options label,
1933
- .mdzip-root .image-insert-field {
1934
- display: grid;
1935
- gap: 4px;
1936
- font-size: 12px;
1937
- }
1938
-
1939
- .mdzip-root .image-insert-options label {
1940
- grid-template-columns: auto 1fr;
1941
- align-items: center;
1942
- }
1943
-
1944
- .mdzip-root .image-insert-options input {
1945
- width: auto;
1946
- }
1947
-
1948
- .mdzip-root .image-insert-grid {
1949
- display: grid;
1950
- grid-template-columns: 1fr 1fr;
1951
- gap: 8px;
1952
- margin-top: 8px;
1953
- }
1954
-
1955
- .mdzip-root .image-insert-field {
1956
- margin-top: 8px;
1957
- }
1958
-
1959
- .mdzip-root .image-insert-field.field-disabled {
1960
- color: var(--mdzip-muted-foreground-color);
1961
- }
1962
-
1963
- .mdzip-root .pack-files-dialog {
1964
- width: min(460px, calc(100vw - 32px));
1965
- }
1966
-
1967
- .mdzip-root .pack-files-options {
1968
- display: grid;
1969
- gap: 6px;
1970
- margin: 10px 0;
1971
- padding: 10px;
1972
- border: 1px solid var(--mdzip-widget-border-color);
1973
- border-radius: 4px;
1974
- }
1975
-
1976
- .mdzip-root .pack-files-options legend {
1977
- padding: 0 4px;
1978
- color: var(--mdzip-muted-foreground-color);
1979
- font-size: 12px;
1980
- font-weight: 600;
1981
- }
1982
-
1983
- .mdzip-root .pack-files-options label,
1984
- .mdzip-root .pack-files-field {
1985
- display: grid;
1986
- gap: 4px;
1987
- font-size: 12px;
1988
- }
1989
-
1990
- .mdzip-root .pack-files-options label {
1991
- grid-template-columns: auto 1fr;
1992
- align-items: center;
1993
- }
1994
-
1995
- .mdzip-root .pack-files-options input {
1996
- width: auto;
1997
- }
1998
-
1999
- .mdzip-root .pack-files-field {
2000
- margin-top: 8px;
2001
- }
2002
-
2003
- .mdzip-root .copy-render-progress-track {
2004
- height: 6px;
2005
- border-radius: 3px;
2006
- background: var(--mdzip-secondary-background-color);
2007
- overflow: hidden;
2008
- }
2009
-
2010
- .mdzip-root .copy-render-progress-bar {
2011
- height: 100%;
2012
- background: var(--mdzip-accent-color);
2013
- transition: width 0.1s linear;
2014
- }
2015
-
2016
- .mdzip-root .metadata-dialog dl {
2017
- margin: 12px 0 0;
2018
- }
2019
-
2020
- .mdzip-root .metadata-dialog {
2021
- width: min(760px, calc(100vw - 32px));
2022
- }
2023
-
2024
- .mdzip-root .metadata-dialog h4 {
2025
- margin: 18px 0 0;
2026
- font-size: 13px;
2027
- }
2028
-
2029
- .mdzip-root .metadata-dialog h4 + dl {
2030
- margin-top: 6px;
2031
- }
2032
-
2033
- .mdzip-root .metadata-row {
2034
- display: grid;
2035
- grid-template-columns: 110px minmax(0, 1fr);
2036
- gap: 12px;
2037
- padding: 7px 0;
2038
- border-bottom: 1px solid var(--mdzip-border-color);
2039
- font-size: 14px;
2040
- }
2041
-
2042
- .mdzip-root .metadata-row:last-child {
2043
- border-bottom: 0;
2044
- }
2045
-
2046
- .mdzip-root .metadata-row dt {
2047
- color: var(--mdzip-muted-foreground-color);
2048
- font-weight: 600;
2049
- }
2050
-
2051
- .mdzip-root .metadata-row dd {
2052
- min-width: 0;
2053
- margin: 0;
2054
- overflow-wrap: anywhere;
2055
- }
2056
-
2057
- .mdzip-root .library-row dt a {
2058
- color: var(--mdzip-link-color);
2059
- text-decoration: none;
2060
- }
2061
-
2062
- .mdzip-root .library-row dt a:hover,
2063
- .mdzip-root .library-row dt a:focus-visible {
2064
- text-decoration: underline;
2065
- }
2066
-
2067
- .mdzip-root .library-row {
2068
- grid-template-columns: minmax(230px, 0.75fr) minmax(280px, 1.25fr);
2069
- }
2070
-
2071
- .mdzip-root .library-row dt {
2072
- display: flex;
2073
- gap: 8px;
2074
- align-items: baseline;
2075
- white-space: nowrap;
2076
- }
2077
-
2078
- .mdzip-root .library-version {
2079
- color: var(--mdzip-muted-foreground-color);
2080
- font-weight: 400;
2081
- }
2082
-
2083
- .mdzip-root .library-row dd {
2084
- white-space: nowrap;
2085
- }
2086
-
2087
- .mdzip-root .library-description {
2088
- color: var(--mdzip-muted-foreground-color);
2089
- }
2090
-
2091
- @media (max-width: 640px) {
2092
- .mdzip-root .library-row {
2093
- grid-template-columns: 1fr;
2094
- gap: 3px;
2095
- }
2096
-
2097
- .mdzip-root .library-row dd {
2098
- white-space: normal;
2099
- }
2100
- }
2101
-
2102
- @media (max-width: 900px) {
2103
- .mdzip-root { --nav-pane-width: 220px; }
2104
- }
2105
-
2106
- /* Stack the formatting toolbar only once the pushed-right view-mode toggle no
2107
- longer has enough room between the edit tools and the right-side controls. */
2108
- @media (max-width: 760px) {
2109
- .mdzip-root .toolbar {
2110
- grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
2111
- row-gap: 4px;
2112
- }
2113
- .mdzip-root .toolbar-start {
2114
- display: contents;
2115
- }
2116
- .mdzip-root .toolbar-left {
2117
- grid-column: 1;
2118
- grid-row: 1;
2119
- }
2120
- .mdzip-root .edit-toolbar {
2121
- grid-column: 1 / -1;
2122
- grid-row: 2;
2123
- justify-self: start;
2124
- position: static;
2125
- transform: none;
2126
- }
2127
- .mdzip-root .view-mode-toggle-group {
2128
- position: static;
2129
- transform: none;
2130
- }
2131
- .mdzip-root .toolbar-controls {
2132
- grid-column: 3;
2133
- grid-row: 1;
2134
- }
2135
- }
2136
-
2137
- @media (max-width: 1100px) {
2138
- .mdzip-root.navigation-pane-visible .toolbar {
2139
- grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
2140
- row-gap: 4px;
2141
- }
2142
- .mdzip-root.navigation-pane-visible .toolbar-start {
2143
- display: contents;
2144
- }
2145
- .mdzip-root.navigation-pane-visible .toolbar-left {
2146
- grid-column: 1;
2147
- grid-row: 1;
2148
- }
2149
- .mdzip-root.navigation-pane-visible .edit-toolbar {
2150
- grid-column: 1 / -1;
2151
- grid-row: 2;
2152
- justify-self: start;
2153
- position: static;
2154
- transform: none;
2155
- }
2156
- .mdzip-root.navigation-pane-visible .view-mode-toggle-group {
2157
- position: static;
2158
- transform: none;
2159
- }
2160
- .mdzip-root.navigation-pane-visible .toolbar-controls {
2161
- grid-column: 3;
2162
- grid-row: 1;
2163
- }
2164
- }
2165
-
2166
- @media (prefers-reduced-motion: reduce) {
2167
- .mdzip-root .nav-pane,
2168
- .mdzip-root .nav-resizer {
2169
- transition: none;
2170
- }
2171
- }
2172
-
2173
- @media (max-width: 640px) {
2174
- .mdzip-root .toolbar {
2175
- grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
2176
- row-gap: 6px;
2177
- }
2178
- .mdzip-root .edit-toolbar {
2179
- overflow-x: auto;
2180
- }
2181
- .mdzip-root .toolbar-controls {
2182
- grid-column: 3;
2183
- grid-row: 1;
2184
- justify-self: end;
2185
- }
2186
- }
2187
-
2188
- @media print {
2189
- .mdzip-root {
2190
- height: auto;
2191
- min-height: 0;
2192
- overflow: visible;
2193
- display: block;
2194
- background: #ffffff;
2195
- color: #000000;
2196
- }
2197
-
2198
- .mdzip-root .toolbar,
2199
- .mdzip-root .document-strip,
2200
- .mdzip-root .nav-pane,
2201
- .mdzip-root .nav-resizer,
2202
- .mdzip-root .split-resizer,
2203
- .mdzip-root .edit-pane,
2204
- .mdzip-root .edit-toolbar,
2205
- .mdzip-root .mdzip-tooltip,
2206
- .mdzip-root .nav-context-menu,
2207
- .mdzip-root .title-dialog-backdrop,
2208
- .mdzip-root .theme-popover,
2209
- .mdzip-root .toolbar-popover,
2210
- .mdzip-root .zoom-popover {
2211
- display: none !important;
2212
- }
2213
-
2214
- .mdzip-root .workspace-shell {
2215
- display: block;
2216
- }
2217
-
2218
- .mdzip-root .pane-stack,
2219
- .mdzip-root .pane-stack.split-mode {
2220
- display: block;
2221
- height: auto;
2222
- }
2223
-
2224
- .mdzip-root .preview-pane {
2225
- display: block !important;
2226
- overflow: visible;
2227
- height: auto;
2228
- }
2229
-
2230
- .mdzip-root .preview-content {
2231
- max-width: 100%;
2232
- padding: 0;
2233
- font-size: 11pt;
2234
- line-height: 1.6;
2235
- }
2236
-
2237
- .mdzip-root .preview-content h1,
2238
- .mdzip-root .preview-content h2,
2239
- .mdzip-root .preview-content h3,
2240
- .mdzip-root .preview-content h4,
2241
- .mdzip-root .preview-content h5,
2242
- .mdzip-root .preview-content h6 {
2243
- page-break-after: avoid;
2244
- color: #000000;
2245
- }
2246
-
2247
- .mdzip-root .preview-content pre,
2248
- .mdzip-root .preview-content blockquote,
2249
- .mdzip-root .preview-content img,
2250
- .mdzip-root .preview-content table {
2251
- page-break-inside: avoid;
2252
- }
2253
-
2254
- .mdzip-root .preview-content pre,
2255
- .mdzip-root .preview-content code {
2256
- white-space: pre-wrap;
2257
- word-break: break-word;
2258
- background: #f6f8fa;
2259
- color: #000000;
2260
- border-color: #d0d7de;
2261
- }
2262
-
2263
- .mdzip-root .preview-content a {
2264
- color: #000000;
2265
- text-decoration: underline;
2266
- }
2267
-
2268
- .mdzip-root .preview-content img {
2269
- max-width: 100%;
2270
- }
2271
- }
2272
-
2273
- /* Syntax highlighting for code blocks in preview (highlight.js) */
2274
- .mdzip-root .preview-content pre code {
2275
- display: block;
2276
- overflow-x: auto;
2277
- padding: 12px;
2278
- background: var(--mdzip-editor-background-color);
2279
- border-radius: 4px;
2280
- font-family: "Courier New", Courier, monospace;
2281
- font-variant-ligatures: none;
2282
- font-feature-settings: "liga" 0, "calt" 0;
2283
- font-size: 12px;
2284
- color: var(--mdzip-editor-foreground-color);
2285
- }
2286
-
2287
- /* Dark theme (Monokai-inspired) - highlight.js classes */
2288
- .mdzip-root .hljs { color: #f8f8f2; }
2289
- .mdzip-root .hljs-comment { color: #75715e; }
2290
- .mdzip-root .hljs-string { color: #a6e22e; }
2291
- .mdzip-root .hljs-number { color: #ae81ff; }
2292
- .mdzip-root .hljs-literal { color: #ae81ff; }
2293
- .mdzip-root .hljs-attr { color: #a6e22e; }
2294
- .mdzip-root .hljs-keyword { color: #f92672; }
2295
- .mdzip-root .hljs-title { color: #a6e22e; }
2296
- .mdzip-root .hljs-punctuation { color: #f8f8f2; }
2297
- .mdzip-root .hljs-operator { color: #f92672; }
2298
-
2299
- /* Light theme - highlight.js classes */
2300
- .mdzip-root.mdzip-theme-light .hljs { color: #383a42; }
2301
- .mdzip-root.mdzip-theme-light .hljs-comment { color: #a0a1a7; }
2302
- .mdzip-root.mdzip-theme-light .hljs-string { color: #50a14f; }
2303
- .mdzip-root.mdzip-theme-light .hljs-number { color: #986801; }
2304
- .mdzip-root.mdzip-theme-light .hljs-literal { color: #986801; }
2305
- .mdzip-root.mdzip-theme-light .hljs-attr { color: #50a14f; }
2306
- .mdzip-root.mdzip-theme-light .hljs-keyword { color: #a626a4; }
2307
- .mdzip-root.mdzip-theme-light .hljs-title { color: #50a14f; }
2308
- .mdzip-root.mdzip-theme-light .hljs-punctuation { color: #383a42; }
2309
- .mdzip-root.mdzip-theme-light .hljs-operator { color: #a626a4; }
4
+ export const WORKSPACE_CSS = `
5
+ .mdzip-root {
6
+ /* Layout variables */
7
+ --mdz-zoom: 1;
8
+ --nav-pane-width: 280px;
9
+ --editor-pane-offset: 12px;
10
+ --workspace-pane-offset: 0px;
11
+ --split-edit-ratio: 0.5;
12
+
13
+ /* Theme variable mappings */
14
+ ${MDZIP_VARIABLES_CSS}
15
+
16
+ display: flex;
17
+ flex-direction: column;
18
+ width: 100%;
19
+ height: 100%;
20
+ min-height: 520px;
21
+ background: var(--mdzip-editor-background-color);
22
+ color: var(--mdzip-editor-foreground-color);
23
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
24
+ font-size: 13px;
25
+ overflow: hidden;
26
+ box-sizing: border-box;
27
+ }
28
+
29
+ .mdzip-root.toolbar-density-compact {
30
+ --mdzip-density-toolbar-padding: 3px 10px;
31
+ --mdzip-density-toolbar-gap: 4px;
32
+ --mdzip-density-toolbar-start-gap: 8px;
33
+ --mdzip-density-toolbar-group-padding: 2px;
34
+ --mdzip-density-toolbar-button-width: 34px;
35
+ --mdzip-density-toolbar-button-height: 30px;
36
+ --mdzip-density-toolbar-compact-button-size: 28px;
37
+ --mdzip-density-toolbar-icon-size: 15px;
38
+ --mdzip-density-toolbar-icon-large-size: 19px;
39
+ --mdzip-density-toolbar-icon-extra-large-size: 22px;
40
+ --mdzip-density-theme-icon-size: 16px;
41
+ --mdzip-density-format-toolbar-gap: 4px;
42
+ --mdzip-density-format-toolbar-group-gap: 1px;
43
+ --mdzip-density-format-button-size: 28px;
44
+ --mdzip-density-format-menu-button-width: 36px;
45
+ --mdzip-density-format-icon-size: 15px;
46
+ }
47
+
48
+ .mdzip-root.toolbar-density-dense {
49
+ --mdzip-density-toolbar-padding: 2px 8px;
50
+ --mdzip-density-toolbar-gap: 3px;
51
+ --mdzip-density-toolbar-start-gap: 6px;
52
+ --mdzip-density-toolbar-group-padding: 1px;
53
+ --mdzip-density-toolbar-button-width: 30px;
54
+ --mdzip-density-toolbar-button-height: 28px;
55
+ --mdzip-density-toolbar-compact-button-size: 26px;
56
+ --mdzip-density-toolbar-icon-size: 14px;
57
+ --mdzip-density-toolbar-icon-large-size: 18px;
58
+ --mdzip-density-toolbar-icon-extra-large-size: 20px;
59
+ --mdzip-density-theme-icon-size: 15px;
60
+ --mdzip-density-format-toolbar-gap: 3px;
61
+ --mdzip-density-format-toolbar-group-gap: 1px;
62
+ --mdzip-density-format-button-size: 26px;
63
+ --mdzip-density-format-menu-button-width: 34px;
64
+ --mdzip-density-format-icon-size: 14px;
65
+ }
66
+
67
+ .mdzip-root.content-density-compact {
68
+ --mdzip-density-editor-content-padding: 20px 28px;
69
+ --mdzip-density-preview-content-padding: 20px 24px 32px;
70
+ }
71
+
72
+ .mdzip-root.mdzip-theme-light {
73
+ color-scheme: light;
74
+ ${MDZIP_LIGHT_DEFAULTS_CSS}
75
+ }
76
+
77
+ .mdzip-root.mdzip-theme-dark {
78
+ color-scheme: dark;
79
+ ${MDZIP_DARK_DEFAULTS_CSS}
80
+ }
81
+
82
+ .mdzip-root *,
83
+ .mdzip-root *::before,
84
+ .mdzip-root *::after {
85
+ box-sizing: border-box;
86
+ }
87
+
88
+ .mdzip-root [hidden] {
89
+ display: none !important;
90
+ }
91
+
92
+ .mdzip-root .document-strip {
93
+ display: flex;
94
+ align-items: center;
95
+ gap: 5px;
96
+ min-height: 30px;
97
+ padding: 3px 12px;
98
+ background: var(--mdzip-editor-foreground-color);
99
+ background: rgba(0, 0, 0, 0.05);
100
+ border-bottom: 1px solid var(--mdzip-border-color);
101
+ flex: 0 0 auto;
102
+ }
103
+
104
+ .mdzip-root.mdzip-theme-dark .document-strip {
105
+ background: rgba(255, 255, 255, 0.08);
106
+ }
107
+
108
+ .mdzip-root .toolbar {
109
+ --view-mode-min-left: calc(var(--editor-pane-offset) + 520px);
110
+ --view-mode-max-left: calc(100% - 170px);
111
+
112
+ display: grid;
113
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
114
+ align-items: center;
115
+ column-gap: 12px;
116
+ padding: var(--mdzip-toolbar-padding, var(--mdzip-density-toolbar-padding, 4px 12px));
117
+ background: var(--mdzip-toolbar-background-color);
118
+ border-bottom: 1px solid var(--mdzip-border-color);
119
+ min-height: 48px;
120
+ flex: 0 0 auto;
121
+ position: relative;
122
+ z-index: 5;
123
+ }
124
+
125
+ .mdzip-root .toolbar-left,
126
+ .mdzip-root .toolbar-controls {
127
+ display: flex;
128
+ align-items: center;
129
+ min-width: 0;
130
+ gap: var(--mdzip-toolbar-gap, var(--mdzip-density-toolbar-gap, 6px));
131
+ }
132
+
133
+ .mdzip-root .toolbar-start {
134
+ display: flex;
135
+ align-items: center;
136
+ justify-self: start;
137
+ min-width: 0;
138
+ gap: var(--mdzip-toolbar-start-gap, var(--mdzip-density-toolbar-start-gap, 12px));
139
+ }
140
+
141
+ .mdzip-root.navigation-pane-visible {
142
+ --editor-pane-offset: calc(var(--nav-pane-width) + 6px);
143
+ --workspace-pane-offset: calc(var(--nav-pane-width) + 6px);
144
+ }
145
+
146
+ .mdzip-root .toolbar-left {
147
+ flex: 0 0 auto;
148
+ overflow: hidden;
149
+ }
150
+
151
+ .mdzip-root .toolbar-controls {
152
+ grid-column: 3;
153
+ justify-self: end;
154
+ position: relative;
155
+ }
156
+
157
+ .mdzip-root .title-button {
158
+ flex: 1 1 auto;
159
+ border: 0;
160
+ background: transparent;
161
+ padding: 0;
162
+ margin: 0;
163
+ color: var(--mdzip-editor-foreground-color);
164
+ font: inherit;
165
+ font-size: 13px;
166
+ font-weight: 500;
167
+ text-decoration: none;
168
+ cursor: pointer;
169
+ min-width: 0;
170
+ overflow: hidden;
171
+ text-overflow: ellipsis;
172
+ white-space: nowrap;
173
+ }
174
+
175
+ .mdzip-root .title-button:hover {
176
+ text-decoration: underline;
177
+ text-underline-offset: 2px;
178
+ }
179
+
180
+ .mdzip-root .title-button:disabled {
181
+ color: var(--mdzip-editor-foreground-color);
182
+ text-decoration: none;
183
+ cursor: default;
184
+ }
185
+
186
+ .mdzip-root .title-filename {
187
+ font-weight: 400;
188
+ opacity: 0.6;
189
+ }
190
+
191
+ .mdzip-root .document-info-button {
192
+ display: inline-flex;
193
+ align-items: center;
194
+ justify-content: center;
195
+ flex: 0 0 24px;
196
+ width: 24px;
197
+ height: 24px;
198
+ padding: 0;
199
+ border: 0;
200
+ border-radius: 4px;
201
+ background: transparent;
202
+ color: var(--mdzip-muted-foreground-color);
203
+ cursor: pointer;
204
+ }
205
+
206
+ .mdzip-root .document-info-button:hover,
207
+ .mdzip-root .document-info-button:focus-visible {
208
+ outline: none;
209
+ background: var(--mdzip-control-hover-background-color);
210
+ color: var(--mdzip-control-foreground-color);
211
+ }
212
+
213
+ .mdzip-root .document-info-icon {
214
+ width: 15px;
215
+ height: 15px;
216
+ }
217
+
218
+ .mdzip-root .toolbar-buttons {
219
+ display: flex;
220
+ align-items: center;
221
+ gap: 4px;
222
+ justify-self: center;
223
+ padding: var(--mdzip-toolbar-group-padding, var(--mdzip-density-toolbar-group-padding, 3px));
224
+ border: 1px solid var(--mdzip-widget-border-color);
225
+ border-radius: 8px;
226
+ background: var(--mdzip-widget-background-color);
227
+ }
228
+
229
+ .mdzip-root .view-mode-toggle-group {
230
+ position: absolute;
231
+ left: clamp(
232
+ var(--view-mode-min-left),
233
+ calc((100% + var(--workspace-pane-offset)) / 2),
234
+ var(--view-mode-max-left)
235
+ );
236
+ top: 50%;
237
+ transform: translate(-50%, -50%);
238
+ gap: 2px;
239
+ /* Paint above the edit toolbar (z-index 6) with an opaque surface so any
240
+ residual overlap at unusual widths reads as a clean layered control. */
241
+ z-index: 7;
242
+ background: var(--mdzip-widget-background-color);
243
+ }
244
+
245
+ .mdzip-root .icon-toggle {
246
+ width: var(--mdzip-toolbar-button-width, var(--mdzip-toolbar-button-size, var(--mdzip-density-toolbar-button-width, 42px)));
247
+ height: var(--mdzip-toolbar-button-height, var(--mdzip-toolbar-button-size, var(--mdzip-density-toolbar-button-height, 36px)));
248
+ padding: 0;
249
+ cursor: pointer;
250
+ background: transparent;
251
+ color: var(--mdzip-control-foreground-color);
252
+ border: none;
253
+ border-radius: 5px;
254
+ display: inline-flex;
255
+ align-items: center;
256
+ justify-content: center;
257
+ }
258
+
259
+ .mdzip-root .icon-toggle.active {
260
+ background: var(--mdzip-accent-color);
261
+ color: var(--mdzip-accent-foreground-color);
262
+ }
263
+
264
+ .mdzip-root .icon-toggle:hover:not(.active):not(:disabled) {
265
+ background: var(--mdzip-control-hover-background-color);
266
+ }
267
+
268
+ .mdzip-root .icon-toggle:disabled {
269
+ opacity: 0.55;
270
+ cursor: not-allowed;
271
+ }
272
+
273
+ .mdzip-root .toggle-icon {
274
+ width: var(--mdzip-toolbar-icon-size, var(--mdzip-density-toolbar-icon-size, 17px));
275
+ height: var(--mdzip-toolbar-icon-size, var(--mdzip-density-toolbar-icon-size, 17px));
276
+ fill: none;
277
+ stroke: currentColor;
278
+ }
279
+
280
+ .mdzip-root .view-mode-toggle {
281
+ position: relative;
282
+ width: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
283
+ height: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
284
+ border-radius: 6px;
285
+ color: var(--mdzip-control-foreground-color);
286
+ }
287
+
288
+ .mdzip-root .view-mode-toggle.active {
289
+ background: var(--mdzip-control-hover-background-color);
290
+ color: var(--mdzip-link-color);
291
+ }
292
+
293
+ .mdzip-root .view-mode-toggle:hover:not(.active):not(:disabled) {
294
+ background: var(--mdzip-control-hover-background-color);
295
+ }
296
+
297
+ .mdzip-root .view-mode-toggle.active:hover:not(:disabled) {
298
+ background: var(--mdzip-control-hover-background-color);
299
+ }
300
+
301
+ .mdzip-root .view-mode-toggle .commandbar-flex-container {
302
+ display: flex;
303
+ align-items: center;
304
+ justify-content: center;
305
+ width: 100%;
306
+ height: 100%;
307
+ }
308
+
309
+ .mdzip-root .view-mode-toggle .toggle-icon {
310
+ width: var(--mdzip-toolbar-icon-large-size, var(--mdzip-density-toolbar-icon-large-size, 1.5em));
311
+ height: var(--mdzip-toolbar-icon-large-size, var(--mdzip-density-toolbar-icon-large-size, 1.5em));
312
+ }
313
+
314
+ .mdzip-root .nav-toggle {
315
+ width: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
316
+ height: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
317
+ border-radius: 6px;
318
+ }
319
+
320
+ .mdzip-root .nav-toggle.active {
321
+ background: var(--mdzip-control-hover-background-color);
322
+ color: var(--mdzip-link-color);
323
+ }
324
+
325
+ .mdzip-root .nav-toggle.convert-mdz-toggle {
326
+ color: var(--mdzip-link-color);
327
+ }
328
+
329
+ .mdzip-root .nav-toggle.convert-mdz-toggle:hover:not(:disabled) {
330
+ background: var(--mdzip-control-hover-background-color);
331
+ }
332
+
333
+ .mdzip-root .nav-toggle .toggle-icon {
334
+ width: var(--mdzip-toolbar-icon-extra-large-size, var(--mdzip-density-toolbar-icon-extra-large-size, 1.9em));
335
+ height: var(--mdzip-toolbar-icon-extra-large-size, var(--mdzip-density-toolbar-icon-extra-large-size, 1.9em));
336
+ }
337
+
338
+ .mdzip-root .zoom-toggle .toggle-icon {
339
+ width: var(--mdzip-toolbar-icon-large-size, var(--mdzip-density-toolbar-icon-large-size, 1.5em));
340
+ height: var(--mdzip-toolbar-icon-large-size, var(--mdzip-density-toolbar-icon-large-size, 1.5em));
341
+ }
342
+
343
+ /* Search, save and zoom match the menus beside them and the layout buttons:
344
+ one compact button size and one icon size, so the icons are evenly spaced. */
345
+ .mdzip-root .toolbar-controls > .icon-toggle {
346
+ width: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
347
+ height: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
348
+ border-radius: 6px;
349
+ }
350
+
351
+ .mdzip-root .toolbar-controls > .icon-toggle .toggle-icon {
352
+ width: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
353
+ height: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
354
+ }
355
+
356
+ .mdzip-root .zoom-toggle.active {
357
+ background: var(--mdzip-control-hover-background-color);
358
+ color: var(--mdzip-link-color);
359
+ }
360
+
361
+ .mdzip-root .theme-menu,
362
+ .mdzip-root .toolbar-menu {
363
+ position: relative;
364
+ display: flex;
365
+ align-items: center;
366
+ }
367
+
368
+ .mdzip-root .theme-menu-toggle,
369
+ .mdzip-root .toolbar-menu-toggle {
370
+ display: inline-flex;
371
+ align-items: center;
372
+ justify-content: center;
373
+ width: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
374
+ height: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
375
+ border-radius: 6px;
376
+ }
377
+
378
+ .mdzip-root .theme-menu-toggle.active,
379
+ .mdzip-root .toolbar-menu-toggle.active {
380
+ background: var(--mdzip-control-hover-background-color);
381
+ color: var(--mdzip-link-color);
382
+ }
383
+
384
+ /* A host-supplied System icon (systemColorScheme.icon), sized by toggle-icon. */
385
+ .mdzip-root .mdzip-host-icon {
386
+ display: inline-flex;
387
+ }
388
+
389
+ .mdzip-root .mdzip-host-icon > svg {
390
+ width: 100%;
391
+ height: 100%;
392
+ }
393
+
394
+ .mdzip-root .theme-menu-icon,
395
+ .mdzip-root .toolbar-menu-icon {
396
+ display: inline-flex;
397
+ }
398
+
399
+ .mdzip-root .theme-menu-icon .toggle-icon,
400
+ .mdzip-root .toolbar-menu-icon .toggle-icon {
401
+ width: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
402
+ height: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
403
+ }
404
+
405
+ .mdzip-root .theme-popover,
406
+ .mdzip-root .toolbar-popover {
407
+ position: absolute;
408
+ top: calc(100% + 6px);
409
+ right: 0;
410
+ z-index: 20;
411
+ display: flex;
412
+ flex-direction: column;
413
+ gap: 2px;
414
+ padding: 4px;
415
+ border: 1px solid var(--mdzip-widget-border-color);
416
+ border-radius: 7px;
417
+ background: var(--mdzip-widget-background-color);
418
+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
419
+ }
420
+
421
+ .mdzip-root .theme-toggle,
422
+ .mdzip-root .toolbar-menu-item {
423
+ width: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
424
+ height: var(--mdzip-toolbar-compact-button-size, var(--mdzip-density-toolbar-compact-button-size, 32px));
425
+ border-radius: 6px;
426
+ }
427
+
428
+ .mdzip-root .theme-toggle.active,
429
+ .mdzip-root .toolbar-menu-item.active {
430
+ background: var(--mdzip-control-hover-background-color);
431
+ color: var(--mdzip-link-color);
432
+ }
433
+
434
+ .mdzip-root .theme-toggle .toggle-icon,
435
+ .mdzip-root .toolbar-menu-item .toggle-icon {
436
+ width: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
437
+ height: var(--mdzip-theme-icon-size, var(--mdzip-density-theme-icon-size, 18px));
438
+ }
439
+
440
+ .mdzip-root .workspace-shell {
441
+ display: flex;
442
+ flex: 1 1 auto;
443
+ min-height: 0;
444
+ }
445
+
446
+ .mdzip-root.resizing,
447
+ .mdzip-root.resizing * {
448
+ cursor: col-resize !important;
449
+ user-select: none;
450
+ }
451
+
452
+ .mdzip-root .nav-pane {
453
+ flex: 0 0 var(--nav-pane-width);
454
+ width: var(--nav-pane-width);
455
+ min-width: 180px;
456
+ max-width: 60vw;
457
+ border-right: 1px solid var(--mdzip-border-color);
458
+ background: var(--mdzip-sidebar-background-color);
459
+ color: var(--mdzip-sidebar-foreground-color);
460
+ overflow: auto;
461
+ transition:
462
+ flex-basis 0.18s ease,
463
+ width 0.18s ease,
464
+ min-width 0.18s ease,
465
+ opacity 0.14s ease,
466
+ border-color 0.18s ease;
467
+ }
468
+
469
+ .mdzip-root .nav-pane.hidden {
470
+ flex-basis: 0;
471
+ width: 0;
472
+ min-width: 0;
473
+ border-right-color: transparent;
474
+ opacity: 0;
475
+ overflow: hidden;
476
+ pointer-events: none;
477
+ }
478
+
479
+ .mdzip-root .nav-resizer {
480
+ position: relative;
481
+ flex: 0 0 6px;
482
+ background: transparent;
483
+ cursor: col-resize;
484
+ opacity: 1;
485
+ transition:
486
+ flex-basis 0.18s ease,
487
+ opacity 0.14s ease;
488
+ }
489
+
490
+ .mdzip-root .nav-resizer.hidden {
491
+ flex-basis: 0;
492
+ opacity: 0;
493
+ pointer-events: none;
494
+ }
495
+
496
+ .mdzip-root .nav-resizer::before,
497
+ .mdzip-root .split-resizer::before {
498
+ content: '';
499
+ position: absolute;
500
+ top: 0;
501
+ bottom: 0;
502
+ left: 2px;
503
+ width: 2px;
504
+ background: transparent;
505
+ transition: background 0.12s ease;
506
+ }
507
+
508
+ .mdzip-root .nav-resizer:hover::before,
509
+ .mdzip-root .split-resizer:hover::before {
510
+ background: var(--mdzip-focus-outline-color);
511
+ }
512
+
513
+ .mdzip-root .nav-tree {
514
+ padding: 14px 8px 24px;
515
+ }
516
+
517
+ .mdzip-root .nav-directory {
518
+ margin: 0;
519
+ position: relative;
520
+ }
521
+
522
+ .mdzip-root .nav-directory > summary {
523
+ list-style: none;
524
+ cursor: pointer;
525
+ position: relative;
526
+ }
527
+
528
+ .mdzip-root .nav-directory > summary::-webkit-details-marker {
529
+ display: none;
530
+ }
531
+
532
+ .mdzip-root .nav-directory > summary,
533
+ .mdzip-root .nav-file {
534
+ display: flex;
535
+ align-items: center;
536
+ gap: 9px;
537
+ width: 100%;
538
+ min-height: 34px;
539
+ /* No vertical padding: row height comes from min-height, and zero top/bottom
540
+ padding lets the stretched .nav-indent guide cells fill the full row so the
541
+ per-row rails meet between siblings instead of leaving padding-sized gaps. */
542
+ padding: 0 9px;
543
+ border: none;
544
+ border-radius: 4px;
545
+ background: transparent;
546
+ color: inherit;
547
+ font: inherit;
548
+ font-size: 14px;
549
+ text-align: left;
550
+ }
551
+
552
+ .mdzip-root .nav-file {
553
+ cursor: pointer;
554
+ }
555
+
556
+ .mdzip-root .nav-directory > summary:hover,
557
+ .mdzip-root .nav-file:hover {
558
+ background: var(--mdzip-hover-background-color);
559
+ }
560
+
561
+ /* Indentation comes from per-row guide cells (.nav-indent), not container
562
+ margins, so each row owns its guide lines. */
563
+ .mdzip-root .nav-directory-children {
564
+ position: relative;
565
+ }
566
+
567
+ /* One guide cell per ancestor depth, prepended to each nested row. Fixed width
568
+ gives the indentation; the rails/elbow are painted within the cell at the
569
+ row's own height, so they never overshoot an expanded last subfolder.
570
+
571
+ --nav-guide-x positions the rail so it drops straight from the parent
572
+ folder's icon: the icon sits 19px (caret 10px + the 9px row gap) right of its
573
+ disclosure column, and because the per-level step (cell 16px + 9px gap = 25)
574
+ equals the rail-to-icon distance, the same offset keeps every depth aligned. */
575
+ .mdzip-root .nav-indent {
576
+ flex: 0 0 16px;
577
+ align-self: stretch;
578
+ position: relative;
579
+ --nav-guide-x: 19px;
580
+ }
581
+
582
+ /* Ancestor column with more siblings below: continuous full-height rail. */
583
+ .mdzip-root .nav-indent-rail::before {
584
+ content: "";
585
+ position: absolute;
586
+ left: var(--nav-guide-x);
587
+ top: 0;
588
+ bottom: 0;
589
+ width: 1px;
590
+ background: var(--mdzip-tree-guide-color);
591
+ }
592
+
593
+ /* Connector to this row: vertical down to the row center (elbow └), extended
594
+ full-height for a tee (├) when the row's folder has siblings below. */
595
+ .mdzip-root .nav-indent-connector::before {
596
+ content: "";
597
+ position: absolute;
598
+ left: var(--nav-guide-x);
599
+ top: 0;
600
+ height: 50%;
601
+ width: 1px;
602
+ background: var(--mdzip-tree-guide-color);
603
+ }
604
+
605
+ .mdzip-root .nav-indent-connector.nav-indent-continues::before {
606
+ height: 100%;
607
+ }
608
+
609
+ /* Horizontal arm from the connector rail to the row's caret/icon. Reaches the
610
+ disclosure triangle that sits one row-gap past the cell (folders). */
611
+ .mdzip-root .nav-indent-connector::after {
612
+ content: "";
613
+ position: absolute;
614
+ left: var(--nav-guide-x);
615
+ right: -9px;
616
+ top: 50%;
617
+ height: 1px;
618
+ background: var(--mdzip-tree-guide-color);
619
+ }
620
+
621
+ /* Files have no disclosure triangle in the caret slot, so extend the arm across
622
+ it (the empty 10px caret plus the 9px row gaps on either side) to meet the
623
+ file icon; folders keep the short arm because their triangle already sits at
624
+ the cell edge. The right offset is measured from the cell edge, so this holds
625
+ regardless of where --nav-guide-x places the rail. */
626
+ .mdzip-root .nav-file > .nav-indent-connector::after {
627
+ right: calc(-1 * (10px + 2 * 9px));
628
+ }
629
+
630
+ .mdzip-root .nav-caret {
631
+ position: relative;
632
+ width: 10px;
633
+ flex: 0 0 10px;
634
+ color: var(--mdzip-muted-foreground-color);
635
+ }
636
+
637
+ .mdzip-root .nav-directory > summary .nav-caret::before {
638
+ content: "";
639
+ position: absolute;
640
+ left: 2px;
641
+ top: 50%;
642
+ width: 0;
643
+ height: 0;
644
+ border-top: 4px solid transparent;
645
+ border-bottom: 4px solid transparent;
646
+ border-left: 5px solid currentColor;
647
+ transform: translateY(-50%);
648
+ }
649
+
650
+ .mdzip-root .nav-directory[open] > summary .nav-caret::before {
651
+ transform: translateY(-45%) rotate(90deg);
652
+ }
653
+
654
+ .mdzip-root .nav-folder-icon {
655
+ display: inline-flex;
656
+ align-items: center;
657
+ justify-content: center;
658
+ flex: 0 0 22px;
659
+ width: 22px;
660
+ height: 22px;
661
+ color: var(--mdzip-control-foreground-color);
662
+ }
663
+
664
+ .mdzip-root .nav-folder-icon svg {
665
+ display: block;
666
+ width: 21px;
667
+ height: 21px;
668
+ }
669
+
670
+ .mdzip-root .nav-directory[open] > summary .nav-folder-icon.closed,
671
+ .mdzip-root .nav-directory:not([open]) > summary .nav-folder-icon.open {
672
+ display: none;
673
+ }
674
+
675
+ .mdzip-root .nav-file-icon {
676
+ display: inline-flex;
677
+ align-items: center;
678
+ justify-content: center;
679
+ flex: 0 0 30px;
680
+ width: 30px;
681
+ height: 24px;
682
+ border: 1px solid var(--mdzip-border-color);
683
+ border-radius: 3px;
684
+ background: var(--mdzip-widget-background-color);
685
+ color: var(--mdzip-muted-foreground-color);
686
+ font-size: 10px;
687
+ font-weight: 700;
688
+ line-height: 1;
689
+ }
690
+
691
+ .mdzip-root .nav-file-icon svg {
692
+ display: block;
693
+ }
694
+
695
+ .mdzip-root .nav-file-icon.markdown svg {
696
+ width: 21px;
697
+ height: 21px;
698
+ }
699
+
700
+ .mdzip-root .nav-file-icon.manifest svg {
701
+ width: 21px;
702
+ height: 21px;
703
+ }
704
+
705
+ .mdzip-root .nav-file-icon.markdown {
706
+ border: 0;
707
+ background: transparent;
708
+ }
709
+
710
+ .mdzip-root .nav-file-icon.manifest {
711
+ border: 0;
712
+ background: transparent;
713
+ color: #d18616;
714
+ }
715
+
716
+ .mdzip-root .nav-file-icon.image {
717
+ border: 0 !important;
718
+ background: transparent !important;
719
+ }
720
+
721
+ .mdzip-root .nav-file-icon.image svg {
722
+ width: 21px;
723
+ height: 21px;
724
+ }
725
+
726
+ .mdzip-root .nav-label {
727
+ flex: 1;
728
+ min-width: 0;
729
+ overflow: hidden;
730
+ text-overflow: ellipsis;
731
+ white-space: nowrap;
732
+ }
733
+
734
+ .mdzip-root .nav-file.current-entry {
735
+ background: var(--mdzip-selection-background-color);
736
+ }
737
+
738
+ .mdzip-root .nav-file.nav-selected,
739
+ .mdzip-root .nav-directory > summary.nav-selected {
740
+ background: var(--mdzip-selection-background-color);
741
+ box-shadow: inset 2px 0 0 var(--mdzip-link-color);
742
+ }
743
+
744
+ .mdzip-root .nav-file.current-entry::after {
745
+ content: '';
746
+ width: 10px;
747
+ height: 10px;
748
+ flex: 0 0 10px;
749
+ border-radius: 50%;
750
+ background: var(--mdzip-link-color);
751
+ }
752
+
753
+ .mdzip-root .nav-file.orphaned-asset {
754
+ color: var(--mdzip-muted-foreground-color);
755
+ }
756
+
757
+ .mdzip-root .nav-orphan-button {
758
+ flex: 0 0 22px;
759
+ width: 22px;
760
+ height: 22px;
761
+ display: inline-flex;
762
+ align-items: center;
763
+ justify-content: center;
764
+ border: 0;
765
+ border-radius: 4px;
766
+ background: transparent;
767
+ color: #9a6700;
768
+ cursor: pointer;
769
+ }
770
+
771
+ .mdzip-root .nav-orphan-button:hover {
772
+ background: rgba(154, 103, 0, 0.12);
773
+ }
774
+
775
+ .mdzip-root .nav-orphan-button svg {
776
+ width: 15px;
777
+ height: 15px;
778
+ fill: currentColor;
779
+ }
780
+
781
+ .mdzip-root .nav-context-menu {
782
+ position: fixed;
783
+ z-index: 200;
784
+ min-width: 190px;
785
+ padding: 4px;
786
+ border: 1px solid var(--mdzip-widget-border-color);
787
+ border-radius: 4px;
788
+ background: var(--mdzip-editor-background-color);
789
+ color: var(--mdzip-editor-foreground-color);
790
+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
791
+ }
792
+
793
+ .mdzip-root .nav-context-menu button {
794
+ display: flex;
795
+ align-items: center;
796
+ gap: 10px;
797
+ width: 100%;
798
+ min-height: 28px;
799
+ padding: 4px 10px;
800
+ border: none;
801
+ border-radius: 3px;
802
+ background: transparent;
803
+ color: inherit;
804
+ font: inherit;
805
+ text-align: left;
806
+ cursor: pointer;
807
+ }
808
+
809
+ .mdzip-root .nav-context-menu .nav-menu-icon {
810
+ flex: 0 0 auto;
811
+ width: 16px;
812
+ height: 16px;
813
+ opacity: 0.8;
814
+ }
815
+
816
+ .mdzip-root .nav-context-menu .nav-menu-label {
817
+ flex: 1 1 auto;
818
+ }
819
+
820
+ .mdzip-root .nav-context-menu .nav-menu-shortcut {
821
+ flex: 0 0 auto;
822
+ margin-left: 16px;
823
+ font-size: 0.85em;
824
+ opacity: 0.55;
825
+ font-variant-numeric: tabular-nums;
826
+ }
827
+
828
+ .mdzip-root .nav-context-menu .nav-menu-chevron {
829
+ flex: 0 0 auto;
830
+ width: 14px;
831
+ height: 14px;
832
+ margin-right: -2px;
833
+ opacity: 0.55;
834
+ }
835
+
836
+ .mdzip-root .nav-menu-submenu-wrap {
837
+ position: relative;
838
+ }
839
+
840
+ .mdzip-root .nav-context-submenu {
841
+ position: absolute;
842
+ left: 100%;
843
+ top: -5px;
844
+ display: none;
845
+ min-width: 190px;
846
+ max-height: min(60vh, 420px);
847
+ overflow-y: auto;
848
+ padding: 4px;
849
+ border: 1px solid var(--mdzip-widget-border-color);
850
+ border-radius: 4px;
851
+ background: var(--mdzip-editor-background-color);
852
+ color: var(--mdzip-editor-foreground-color);
853
+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
854
+ }
855
+
856
+ .mdzip-root .nav-menu-submenu-wrap.open-left > .nav-context-submenu {
857
+ left: auto;
858
+ right: 100%;
859
+ }
860
+
861
+ .mdzip-root .nav-menu-submenu-wrap:hover > .nav-context-submenu,
862
+ .mdzip-root .nav-menu-submenu-wrap:focus-within > .nav-context-submenu {
863
+ display: block;
864
+ }
865
+
866
+ .mdzip-root .nav-context-menu button:hover,
867
+ .mdzip-root .nav-context-menu button:focus-visible {
868
+ outline: none;
869
+ background: var(--mdzip-hover-background-color);
870
+ }
871
+
872
+ .mdzip-root .nav-context-menu button:disabled {
873
+ opacity: 0.6;
874
+ cursor: default;
875
+ }
876
+
877
+ .mdzip-root .nav-context-menu button:disabled:hover,
878
+ .mdzip-root .nav-context-menu button:disabled:focus-visible {
879
+ background: transparent;
880
+ }
881
+
882
+ .mdzip-root .nav-menu-separator {
883
+ height: 1px;
884
+ margin: 4px 6px;
885
+ background: var(--mdzip-border-color);
886
+ }
887
+
888
+ .mdzip-root .nav-file.entry-point .nav-label {
889
+ font-weight: 600;
890
+ }
891
+
892
+ .mdzip-root .nav-directory.pending-folder > summary {
893
+ opacity: 0.7;
894
+ }
895
+
896
+ .mdzip-root details.nav-directory.drag-over > summary,
897
+ .mdzip-root .nav-tree.drag-over {
898
+ background: var(--mdzip-hover-background-color);
899
+ border-radius: 4px;
900
+ }
901
+
902
+ .mdzip-root .title-dialog-actions .danger-action {
903
+ border-color: #b42318;
904
+ background: #b42318;
905
+ color: #ffffff;
906
+ }
907
+
908
+ .mdzip-root .mdzip-tooltip {
909
+ position: fixed;
910
+ z-index: 10000;
911
+ max-width: min(320px, calc(100vw - 16px));
912
+ padding: 5px 8px;
913
+ border: 1px solid var(--mdzip-border-color);
914
+ border-radius: 5px;
915
+ background: var(--mdzip-editor-foreground-color);
916
+ color: var(--mdzip-editor-background-color);
917
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
918
+ font-size: 12px;
919
+ line-height: 1.35;
920
+ /* One line up to max-width, then wraps instead of being cut off. */
921
+ width: max-content;
922
+ white-space: normal;
923
+ pointer-events: none;
924
+ }
925
+
926
+ .mdzip-root .mdzip-copy-toast {
927
+ position: fixed;
928
+ z-index: 10000;
929
+ left: 50%;
930
+ bottom: 20px;
931
+ transform: translateX(-50%);
932
+ max-width: min(320px, calc(100vw - 32px));
933
+ padding: 8px 14px;
934
+ border-radius: 6px;
935
+ background: var(--mdzip-editor-foreground-color);
936
+ color: var(--mdzip-editor-background-color);
937
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
938
+ font-size: 12px;
939
+ line-height: 1.35;
940
+ text-align: center;
941
+ pointer-events: none;
942
+ }
943
+
944
+ /* Outline panel (heading-outline.ts): a table of contents beside the
945
+ * preview. The .mdz-outline rules only use --mdz-outline-* variables for
946
+ * colors, so a host theme can restyle them; here they follow the editor's. */
947
+ .mdzip-root .workspace-shell {
948
+ position: relative;
949
+ }
950
+
951
+ .mdzip-root .outline-pane {
952
+ flex: 0 0 var(--mdzip-outline-pane-width, 240px);
953
+ width: var(--mdzip-outline-pane-width, 240px);
954
+ box-sizing: border-box;
955
+ padding: 16px 12px 16px 16px;
956
+ border-left: 1px solid var(--mdzip-border-color);
957
+ background: var(--mdzip-editor-background-color);
958
+ overflow: auto;
959
+ overscroll-behavior: contain;
960
+ }
961
+
962
+ .mdzip-root .outline-pane[hidden] {
963
+ display: none;
964
+ }
965
+
966
+ /* The panel's draggable edge, beside the document on either side. Flex
967
+ * order places the outline (and its edge) right of the document, or with
968
+ * outline-left, between the contents pane and the document. */
969
+ .mdzip-root .outline-resizer {
970
+ position: relative;
971
+ flex: 0 0 6px;
972
+ margin: 0 -3px;
973
+ z-index: 2;
974
+ cursor: col-resize;
975
+ }
976
+
977
+ .mdzip-root .outline-resizer::before {
978
+ content: '';
979
+ position: absolute;
980
+ top: 0;
981
+ bottom: 0;
982
+ left: 2px;
983
+ width: 2px;
984
+ background: transparent;
985
+ transition: background 0.12s ease;
986
+ }
987
+
988
+ .mdzip-root .outline-resizer:hover::before {
989
+ background: var(--mdzip-focus-outline-color);
990
+ }
991
+
992
+ .mdzip-root .outline-pane[hidden] + .outline-resizer {
993
+ display: none;
994
+ }
995
+
996
+ .mdzip-root .nav-pane { order: 0; }
997
+ .mdzip-root .nav-resizer { order: 1; }
998
+ .mdzip-root .pane-stack { order: 4; }
999
+ .mdzip-root .outline-resizer { order: 5; }
1000
+ .mdzip-root .outline-pane { order: 6; }
1001
+
1002
+ .mdzip-root.outline-left .outline-pane {
1003
+ order: 2;
1004
+ border-left: none;
1005
+ border-right: 1px solid var(--mdzip-border-color);
1006
+ }
1007
+
1008
+ .mdzip-root.outline-left .outline-resizer { order: 3; }
1009
+
1010
+ .mdzip-root .mdz-outline {
1011
+ --mdz-outline-text: var(--mdzip-editor-foreground-color);
1012
+ --mdz-outline-muted: var(--mdzip-muted-foreground-color);
1013
+ --mdz-outline-rule: var(--mdzip-border-color);
1014
+ --mdz-outline-current: var(--mdzip-link-color);
1015
+ font-size: 13px;
1016
+ line-height: 1.4;
1017
+ }
1018
+
1019
+ .mdzip-root .mdz-outline-title {
1020
+ margin: 0 0 8px;
1021
+ font-size: 13px;
1022
+ font-weight: 600;
1023
+ color: var(--mdz-outline-text);
1024
+ }
1025
+
1026
+ .mdzip-root .mdz-outline-list {
1027
+ list-style: none;
1028
+ margin: 0;
1029
+ padding: 0;
1030
+ }
1031
+
1032
+ .mdzip-root .mdz-outline > .mdz-outline-list {
1033
+ border-left: 1px solid var(--mdz-outline-rule);
1034
+ }
1035
+
1036
+ .mdzip-root .mdz-outline-link {
1037
+ display: block;
1038
+ margin-left: -1px;
1039
+ padding: 3px 0 3px 12px;
1040
+ border-left: 2px solid transparent;
1041
+ color: var(--mdz-outline-muted);
1042
+ text-decoration: none;
1043
+ overflow-wrap: anywhere;
1044
+ }
1045
+
1046
+ .mdzip-root .mdz-outline-link:hover {
1047
+ color: var(--mdz-outline-text);
1048
+ }
1049
+
1050
+ .mdzip-root .mdz-outline-link:focus-visible {
1051
+ outline: 2px solid var(--mdzip-focus-outline-color);
1052
+ outline-offset: -2px;
1053
+ }
1054
+
1055
+ .mdzip-root .mdz-outline-link.is-current {
1056
+ color: var(--mdz-outline-current);
1057
+ font-weight: 600;
1058
+ border-left-color: var(--mdz-outline-current);
1059
+ }
1060
+
1061
+ .mdzip-root .mdz-outline-list .mdz-outline-list .mdz-outline-link {
1062
+ padding-left: 24px;
1063
+ }
1064
+
1065
+ .mdzip-root .mdz-outline-list .mdz-outline-list .mdz-outline-list .mdz-outline-link {
1066
+ padding-left: 36px;
1067
+ }
1068
+
1069
+ /* collapse: deeper levels show only under the section being read */
1070
+ .mdzip-root .mdz-outline.is-collapsible .mdz-outline-item:not(.is-open) > .mdz-outline-list {
1071
+ display: none;
1072
+ }
1073
+
1074
+ /* Narrow: the panel floats over the preview instead of taking a column. */
1075
+ @media (max-width: 760px) {
1076
+ .mdzip-root .outline-pane {
1077
+ position: absolute;
1078
+ top: 0;
1079
+ right: 0;
1080
+ bottom: 0;
1081
+ z-index: 5;
1082
+ width: min(var(--mdzip-outline-pane-width, 240px), 80%);
1083
+ box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
1084
+ }
1085
+ .mdzip-root.outline-left .outline-pane {
1086
+ right: auto;
1087
+ left: 0;
1088
+ box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
1089
+ }
1090
+ .mdzip-root .outline-resizer {
1091
+ display: none;
1092
+ }
1093
+ }
1094
+
1095
+ .mdzip-root .pane-stack {
1096
+ display: block;
1097
+ flex: 1;
1098
+ min-width: 0;
1099
+ height: 100%;
1100
+ }
1101
+
1102
+ .mdzip-root .pane-stack.split-mode {
1103
+ display: flex;
1104
+ flex-direction: row;
1105
+ }
1106
+
1107
+ .mdzip-root .pane {
1108
+ display: none;
1109
+ height: 100%;
1110
+ overflow: hidden;
1111
+ }
1112
+
1113
+ .mdzip-root .pane.active {
1114
+ display: block;
1115
+ }
1116
+
1117
+ .mdzip-root .pane-stack.split-mode .pane {
1118
+ display: block !important;
1119
+ min-width: 0;
1120
+ height: 100%;
1121
+ }
1122
+
1123
+ .mdzip-root .pane-stack.split-mode .edit-pane {
1124
+ flex: 0 0 calc((100% - 6px) * var(--split-edit-ratio));
1125
+ }
1126
+
1127
+ .mdzip-root .pane-stack.split-mode .preview-pane {
1128
+ flex: 1 1 auto;
1129
+ }
1130
+
1131
+ .mdzip-root .preview-pane {
1132
+ overflow: auto;
1133
+ /* Chrome's scroll-anchoring tries to keep the same visible content pinned
1134
+ * when a layout shift happens above the viewport (e.g. a chunk reconcile
1135
+ * re-rendering a mermaid diagram to a different height, or an image
1136
+ * finishing decode) by silently adjusting scrollTop on its own — firing a
1137
+ * genuine, non-echo 'scroll' event with no explicit write behind it. The
1138
+ * editor/preview scroll-sync listeners can't distinguish that from a real
1139
+ * user scroll, so they propagate it to the other pane, whose own
1140
+ * anchoring can then react in turn, compounding into a visible jump on
1141
+ * the very next edit after a layout-affecting mount. Disabling anchoring
1142
+ * here means a layout shift leaves scrollTop exactly where it was
1143
+ * instead of "helpfully" moving it.
1144
+ */
1145
+ overflow-anchor: none;
1146
+ }
1147
+
1148
+ .mdzip-root .preview-pane:focus {
1149
+ outline: none;
1150
+ }
1151
+
1152
+ .mdzip-root .entry-pane {
1153
+ overflow: auto;
1154
+ }
1155
+
1156
+ .mdzip-root .pane-stack.entry-claimed .edit-pane,
1157
+ .mdzip-root .pane-stack.entry-claimed .preview-pane,
1158
+ .mdzip-root .pane-stack.entry-claimed .split-resizer {
1159
+ display: none !important;
1160
+ }
1161
+
1162
+ .mdzip-root .edit-pane {
1163
+ overflow: hidden;
1164
+ flex-direction: column;
1165
+ }
1166
+
1167
+ /* See the matching comment on .preview-pane's overflow-anchor: none — same
1168
+ * reasoning applies here. CodeMirror's own line-height re-measurement after
1169
+ * an edit can shift content above the viewport too, and native scroll
1170
+ * anchoring reacting to that is indistinguishable, from the sync listener's
1171
+ * side, from the user actually scrolling.
1172
+ */
1173
+ .mdzip-root .cm-scroller {
1174
+ overflow-anchor: none;
1175
+ }
1176
+
1177
+ .mdzip-root .edit-pane.active {
1178
+ display: flex;
1179
+ }
1180
+
1181
+ .mdzip-root .pane-stack.split-mode .edit-pane {
1182
+ display: flex !important;
1183
+ }
1184
+
1185
+ .mdzip-root .edit-toolbar {
1186
+ display: flex;
1187
+ align-items: center;
1188
+ gap: var(--mdzip-format-toolbar-gap, var(--mdzip-density-format-toolbar-gap, 7px));
1189
+ min-height: 32px;
1190
+ padding: 0;
1191
+ overflow: visible;
1192
+ border: 0;
1193
+ background: transparent;
1194
+ flex: 0 0 auto;
1195
+ position: absolute;
1196
+ left: var(--editor-pane-offset);
1197
+ top: 50%;
1198
+ transform: translateY(-50%);
1199
+ z-index: 6;
1200
+ }
1201
+
1202
+ .mdzip-root:not(.navigation-pane-visible) .edit-toolbar {
1203
+ position: static;
1204
+ transform: none;
1205
+ }
1206
+
1207
+ .mdzip-root .edit-toolbar-group {
1208
+ display: flex;
1209
+ align-items: center;
1210
+ gap: var(--mdzip-format-toolbar-group-gap, var(--mdzip-density-format-toolbar-group-gap, 2px));
1211
+ flex: 0 0 auto;
1212
+ }
1213
+
1214
+ .mdzip-root .edit-toolbar button {
1215
+ display: inline-flex;
1216
+ align-items: center;
1217
+ justify-content: center;
1218
+ gap: 2px;
1219
+ width: var(--mdzip-format-button-size, var(--mdzip-density-format-button-size, 32px));
1220
+ height: var(--mdzip-format-button-size, var(--mdzip-density-format-button-size, 32px));
1221
+ padding: 0;
1222
+ border: 0;
1223
+ border-radius: 5px;
1224
+ background: transparent;
1225
+ color: var(--mdzip-control-foreground-color);
1226
+ cursor: pointer;
1227
+ }
1228
+
1229
+ .mdzip-root .edit-toolbar button:hover,
1230
+ .mdzip-root .edit-toolbar button:focus-visible {
1231
+ outline: none;
1232
+ background: var(--mdzip-control-hover-background-color);
1233
+ }
1234
+
1235
+ .mdzip-root .edit-toolbar button:focus-visible {
1236
+ box-shadow: inset 0 0 0 1px var(--mdzip-focus-outline-color);
1237
+ }
1238
+
1239
+ /* A toggle in the edit toolbar (Show whitespace) while it's on. */
1240
+ .mdzip-root .edit-toolbar .edit-toolbar-toggle[aria-pressed="true"] {
1241
+ background: var(--mdzip-control-hover-background-color);
1242
+ color: var(--mdzip-link-color);
1243
+ }
1244
+
1245
+ .mdzip-root .edit-toolbar .format-menu {
1246
+ position: relative;
1247
+ flex: 0 0 auto;
1248
+ }
1249
+
1250
+ .mdzip-root .edit-toolbar .format-menu-toggle {
1251
+ width: var(--mdzip-format-menu-button-width, var(--mdzip-density-format-menu-button-width, 42px));
1252
+ gap: 2px;
1253
+ }
1254
+
1255
+ .mdzip-root .edit-toolbar .format-menu-toggle[aria-expanded="true"] {
1256
+ background: var(--mdzip-control-hover-background-color);
1257
+ box-shadow: inset 0 0 0 1px var(--mdzip-focus-outline-color);
1258
+ }
1259
+
1260
+ .mdzip-root .edit-toolbar .format-menu-popover {
1261
+ position: absolute;
1262
+ top: calc(100% + 6px);
1263
+ left: 0;
1264
+ z-index: 20;
1265
+ min-width: 164px;
1266
+ padding: 5px;
1267
+ border: 1px solid var(--mdzip-widget-border-color);
1268
+ border-radius: 7px;
1269
+ background: var(--mdzip-widget-background-color);
1270
+ color: var(--mdzip-editor-foreground-color);
1271
+ box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
1272
+ }
1273
+
1274
+ .mdzip-root .edit-toolbar .format-menu-popover button {
1275
+ display: flex;
1276
+ justify-content: flex-start;
1277
+ gap: 10px;
1278
+ width: 100%;
1279
+ height: 32px;
1280
+ padding: 0 10px;
1281
+ border-radius: 4px;
1282
+ color: inherit;
1283
+ font: inherit;
1284
+ white-space: nowrap;
1285
+ }
1286
+
1287
+ .mdzip-root .edit-toolbar .format-menu-popover button:hover,
1288
+ .mdzip-root .edit-toolbar .format-menu-popover button:focus-visible {
1289
+ background: var(--mdzip-control-hover-background-color);
1290
+ box-shadow: none;
1291
+ }
1292
+
1293
+ .mdzip-root .edit-toolbar .format-menu-popover strong {
1294
+ display: inline-block;
1295
+ width: 22px;
1296
+ color: var(--mdzip-muted-foreground-color);
1297
+ font-size: 11px;
1298
+ text-align: center;
1299
+ }
1300
+
1301
+ .mdzip-root .format-icon {
1302
+ width: var(--mdzip-format-icon-size, var(--mdzip-density-format-icon-size, 17px));
1303
+ height: var(--mdzip-format-icon-size, var(--mdzip-density-format-icon-size, 17px));
1304
+ fill: none;
1305
+ stroke: currentColor;
1306
+ }
1307
+
1308
+ .mdzip-root .format-chevron {
1309
+ width: 12px;
1310
+ height: 12px;
1311
+ fill: none;
1312
+ stroke: currentColor;
1313
+ }
1314
+
1315
+ .mdzip-root .edit-toolbar-divider {
1316
+ width: 1px;
1317
+ height: 22px;
1318
+ background: var(--mdzip-border-color);
1319
+ flex: 0 0 auto;
1320
+ }
1321
+
1322
+ .mdzip-root .editor-host {
1323
+ flex: 1 1 auto;
1324
+ min-height: 0;
1325
+ overflow: hidden;
1326
+ }
1327
+
1328
+ .mdzip-root .editor-host .cm-editor {
1329
+ height: 100%;
1330
+ }
1331
+
1332
+ /* Validity of the open .json file (#68), under the editor. */
1333
+ /* Find in the preview (#62): a bar over the top right of the View layout. */
1334
+ .mdzip-root .pane-stack {
1335
+ position: relative;
1336
+ }
1337
+
1338
+ .mdzip-root .preview-find {
1339
+ position: absolute;
1340
+ top: 8px;
1341
+ right: 24px;
1342
+ z-index: 6;
1343
+ display: flex;
1344
+ align-items: center;
1345
+ gap: 2px;
1346
+ box-sizing: border-box;
1347
+ max-width: calc(100% - 40px);
1348
+ padding: 4px;
1349
+ background: var(--mdzip-widget-background-color, var(--mdzip-editor-background-color));
1350
+ color: var(--mdzip-editor-foreground-color);
1351
+ border: 1px solid var(--mdzip-widget-border-color, var(--mdzip-border-color));
1352
+ border-radius: 6px;
1353
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
1354
+ font-size: 13px;
1355
+ }
1356
+
1357
+ .mdzip-root .preview-find[hidden] {
1358
+ display: none;
1359
+ }
1360
+
1361
+ .mdzip-root .preview-find-input {
1362
+ flex: 1 1 200px;
1363
+ min-width: 80px;
1364
+ width: 220px;
1365
+ height: 26px;
1366
+ box-sizing: border-box;
1367
+ padding: 2px 8px;
1368
+ font: inherit;
1369
+ color: inherit;
1370
+ background: var(--mdzip-editor-background-color);
1371
+ border: 1px solid var(--mdzip-border-color);
1372
+ border-radius: 4px;
1373
+ outline: none;
1374
+ }
1375
+
1376
+ .mdzip-root .preview-find-input:focus {
1377
+ border-color: var(--mdzip-focus-outline-color);
1378
+ }
1379
+
1380
+ .mdzip-root .preview-find.no-results .preview-find-input {
1381
+ border-color: #cf222e;
1382
+ }
1383
+
1384
+ .mdzip-root .preview-find-count {
1385
+ flex: 0 0 auto;
1386
+ min-width: 64px;
1387
+ padding: 0 6px;
1388
+ color: var(--mdzip-muted-foreground-color);
1389
+ font-size: 12px;
1390
+ text-align: center;
1391
+ white-space: nowrap;
1392
+ }
1393
+
1394
+ .mdzip-root .preview-find-button {
1395
+ flex: 0 0 auto;
1396
+ display: inline-flex;
1397
+ align-items: center;
1398
+ justify-content: center;
1399
+ width: 26px;
1400
+ height: 26px;
1401
+ padding: 0;
1402
+ color: var(--mdzip-control-foreground-color);
1403
+ background: transparent;
1404
+ border: none;
1405
+ border-radius: 4px;
1406
+ cursor: pointer;
1407
+ }
1408
+
1409
+ .mdzip-root .preview-find-button:hover:not(:disabled) {
1410
+ background: var(--mdzip-control-hover-background-color, var(--mdzip-hover-background-color));
1411
+ }
1412
+
1413
+ .mdzip-root .preview-find-button:disabled {
1414
+ opacity: 0.4;
1415
+ cursor: default;
1416
+ }
1417
+
1418
+ .mdzip-root .preview-find-button[aria-pressed="true"] {
1419
+ background: var(--mdzip-accent-color);
1420
+ color: var(--mdzip-accent-foreground-color);
1421
+ }
1422
+
1423
+ .mdzip-root .preview-find-icon {
1424
+ width: 16px;
1425
+ height: 16px;
1426
+ }
1427
+
1428
+ /* Browser find's colors, which read in light and dark alike. */
1429
+ .mdzip-root ::highlight(mdzip-find) {
1430
+ background-color: rgba(255, 214, 0, 0.45);
1431
+ }
1432
+
1433
+ .mdzip-root ::highlight(mdzip-find-current) {
1434
+ background-color: #ff9632;
1435
+ color: #000000;
1436
+ }
1437
+
1438
+ .mdzip-root .json-status {
1439
+ flex: 0 0 auto;
1440
+ padding: 3px 10px;
1441
+ border-top: 1px solid var(--mdzip-border-color);
1442
+ font-size: 12px;
1443
+ line-height: 1.4;
1444
+ color: var(--mdzip-muted-foreground-color);
1445
+ white-space: nowrap;
1446
+ overflow: hidden;
1447
+ text-overflow: ellipsis;
1448
+ }
1449
+
1450
+ .mdzip-root .json-status[data-status="warnings"] {
1451
+ color: var(--mdzip-warning-color, #8a5a00);
1452
+ }
1453
+
1454
+ .mdzip-root .json-status[data-status="invalid"] {
1455
+ color: var(--mdzip-error-color, #b03030);
1456
+ background: var(--mdzip-error-background-color, rgba(220, 70, 70, 0.08));
1457
+ }
1458
+
1459
+ .mdzip-root.mdzip-theme-dark .json-status[data-status="warnings"] {
1460
+ color: var(--mdzip-warning-color, #e0b050);
1461
+ }
1462
+
1463
+ .mdzip-root.mdzip-theme-dark .json-status[data-status="invalid"] {
1464
+ color: var(--mdzip-error-color, #f08080);
1465
+ }
1466
+
1467
+ .mdzip-root .json-status.flash {
1468
+ animation: mdzip-json-status-flash 0.9s ease-out;
1469
+ }
1470
+
1471
+ @keyframes mdzip-json-status-flash {
1472
+ 0%, 40% { box-shadow: inset 0 0 0 2px var(--mdzip-error-color, #b03030); }
1473
+ 100% { box-shadow: inset 0 0 0 2px transparent; }
1474
+ }
1475
+
1476
+ @media (prefers-reduced-motion: reduce) {
1477
+ .mdzip-root .json-status.flash { animation: none; }
1478
+ }
1479
+
1480
+ .mdzip-root .split-resizer {
1481
+ display: none;
1482
+ position: relative;
1483
+ flex: 0 0 6px;
1484
+ cursor: col-resize;
1485
+ }
1486
+
1487
+ .mdzip-root .pane-stack.split-mode .split-resizer {
1488
+ display: block;
1489
+ }
1490
+
1491
+ .mdzip-root .pane-stack.split-mode .split-resizer::before {
1492
+ background: var(--mdzip-border-color);
1493
+ }
1494
+
1495
+ .mdzip-root .pane-stack.split-mode .split-resizer:hover::before {
1496
+ background: var(--mdzip-focus-outline-color);
1497
+ }
1498
+
1499
+ .mdzip-root .preview-content {
1500
+ max-width: var(--mdzip-preview-content-max-width, calc(900px * var(--mdz-zoom)));
1501
+ margin: 0 auto;
1502
+ padding: var(--mdzip-preview-content-padding, var(--mdzip-density-preview-content-padding, 36px 32px 48px));
1503
+ line-height: 1.55;
1504
+ font-size: calc(16px * var(--mdz-zoom));
1505
+ }
1506
+
1507
+ .mdzip-root .preview-content h1,
1508
+ .mdzip-root .preview-content h2,
1509
+ .mdzip-root .preview-content h3,
1510
+ .mdzip-root .preview-content h4,
1511
+ .mdzip-root .preview-content h5,
1512
+ .mdzip-root .preview-content h6 {
1513
+ color: var(--mdzip-editor-foreground-color);
1514
+ margin-top: 1.4em;
1515
+ margin-bottom: 0.4em;
1516
+ line-height: 1.25;
1517
+ }
1518
+
1519
+ .mdzip-root .preview-content h1 {
1520
+ font-size: 2em;
1521
+ border-bottom: 1px solid var(--mdzip-border-color);
1522
+ padding-bottom: 0.25em;
1523
+ }
1524
+
1525
+ .mdzip-root .preview-content > :first-child {
1526
+ margin-top: 0;
1527
+ }
1528
+
1529
+ /* Chunked (progressiveTextRendering) mounting wraps each rendered chunk in
1530
+ a mount boundary. display:contents drops it from the box tree so margin
1531
+ collapsing and other layout behave exactly as the non-chunked path (one
1532
+ flat run of blocks) — but :first-child selector matching still follows
1533
+ the real DOM tree regardless of display, so the rule above needs a
1534
+ companion for the now one-level-deeper first real content element. */
1535
+ .mdzip-root .preview-content > .mdzip-chunk {
1536
+ display: contents;
1537
+ }
1538
+
1539
+ .mdzip-root .preview-content > .mdzip-chunk:first-child > :first-child {
1540
+ margin-top: 0;
1541
+ }
1542
+
1543
+ .mdzip-root .preview-content h2 {
1544
+ font-size: 1.5em;
1545
+ border-bottom: 1px solid var(--mdzip-border-color);
1546
+ padding-bottom: 0.2em;
1547
+ }
1548
+
1549
+ .mdzip-root .preview-content h3 {
1550
+ font-size: 1.2em;
1551
+ }
1552
+
1553
+ .mdzip-root .preview-content p {
1554
+ margin: 0.8em 0;
1555
+ }
1556
+
1557
+ .mdzip-root .preview-content code {
1558
+ font-family: "Cascadia Code", Consolas, monospace;
1559
+ font-variant-ligatures: none;
1560
+ font-feature-settings: "liga" 0, "calt" 0;
1561
+ font-size: 0.9em;
1562
+ background: var(--mdzip-code-background-color);
1563
+ border: 1px solid var(--mdzip-border-color);
1564
+ border-radius: 3px;
1565
+ padding: 1px 5px;
1566
+ }
1567
+
1568
+ .mdzip-root .preview-content pre {
1569
+ background: var(--mdzip-code-background-color);
1570
+ border: 1px solid var(--mdzip-border-color);
1571
+ border-radius: 5px;
1572
+ padding: 14px 18px;
1573
+ overflow-x: auto;
1574
+ }
1575
+
1576
+ .mdzip-root .preview-content pre code {
1577
+ background: none;
1578
+ border: none;
1579
+ padding: 0;
1580
+ }
1581
+
1582
+ /* Built-in code-block chrome (#29): the wrapper owns the outer border/radius
1583
+ that .preview-content pre normally draws on itself, so the header sits
1584
+ flush above it with no double border. */
1585
+ .mdzip-root .preview-content .mdzip-code-block {
1586
+ margin: 1em 0;
1587
+ border: 1px solid var(--mdzip-border-color);
1588
+ border-radius: 5px;
1589
+ overflow: hidden;
1590
+ }
1591
+
1592
+ .mdzip-root .preview-content .mdzip-code-block pre {
1593
+ margin: 0;
1594
+ border: none;
1595
+ border-radius: 0;
1596
+ }
1597
+
1598
+ .mdzip-root .preview-content .mdzip-code-block-header {
1599
+ display: flex;
1600
+ align-items: center;
1601
+ justify-content: space-between;
1602
+ gap: 8px;
1603
+ padding: 3px 6px 3px 12px;
1604
+ background: var(--mdzip-widget-background-color);
1605
+ border-bottom: 1px solid var(--mdzip-border-color);
1606
+ }
1607
+
1608
+ .mdzip-root .preview-content .mdzip-code-block-lang {
1609
+ font-family: "Cascadia Code", Consolas, monospace;
1610
+ font-size: 0.75em;
1611
+ color: var(--mdzip-muted-foreground-color);
1612
+ }
1613
+
1614
+ .mdzip-root .preview-content .mdzip-code-block-actions {
1615
+ display: flex;
1616
+ align-items: center;
1617
+ gap: 2px;
1618
+ }
1619
+
1620
+ .mdzip-root .preview-content .mdzip-code-block-btn {
1621
+ display: inline-flex;
1622
+ align-items: center;
1623
+ justify-content: center;
1624
+ width: 24px;
1625
+ height: 24px;
1626
+ padding: 0;
1627
+ border: none;
1628
+ border-radius: 4px;
1629
+ background: none;
1630
+ color: var(--mdzip-muted-foreground-color);
1631
+ cursor: pointer;
1632
+ }
1633
+
1634
+ .mdzip-root .preview-content .mdzip-code-block-btn:hover {
1635
+ background: var(--mdzip-control-hover-background-color);
1636
+ color: var(--mdzip-control-foreground-color);
1637
+ }
1638
+
1639
+ .mdzip-root .preview-content .mdzip-code-block-btn:disabled {
1640
+ opacity: 0.4;
1641
+ cursor: default;
1642
+ }
1643
+
1644
+ .mdzip-root .preview-content .mdzip-code-block-btn:disabled:hover {
1645
+ background: none;
1646
+ }
1647
+
1648
+ .mdzip-root .preview-content .mdzip-code-block-btn-copied {
1649
+ color: var(--mdzip-accent-color);
1650
+ }
1651
+
1652
+ .mdzip-root .preview-content .mdzip-code-block-icon {
1653
+ width: 14px;
1654
+ height: 14px;
1655
+ }
1656
+
1657
+ /* Chevron points "forward" (collapsed) vs down (expanded), driven by the
1658
+ same aria-expanded state assistive tech reads — no separate visual-only
1659
+ state to keep in sync. */
1660
+ .mdzip-root .preview-content .mdzip-code-block-btn[aria-expanded="false"] .mdzip-code-block-icon {
1661
+ transform: rotate(-90deg);
1662
+ }
1663
+
1664
+ .mdzip-root .preview-content .mdzip-code-block-body {
1665
+ position: relative;
1666
+ transition: max-height 0.2s ease-out;
1667
+ }
1668
+
1669
+ .mdzip-root .preview-content .mdzip-code-block-collapsed .mdzip-code-block-body {
1670
+ max-height: 240px;
1671
+ overflow: hidden;
1672
+ }
1673
+
1674
+ .mdzip-root .preview-content .mdzip-code-block-collapsed .mdzip-code-block-body::after {
1675
+ content: "";
1676
+ position: absolute;
1677
+ inset: auto 0 0 0;
1678
+ height: 48px;
1679
+ background: linear-gradient(to bottom, transparent, var(--mdzip-code-background-color));
1680
+ pointer-events: none;
1681
+ }
1682
+
1683
+ /* An explicit rule so consecutive rules stay separate (#57); host resets often
1684
+ leave hr with no margin, and three in a row read as one thick band. */
1685
+ .mdzip-root .preview-content hr {
1686
+ height: 0;
1687
+ margin: 1.5em 0;
1688
+ border: 0;
1689
+ border-top: 1px solid var(--mdzip-border-color);
1690
+ }
1691
+
1692
+ .mdzip-root .preview-content .footnotes {
1693
+ margin-top: 2em;
1694
+ padding-top: 0.75em;
1695
+ border-top: 1px solid var(--mdzip-border-color);
1696
+ font-size: 0.9em;
1697
+ color: var(--mdzip-muted-foreground-color);
1698
+ }
1699
+
1700
+ /* Contains the visually hidden "Footnotes" heading below: without a positioned
1701
+ ancestor it would be placed against the page, outside the preview's scroll
1702
+ area, and make the host page itself scroll. */
1703
+ .mdzip-root .preview-content .footnotes {
1704
+ position: relative;
1705
+ }
1706
+
1707
+ .mdzip-root .preview-content .footnotes .sr-only {
1708
+ position: absolute;
1709
+ width: 1px;
1710
+ height: 1px;
1711
+ padding: 0;
1712
+ margin: -1px;
1713
+ overflow: hidden;
1714
+ clip: rect(0, 0, 0, 0);
1715
+ white-space: nowrap;
1716
+ border: 0;
1717
+ }
1718
+
1719
+ .mdzip-root .preview-content sup > a[href^="#footnote-"] {
1720
+ text-decoration: none;
1721
+ }
1722
+
1723
+ .mdzip-root .preview-content blockquote {
1724
+ border-left: 4px solid var(--mdzip-link-color);
1725
+ margin: 1em 0;
1726
+ padding: 0.5em 1em;
1727
+ color: var(--mdzip-muted-foreground-color);
1728
+ background: var(--mdzip-code-background-color);
1729
+ }
1730
+
1731
+ .mdzip-root .preview-content .task-list-item {
1732
+ list-style-type: none;
1733
+ }
1734
+
1735
+ .mdzip-root .preview-content .task-list-item-checkbox {
1736
+ margin: 0 0.35em 0.2em -1.4em;
1737
+ vertical-align: middle;
1738
+ }
1739
+
1740
+ .mdzip-root .preview-content .mdzip-table-scroll {
1741
+ width: 100%;
1742
+ margin: 1em 0;
1743
+ overflow-x: auto;
1744
+ }
1745
+
1746
+ .mdzip-root .preview-content table {
1747
+ width: 100%;
1748
+ border-collapse: collapse;
1749
+ border-spacing: 0;
1750
+ }
1751
+
1752
+ .mdzip-root .preview-content th,
1753
+ .mdzip-root .preview-content td {
1754
+ padding: 8px 12px;
1755
+ border: 1px solid var(--mdzip-border-color);
1756
+ text-align: left;
1757
+ vertical-align: top;
1758
+ }
1759
+
1760
+ .mdzip-root .preview-content th {
1761
+ background: var(--mdzip-widget-background-color);
1762
+ font-weight: 600;
1763
+ white-space: nowrap;
1764
+ }
1765
+
1766
+ .mdzip-root .preview-content td code,
1767
+ .mdzip-root .preview-content th code {
1768
+ white-space: nowrap;
1769
+ }
1770
+
1771
+ /* Markdown table alignment (left/center/right column syntax) survives as the
1772
+ align attribute on th/td, but that's a presentational HTML hint — the plain
1773
+ text-align: left above is a real stylesheet rule and would otherwise always
1774
+ win regardless of column position. Right/center-aligned cells are also
1775
+ typically short, fixed values (numbers, totals) that read better holding
1776
+ their line, unlike left-aligned prose columns, which should wrap to fit
1777
+ the pane. */
1778
+ .mdzip-root .preview-content th[align="left"],
1779
+ .mdzip-root .preview-content td[align="left"] {
1780
+ text-align: left;
1781
+ }
1782
+
1783
+ .mdzip-root .preview-content th[align="center"],
1784
+ .mdzip-root .preview-content td[align="center"] {
1785
+ text-align: center;
1786
+ white-space: nowrap;
1787
+ }
1788
+
1789
+ .mdzip-root .preview-content th[align="right"],
1790
+ .mdzip-root .preview-content td[align="right"] {
1791
+ text-align: right;
1792
+ white-space: nowrap;
1793
+ }
1794
+
1795
+ .mdzip-root .preview-content td:last-child:not([align="center"]):not([align="right"]) {
1796
+ min-width: 220px;
1797
+ max-width: 320px;
1798
+ }
1799
+
1800
+ .mdzip-root .preview-content tbody tr:nth-child(even) {
1801
+ background: var(--mdzip-hover-background-color);
1802
+ }
1803
+
1804
+ .mdzip-root .preview-content img {
1805
+ max-width: 100%;
1806
+ height: auto;
1807
+ border-radius: 4px;
1808
+ }
1809
+
1810
+ .mdzip-root .preview-content img.mdzip-image-left,
1811
+ .mdzip-root .preview-content img.mdzip-image-wrap-left {
1812
+ float: left;
1813
+ margin: 0.25em 1em 0.75em 0;
1814
+ }
1815
+
1816
+ .mdzip-root .preview-content img.mdzip-image-right,
1817
+ .mdzip-root .preview-content img.mdzip-image-wrap-right {
1818
+ float: right;
1819
+ margin: 0.25em 0 0.75em 1em;
1820
+ }
1821
+
1822
+ .mdzip-root .preview-content img.mdzip-image-center {
1823
+ display: block;
1824
+ margin-left: auto;
1825
+ margin-right: auto;
1826
+ }
1827
+
1828
+ /* Stands in for an image of a raw .drawio diagram, which the preview can't draw yet. */
1829
+ .mdzip-root .preview-content .mdzip-drawio-placeholder {
1830
+ display: flex;
1831
+ gap: 0.85em;
1832
+ align-items: flex-start;
1833
+ max-width: 40em;
1834
+ margin: 0.75em 0;
1835
+ padding: 0.85em 1em;
1836
+ border: 1px dashed var(--mdzip-border-color);
1837
+ border-radius: 6px;
1838
+ background: var(--mdzip-code-background-color);
1839
+ color: var(--mdzip-editor-foreground-color);
1840
+ font-size: 0.92em;
1841
+ line-height: 1.5;
1842
+ }
1843
+
1844
+ .mdzip-root .preview-content .mdzip-drawio-placeholder-icon {
1845
+ flex: 0 0 auto;
1846
+ display: inline-flex;
1847
+ color: var(--mdzip-muted-foreground-color);
1848
+ padding-top: 0.1em;
1849
+ }
1850
+
1851
+ .mdzip-root .preview-content .mdzip-drawio-placeholder-body {
1852
+ display: flex;
1853
+ flex-direction: column;
1854
+ gap: 0.2em;
1855
+ min-width: 0;
1856
+ }
1857
+
1858
+ .mdzip-root .preview-content .mdzip-drawio-placeholder-file {
1859
+ color: var(--mdzip-muted-foreground-color);
1860
+ font-size: 0.92em;
1861
+ overflow-wrap: anywhere;
1862
+ }
1863
+
1864
+ .mdzip-root .preview-content .mdzip-drawio-placeholder-text {
1865
+ margin-top: 0.25em;
1866
+ }
1867
+
1868
+ .mdzip-root .preview-content .mdzip-drawio-placeholder-actions {
1869
+ display: flex;
1870
+ flex-wrap: wrap;
1871
+ gap: 0.5em;
1872
+ margin-top: 0.5em;
1873
+ }
1874
+
1875
+ .mdzip-root .preview-content .mdzip-drawio-placeholder-hint {
1876
+ margin-top: 0.35em;
1877
+ color: var(--mdzip-muted-foreground-color);
1878
+ font-size: 0.92em;
1879
+ }
1880
+
1881
+ .mdzip-root .preview-content .mdzip-drawio-placeholder-action {
1882
+ font: inherit;
1883
+ font-size: 0.95em;
1884
+ padding: 0.3em 0.85em;
1885
+ border: 1px solid var(--mdzip-border-color);
1886
+ border-radius: 4px;
1887
+ background: var(--mdzip-editor-background-color);
1888
+ color: var(--mdzip-editor-foreground-color);
1889
+ cursor: pointer;
1890
+ }
1891
+
1892
+ .mdzip-root .preview-content .mdzip-drawio-placeholder-action:hover {
1893
+ background: var(--mdzip-control-hover-background-color);
1894
+ }
1895
+
1896
+ .mdzip-root .preview-content .mdzip-drawio-placeholder-action:focus-visible {
1897
+ outline: 2px solid var(--mdzip-focus-outline-color);
1898
+ outline-offset: 1px;
1899
+ }
1900
+
1901
+ /* Progressive image hydration. Each archive image mounts inside a collapsed
1902
+ slot so the text stays compact and immediately readable; when the image
1903
+ resolves, the slot eases open (0fr -> 1fr) to the height reserved from its
1904
+ sniffed dimensions, in a single slide, and the pixels drop into the exact
1905
+ box with no further reflow. */
1906
+ .mdzip-root .preview-content .mdzip-image-slot {
1907
+ display: inline-grid;
1908
+ grid-template-rows: 0fr;
1909
+ overflow: hidden;
1910
+ vertical-align: bottom;
1911
+ transition: grid-template-rows 0.28s ease;
1912
+ }
1913
+
1914
+ .mdzip-root .preview-content .mdzip-image-slot.mdzip-image-open {
1915
+ grid-template-rows: 1fr;
1916
+ }
1917
+
1918
+ .mdzip-root .preview-content .mdzip-image-slot.mdzip-image-animation-off {
1919
+ transition: none;
1920
+ }
1921
+
1922
+ .mdzip-root .preview-content .mdzip-image-slot > img {
1923
+ min-height: 0;
1924
+ }
1925
+
1926
+ .mdzip-root .preview-content .mdzip-image-slot.mdzip-image-align-left {
1927
+ float: left;
1928
+ margin: 0.25em 1em 0.75em 0;
1929
+ }
1930
+
1931
+ .mdzip-root .preview-content .mdzip-image-slot.mdzip-image-align-right {
1932
+ float: right;
1933
+ margin: 0.25em 0 0.75em 1em;
1934
+ }
1935
+
1936
+ .mdzip-root .preview-content img.mdzip-image-loading {
1937
+ background: var(--mdzip-control-background-color, rgba(127, 127, 127, 0.12));
1938
+ animation: mdzip-image-pulse 1.2s ease-in-out infinite;
1939
+ }
1940
+
1941
+ @keyframes mdzip-image-pulse {
1942
+ 0%, 100% { opacity: 1; }
1943
+ 50% { opacity: 0.55; }
1944
+ }
1945
+
1946
+ @media (prefers-reduced-motion: reduce) {
1947
+ .mdzip-root .preview-content .mdzip-code-block-body {
1948
+ transition: none;
1949
+ }
1950
+ .mdzip-root .preview-content .mdzip-image-slot {
1951
+ transition: none;
1952
+ }
1953
+ .mdzip-root .preview-content img.mdzip-image-loading {
1954
+ animation: none;
1955
+ }
1956
+ }
1957
+
1958
+ .mdzip-root .preview-content .mdzip-frontmatter {
1959
+ margin: 0 0 1em 0;
1960
+ border: 1px solid var(--mdzip-border-color);
1961
+ border-radius: 5px;
1962
+ overflow: hidden;
1963
+ }
1964
+
1965
+ .mdzip-root .preview-content .mdzip-frontmatter-summary {
1966
+ padding: 6px 12px;
1967
+ background: var(--mdzip-widget-background-color);
1968
+ color: var(--mdzip-muted-foreground-color);
1969
+ font-size: 0.8em;
1970
+ border-bottom: 1px solid var(--mdzip-border-color);
1971
+ }
1972
+
1973
+ /* Only the collapsible (<details>) variant is interactive — the static
1974
+ variant's header is a plain <div>, never clickable. */
1975
+ .mdzip-root .preview-content details.mdzip-frontmatter > .mdzip-frontmatter-summary {
1976
+ cursor: pointer;
1977
+ user-select: none;
1978
+ }
1979
+
1980
+ .mdzip-root .preview-content .mdzip-frontmatter-table {
1981
+ width: 100%;
1982
+ border-collapse: collapse;
1983
+ }
1984
+
1985
+ .mdzip-root .preview-content .mdzip-frontmatter-table th,
1986
+ .mdzip-root .preview-content .mdzip-frontmatter-table td {
1987
+ padding: 4px 12px;
1988
+ border: none;
1989
+ text-align: left;
1990
+ vertical-align: top;
1991
+ font-size: 0.85em;
1992
+ }
1993
+
1994
+ .mdzip-root .preview-content .mdzip-frontmatter-table th {
1995
+ width: 1%;
1996
+ white-space: nowrap;
1997
+ color: var(--mdzip-muted-foreground-color);
1998
+ font-weight: 600;
1999
+ background: none;
2000
+ }
2001
+
2002
+ .mdzip-root .preview-content .mdzip-mermaid {
2003
+ display: flex;
2004
+ justify-content: center;
2005
+ margin: 1em 0;
2006
+ }
2007
+
2008
+ .mdzip-root .preview-content .mdzip-mermaid > svg {
2009
+ max-width: 100%;
2010
+ height: auto;
2011
+ }
2012
+
2013
+ .mdzip-root .preview-content .mdzip-mermaid-error {
2014
+ margin: 1em 0;
2015
+ padding: 0.75em 1em;
2016
+ border-radius: 6px;
2017
+ border: 1px solid var(--mdzip-error-border-color, rgba(220, 70, 70, 0.5));
2018
+ background: var(--mdzip-error-background-color, rgba(220, 70, 70, 0.08));
2019
+ color: var(--mdzip-error-color, #b03030);
2020
+ font-family: "Cascadia Code", Consolas, monospace;
2021
+ font-size: 0.85em;
2022
+ white-space: pre-wrap;
2023
+ word-break: break-word;
2024
+ }
2025
+
2026
+ /* The manifest as a form (View layout of manifest.json). */
2027
+ .mdzip-root .mdzip-manifest-form {
2028
+ max-width: 640px;
2029
+ margin: 0 auto;
2030
+ font-size: calc(15px * var(--mdz-zoom, 1));
2031
+ line-height: 1.45;
2032
+ color: var(--mdzip-editor-foreground-color);
2033
+ }
2034
+
2035
+ .mdzip-root .mdzip-manifest-form .mmf-header {
2036
+ display: flex;
2037
+ align-items: baseline;
2038
+ justify-content: space-between;
2039
+ gap: 12px;
2040
+ flex-wrap: wrap;
2041
+ }
2042
+
2043
+ /* In Split the JSON is already beside the form. */
2044
+ .mdzip-root .pane-stack.split-mode .mdzip-manifest-form .mmf-header .mmf-link {
2045
+ display: none;
2046
+ }
2047
+
2048
+ .mdzip-root .mdzip-manifest-form .mmf-title {
2049
+ margin: 0;
2050
+ padding: 0;
2051
+ border: 0;
2052
+ font-size: 1.4em;
2053
+ font-weight: 600;
2054
+ }
2055
+
2056
+ .mdzip-root .mdzip-manifest-form .mmf-summary {
2057
+ margin: 6px 0 18px;
2058
+ padding: 6px 10px;
2059
+ border-radius: 5px;
2060
+ font-size: 0.9em;
2061
+ color: var(--mdzip-muted-foreground-color);
2062
+ background: var(--mdzip-secondary-background-color, transparent);
2063
+ }
2064
+
2065
+ .mdzip-root .mdzip-manifest-form .mmf-summary[data-status="warnings"] {
2066
+ color: var(--mdzip-warning-color, #8a5a00);
2067
+ }
2068
+
2069
+ .mdzip-root .mdzip-manifest-form .mmf-summary[data-status="invalid"] {
2070
+ color: var(--mdzip-error-color, #b03030);
2071
+ background: var(--mdzip-error-background-color, rgba(220, 70, 70, 0.08));
2072
+ }
2073
+
2074
+ .mdzip-root .mdzip-manifest-form .mmf-summary.flash {
2075
+ animation: mdzip-json-status-flash 0.9s ease-out;
2076
+ }
2077
+
2078
+ .mdzip-root .mdzip-manifest-form .mmf-notice {
2079
+ padding: 12px 14px;
2080
+ border: 1px solid var(--mdzip-error-border-color, var(--mdzip-border-color));
2081
+ border-radius: 6px;
2082
+ background: var(--mdzip-error-background-color, rgba(220, 70, 70, 0.08));
2083
+ }
2084
+
2085
+ .mdzip-root .mdzip-manifest-form .mmf-notice p {
2086
+ margin: 0 0 10px;
2087
+ }
2088
+
2089
+ .mdzip-root .mdzip-manifest-form .mmf-section {
2090
+ margin: 0 0 22px;
2091
+ }
2092
+
2093
+ .mdzip-root .mdzip-manifest-form .mmf-section-title,
2094
+ .mdzip-root .mdzip-manifest-form .mmf-advanced > summary {
2095
+ margin: 0 0 10px;
2096
+ padding: 0 0 4px;
2097
+ border-bottom: 1px solid var(--mdzip-border-color);
2098
+ font-size: 0.8em;
2099
+ font-weight: 600;
2100
+ letter-spacing: 0.04em;
2101
+ text-transform: uppercase;
2102
+ color: var(--mdzip-muted-foreground-color);
2103
+ }
2104
+
2105
+ .mdzip-root .mdzip-manifest-form .mmf-advanced > summary {
2106
+ cursor: pointer;
2107
+ list-style-position: inside;
2108
+ }
2109
+
2110
+ .mdzip-root .mdzip-manifest-form .mmf-field {
2111
+ margin: 0 0 14px;
2112
+ }
2113
+
2114
+ .mdzip-root .mdzip-manifest-form label {
2115
+ display: block;
2116
+ margin: 0 0 4px;
2117
+ font-weight: 500;
2118
+ }
2119
+
2120
+ .mdzip-root .mdzip-manifest-form input,
2121
+ .mdzip-root .mdzip-manifest-form textarea,
2122
+ .mdzip-root .mdzip-manifest-form select {
2123
+ box-sizing: border-box;
2124
+ width: 100%;
2125
+ padding: 6px 9px;
2126
+ border: 1px solid var(--mdzip-widget-border-color, var(--mdzip-border-color));
2127
+ border-radius: 5px;
2128
+ background: var(--mdzip-widget-background-color, var(--mdzip-editor-background-color));
2129
+ color: var(--mdzip-editor-foreground-color);
2130
+ font: inherit;
2131
+ }
2132
+
2133
+ .mdzip-root .mdzip-manifest-form textarea {
2134
+ resize: vertical;
2135
+ min-height: 4.5em;
2136
+ }
2137
+
2138
+ .mdzip-root .mdzip-manifest-form input:focus-visible,
2139
+ .mdzip-root .mdzip-manifest-form textarea:focus-visible,
2140
+ .mdzip-root .mdzip-manifest-form select:focus-visible {
2141
+ outline: 2px solid var(--mdzip-focus-outline-color, var(--mdzip-link-color));
2142
+ outline-offset: 0;
2143
+ border-color: transparent;
2144
+ }
2145
+
2146
+ .mdzip-root .mdzip-manifest-form [aria-invalid="true"] {
2147
+ border-color: var(--mdzip-error-color, #b03030);
2148
+ }
2149
+
2150
+ .mdzip-root .mdzip-manifest-form :disabled {
2151
+ opacity: 0.75;
2152
+ cursor: default;
2153
+ }
2154
+
2155
+ .mdzip-root .mdzip-manifest-form .mmf-key {
2156
+ padding: 0;
2157
+ border: 0;
2158
+ background: none;
2159
+ font-family: "Cascadia Code", Consolas, monospace;
2160
+ font-size: 0.85em;
2161
+ font-weight: 400;
2162
+ color: var(--mdzip-muted-foreground-color);
2163
+ }
2164
+
2165
+ .mdzip-root .mdzip-manifest-form .mmf-hint {
2166
+ margin: 4px 0 0;
2167
+ font-size: 0.85em;
2168
+ color: var(--mdzip-muted-foreground-color);
2169
+ }
2170
+
2171
+ .mdzip-root .mdzip-manifest-form .mmf-error {
2172
+ margin: 4px 0 0;
2173
+ font-size: 0.85em;
2174
+ color: var(--mdzip-error-color, #b03030);
2175
+ }
2176
+
2177
+ .mdzip-root .mdzip-manifest-form .mmf-error[data-severity="warning"] {
2178
+ color: var(--mdzip-warning-color, #8a5a00);
2179
+ }
2180
+
2181
+ .mdzip-root.mdzip-theme-dark .mdzip-manifest-form .mmf-error[data-severity="warning"],
2182
+ .mdzip-root.mdzip-theme-dark .mdzip-manifest-form .mmf-summary[data-status="warnings"] {
2183
+ color: var(--mdzip-warning-color, #e0b050);
2184
+ }
2185
+
2186
+ .mdzip-root.mdzip-theme-dark .mdzip-manifest-form .mmf-error,
2187
+ .mdzip-root.mdzip-theme-dark .mdzip-manifest-form .mmf-summary[data-status="invalid"] {
2188
+ color: var(--mdzip-error-color, #f08080);
2189
+ }
2190
+
2191
+ .mdzip-root .mdzip-manifest-form .mmf-details {
2192
+ display: grid;
2193
+ grid-template-columns: max-content 1fr;
2194
+ gap: 4px 16px;
2195
+ margin: 0 0 10px;
2196
+ font-size: 0.9em;
2197
+ }
2198
+
2199
+ .mdzip-root .mdzip-manifest-form .mmf-details dt {
2200
+ color: var(--mdzip-muted-foreground-color);
2201
+ }
2202
+
2203
+ .mdzip-root .mdzip-manifest-form .mmf-details dd {
2204
+ margin: 0;
2205
+ overflow-wrap: anywhere;
2206
+ }
2207
+
2208
+ .mdzip-root .mdzip-manifest-form button {
2209
+ padding: 5px 12px;
2210
+ border: 1px solid var(--mdzip-widget-border-color, var(--mdzip-border-color));
2211
+ border-radius: 5px;
2212
+ background: var(--mdzip-control-background-color, transparent);
2213
+ color: var(--mdzip-control-foreground-color, inherit);
2214
+ font: inherit;
2215
+ cursor: pointer;
2216
+ }
2217
+
2218
+ .mdzip-root .mdzip-manifest-form button:hover {
2219
+ background: var(--mdzip-control-hover-background-color);
2220
+ }
2221
+
2222
+ .mdzip-root .mdzip-manifest-form button.mmf-link {
2223
+ padding: 0;
2224
+ border: 0;
2225
+ background: none;
2226
+ color: var(--mdzip-link-color);
2227
+ font-size: 0.9em;
2228
+ }
2229
+
2230
+ .mdzip-root .mdzip-manifest-form button.mmf-link:hover {
2231
+ background: none;
2232
+ text-decoration: underline;
2233
+ }
2234
+
2235
+ .mdzip-root .plain-text-preview {
2236
+ margin: 0;
2237
+ white-space: pre-wrap;
2238
+ word-break: break-word;
2239
+ font-family: "Cascadia Code", Consolas, monospace;
2240
+ font-variant-ligatures: none;
2241
+ font-feature-settings: "liga" 0, "calt" 0;
2242
+ font-size: calc(20px * var(--mdz-zoom));
2243
+ line-height: 1.5;
2244
+ }
2245
+
2246
+ .mdzip-root .asset-preview-wrap {
2247
+ display: flex;
2248
+ justify-content: center;
2249
+ align-items: flex-start;
2250
+ min-height: 240px;
2251
+ }
2252
+
2253
+ .mdzip-root .asset-preview-image {
2254
+ max-width: min(100%, 1200px);
2255
+ max-height: calc(100vh - 140px);
2256
+ width: auto;
2257
+ height: auto;
2258
+ border: 1px solid var(--mdzip-border-color);
2259
+ background: var(--mdzip-widget-background-color);
2260
+ }
2261
+
2262
+ .mdzip-root .asset-preview-empty {
2263
+ padding: 14px 16px;
2264
+ border: 1px solid var(--mdzip-border-color);
2265
+ border-radius: 6px;
2266
+ background: var(--mdzip-widget-background-color);
2267
+ color: var(--mdzip-muted-foreground-color);
2268
+ }
2269
+
2270
+ .mdzip-root .md-syntax-heading { color: #c36f00; }
2271
+ .mdzip-root .md-syntax-marker,
2272
+ .mdzip-root .md-syntax-quote { color: #7a5c00; font-weight: 700; }
2273
+ .mdzip-root .md-syntax-code,
2274
+ .mdzip-root .md-syntax-fence { color: #8a8f00; }
2275
+ .mdzip-root .md-syntax-link { color: #0969da; }
2276
+ .mdzip-root .md-syntax-image { color: #d100d1; }
2277
+ .mdzip-root .md-syntax-emphasis { color: #008b8b; }
2278
+ .mdzip-root .md-syntax-rule { color: #6a9955; }
2279
+
2280
+ .mdzip-root .mdzip-empty {
2281
+ padding: 24px;
2282
+ color: var(--mdzip-muted-foreground-color);
2283
+ }
2284
+
2285
+ .mdzip-root .zoom-popover {
2286
+ position: absolute;
2287
+ top: calc(100% + 6px);
2288
+ right: 0;
2289
+ z-index: 20;
2290
+ display: flex;
2291
+ align-items: center;
2292
+ gap: 8px;
2293
+ padding: 4px;
2294
+ border: 1px solid var(--mdzip-widget-border-color);
2295
+ border-radius: 7px;
2296
+ background: var(--mdzip-widget-background-color);
2297
+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
2298
+ }
2299
+
2300
+ .mdzip-root .zoom-level {
2301
+ min-width: 44px;
2302
+ padding: 0 6px;
2303
+ font-size: 12px;
2304
+ line-height: 1;
2305
+ font-variant-numeric: tabular-nums;
2306
+ color: var(--mdzip-editor-foreground-color);
2307
+ }
2308
+
2309
+ .mdzip-root .zoom-stepper {
2310
+ display: inline-flex;
2311
+ align-items: center;
2312
+ gap: 2px;
2313
+ padding-left: 8px;
2314
+ border-left: 1px solid var(--mdzip-widget-border-color);
2315
+ }
2316
+
2317
+ .mdzip-root .zoom-popover button {
2318
+ height: 24px;
2319
+ min-width: 24px;
2320
+ border: none;
2321
+ border-radius: 6px;
2322
+ background: transparent;
2323
+ color: var(--mdzip-control-foreground-color);
2324
+ cursor: pointer;
2325
+ }
2326
+
2327
+ .mdzip-root .zoom-popover button:hover {
2328
+ background: var(--mdzip-control-hover-background-color);
2329
+ }
2330
+
2331
+ .mdzip-root .zoom-reset {
2332
+ padding: 0 12px;
2333
+ border-radius: 999px !important;
2334
+ background: var(--mdzip-control-hover-background-color) !important;
2335
+ font-size: 12px;
2336
+ }
2337
+
2338
+ .mdzip-root .title-dialog-backdrop {
2339
+ position: fixed;
2340
+ inset: 0;
2341
+ display: flex;
2342
+ align-items: center;
2343
+ justify-content: center;
2344
+ background: rgba(0, 0, 0, 0.32);
2345
+ z-index: 100;
2346
+ }
2347
+
2348
+ .mdzip-root .title-dialog {
2349
+ width: min(420px, calc(100vw - 32px));
2350
+ background: var(--mdzip-editor-background-color);
2351
+ border: 1px solid var(--mdzip-widget-border-color);
2352
+ border-radius: 6px;
2353
+ padding: 14px;
2354
+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
2355
+ }
2356
+
2357
+ .mdzip-root .title-dialog h3 {
2358
+ margin: 0;
2359
+ font-size: 14px;
2360
+ }
2361
+
2362
+ .mdzip-root .title-dialog p {
2363
+ margin: 8px 0 10px;
2364
+ font-size: 12px;
2365
+ color: var(--mdzip-muted-foreground-color);
2366
+ }
2367
+
2368
+ .mdzip-root .title-dialog input {
2369
+ width: 100%;
2370
+ border: 1px solid var(--mdzip-widget-border-color);
2371
+ background: var(--mdzip-editor-background-color);
2372
+ color: var(--mdzip-editor-foreground-color);
2373
+ border-radius: 4px;
2374
+ padding: 6px 8px;
2375
+ font-size: 13px;
2376
+ }
2377
+
2378
+ .mdzip-root .title-dialog select {
2379
+ width: 100%;
2380
+ border: 1px solid var(--mdzip-widget-border-color);
2381
+ background: var(--mdzip-editor-background-color);
2382
+ color: var(--mdzip-editor-foreground-color);
2383
+ border-radius: 4px;
2384
+ padding: 6px 8px;
2385
+ font-size: 13px;
2386
+ }
2387
+
2388
+ .mdzip-root .title-dialog input:disabled,
2389
+ .mdzip-root .title-dialog select:disabled {
2390
+ border-color: var(--mdzip-border-color);
2391
+ background: var(--mdzip-secondary-background-color);
2392
+ color: var(--mdzip-muted-foreground-color);
2393
+ opacity: 0.72;
2394
+ cursor: not-allowed;
2395
+ }
2396
+
2397
+ .mdzip-root .title-dialog input:disabled::placeholder {
2398
+ color: var(--mdzip-muted-foreground-color);
2399
+ }
2400
+
2401
+ .mdzip-root .title-dialog-validation {
2402
+ color: #cf222e !important;
2403
+ }
2404
+
2405
+ .mdzip-root .title-dialog-actions {
2406
+ display: flex;
2407
+ justify-content: flex-end;
2408
+ gap: 8px;
2409
+ margin-top: 12px;
2410
+ }
2411
+
2412
+ .mdzip-root .title-dialog-actions button {
2413
+ padding: 5px 10px;
2414
+ font-size: 12px;
2415
+ cursor: pointer;
2416
+ border-radius: 3px;
2417
+ border: 1px solid var(--mdzip-border-color);
2418
+ background: var(--mdzip-editor-background-color);
2419
+ color: var(--mdzip-editor-foreground-color);
2420
+ }
2421
+
2422
+ .mdzip-root .title-dialog-actions .reset-title {
2423
+ margin-right: auto;
2424
+ }
2425
+
2426
+ .mdzip-root .title-dialog-actions .save-title {
2427
+ border-color: var(--mdzip-accent-color);
2428
+ background: var(--mdzip-accent-color);
2429
+ color: var(--mdzip-accent-foreground-color);
2430
+ }
2431
+
2432
+ .mdzip-root .image-insert-dialog {
2433
+ width: min(460px, calc(100vw - 32px));
2434
+ }
2435
+
2436
+ .mdzip-root .image-insert-options {
2437
+ display: grid;
2438
+ gap: 6px;
2439
+ margin: 10px 0;
2440
+ padding: 10px;
2441
+ border: 1px solid var(--mdzip-widget-border-color);
2442
+ border-radius: 4px;
2443
+ }
2444
+
2445
+ .mdzip-root .image-insert-options legend {
2446
+ padding: 0 4px;
2447
+ color: var(--mdzip-muted-foreground-color);
2448
+ font-size: 12px;
2449
+ font-weight: 600;
2450
+ }
2451
+
2452
+ .mdzip-root .image-insert-options label,
2453
+ .mdzip-root .image-insert-field {
2454
+ display: grid;
2455
+ gap: 4px;
2456
+ font-size: 12px;
2457
+ }
2458
+
2459
+ .mdzip-root .image-insert-options label {
2460
+ grid-template-columns: auto 1fr;
2461
+ align-items: center;
2462
+ }
2463
+
2464
+ .mdzip-root .image-insert-options input {
2465
+ width: auto;
2466
+ }
2467
+
2468
+ .mdzip-root .image-insert-grid {
2469
+ display: grid;
2470
+ grid-template-columns: 1fr 1fr;
2471
+ gap: 8px;
2472
+ margin-top: 8px;
2473
+ }
2474
+
2475
+ .mdzip-root .image-insert-field {
2476
+ margin-top: 8px;
2477
+ }
2478
+
2479
+ .mdzip-root .image-insert-field.field-disabled {
2480
+ color: var(--mdzip-muted-foreground-color);
2481
+ }
2482
+
2483
+ .mdzip-root .pack-files-dialog {
2484
+ width: min(460px, calc(100vw - 32px));
2485
+ }
2486
+
2487
+ .mdzip-root .pack-files-options {
2488
+ display: grid;
2489
+ gap: 6px;
2490
+ margin: 10px 0;
2491
+ padding: 10px;
2492
+ border: 1px solid var(--mdzip-widget-border-color);
2493
+ border-radius: 4px;
2494
+ }
2495
+
2496
+ .mdzip-root .pack-files-options legend {
2497
+ padding: 0 4px;
2498
+ color: var(--mdzip-muted-foreground-color);
2499
+ font-size: 12px;
2500
+ font-weight: 600;
2501
+ }
2502
+
2503
+ .mdzip-root .pack-files-options label,
2504
+ .mdzip-root .pack-files-field {
2505
+ display: grid;
2506
+ gap: 4px;
2507
+ font-size: 12px;
2508
+ }
2509
+
2510
+ .mdzip-root .pack-files-options label {
2511
+ grid-template-columns: auto 1fr;
2512
+ align-items: center;
2513
+ }
2514
+
2515
+ .mdzip-root .pack-files-options input {
2516
+ width: auto;
2517
+ }
2518
+
2519
+ .mdzip-root .pack-files-field {
2520
+ margin-top: 8px;
2521
+ }
2522
+
2523
+ .mdzip-root .copy-render-progress-track {
2524
+ height: 6px;
2525
+ border-radius: 3px;
2526
+ background: var(--mdzip-secondary-background-color);
2527
+ overflow: hidden;
2528
+ }
2529
+
2530
+ .mdzip-root .copy-render-progress-bar {
2531
+ height: 100%;
2532
+ background: var(--mdzip-accent-color);
2533
+ transition: width 0.1s linear;
2534
+ }
2535
+
2536
+ .mdzip-root .metadata-dialog dl {
2537
+ margin: 12px 0 0;
2538
+ }
2539
+
2540
+ .mdzip-root .metadata-dialog {
2541
+ width: min(760px, calc(100vw - 32px));
2542
+ }
2543
+
2544
+ .mdzip-root .metadata-dialog h4 {
2545
+ margin: 18px 0 0;
2546
+ font-size: 13px;
2547
+ }
2548
+
2549
+ .mdzip-root .metadata-dialog h4 + dl {
2550
+ margin-top: 6px;
2551
+ }
2552
+
2553
+ .mdzip-root .metadata-row {
2554
+ display: grid;
2555
+ grid-template-columns: 110px minmax(0, 1fr);
2556
+ gap: 12px;
2557
+ padding: 7px 0;
2558
+ border-bottom: 1px solid var(--mdzip-border-color);
2559
+ font-size: 14px;
2560
+ }
2561
+
2562
+ .mdzip-root .metadata-row:last-child {
2563
+ border-bottom: 0;
2564
+ }
2565
+
2566
+ .mdzip-root .metadata-row dt {
2567
+ color: var(--mdzip-muted-foreground-color);
2568
+ font-weight: 600;
2569
+ }
2570
+
2571
+ .mdzip-root .metadata-row dd {
2572
+ min-width: 0;
2573
+ margin: 0;
2574
+ overflow-wrap: anywhere;
2575
+ }
2576
+
2577
+ .mdzip-root .library-row dt a {
2578
+ color: var(--mdzip-link-color);
2579
+ text-decoration: none;
2580
+ }
2581
+
2582
+ .mdzip-root .library-row dt a:hover,
2583
+ .mdzip-root .library-row dt a:focus-visible {
2584
+ text-decoration: underline;
2585
+ }
2586
+
2587
+ .mdzip-root .library-row {
2588
+ grid-template-columns: minmax(230px, 0.75fr) minmax(280px, 1.25fr);
2589
+ }
2590
+
2591
+ .mdzip-root .library-row dt {
2592
+ display: flex;
2593
+ gap: 8px;
2594
+ align-items: baseline;
2595
+ white-space: nowrap;
2596
+ }
2597
+
2598
+ .mdzip-root .library-version {
2599
+ color: var(--mdzip-muted-foreground-color);
2600
+ font-weight: 400;
2601
+ }
2602
+
2603
+ .mdzip-root .library-row dd {
2604
+ white-space: nowrap;
2605
+ }
2606
+
2607
+ .mdzip-root .library-description {
2608
+ color: var(--mdzip-muted-foreground-color);
2609
+ }
2610
+
2611
+ @media (max-width: 640px) {
2612
+ .mdzip-root .library-row {
2613
+ grid-template-columns: 1fr;
2614
+ gap: 3px;
2615
+ }
2616
+
2617
+ .mdzip-root .library-row dd {
2618
+ white-space: normal;
2619
+ }
2620
+ }
2621
+
2622
+ @media (max-width: 900px) {
2623
+ .mdzip-root { --nav-pane-width: 220px; }
2624
+ }
2625
+
2626
+ /* Stack the formatting toolbar only once the pushed-right view-mode toggle no
2627
+ longer has enough room between the edit tools and the right-side controls. */
2628
+ @media (max-width: 760px) {
2629
+ .mdzip-root .toolbar {
2630
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
2631
+ row-gap: 4px;
2632
+ }
2633
+ .mdzip-root .toolbar-start {
2634
+ display: contents;
2635
+ }
2636
+ .mdzip-root .toolbar-left {
2637
+ grid-column: 1;
2638
+ grid-row: 1;
2639
+ }
2640
+ .mdzip-root .edit-toolbar {
2641
+ grid-column: 1 / -1;
2642
+ grid-row: 2;
2643
+ justify-self: start;
2644
+ position: static;
2645
+ transform: none;
2646
+ }
2647
+ .mdzip-root .view-mode-toggle-group {
2648
+ position: static;
2649
+ transform: none;
2650
+ }
2651
+ .mdzip-root .toolbar-controls {
2652
+ grid-column: 3;
2653
+ grid-row: 1;
2654
+ }
2655
+ }
2656
+
2657
+ @media (max-width: 1100px) {
2658
+ .mdzip-root.navigation-pane-visible .toolbar {
2659
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
2660
+ row-gap: 4px;
2661
+ }
2662
+ .mdzip-root.navigation-pane-visible .toolbar-start {
2663
+ display: contents;
2664
+ }
2665
+ .mdzip-root.navigation-pane-visible .toolbar-left {
2666
+ grid-column: 1;
2667
+ grid-row: 1;
2668
+ }
2669
+ .mdzip-root.navigation-pane-visible .edit-toolbar {
2670
+ grid-column: 1 / -1;
2671
+ grid-row: 2;
2672
+ justify-self: start;
2673
+ position: static;
2674
+ transform: none;
2675
+ }
2676
+ .mdzip-root.navigation-pane-visible .view-mode-toggle-group {
2677
+ position: static;
2678
+ transform: none;
2679
+ }
2680
+ .mdzip-root.navigation-pane-visible .toolbar-controls {
2681
+ grid-column: 3;
2682
+ grid-row: 1;
2683
+ }
2684
+ }
2685
+
2686
+ @media (prefers-reduced-motion: reduce) {
2687
+ .mdzip-root .nav-pane,
2688
+ .mdzip-root .nav-resizer {
2689
+ transition: none;
2690
+ }
2691
+ }
2692
+
2693
+ @media (max-width: 640px) {
2694
+ .mdzip-root .toolbar {
2695
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
2696
+ row-gap: 6px;
2697
+ }
2698
+ .mdzip-root .edit-toolbar {
2699
+ overflow-x: auto;
2700
+ }
2701
+ .mdzip-root .toolbar-controls {
2702
+ grid-column: 3;
2703
+ grid-row: 1;
2704
+ justify-self: end;
2705
+ }
2706
+ }
2707
+
2708
+ @media print {
2709
+ .mdzip-root {
2710
+ height: auto;
2711
+ min-height: 0;
2712
+ overflow: visible;
2713
+ display: block;
2714
+ background: #ffffff;
2715
+ color: #000000;
2716
+ }
2717
+
2718
+ .mdzip-root .toolbar,
2719
+ .mdzip-root .document-strip,
2720
+ .mdzip-root .nav-pane,
2721
+ .mdzip-root .nav-resizer,
2722
+ .mdzip-root .outline-pane,
2723
+ .mdzip-root .outline-resizer,
2724
+ .mdzip-root .split-resizer,
2725
+ .mdzip-root .edit-pane,
2726
+ .mdzip-root .edit-toolbar,
2727
+ .mdzip-root .mdzip-tooltip,
2728
+ .mdzip-root .nav-context-menu,
2729
+ .mdzip-root .title-dialog-backdrop,
2730
+ .mdzip-root .theme-popover,
2731
+ .mdzip-root .toolbar-popover,
2732
+ .mdzip-root .zoom-popover {
2733
+ display: none !important;
2734
+ }
2735
+
2736
+ .mdzip-root .workspace-shell {
2737
+ display: block;
2738
+ }
2739
+
2740
+ .mdzip-root .pane-stack,
2741
+ .mdzip-root .pane-stack.split-mode {
2742
+ display: block;
2743
+ height: auto;
2744
+ }
2745
+
2746
+ .mdzip-root .preview-pane {
2747
+ display: block !important;
2748
+ overflow: visible;
2749
+ height: auto;
2750
+ }
2751
+
2752
+ .mdzip-root .preview-content {
2753
+ max-width: 100%;
2754
+ padding: 0;
2755
+ font-size: 11pt;
2756
+ line-height: 1.6;
2757
+ }
2758
+
2759
+ .mdzip-root .preview-content h1,
2760
+ .mdzip-root .preview-content h2,
2761
+ .mdzip-root .preview-content h3,
2762
+ .mdzip-root .preview-content h4,
2763
+ .mdzip-root .preview-content h5,
2764
+ .mdzip-root .preview-content h6 {
2765
+ page-break-after: avoid;
2766
+ color: #000000;
2767
+ }
2768
+
2769
+ .mdzip-root .preview-content pre,
2770
+ .mdzip-root .preview-content blockquote,
2771
+ .mdzip-root .preview-content img,
2772
+ .mdzip-root .preview-content table {
2773
+ page-break-inside: avoid;
2774
+ }
2775
+
2776
+ .mdzip-root .preview-content pre,
2777
+ .mdzip-root .preview-content code {
2778
+ white-space: pre-wrap;
2779
+ word-break: break-word;
2780
+ background: #f6f8fa;
2781
+ color: #000000;
2782
+ border-color: #d0d7de;
2783
+ }
2784
+
2785
+ .mdzip-root .preview-content a {
2786
+ color: #000000;
2787
+ text-decoration: underline;
2788
+ }
2789
+
2790
+ .mdzip-root .preview-content img {
2791
+ max-width: 100%;
2792
+ }
2793
+ }
2794
+
2795
+ /* Syntax highlighting for code blocks in preview (highlight.js) */
2796
+ .mdzip-root .preview-content pre code {
2797
+ display: block;
2798
+ overflow-x: auto;
2799
+ padding: 12px;
2800
+ background: var(--mdzip-editor-background-color);
2801
+ border-radius: 4px;
2802
+ font-family: "Courier New", Courier, monospace;
2803
+ font-variant-ligatures: none;
2804
+ font-feature-settings: "liga" 0, "calt" 0;
2805
+ font-size: 12px;
2806
+ color: var(--mdzip-editor-foreground-color);
2807
+ }
2808
+
2809
+ /* Dark theme (Monokai-inspired) - highlight.js classes */
2810
+ .mdzip-root .hljs { color: #f8f8f2; }
2811
+ .mdzip-root .hljs-comment { color: #75715e; }
2812
+ .mdzip-root .hljs-string { color: #a6e22e; }
2813
+ .mdzip-root .hljs-number { color: #ae81ff; }
2814
+ .mdzip-root .hljs-literal { color: #ae81ff; }
2815
+ .mdzip-root .hljs-attr { color: #a6e22e; }
2816
+ .mdzip-root .hljs-keyword { color: #f92672; }
2817
+ .mdzip-root .hljs-title { color: #a6e22e; }
2818
+ .mdzip-root .hljs-punctuation { color: #f8f8f2; }
2819
+ .mdzip-root .hljs-operator { color: #f92672; }
2820
+
2821
+ /* Light theme - highlight.js classes */
2822
+ .mdzip-root.mdzip-theme-light .hljs { color: #383a42; }
2823
+ .mdzip-root.mdzip-theme-light .hljs-comment { color: #a0a1a7; }
2824
+ .mdzip-root.mdzip-theme-light .hljs-string { color: #50a14f; }
2825
+ .mdzip-root.mdzip-theme-light .hljs-number { color: #986801; }
2826
+ .mdzip-root.mdzip-theme-light .hljs-literal { color: #986801; }
2827
+ .mdzip-root.mdzip-theme-light .hljs-attr { color: #50a14f; }
2828
+ .mdzip-root.mdzip-theme-light .hljs-keyword { color: #a626a4; }
2829
+ .mdzip-root.mdzip-theme-light .hljs-title { color: #50a14f; }
2830
+ .mdzip-root.mdzip-theme-light .hljs-punctuation { color: #383a42; }
2831
+ .mdzip-root.mdzip-theme-light .hljs-operator { color: #a626a4; }
2832
+
2833
+ /* A text file in the preview (View layout) looks like it does in the editor:
2834
+ the editor's font, size and line height, no code-block card, and for JSON
2835
+ the editor's colors (#68). These follow the code-block rules above to win. */
2836
+ .mdzip-root .preview-content pre.plain-text-preview {
2837
+ background: none;
2838
+ border: none;
2839
+ border-radius: 0;
2840
+ padding: 0;
2841
+ margin: 0;
2842
+ }
2843
+
2844
+ .mdzip-root .preview-content pre.plain-text-preview code {
2845
+ display: block;
2846
+ padding: 0;
2847
+ background: none;
2848
+ border-radius: 0;
2849
+ font-family: "Cascadia Code", Consolas, monospace;
2850
+ font-size: calc(16px * var(--mdz-zoom, 1));
2851
+ line-height: 1.5;
2852
+ white-space: pre-wrap;
2853
+ word-break: break-word;
2854
+ overflow-x: visible;
2855
+ color: var(--mdzip-editor-foreground-color);
2856
+ }
2857
+
2858
+ .mdzip-root .plain-text-preview.language-json .hljs-attr { color: #008b8b; }
2859
+ .mdzip-root .plain-text-preview.language-json .hljs-string { color: #c36f00; }
2860
+ .mdzip-root .plain-text-preview.language-json .hljs-number { color: #6a9955; }
2861
+ .mdzip-root .plain-text-preview.language-json .hljs-literal { color: #d100d1; }
2862
+ .mdzip-root .plain-text-preview.language-json .hljs-punctuation { color: inherit; }
2310
2863
  `;
2311
2864
  //# sourceMappingURL=view-css.js.map