@yudaocode/univer-pdfs-ui 0.0.0-stage → 1.6.204

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/lib/index.css ADDED
@@ -0,0 +1,1191 @@
1
+ /* @yudaocode/univer-pdfs-ui — Authentic Univer defaultTheme Visual Styling */
2
+
3
+ .univer-pdf-workspace {
4
+ position: absolute;
5
+ inset: 0;
6
+ background-color: #F4F5F7;
7
+ overflow: hidden;
8
+ user-select: none;
9
+ font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
10
+ }
11
+
12
+ .univer-dark .univer-pdf-workspace {
13
+ background-color: #1B1C1F;
14
+ }
15
+
16
+ .univer-pdf-stage-scroll {
17
+ width: 100%;
18
+ height: 100%;
19
+ overflow: auto;
20
+ }
21
+
22
+ .univer-pdf-stage-center {
23
+ display: flex;
24
+ align-items: flex-start;
25
+ justify-content: center;
26
+ padding: 28px 36px 48px;
27
+ box-sizing: border-box;
28
+ }
29
+
30
+ .univer-pdf-paper-shell {
31
+ display: inline-grid;
32
+ grid-template-columns: auto 1fr;
33
+ grid-template-rows: auto 1fr;
34
+ }
35
+
36
+ .univer-pdf-ruler-corner {
37
+ width: 22px;
38
+ height: 22px;
39
+ background: #F9FAFB;
40
+ border: 1px solid #E3E5EA;
41
+ border-right: none;
42
+ border-bottom: none;
43
+ font-size: 9px;
44
+ font-weight: 600;
45
+ color: #4E5565;
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ cursor: pointer;
50
+ }
51
+
52
+ .univer-pdf-ruler-corner:hover {
53
+ color: #2C53F1;
54
+ background: #F3F5FF;
55
+ }
56
+
57
+ .univer-pdf-ruler-h {
58
+ position: relative;
59
+ height: 22px;
60
+ background: #F9FAFB;
61
+ border-top: 1px solid #E3E5EA;
62
+ border-right: 1px solid #E3E5EA;
63
+ overflow: hidden;
64
+ }
65
+
66
+ .univer-pdf-ruler-tick-h {
67
+ position: absolute;
68
+ bottom: 0;
69
+ width: 1px;
70
+ height: 5px;
71
+ background: #D5D8DF;
72
+ }
73
+
74
+ .univer-pdf-ruler-tick-h.is-major {
75
+ height: 11px;
76
+ background: #7D8698;
77
+ }
78
+
79
+ .univer-pdf-ruler-tick-h span {
80
+ position: absolute;
81
+ bottom: 9px;
82
+ left: 3px;
83
+ font-size: 9px;
84
+ color: #7D8698;
85
+ white-space: nowrap;
86
+ }
87
+
88
+ .univer-pdf-paper-row {
89
+ grid-column: 1 / -1;
90
+ display: flex;
91
+ }
92
+
93
+ .univer-pdf-ruler-v {
94
+ position: relative;
95
+ width: 22px;
96
+ background: #F9FAFB;
97
+ border-left: 1px solid #E3E5EA;
98
+ border-bottom: 1px solid #E3E5EA;
99
+ overflow: hidden;
100
+ flex-shrink: 0;
101
+ }
102
+
103
+ .univer-pdf-ruler-tick-v {
104
+ position: absolute;
105
+ right: 0;
106
+ height: 1px;
107
+ width: 5px;
108
+ background: #D5D8DF;
109
+ }
110
+
111
+ .univer-pdf-ruler-tick-v.is-major {
112
+ width: 11px;
113
+ background: #7D8698;
114
+ }
115
+
116
+ .univer-pdf-ruler-tick-v span {
117
+ position: absolute;
118
+ left: 2px;
119
+ top: 2px;
120
+ font-size: 8.5px;
121
+ color: #7D8698;
122
+ line-height: 1;
123
+ }
124
+
125
+ .univer-pdf-page-surface {
126
+ position: relative;
127
+ box-shadow: 0 2px 12px rgba(27, 28, 31, 0.08), 0 0 0 1px #E3E5EA;
128
+ overflow: visible;
129
+ }
130
+
131
+ .univer-pdf-bg-canvas {
132
+ position: absolute;
133
+ inset: 0;
134
+ pointer-events: none;
135
+ }
136
+
137
+ /* Interactive Elements & Univer Transformer */
138
+ .univer-pdf-element {
139
+ position: absolute;
140
+ box-sizing: border-box;
141
+ cursor: move;
142
+ outline: 1px dashed transparent;
143
+ transition: outline-color 0.12s ease;
144
+ }
145
+
146
+ .univer-pdf-element:hover {
147
+ outline: 1px dashed rgba(44, 83, 241, 0.5);
148
+ }
149
+
150
+ .univer-pdf-element.is-selected {
151
+ outline: 1.5px solid #2C53F1;
152
+ z-index: 20;
153
+ }
154
+
155
+ .univer-pdf-element.is-locked.is-selected {
156
+ outline: 1.5px dashed #7D8698;
157
+ cursor: default;
158
+ }
159
+
160
+ .univer-pdf-resize-handle {
161
+ position: absolute;
162
+ width: 8px;
163
+ height: 8px;
164
+ background: #FFFFFF;
165
+ border: 1.5px solid #2C53F1;
166
+ border-radius: 2px;
167
+ box-sizing: border-box;
168
+ z-index: 25;
169
+ }
170
+
171
+ .univer-pdf-binding-badge {
172
+ position: absolute;
173
+ top: -19px;
174
+ left: -1px;
175
+ background: #2C53F1;
176
+ color: #FFFFFF;
177
+ font-size: 10px;
178
+ line-height: 16px;
179
+ padding: 0 5px;
180
+ border-radius: 3px 3px 0 0;
181
+ white-space: nowrap;
182
+ pointer-events: none;
183
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
184
+ }
185
+
186
+ .univer-pdf-quick-prop-btn {
187
+ position: absolute;
188
+ top: -20px;
189
+ right: -1px;
190
+ height: 18px;
191
+ padding: 0 5px;
192
+ font-size: 11px;
193
+ line-height: 16px;
194
+ background: #FFFFFF;
195
+ color: #2C53F1;
196
+ border: 1px solid #D2DAFA;
197
+ border-radius: 3px;
198
+ cursor: pointer;
199
+ }
200
+
201
+ .univer-pdf-quick-prop-btn:hover {
202
+ background: #2C53F1;
203
+ border-color: #2C53F1;
204
+ color: #FFFFFF;
205
+ }
206
+
207
+ .univer-pdf-rotate-handle {
208
+ position: absolute;
209
+ top: -26px;
210
+ left: calc(50% - 10px);
211
+ width: 20px;
212
+ height: 20px;
213
+ border-radius: 50%;
214
+ background: #FFFFFF;
215
+ border: 1.5px solid #2C53F1;
216
+ color: #2C53F1;
217
+ font-size: 12px;
218
+ font-weight: 700;
219
+ display: flex;
220
+ align-items: center;
221
+ justify-content: center;
222
+ cursor: grab;
223
+ z-index: 26;
224
+ box-shadow: 0 2px 6px rgba(44, 83, 241, 0.16);
225
+ }
226
+
227
+ .univer-pdf-rotate-handle::after {
228
+ content: "";
229
+ position: absolute;
230
+ bottom: -7px;
231
+ left: 50%;
232
+ width: 1.5px;
233
+ height: 6px;
234
+ background: #2C53F1;
235
+ transform: translateX(-50%);
236
+ }
237
+
238
+ .univer-pdf-margin-guide {
239
+ position: absolute;
240
+ border: 1px dashed rgba(125, 134, 152, 0.32);
241
+ pointer-events: none;
242
+ z-index: 2;
243
+ }
244
+
245
+ .univer-pdf-marquee-box {
246
+ position: absolute;
247
+ border: 1px solid #2C53F1;
248
+ background: rgba(44, 83, 241, 0.08);
249
+ pointer-events: none;
250
+ z-index: 48;
251
+ }
252
+
253
+ .univer-pdf-floating-mode-bar {
254
+ position: absolute;
255
+ top: 10px;
256
+ left: 50%;
257
+ transform: translateX(-50%);
258
+ z-index: 60;
259
+ background: #FFFFFF;
260
+ color: #1B1C1F;
261
+ border: 1px solid #E3E5EA;
262
+ padding: 6px 12px;
263
+ border-radius: 8px;
264
+ font-size: 12px;
265
+ display: flex;
266
+ align-items: center;
267
+ gap: 10px;
268
+ box-shadow: 0 4px 16px rgba(27, 28, 31, 0.1);
269
+ }
270
+
271
+ .univer-pdf-floating-mode-bar button {
272
+ border: 1px solid #D2DAFA;
273
+ background: #F3F5FF;
274
+ color: #2C53F1;
275
+ padding: 3px 10px;
276
+ border-radius: 5px;
277
+ font-size: 11.5px;
278
+ font-weight: 500;
279
+ cursor: pointer;
280
+ }
281
+
282
+ .univer-pdf-floating-mode-bar button:hover {
283
+ background: #E9EDFF;
284
+ border-color: #2C53F1;
285
+ color: #143EE3;
286
+ }
287
+
288
+ .univer-pdf-thumb-viewport-box {
289
+ position: absolute;
290
+ border: 1.5px solid #2C53F1;
291
+ background: rgba(44, 83, 241, 0.1);
292
+ box-sizing: border-box;
293
+ pointer-events: none;
294
+ border-radius: 2px;
295
+ }
296
+
297
+ .univer-pdf-thumb-viewport-dot {
298
+ position: absolute;
299
+ right: -4px;
300
+ bottom: -4px;
301
+ width: 7px;
302
+ height: 7px;
303
+ border-radius: 50%;
304
+ background: #2C53F1;
305
+ }
306
+
307
+ .univer-pdf-page-jump-input {
308
+ width: 30px;
309
+ height: 20px;
310
+ border: 1px solid #D5D8DF;
311
+ border-radius: 3px;
312
+ text-align: center;
313
+ font-size: 11px;
314
+ color: #1B1C1F;
315
+ background: #FFFFFF;
316
+ }
317
+
318
+ .univer-pdf-page-jump-input:focus {
319
+ outline: none;
320
+ border-color: #2C53F1;
321
+ }
322
+
323
+ .univer-pdf-zoom-menu {
324
+ position: fixed;
325
+ right: 12px;
326
+ bottom: 34px;
327
+ width: 132px;
328
+ background: #FFFFFF;
329
+ border: 1px solid #E3E5EA;
330
+ border-radius: 6px;
331
+ box-shadow: 0 6px 20px rgba(27, 28, 31, 0.12);
332
+ padding: 4px;
333
+ display: flex;
334
+ flex-direction: column;
335
+ z-index: 9999;
336
+ }
337
+
338
+ .univer-pdf-zoom-menu-item {
339
+ border: none !important;
340
+ background: transparent !important;
341
+ text-align: left;
342
+ padding: 5px 8px !important;
343
+ height: auto !important;
344
+ font-size: 12px !important;
345
+ color: #31363F !important;
346
+ border-radius: 4px !important;
347
+ cursor: pointer;
348
+ }
349
+
350
+ .univer-pdf-zoom-menu-item:hover {
351
+ background: #F9FAFB !important;
352
+ color: #1B1C1F !important;
353
+ }
354
+
355
+ .univer-pdf-zoom-menu-item.is-active {
356
+ background: #F3F5FF !important;
357
+ color: #2C53F1 !important;
358
+ font-weight: 500;
359
+ }
360
+
361
+ .univer-pdf-snap-guide-v {
362
+ position: absolute;
363
+ top: 0;
364
+ bottom: 0;
365
+ width: 1px;
366
+ border-left: 1px dashed #466AF7;
367
+ pointer-events: none;
368
+ z-index: 40;
369
+ }
370
+
371
+ .univer-pdf-snap-guide-h {
372
+ position: absolute;
373
+ left: 0;
374
+ right: 0;
375
+ height: 1px;
376
+ border-top: 1px dashed #466AF7;
377
+ pointer-events: none;
378
+ z-index: 40;
379
+ }
380
+
381
+ .univer-pdf-text-box {
382
+ width: 100%;
383
+ height: 100%;
384
+ box-sizing: border-box;
385
+ display: flex;
386
+ flex-direction: column;
387
+ overflow: hidden;
388
+ }
389
+
390
+ .univer-pdf-inline-textarea {
391
+ width: 100%;
392
+ height: 100%;
393
+ box-sizing: border-box;
394
+ border: none;
395
+ outline: 1.5px solid #2C53F1;
396
+ resize: none;
397
+ margin: 0;
398
+ }
399
+
400
+ .univer-pdf-image-box {
401
+ width: 100%;
402
+ height: 100%;
403
+ box-sizing: border-box;
404
+ overflow: hidden;
405
+ }
406
+
407
+ .univer-pdf-placeholder {
408
+ width: 100%;
409
+ height: 100%;
410
+ background: #F9FAFB;
411
+ border: 1px dashed #D5D8DF;
412
+ color: #7D8698;
413
+ font-size: 11px;
414
+ display: flex;
415
+ align-items: center;
416
+ justify-content: center;
417
+ text-align: center;
418
+ box-sizing: border-box;
419
+ padding: 4px;
420
+ }
421
+
422
+ .univer-pdf-table-box {
423
+ width: 100%;
424
+ height: 100%;
425
+ box-sizing: border-box;
426
+ background: #FFFFFF;
427
+ overflow: hidden;
428
+ display: flex;
429
+ flex-direction: column;
430
+ }
431
+
432
+ .univer-pdf-table-header,
433
+ .univer-pdf-table-row {
434
+ display: flex;
435
+ width: 100%;
436
+ flex-shrink: 0;
437
+ box-sizing: border-box;
438
+ }
439
+
440
+ .univer-pdf-table-cell {
441
+ display: flex;
442
+ align-items: center;
443
+ padding: 0 6px;
444
+ overflow: hidden;
445
+ white-space: nowrap;
446
+ text-overflow: ellipsis;
447
+ box-sizing: border-box;
448
+ }
449
+
450
+ /* Left Sidebar (Pages & Datasets) */
451
+ .univer-pdf-left-sidebar {
452
+ width: 196px;
453
+ height: 100%;
454
+ background: #FFFFFF;
455
+ border-right: 1px solid #E3E5EA;
456
+ display: flex;
457
+ flex-direction: column;
458
+ box-sizing: border-box;
459
+ font-size: 12px;
460
+ color: #1B1C1F;
461
+ }
462
+
463
+ .univer-dark .univer-pdf-left-sidebar {
464
+ background: #25272C;
465
+ border-right-color: #31363F;
466
+ color: #EEEFF1;
467
+ }
468
+
469
+ .univer-pdf-left-tabs {
470
+ display: grid;
471
+ grid-template-columns: 1fr 1fr;
472
+ padding: 6px;
473
+ gap: 2px;
474
+ border-bottom: 1px solid #E3E5EA;
475
+ }
476
+
477
+ .univer-pdf-left-pure-header {
478
+ padding: 9px 12px;
479
+ border-bottom: 1px solid #E3E5EA;
480
+ font-size: 12px;
481
+ font-weight: 600;
482
+ color: #1B1C1F;
483
+ }
484
+
485
+ .univer-pdf-left-tab {
486
+ border: none;
487
+ background: transparent;
488
+ padding: 5px 6px;
489
+ border-radius: 5px;
490
+ font-size: 12px;
491
+ font-weight: 500;
492
+ color: #4E5565;
493
+ cursor: pointer;
494
+ transition: all 0.12s ease;
495
+ }
496
+
497
+ .univer-pdf-left-tab:hover:not(.is-active) {
498
+ background: #F9FAFB;
499
+ color: #1B1C1F;
500
+ }
501
+
502
+ .univer-pdf-left-tab.is-active {
503
+ background: #F3F5FF;
504
+ color: #2C53F1;
505
+ font-weight: 500;
506
+ }
507
+
508
+ .univer-pdf-thumb-list {
509
+ flex: 1;
510
+ overflow-y: auto;
511
+ padding: 10px;
512
+ display: flex;
513
+ flex-direction: column;
514
+ gap: 10px;
515
+ }
516
+
517
+ .univer-pdf-thumb-toolbar {
518
+ display: flex;
519
+ }
520
+
521
+ .univer-pdf-thumb-card {
522
+ padding: 8px;
523
+ border-radius: 6px;
524
+ border: 1px solid #E3E5EA;
525
+ background: #F9FAFB;
526
+ cursor: pointer;
527
+ display: flex;
528
+ flex-direction: column;
529
+ align-items: center;
530
+ gap: 6px;
531
+ transition: border-color 0.15s ease, background-color 0.15s ease;
532
+ }
533
+
534
+ .univer-pdf-thumb-card:hover {
535
+ border-color: #D2DAFA;
536
+ }
537
+
538
+ .univer-pdf-thumb-card.is-active {
539
+ border-color: #2C53F1;
540
+ background: #F3F5FF;
541
+ }
542
+
543
+ .univer-pdf-thumb-header {
544
+ width: 100%;
545
+ display: flex;
546
+ align-items: center;
547
+ justify-content: space-between;
548
+ font-size: 11px;
549
+ color: #31363F;
550
+ }
551
+
552
+ .univer-pdf-thumb-index {
553
+ font-weight: 500;
554
+ color: #1B1C1F;
555
+ overflow: hidden;
556
+ text-overflow: ellipsis;
557
+ white-space: nowrap;
558
+ }
559
+
560
+ .univer-pdf-thumb-actions {
561
+ display: flex;
562
+ gap: 2px;
563
+ }
564
+
565
+ .univer-pdf-thumb-actions button {
566
+ border: 1px solid #E3E5EA;
567
+ background: #FFFFFF;
568
+ border-radius: 3px;
569
+ width: 18px;
570
+ height: 18px;
571
+ font-size: 11px;
572
+ line-height: 1;
573
+ padding: 0;
574
+ cursor: pointer;
575
+ color: #4E5565;
576
+ }
577
+
578
+ .univer-pdf-thumb-actions button:hover {
579
+ color: #2C53F1;
580
+ border-color: #D2DAFA;
581
+ background: #F3F5FF;
582
+ }
583
+
584
+ .univer-pdf-thumb-preview {
585
+ position: relative;
586
+ box-shadow: 0 1px 3px rgba(27, 28, 31, 0.08), 0 0 0 1px #E3E5EA;
587
+ overflow: hidden;
588
+ }
589
+
590
+ .univer-pdf-dataset-panel {
591
+ flex: 1;
592
+ overflow-y: auto;
593
+ padding: 10px;
594
+ display: flex;
595
+ flex-direction: column;
596
+ gap: 10px;
597
+ }
598
+
599
+ .univer-pdf-dataset-tip {
600
+ font-size: 11px;
601
+ color: #4E5565;
602
+ background: #F9FAFB;
603
+ padding: 6px 8px;
604
+ border-radius: 4px;
605
+ border: 1px solid #E3E5EA;
606
+ }
607
+
608
+ .univer-pdf-dataset-group {
609
+ border: 1px solid #E3E5EA;
610
+ border-radius: 6px;
611
+ overflow: hidden;
612
+ }
613
+
614
+ .univer-pdf-dataset-title {
615
+ padding: 6px 8px;
616
+ background: #F9FAFB;
617
+ border-bottom: 1px solid #E3E5EA;
618
+ font-weight: 600;
619
+ color: #1B1C1F;
620
+ display: flex;
621
+ justify-content: space-between;
622
+ align-items: center;
623
+ }
624
+
625
+ .univer-pdf-dataset-title code {
626
+ font-size: 10px;
627
+ color: #7D8698;
628
+ font-weight: 400;
629
+ }
630
+
631
+ .univer-pdf-dataset-fields {
632
+ display: flex;
633
+ flex-direction: column;
634
+ }
635
+
636
+ .univer-pdf-dataset-field {
637
+ padding: 6px 8px;
638
+ border-bottom: 1px solid #E3E5EA;
639
+ display: flex;
640
+ flex-direction: column;
641
+ gap: 2px;
642
+ cursor: grab;
643
+ background: #FFFFFF;
644
+ }
645
+
646
+ .univer-pdf-dataset-field:last-child {
647
+ border-bottom: none;
648
+ }
649
+
650
+ .univer-pdf-dataset-field:hover {
651
+ background: #F9FAFB;
652
+ }
653
+
654
+ .univer-pdf-field-tag {
655
+ align-self: flex-start;
656
+ font-size: 9px;
657
+ padding: 1px 5px;
658
+ border-radius: 3px;
659
+ background: #EEEFF1;
660
+ color: #4E5565;
661
+ text-transform: uppercase;
662
+ }
663
+
664
+ .univer-pdf-field-label {
665
+ font-weight: 500;
666
+ color: #1B1C1F;
667
+ }
668
+
669
+ .univer-pdf-field-key {
670
+ font-size: 10px;
671
+ color: #7D8698;
672
+ }
673
+
674
+ /* Right Sidebar Inspector (Rendered inside ISidebarService) */
675
+ .univer-pdf-inspector {
676
+ display: flex;
677
+ flex-direction: column;
678
+ gap: 12px;
679
+ padding: 8px 4px 24px;
680
+ font-size: 12px;
681
+ color: #1B1C1F;
682
+ }
683
+
684
+ .univer-pdf-inspector-section {
685
+ border: 1px solid #E3E5EA;
686
+ border-radius: 6px;
687
+ padding: 10px;
688
+ background: #FFFFFF;
689
+ display: flex;
690
+ flex-direction: column;
691
+ gap: 8px;
692
+ }
693
+
694
+ .univer-pdf-inspector-heading {
695
+ font-weight: 600;
696
+ font-size: 12px;
697
+ color: #1B1C1F;
698
+ display: flex;
699
+ align-items: center;
700
+ justify-content: space-between;
701
+ }
702
+
703
+ .univer-pdf-inspector-heading code {
704
+ font-size: 10px;
705
+ color: #7D8698;
706
+ font-weight: 400;
707
+ }
708
+
709
+ .univer-pdf-form-row {
710
+ display: flex;
711
+ align-items: center;
712
+ justify-content: space-between;
713
+ gap: 8px;
714
+ }
715
+
716
+ .univer-pdf-form-row span {
717
+ color: #4E5565;
718
+ white-space: nowrap;
719
+ }
720
+
721
+ .univer-pdf-form-row input,
722
+ .univer-pdf-form-row select,
723
+ .univer-pdf-form-col input,
724
+ .univer-pdf-form-col select,
725
+ .univer-pdf-form-col textarea,
726
+ .univer-pdf-col-editor input {
727
+ border: 1px solid #D5D8DF;
728
+ border-radius: 4px;
729
+ padding: 4px 7px;
730
+ font-size: 12px;
731
+ color: #1B1C1F;
732
+ background: #FFFFFF;
733
+ box-sizing: border-box;
734
+ min-width: 0;
735
+ }
736
+
737
+ .univer-pdf-form-row input:focus,
738
+ .univer-pdf-form-row select:focus,
739
+ .univer-pdf-form-col input:focus,
740
+ .univer-pdf-form-col select:focus,
741
+ .univer-pdf-form-col textarea:focus,
742
+ .univer-pdf-col-editor input:focus {
743
+ outline: none;
744
+ border-color: #2C53F1;
745
+ }
746
+
747
+ .univer-pdf-form-row input,
748
+ .univer-pdf-form-row select {
749
+ flex: 1;
750
+ }
751
+
752
+ .univer-pdf-form-col {
753
+ display: flex;
754
+ flex-direction: column;
755
+ gap: 4px;
756
+ }
757
+
758
+ .univer-pdf-form-col span {
759
+ color: #4E5565;
760
+ font-size: 11px;
761
+ }
762
+
763
+ .univer-pdf-grid-2 {
764
+ display: grid;
765
+ grid-template-columns: 1fr 1fr;
766
+ gap: 8px;
767
+ }
768
+
769
+ .univer-pdf-checkbox-row {
770
+ display: flex;
771
+ align-items: center;
772
+ gap: 6px;
773
+ color: #31363F;
774
+ cursor: pointer;
775
+ }
776
+
777
+ .univer-pdf-checkbox-row input[type="checkbox"] {
778
+ accent-color: #2C53F1;
779
+ }
780
+
781
+ .univer-pdf-btn-row {
782
+ display: flex;
783
+ flex-wrap: wrap;
784
+ gap: 6px;
785
+ }
786
+
787
+ .univer-pdf-mini-btn {
788
+ border: 1px solid #E3E5EA;
789
+ background: #FFFFFF;
790
+ color: #31363F;
791
+ border-radius: 4px;
792
+ padding: 4px 8px;
793
+ font-size: 11.5px;
794
+ cursor: pointer;
795
+ transition: all 0.12s ease;
796
+ }
797
+
798
+ .univer-pdf-mini-btn:disabled {
799
+ opacity: 0.48;
800
+ cursor: not-allowed;
801
+ }
802
+
803
+ .univer-pdf-mini-btn:hover:not(:disabled) {
804
+ background: #F3F5FF;
805
+ border-color: #D2DAFA;
806
+ color: #2C53F1;
807
+ }
808
+
809
+ .univer-pdf-mini-btn.is-soft-primary {
810
+ background: #F3F5FF;
811
+ border: 1px solid #D2DAFA;
812
+ color: #2C53F1;
813
+ font-weight: 500;
814
+ }
815
+
816
+ .univer-pdf-mini-btn.is-soft-primary:hover:not(:disabled) {
817
+ background: #E9EDFF;
818
+ border-color: #2C53F1;
819
+ color: #143EE3;
820
+ }
821
+
822
+ .univer-pdf-mini-btn.is-primary {
823
+ background: #2C53F1;
824
+ border-color: #2C53F1;
825
+ color: #FFFFFF;
826
+ font-weight: 500;
827
+ }
828
+
829
+ .univer-pdf-mini-btn.is-primary:hover:not(:disabled) {
830
+ background: #143EE3;
831
+ border-color: #143EE3;
832
+ color: #FFFFFF;
833
+ }
834
+
835
+ .univer-pdf-mini-btn.is-danger {
836
+ color: #4E5565;
837
+ border-color: #E3E5EA;
838
+ background: #FFFFFF;
839
+ }
840
+
841
+ .univer-pdf-mini-btn.is-danger:hover:not(:disabled) {
842
+ background: #F9FAFB;
843
+ border-color: #D5D8DF;
844
+ color: #1B1C1F;
845
+ }
846
+
847
+ /* Univer Segmented Control */
848
+ .univer-pdf-segmented {
849
+ display: grid;
850
+ grid-template-columns: 1fr 1fr;
851
+ gap: 2px;
852
+ background: #EEEFF1;
853
+ padding: 2px;
854
+ border-radius: 6px;
855
+ }
856
+
857
+ .univer-pdf-segmented.is-inline {
858
+ display: inline-flex;
859
+ }
860
+
861
+ .univer-pdf-segmented-item {
862
+ border: none;
863
+ background: transparent;
864
+ color: #4E5565;
865
+ border-radius: 4px;
866
+ padding: 4px 10px;
867
+ font-size: 11.5px;
868
+ font-weight: 500;
869
+ cursor: pointer;
870
+ display: inline-flex;
871
+ align-items: center;
872
+ justify-content: center;
873
+ gap: 4px;
874
+ transition: all 0.12s ease;
875
+ }
876
+
877
+ .univer-pdf-segmented-item:hover:not(.is-active) {
878
+ color: #1B1C1F;
879
+ }
880
+
881
+ .univer-pdf-segmented-item.is-active {
882
+ background: #FFFFFF;
883
+ color: #2C53F1;
884
+ box-shadow: 0 1px 2px rgba(27, 28, 31, 0.08);
885
+ border: none;
886
+ }
887
+
888
+ .univer-pdf-col-editor {
889
+ display: grid;
890
+ grid-template-columns: 1fr 1fr auto auto;
891
+ gap: 4px;
892
+ align-items: center;
893
+ }
894
+
895
+ .univer-pdf-source-card {
896
+ display: flex;
897
+ flex-direction: column;
898
+ gap: 8px;
899
+ font-size: 11.5px;
900
+ color: #31363F;
901
+ }
902
+
903
+ /* Footer Status Bar */
904
+ .univer-pdf-statusbar {
905
+ height: 30px;
906
+ padding: 0 12px;
907
+ background: #FFFFFF;
908
+ border-top: 1px solid #E3E5EA;
909
+ display: flex;
910
+ align-items: center;
911
+ justify-content: space-between;
912
+ font-size: 11.5px;
913
+ color: #4E5565;
914
+ user-select: none;
915
+ white-space: nowrap;
916
+ overflow-x: auto;
917
+ gap: 12px;
918
+ }
919
+
920
+ @media (max-width: 680px) {
921
+ .univer-pdf-left-sidebar {
922
+ width: 142px;
923
+ }
924
+ .univer-pdf-statusbar-right input[type="range"] {
925
+ width: 56px;
926
+ }
927
+ }
928
+
929
+ .univer-dark .univer-pdf-statusbar {
930
+ background: #25272C;
931
+ border-top-color: #31363F;
932
+ color: #7D8698;
933
+ }
934
+
935
+ .univer-pdf-statusbar-left,
936
+ .univer-pdf-statusbar-right {
937
+ display: flex;
938
+ align-items: center;
939
+ gap: 6px;
940
+ }
941
+
942
+ .univer-pdf-page-stepper {
943
+ display: flex;
944
+ align-items: center;
945
+ gap: 5px;
946
+ }
947
+
948
+ .univer-pdf-page-stepper button,
949
+ .univer-pdf-statusbar-right button {
950
+ border: 1px solid #E3E5EA;
951
+ background: #FFFFFF;
952
+ color: #31363F;
953
+ border-radius: 3px;
954
+ min-width: 20px;
955
+ height: 20px;
956
+ font-size: 11px;
957
+ cursor: pointer;
958
+ padding: 0 5px;
959
+ }
960
+
961
+ .univer-pdf-page-stepper button:hover:not(:disabled),
962
+ .univer-pdf-statusbar-right button:hover:not(:disabled) {
963
+ background: #F9FAFB;
964
+ border-color: #D5D8DF;
965
+ color: #1B1C1F;
966
+ }
967
+
968
+ .univer-pdf-page-stepper button:disabled {
969
+ opacity: 0.4;
970
+ cursor: not-allowed;
971
+ }
972
+
973
+ .univer-pdf-status-divider {
974
+ width: 1px;
975
+ height: 14px;
976
+ background: #E3E5EA;
977
+ }
978
+
979
+ .univer-pdf-status-meta {
980
+ color: #4E5565;
981
+ }
982
+
983
+ .univer-pdf-status-pill {
984
+ border: 1px solid transparent;
985
+ background: transparent;
986
+ color: #4E5565;
987
+ border-radius: 4px;
988
+ height: 20px;
989
+ padding: 0 6px;
990
+ font-size: 11px;
991
+ cursor: pointer;
992
+ transition: all 0.12s ease;
993
+ }
994
+
995
+ .univer-pdf-status-pill:hover:not(.is-active) {
996
+ background: #F9FAFB;
997
+ border-color: #E3E5EA;
998
+ color: #31363F;
999
+ }
1000
+
1001
+ .univer-pdf-status-pill.is-active {
1002
+ background: #F3F5FF;
1003
+ border: 1px solid #D2DAFA;
1004
+ color: #2C53F1;
1005
+ font-weight: 500;
1006
+ }
1007
+
1008
+ .univer-pdf-statusbar-right input[type="range"] {
1009
+ width: 96px;
1010
+ accent-color: #2C53F1;
1011
+ }
1012
+
1013
+ .univer-pdf-zoom-readout {
1014
+ min-width: 44px !important;
1015
+ font-variant-numeric: tabular-nums;
1016
+ }
1017
+
1018
+ /* Preview & JSON Exchange Modal */
1019
+ .univer-pdf-modal-backdrop {
1020
+ position: fixed;
1021
+ inset: 0;
1022
+ background: rgba(27, 28, 31, 0.42);
1023
+ z-index: 9999;
1024
+ display: flex;
1025
+ align-items: center;
1026
+ justify-content: center;
1027
+ padding: 24px;
1028
+ box-sizing: border-box;
1029
+ }
1030
+
1031
+ .univer-pdf-modal-card {
1032
+ width: min(1120px, 94vw);
1033
+ height: min(760px, 88vh);
1034
+ background: #FFFFFF;
1035
+ border: 1px solid #E3E5EA;
1036
+ border-radius: 10px;
1037
+ box-shadow: 0 16px 48px rgba(27, 28, 31, 0.18);
1038
+ display: flex;
1039
+ flex-direction: column;
1040
+ overflow: hidden;
1041
+ }
1042
+
1043
+ .univer-pdf-modal-header {
1044
+ height: 46px;
1045
+ padding: 0 16px;
1046
+ border-bottom: 1px solid #E3E5EA;
1047
+ display: flex;
1048
+ align-items: center;
1049
+ justify-content: space-between;
1050
+ background: #F9FAFB;
1051
+ }
1052
+
1053
+ .univer-pdf-modal-tabs {
1054
+ display: flex;
1055
+ gap: 6px;
1056
+ }
1057
+
1058
+ .univer-pdf-modal-tab {
1059
+ border: 1px solid transparent;
1060
+ background: transparent;
1061
+ padding: 5px 12px;
1062
+ border-radius: 6px;
1063
+ font-size: 12.5px;
1064
+ font-weight: 500;
1065
+ color: #4E5565;
1066
+ cursor: pointer;
1067
+ transition: all 0.12s ease;
1068
+ }
1069
+
1070
+ .univer-pdf-modal-tab:hover:not(.is-active) {
1071
+ color: #1B1C1F;
1072
+ background: #EEEFF1;
1073
+ }
1074
+
1075
+ .univer-pdf-modal-tab.is-active {
1076
+ background: #FFFFFF;
1077
+ border-color: #E3E5EA;
1078
+ color: #2C53F1;
1079
+ box-shadow: 0 1px 2px rgba(27, 28, 31, 0.06);
1080
+ }
1081
+
1082
+ .univer-pdf-modal-close {
1083
+ border: none;
1084
+ background: transparent;
1085
+ font-size: 16px;
1086
+ color: #4E5565;
1087
+ cursor: pointer;
1088
+ }
1089
+
1090
+ .univer-pdf-modal-close:hover {
1091
+ color: #1B1C1F;
1092
+ }
1093
+
1094
+ .univer-pdf-modal-body-split {
1095
+ flex: 1;
1096
+ min-height: 0;
1097
+ display: flex;
1098
+ overflow: hidden;
1099
+ }
1100
+
1101
+ .univer-pdf-modal-side {
1102
+ width: 340px;
1103
+ flex-shrink: 0;
1104
+ padding: 14px;
1105
+ border-right: 1px solid #E3E5EA;
1106
+ display: flex;
1107
+ flex-direction: column;
1108
+ gap: 10px;
1109
+ min-height: 0;
1110
+ background: #FFFFFF;
1111
+ z-index: 2;
1112
+ }
1113
+
1114
+ .univer-pdf-modal-label {
1115
+ font-size: 12px;
1116
+ font-weight: 600;
1117
+ color: #1B1C1F;
1118
+ }
1119
+
1120
+ .univer-pdf-code-editor {
1121
+ flex: 1;
1122
+ width: 100%;
1123
+ box-sizing: border-box;
1124
+ border: 1px solid #E3E5EA;
1125
+ border-radius: 6px;
1126
+ padding: 10px;
1127
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1128
+ font-size: 11.5px;
1129
+ line-height: 1.5;
1130
+ color: #31363F;
1131
+ background: #F9FAFB;
1132
+ resize: none;
1133
+ }
1134
+
1135
+ .univer-pdf-code-editor:focus {
1136
+ outline: none;
1137
+ border-color: #2C53F1;
1138
+ background: #FFFFFF;
1139
+ }
1140
+
1141
+ .univer-pdf-modal-viewer {
1142
+ flex: 1;
1143
+ min-width: 0;
1144
+ background: #F4F5F7;
1145
+ min-height: 0;
1146
+ display: flex;
1147
+ overflow: hidden;
1148
+ position: relative;
1149
+ }
1150
+
1151
+ .univer-pdf-iframe {
1152
+ width: 100%;
1153
+ height: 100%;
1154
+ border: none;
1155
+ }
1156
+
1157
+ .univer-pdf-modal-body-json {
1158
+ flex: 1;
1159
+ min-height: 0;
1160
+ padding: 14px;
1161
+ display: flex;
1162
+ flex-direction: column;
1163
+ gap: 10px;
1164
+ background: #FFFFFF;
1165
+ }
1166
+
1167
+ .univer-pdf-json-toolbar {
1168
+ display: flex;
1169
+ align-items: center;
1170
+ justify-content: space-between;
1171
+ }
1172
+
1173
+ .univer-pdf-status-banner {
1174
+ padding: 6px 10px;
1175
+ border-radius: 5px;
1176
+ background: #F9FAFB;
1177
+ border: 1px solid #E3E5EA;
1178
+ color: #31363F;
1179
+ font-size: 12px;
1180
+ }
1181
+
1182
+ .univer-pdf-empty-stage,
1183
+ .univer-pdf-empty-note {
1184
+ width: 100%;
1185
+ height: 100%;
1186
+ display: flex;
1187
+ align-items: center;
1188
+ justify-content: center;
1189
+ color: #7D8698;
1190
+ font-size: 12px;
1191
+ }