markdown-pdf-export 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/studio/style.css CHANGED
@@ -449,8 +449,9 @@ input[type="range"] { accent-color: var(--accent); }
449
449
 
450
450
  /* ── editors dialog ─────────────────────────────────────────────────────── */
451
451
  dialog {
452
- width: min(680px, calc(100vw - 40px));
452
+ width: min(720px, calc(100vw - 40px));
453
453
  max-height: calc(100vh - 60px);
454
+ min-height: 640px;
454
455
  border: 1px solid var(--rule);
455
456
  border-radius: 10px;
456
457
  padding: 22px 24px;
@@ -462,13 +463,26 @@ dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
462
463
  .dialog-head h2 { margin: 0; font-size: 21px; }
463
464
  dialog .hint { margin: 0 0 6px; }
464
465
 
465
- .editor { border-top: 1px solid var(--rule); padding: 14px 0 4px; }
466
- .editor h3 { margin: 0 0 8px; font: 600 15px var(--ui); }
467
- .editor h3 small { font-weight: 400; color: var(--quiet); margin-left: 6px; }
466
+ .tabs { display: flex; gap: 2px; margin: 12px 0 0; border-bottom: 1px solid var(--rule); overflow-x: auto; overflow-y: hidden; }
467
+ .tab {
468
+ display: inline-flex; align-items: center; gap: 6px;
469
+ padding: 8px 9px; margin-bottom: -1px;
470
+ font: 600 13.5px var(--ui); white-space: nowrap; cursor: pointer;
471
+ color: var(--quiet); background: none;
472
+ border: 0; border-bottom: 2px solid transparent;
473
+ }
474
+ .tab:hover { color: var(--text); }
475
+ .tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
476
+ .tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
477
+ .tab .found { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
478
+ .tab-panel { padding-top: 14px; min-height: 260px; }
479
+ .editor-note { margin: 0 0 10px; font-size: 13px; }
480
+ .found-note { margin: 0 0 10px; font-size: 13px; color: var(--quiet); }
468
481
  .step { margin-bottom: 12px; }
469
- .step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
482
+ .step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
470
483
  .step-file { font: 11.5px var(--mono); color: var(--quiet); overflow-wrap: anywhere; margin: 2px 0 5px; }
471
- .step pre {
484
+ .step pre,
485
+ .quick-result pre {
472
486
  margin: 0;
473
487
  max-height: 150px;
474
488
  overflow: auto;
@@ -479,8 +493,49 @@ dialog .hint { margin: 0 0 6px; }
479
493
  font: 12px/1.45 var(--mono);
480
494
  }
481
495
  .step .result { margin-top: 5px; color: var(--ok); }
496
+
497
+ /* quick setup: editors found here, one switch each */
498
+ .quick { margin: 14px 0 4px; }
499
+ .quick h3 { margin: 0 0 8px; font: 600 12px var(--ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); }
500
+ .quick-row {
501
+ display: grid; grid-template-columns: 40px auto 1fr; align-items: center; gap: 4px 12px;
502
+ padding: 10px 12px; margin-bottom: 8px;
503
+ background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
504
+ }
505
+ .quick-name { font-weight: 600; cursor: pointer; }
506
+ .quick-row.done .quick-name { cursor: default; }
507
+ .quick-what { color: var(--quiet); font-size: 13px; text-align: right; }
508
+ .quick-row.done .quick-what { color: var(--ok); }
509
+ .quick-row .tick { color: var(--ok); font-weight: 700; text-align: center; }
510
+ .quick-result { grid-column: 2 / -1; }
511
+ .quick-result:empty { display: none; }
512
+ .quick-result p { margin: 4px 0 0; font-size: 13px; }
513
+ .quick-result .ok { color: var(--ok); }
514
+ .quick-result .bad { color: var(--error); }
515
+ .quick-result .paste { margin-top: 8px; }
516
+ .quick-result .step-head { margin-bottom: 6px; font-size: 13px; color: var(--quiet); overflow-wrap: anywhere; }
517
+ .quick-foot { display: flex; justify-content: flex-end; margin-top: 4px; }
518
+
519
+ .switch {
520
+ appearance: none; position: relative; margin: 0;
521
+ width: 34px; height: 20px; border-radius: 999px; cursor: pointer;
522
+ background: var(--rule); transition: background 0.15s;
523
+ }
524
+ .switch::before {
525
+ content: ""; position: absolute; top: 3px; left: 3px;
526
+ width: 14px; height: 14px; border-radius: 50%;
527
+ background: var(--text); transition: transform 0.15s;
528
+ }
529
+ .switch:checked { background: var(--ok); }
530
+ .switch:checked::before { transform: translateX(14px); background: var(--accent-ink); }
531
+ .switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
532
+ .switch:disabled { opacity: 0.5; cursor: default; }
533
+
534
+ details.manual { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 12px; }
535
+ details.manual > summary { cursor: pointer; font-weight: 600; color: var(--quiet); }
536
+ details.manual > summary:hover { color: var(--text); }
537
+ details.manual[open] > summary { margin-bottom: 4px; }
482
538
  .step .result.bad { color: var(--error); }
483
- details.others summary { cursor: pointer; padding: 12px 0; color: var(--quiet); border-top: 1px solid var(--rule); }
484
539
 
485
540
  /* ── small screens: form first, preview below ───────────────────────────── */
486
541
  @media (max-width: 860px) {
@@ -494,4 +549,5 @@ details.others summary { cursor: pointer; padding: 12px 0; color: var(--quiet);
494
549
 
495
550
  @media (prefers-reduced-motion: reduce) {
496
551
  .status.busy::before { animation: none; }
552
+ .switch, .switch::before { transition: none; }
497
553
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://matinfo.github.io/markdown-pdf-export/schema/settings.schema.json",
2
+ "$schema": "https://markdown-pdf.matinfo.tech/schema/settings.schema.json",
3
3
  "font_family": "Times New Roman, Georgia, serif",
4
4
  "margin": {
5
5
  "top": "25mm",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://matinfo.github.io/markdown-pdf-export/schema/settings.schema.json",
2
+ "$schema": "https://markdown-pdf.matinfo.tech/schema/settings.schema.json",
3
3
  "assets_directory": "assets",
4
4
  "margin": {
5
5
  "top": "25mm",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://matinfo.github.io/markdown-pdf-export/schema/settings.schema.json",
2
+ "$schema": "https://markdown-pdf.matinfo.tech/schema/settings.schema.json",
3
3
  "footer": {
4
4
  "center_text": "Page {page} of {pages}"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://matinfo.github.io/markdown-pdf-export/schema/settings.schema.json",
2
+ "$schema": "https://markdown-pdf.matinfo.tech/schema/settings.schema.json",
3
3
  "header": {
4
4
  "height": "15mm",
5
5
  "left_text": "{title}",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://matinfo.github.io/markdown-pdf-export/schema/settings.schema.json",
2
+ "$schema": "https://markdown-pdf.matinfo.tech/schema/settings.schema.json",
3
3
  "assets_directory": "assets",
4
4
  "margin": {
5
5
  "top": "28mm",