interactive-markdown 0.1.0 → 0.2.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/LICENSE +1 -1
- package/README.md +89 -26
- package/examples/agent-loop.md +26 -0
- package/examples/amplitude.md +11 -14
- package/examples/circular-motion.md +10 -14
- package/examples/graph.md +18 -0
- package/index.html +7 -1
- package/package.json +10 -4
- package/src/app.js +85 -8
- package/src/document-editor.js +956 -0
- package/src/document.js +633 -0
- package/src/expr.js +6 -0
- package/src/graph-editor.js +1117 -0
- package/src/markdown.js +10 -2
- package/src/parse-ivm.js +306 -67
- package/src/render.js +98 -6
- package/src/sanitize-svg.js +240 -9
- package/styles/app.css +647 -1
package/styles/app.css
CHANGED
|
@@ -103,6 +103,7 @@ body {
|
|
|
103
103
|
display: grid;
|
|
104
104
|
grid-template-columns: 1fr 1fr;
|
|
105
105
|
min-height: 0;
|
|
106
|
+
min-width: 0;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
@media (max-width: 900px) {
|
|
@@ -110,12 +111,17 @@ body {
|
|
|
110
111
|
grid-template-columns: 1fr;
|
|
111
112
|
grid-template-rows: 45vh 1fr;
|
|
112
113
|
}
|
|
114
|
+
|
|
115
|
+
.im-graph-canvas {
|
|
116
|
+
max-height: 22rem;
|
|
117
|
+
}
|
|
113
118
|
}
|
|
114
119
|
|
|
115
120
|
.pane {
|
|
116
121
|
display: flex;
|
|
117
122
|
flex-direction: column;
|
|
118
123
|
min-height: 0;
|
|
124
|
+
min-width: 0;
|
|
119
125
|
border-right: 1px solid var(--border);
|
|
120
126
|
}
|
|
121
127
|
|
|
@@ -133,9 +139,44 @@ body {
|
|
|
133
139
|
background: #0c1424;
|
|
134
140
|
}
|
|
135
141
|
|
|
136
|
-
|
|
142
|
+
.pane-tabs {
|
|
143
|
+
display: flex;
|
|
144
|
+
border-bottom: 1px solid var(--border);
|
|
145
|
+
background: #0c1424;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.pane-tabs button {
|
|
149
|
+
font: inherit;
|
|
150
|
+
font-size: 0.75rem;
|
|
151
|
+
letter-spacing: 0.06em;
|
|
152
|
+
text-transform: uppercase;
|
|
153
|
+
color: var(--muted);
|
|
154
|
+
background: transparent;
|
|
155
|
+
border: 0;
|
|
156
|
+
border-bottom: 2px solid transparent;
|
|
157
|
+
padding: 0.65rem 0.95rem;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.pane-tabs button[aria-selected="true"] {
|
|
162
|
+
color: var(--text);
|
|
163
|
+
border-bottom-color: var(--accent);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
#editor,
|
|
167
|
+
#graph-editor {
|
|
137
168
|
flex: 1;
|
|
138
169
|
width: 100%;
|
|
170
|
+
min-width: 0;
|
|
171
|
+
min-height: 0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
#editor[hidden],
|
|
175
|
+
#graph-editor[hidden] {
|
|
176
|
+
display: none !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
#editor {
|
|
139
180
|
resize: none;
|
|
140
181
|
border: 0;
|
|
141
182
|
outline: none;
|
|
@@ -148,9 +189,16 @@ body {
|
|
|
148
189
|
tab-size: 2;
|
|
149
190
|
}
|
|
150
191
|
|
|
192
|
+
#graph-editor {
|
|
193
|
+
overflow: auto;
|
|
194
|
+
padding: 0.85rem 1rem 1.5rem;
|
|
195
|
+
background: var(--panel-2);
|
|
196
|
+
}
|
|
197
|
+
|
|
151
198
|
#preview {
|
|
152
199
|
flex: 1;
|
|
153
200
|
overflow: auto;
|
|
201
|
+
min-width: 0;
|
|
154
202
|
padding: 1rem 1.15rem 2rem;
|
|
155
203
|
background: #0a101c;
|
|
156
204
|
}
|
|
@@ -222,6 +270,8 @@ body {
|
|
|
222
270
|
/* IVM widgets */
|
|
223
271
|
.im-ivm-host {
|
|
224
272
|
margin: 1.1rem 0 1.4rem;
|
|
273
|
+
min-width: 0;
|
|
274
|
+
max-width: 100%;
|
|
225
275
|
}
|
|
226
276
|
|
|
227
277
|
.im-ivm {
|
|
@@ -319,6 +369,22 @@ body {
|
|
|
319
369
|
margin: 0 auto;
|
|
320
370
|
}
|
|
321
371
|
|
|
372
|
+
/* A figure with no controls (self-animated SVG) fills the preview instead of the widget card. */
|
|
373
|
+
.im-ivm-static {
|
|
374
|
+
max-width: none;
|
|
375
|
+
background: transparent;
|
|
376
|
+
border: none;
|
|
377
|
+
padding: 0;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.im-ivm-static .im-svg-host {
|
|
381
|
+
background: transparent;
|
|
382
|
+
border: none;
|
|
383
|
+
padding: 0;
|
|
384
|
+
border-radius: 16px;
|
|
385
|
+
overflow: hidden;
|
|
386
|
+
}
|
|
387
|
+
|
|
322
388
|
.im-errors {
|
|
323
389
|
white-space: pre-wrap;
|
|
324
390
|
color: var(--danger);
|
|
@@ -334,3 +400,583 @@ body {
|
|
|
334
400
|
#file-input {
|
|
335
401
|
display: none;
|
|
336
402
|
}
|
|
403
|
+
|
|
404
|
+
/* Graph editor — node box matches NODE_W / NODE_H in src/graph-editor.js */
|
|
405
|
+
.im-ivm-graph {
|
|
406
|
+
max-width: none;
|
|
407
|
+
background: transparent;
|
|
408
|
+
border: none;
|
|
409
|
+
padding: 0;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.im-graph {
|
|
413
|
+
display: flex;
|
|
414
|
+
flex-direction: column;
|
|
415
|
+
gap: 0.55rem;
|
|
416
|
+
min-width: 0;
|
|
417
|
+
max-width: 100%;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.im-graph-bar {
|
|
421
|
+
display: flex;
|
|
422
|
+
flex-wrap: wrap;
|
|
423
|
+
align-items: center;
|
|
424
|
+
gap: 0.45rem;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.im-graph-bar button,
|
|
428
|
+
.im-graph-kind-label select,
|
|
429
|
+
.im-graph-kind-label input {
|
|
430
|
+
font: inherit;
|
|
431
|
+
font-size: 0.8rem;
|
|
432
|
+
border-radius: 8px;
|
|
433
|
+
border: 1px solid var(--border);
|
|
434
|
+
background: var(--panel-2);
|
|
435
|
+
color: var(--text);
|
|
436
|
+
padding: 0.35rem 0.65rem;
|
|
437
|
+
cursor: pointer;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.im-graph-bar button[data-action="add"] {
|
|
441
|
+
background: linear-gradient(135deg, #0ea5e9, #6366f1);
|
|
442
|
+
border-color: transparent;
|
|
443
|
+
color: white;
|
|
444
|
+
font-weight: 600;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.im-graph-bar button:disabled {
|
|
448
|
+
opacity: 0.45;
|
|
449
|
+
cursor: default;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.im-graph-motion-bar {
|
|
453
|
+
display: flex;
|
|
454
|
+
flex-wrap: wrap;
|
|
455
|
+
align-items: center;
|
|
456
|
+
gap: 0.45rem;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.im-graph-motion-bar[hidden] {
|
|
460
|
+
display: none !important;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.im-graph-kind-label {
|
|
464
|
+
display: inline-flex;
|
|
465
|
+
align-items: center;
|
|
466
|
+
gap: 0.35rem;
|
|
467
|
+
font-size: 0.8rem;
|
|
468
|
+
color: var(--muted);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.im-graph-kind-label input {
|
|
472
|
+
width: 4.5rem;
|
|
473
|
+
cursor: text;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.im-graph-count {
|
|
477
|
+
margin-left: auto;
|
|
478
|
+
font-family: var(--mono);
|
|
479
|
+
font-size: 0.75rem;
|
|
480
|
+
color: var(--muted);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.im-graph-help {
|
|
484
|
+
margin: 0;
|
|
485
|
+
color: var(--muted);
|
|
486
|
+
font-size: 0.78rem;
|
|
487
|
+
line-height: 1.4;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.im-graph-canvas {
|
|
491
|
+
width: 100%;
|
|
492
|
+
max-width: 100%;
|
|
493
|
+
overflow: auto;
|
|
494
|
+
max-height: 32rem;
|
|
495
|
+
border: 1px solid var(--border);
|
|
496
|
+
border-radius: 12px;
|
|
497
|
+
background:
|
|
498
|
+
radial-gradient(circle, #1e293b 1px, transparent 1.2px) 0 0 / 16px 16px,
|
|
499
|
+
#020617;
|
|
500
|
+
outline: none;
|
|
501
|
+
user-select: none;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.im-graph-canvas:focus {
|
|
505
|
+
border-color: #334155;
|
|
506
|
+
box-shadow: inset 0 0 0 1px #334155;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.im-graph-stage {
|
|
510
|
+
position: relative;
|
|
511
|
+
min-width: 100%;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.im-graph-edges {
|
|
515
|
+
position: absolute;
|
|
516
|
+
inset: 0;
|
|
517
|
+
width: 100%;
|
|
518
|
+
height: 100%;
|
|
519
|
+
overflow: visible;
|
|
520
|
+
pointer-events: none;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.im-graph-edge-hit {
|
|
524
|
+
fill: none;
|
|
525
|
+
stroke: transparent;
|
|
526
|
+
stroke-width: 14;
|
|
527
|
+
pointer-events: stroke;
|
|
528
|
+
cursor: pointer;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.im-graph-edge {
|
|
532
|
+
fill: none;
|
|
533
|
+
stroke: #8ea2d8;
|
|
534
|
+
stroke-width: 1.75;
|
|
535
|
+
stroke-linecap: round;
|
|
536
|
+
stroke-linejoin: round;
|
|
537
|
+
pointer-events: none;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.im-graph-edge.is-selected {
|
|
541
|
+
stroke: #dbe4ff;
|
|
542
|
+
stroke-width: 2.4;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.im-graph-edge.is-animated {
|
|
546
|
+
stroke-dasharray: 6 8;
|
|
547
|
+
animation: im-graph-march 1.2s linear infinite;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.im-graph-edge.is-animated.is-reverse {
|
|
551
|
+
animation-direction: reverse;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.im-graph-motion {
|
|
555
|
+
pointer-events: none;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.im-graph-stage.is-animated .im-graph-node {
|
|
559
|
+
animation: im-graph-pulse 2.4s ease-in-out infinite;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
@keyframes im-graph-march {
|
|
563
|
+
to {
|
|
564
|
+
stroke-dashoffset: -28;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
@keyframes im-graph-pulse {
|
|
569
|
+
0%,
|
|
570
|
+
100% {
|
|
571
|
+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(56, 189, 248, 0);
|
|
572
|
+
}
|
|
573
|
+
50% {
|
|
574
|
+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(56, 189, 248, 0.35);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
@media (prefers-reduced-motion: reduce) {
|
|
579
|
+
.im-graph-edge.is-animated,
|
|
580
|
+
.im-graph-stage.is-animated .im-graph-node {
|
|
581
|
+
animation: none;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.im-graph-edge.is-animated {
|
|
585
|
+
stroke-dasharray: none;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.im-graph-motion {
|
|
589
|
+
display: none;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.im-graph-edge-temp {
|
|
594
|
+
stroke: #7dd3fc;
|
|
595
|
+
stroke-dasharray: 5 4;
|
|
596
|
+
pointer-events: none;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.im-graph-empty {
|
|
600
|
+
position: absolute;
|
|
601
|
+
inset: 0;
|
|
602
|
+
display: flex;
|
|
603
|
+
align-items: center;
|
|
604
|
+
justify-content: center;
|
|
605
|
+
padding: 1.5rem;
|
|
606
|
+
text-align: center;
|
|
607
|
+
color: var(--muted);
|
|
608
|
+
pointer-events: none;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.im-graph-empty[hidden] {
|
|
612
|
+
display: none;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.im-graph-node {
|
|
616
|
+
position: absolute;
|
|
617
|
+
top: 0;
|
|
618
|
+
left: 0;
|
|
619
|
+
z-index: 1;
|
|
620
|
+
display: flex;
|
|
621
|
+
align-items: center;
|
|
622
|
+
justify-content: center;
|
|
623
|
+
width: 168px;
|
|
624
|
+
height: 56px;
|
|
625
|
+
padding: 0 18px;
|
|
626
|
+
border: 1px solid #334155;
|
|
627
|
+
border-radius: 12px;
|
|
628
|
+
background: #111827;
|
|
629
|
+
color: var(--text);
|
|
630
|
+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
|
|
631
|
+
cursor: grab;
|
|
632
|
+
touch-action: none;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.im-graph-node.is-selected {
|
|
636
|
+
border-color: #38bdf8;
|
|
637
|
+
box-shadow: 0 0 0 1px #38bdf8, 0 8px 20px rgba(0, 0, 0, 0.28);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.im-graph-kind-input {
|
|
641
|
+
border-radius: 28px;
|
|
642
|
+
background: #0c1f33;
|
|
643
|
+
border-color: #0369a1;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.im-graph-kind-output {
|
|
647
|
+
background: #102318;
|
|
648
|
+
border-color: #166534;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.im-graph-kind-decision {
|
|
652
|
+
background: transparent;
|
|
653
|
+
border-color: transparent;
|
|
654
|
+
box-shadow: none;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.im-graph-kind-decision.is-selected {
|
|
658
|
+
box-shadow: none;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.im-graph-diamond {
|
|
662
|
+
position: absolute;
|
|
663
|
+
inset: 1px 6px;
|
|
664
|
+
z-index: 0;
|
|
665
|
+
background: #8b7cc8;
|
|
666
|
+
clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.im-graph-diamond::after {
|
|
670
|
+
content: "";
|
|
671
|
+
position: absolute;
|
|
672
|
+
inset: 1.5px;
|
|
673
|
+
background: #1a1530;
|
|
674
|
+
clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.im-graph-kind-decision.is-selected .im-graph-diamond {
|
|
678
|
+
background: #c4b5fd;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.im-graph-label {
|
|
682
|
+
position: relative;
|
|
683
|
+
z-index: 1;
|
|
684
|
+
flex: 1;
|
|
685
|
+
min-width: 0;
|
|
686
|
+
overflow: hidden;
|
|
687
|
+
text-overflow: ellipsis;
|
|
688
|
+
white-space: nowrap;
|
|
689
|
+
font-size: 0.86rem;
|
|
690
|
+
text-align: center;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.im-graph-port {
|
|
694
|
+
position: absolute;
|
|
695
|
+
z-index: 2;
|
|
696
|
+
width: 12px;
|
|
697
|
+
height: 12px;
|
|
698
|
+
padding: 0;
|
|
699
|
+
border: 2px solid #8ea2d8;
|
|
700
|
+
border-radius: 50%;
|
|
701
|
+
background: #0f172a;
|
|
702
|
+
cursor: crosshair;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.im-graph-port-left {
|
|
706
|
+
top: 50%;
|
|
707
|
+
left: -6px;
|
|
708
|
+
margin-top: -6px;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.im-graph-port-right {
|
|
712
|
+
top: 50%;
|
|
713
|
+
right: -6px;
|
|
714
|
+
margin-top: -6px;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.im-graph-port-top {
|
|
718
|
+
top: -6px;
|
|
719
|
+
left: 50%;
|
|
720
|
+
margin-left: -6px;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.im-graph-port-bottom {
|
|
724
|
+
bottom: -6px;
|
|
725
|
+
left: 50%;
|
|
726
|
+
margin-left: -6px;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.im-graph-port:hover,
|
|
730
|
+
.im-graph-port:focus-visible {
|
|
731
|
+
background: #38bdf8;
|
|
732
|
+
border-color: #e0f2fe;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.im-graph-rename {
|
|
736
|
+
position: relative;
|
|
737
|
+
z-index: 2;
|
|
738
|
+
width: 100%;
|
|
739
|
+
padding: 0.2rem 0.3rem;
|
|
740
|
+
border: 1px solid #38bdf8;
|
|
741
|
+
border-radius: 6px;
|
|
742
|
+
background: #020617;
|
|
743
|
+
color: var(--text);
|
|
744
|
+
font: inherit;
|
|
745
|
+
font-size: 0.86rem;
|
|
746
|
+
text-align: center;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.im-doc {
|
|
750
|
+
display: flex;
|
|
751
|
+
flex-direction: column;
|
|
752
|
+
gap: 0.75rem;
|
|
753
|
+
min-width: 0;
|
|
754
|
+
max-width: 52rem;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.im-doc-bar {
|
|
758
|
+
display: flex;
|
|
759
|
+
flex-wrap: wrap;
|
|
760
|
+
align-items: center;
|
|
761
|
+
gap: 0.4rem;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.im-doc-add {
|
|
765
|
+
position: relative;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.im-doc-menu {
|
|
769
|
+
position: absolute;
|
|
770
|
+
z-index: 6;
|
|
771
|
+
top: calc(100% + 0.35rem);
|
|
772
|
+
left: 0;
|
|
773
|
+
min-width: 14rem;
|
|
774
|
+
max-height: 22rem;
|
|
775
|
+
overflow: auto;
|
|
776
|
+
padding: 0.35rem;
|
|
777
|
+
border: 1px solid var(--border);
|
|
778
|
+
border-radius: var(--radius);
|
|
779
|
+
background: var(--panel);
|
|
780
|
+
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.im-doc-menu[hidden] {
|
|
784
|
+
display: none !important;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.im-doc-menu-group + .im-doc-menu-group {
|
|
788
|
+
margin-top: 0.35rem;
|
|
789
|
+
padding-top: 0.35rem;
|
|
790
|
+
border-top: 1px solid var(--border);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.im-doc-menu-label {
|
|
794
|
+
margin: 0.15rem 0.45rem 0.25rem;
|
|
795
|
+
font-size: 0.68rem;
|
|
796
|
+
letter-spacing: 0.06em;
|
|
797
|
+
text-transform: uppercase;
|
|
798
|
+
color: var(--muted);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.im-doc-menu button {
|
|
802
|
+
display: block;
|
|
803
|
+
width: 100%;
|
|
804
|
+
text-align: left;
|
|
805
|
+
background: transparent;
|
|
806
|
+
border-color: transparent;
|
|
807
|
+
cursor: grab;
|
|
808
|
+
touch-action: none;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.im-doc.is-dragging,
|
|
812
|
+
.im-doc.is-dragging .im-doc-menu button {
|
|
813
|
+
cursor: grabbing;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.im-doc-drag-ghost {
|
|
817
|
+
position: fixed;
|
|
818
|
+
z-index: 20;
|
|
819
|
+
pointer-events: none;
|
|
820
|
+
padding: 0.35rem 0.65rem;
|
|
821
|
+
border-radius: 8px;
|
|
822
|
+
border: 1px solid var(--accent);
|
|
823
|
+
background: var(--panel);
|
|
824
|
+
color: var(--text);
|
|
825
|
+
font-size: 0.8rem;
|
|
826
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
.im-doc-drag-ghost[hidden],
|
|
830
|
+
.im-doc-snap[hidden] {
|
|
831
|
+
display: none !important;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.im-doc-snap {
|
|
835
|
+
position: fixed;
|
|
836
|
+
z-index: 15;
|
|
837
|
+
height: 2px;
|
|
838
|
+
margin-top: -1px;
|
|
839
|
+
border-radius: 2px;
|
|
840
|
+
background: var(--accent);
|
|
841
|
+
pointer-events: none;
|
|
842
|
+
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.im-doc-block.is-snap-target {
|
|
846
|
+
border-color: var(--accent);
|
|
847
|
+
box-shadow: 0 0 0 1px var(--accent);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.im-doc-bar button,
|
|
851
|
+
.im-doc-bar select,
|
|
852
|
+
.im-doc-block-bar button,
|
|
853
|
+
.im-doc-sub button,
|
|
854
|
+
.im-doc-field input,
|
|
855
|
+
.im-doc-field textarea,
|
|
856
|
+
.im-doc-field select {
|
|
857
|
+
font: inherit;
|
|
858
|
+
font-size: 0.8rem;
|
|
859
|
+
border-radius: 8px;
|
|
860
|
+
border: 1px solid var(--border);
|
|
861
|
+
background: var(--panel-2);
|
|
862
|
+
color: var(--text);
|
|
863
|
+
padding: 0.35rem 0.65rem;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.im-doc-bar button,
|
|
867
|
+
.im-doc-block-bar button,
|
|
868
|
+
.im-doc-sub button {
|
|
869
|
+
cursor: pointer;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.im-doc-bar button:hover,
|
|
873
|
+
.im-doc-block-bar button:hover,
|
|
874
|
+
.im-doc-sub button:hover {
|
|
875
|
+
border-color: var(--accent);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.im-doc-block-bar button:disabled {
|
|
879
|
+
opacity: 0.45;
|
|
880
|
+
cursor: default;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.im-doc-help,
|
|
884
|
+
.im-doc-empty {
|
|
885
|
+
margin: 0;
|
|
886
|
+
color: var(--muted);
|
|
887
|
+
font-size: 0.85rem;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
.im-doc-empty[hidden] {
|
|
891
|
+
display: none;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.im-doc-blocks {
|
|
895
|
+
display: flex;
|
|
896
|
+
flex-direction: column;
|
|
897
|
+
gap: 0.7rem;
|
|
898
|
+
min-width: 0;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.im-doc-block {
|
|
902
|
+
display: flex;
|
|
903
|
+
flex-direction: column;
|
|
904
|
+
gap: 0.55rem;
|
|
905
|
+
min-width: 0;
|
|
906
|
+
padding: 0.65rem 0.75rem;
|
|
907
|
+
border: 1px solid var(--border);
|
|
908
|
+
border-radius: var(--radius);
|
|
909
|
+
background: var(--panel);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.im-doc-block.is-selected {
|
|
913
|
+
border-color: var(--accent);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.im-doc-block-bar {
|
|
917
|
+
display: flex;
|
|
918
|
+
flex-wrap: wrap;
|
|
919
|
+
align-items: center;
|
|
920
|
+
gap: 0.35rem;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.im-doc-kind {
|
|
924
|
+
font-weight: 600;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.im-doc-summary {
|
|
928
|
+
margin: 0;
|
|
929
|
+
white-space: pre-wrap;
|
|
930
|
+
font-size: 0.92rem;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.im-doc-prose {
|
|
934
|
+
margin: 0;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.im-doc-inspector {
|
|
938
|
+
display: flex;
|
|
939
|
+
flex-direction: column;
|
|
940
|
+
gap: 0.55rem;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.im-doc-field {
|
|
944
|
+
display: flex;
|
|
945
|
+
flex-direction: column;
|
|
946
|
+
gap: 0.2rem;
|
|
947
|
+
font-size: 0.75rem;
|
|
948
|
+
color: var(--muted);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.im-doc-field input,
|
|
952
|
+
.im-doc-field textarea,
|
|
953
|
+
.im-doc-field select {
|
|
954
|
+
width: 100%;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.im-doc-field input[type="checkbox"] {
|
|
958
|
+
width: auto;
|
|
959
|
+
justify-self: start;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.im-doc-sub {
|
|
963
|
+
margin: 0;
|
|
964
|
+
padding: 0.55rem 0.65rem 0.7rem;
|
|
965
|
+
border: 1px solid var(--border);
|
|
966
|
+
border-radius: 8px;
|
|
967
|
+
display: flex;
|
|
968
|
+
flex-direction: column;
|
|
969
|
+
gap: 0.45rem;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.im-doc-sub legend {
|
|
973
|
+
padding: 0 0.3rem;
|
|
974
|
+
color: var(--text);
|
|
975
|
+
font-size: 0.8rem;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.im-doc-live,
|
|
979
|
+
.im-doc-live-host {
|
|
980
|
+
min-width: 0;
|
|
981
|
+
max-width: 100%;
|
|
982
|
+
}
|