@open-file-viewer/core 0.1.15 → 0.1.17
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/dist/index.cjs +1526 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1526 -140
- package/dist/index.js.map +1 -1
- package/dist/style.css +589 -6
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -306,21 +306,39 @@
|
|
|
306
306
|
justify-content: center;
|
|
307
307
|
min-height: min(320px, 55vh);
|
|
308
308
|
min-width: 0;
|
|
309
|
-
overflow:
|
|
309
|
+
overflow: auto;
|
|
310
310
|
cursor: grab;
|
|
311
311
|
touch-action: none;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
+
.ofv-image-stage-pages {
|
|
315
|
+
align-items: flex-start;
|
|
316
|
+
justify-content: center;
|
|
317
|
+
overflow: auto;
|
|
318
|
+
padding: 24px;
|
|
319
|
+
}
|
|
320
|
+
|
|
314
321
|
.ofv-image-stage.is-dragging {
|
|
315
322
|
cursor: grabbing;
|
|
316
323
|
}
|
|
317
324
|
|
|
325
|
+
.ofv-image-scrollbox {
|
|
326
|
+
display: flex;
|
|
327
|
+
flex: 0 0 auto;
|
|
328
|
+
align-items: center;
|
|
329
|
+
justify-content: center;
|
|
330
|
+
min-width: 0;
|
|
331
|
+
min-height: 0;
|
|
332
|
+
max-width: none;
|
|
333
|
+
max-height: none;
|
|
334
|
+
}
|
|
335
|
+
|
|
318
336
|
.ofv-image-content {
|
|
319
337
|
width: auto;
|
|
320
338
|
height: auto;
|
|
321
339
|
max-width: 100%;
|
|
322
340
|
max-height: 100%;
|
|
323
|
-
transform-origin:
|
|
341
|
+
transform-origin: top left;
|
|
324
342
|
transition: transform 120ms ease;
|
|
325
343
|
will-change: transform;
|
|
326
344
|
user-select: none;
|
|
@@ -330,6 +348,41 @@
|
|
|
330
348
|
transition: none;
|
|
331
349
|
}
|
|
332
350
|
|
|
351
|
+
.ofv-tiff-pages {
|
|
352
|
+
display: grid;
|
|
353
|
+
gap: 18px;
|
|
354
|
+
width: max-content;
|
|
355
|
+
max-width: 100%;
|
|
356
|
+
height: auto;
|
|
357
|
+
transform-origin: top center;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.ofv-tiff-page {
|
|
361
|
+
display: grid;
|
|
362
|
+
gap: 8px;
|
|
363
|
+
margin: 0;
|
|
364
|
+
justify-items: center;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.ofv-tiff-canvas {
|
|
368
|
+
display: block;
|
|
369
|
+
max-width: 100%;
|
|
370
|
+
height: auto;
|
|
371
|
+
border: 1px solid var(--ofv-border);
|
|
372
|
+
border-radius: 4px;
|
|
373
|
+
background: var(--ofv-surface);
|
|
374
|
+
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.ofv-tiff-page figcaption {
|
|
378
|
+
max-width: 100%;
|
|
379
|
+
color: var(--ofv-text-muted);
|
|
380
|
+
font-size: 12px;
|
|
381
|
+
line-height: 1.4;
|
|
382
|
+
text-align: center;
|
|
383
|
+
overflow-wrap: anywhere;
|
|
384
|
+
}
|
|
385
|
+
|
|
333
386
|
.ofv-image-info {
|
|
334
387
|
display: flex;
|
|
335
388
|
flex: 0 0 auto;
|
|
@@ -413,7 +466,7 @@
|
|
|
413
466
|
min-width: 0;
|
|
414
467
|
min-height: 100%;
|
|
415
468
|
padding: 16px;
|
|
416
|
-
overflow-x:
|
|
469
|
+
overflow-x: auto;
|
|
417
470
|
overflow-y: auto;
|
|
418
471
|
background: #6b7280;
|
|
419
472
|
}
|
|
@@ -680,6 +733,317 @@
|
|
|
680
733
|
line-height: 1.6;
|
|
681
734
|
}
|
|
682
735
|
|
|
736
|
+
.ofv-msdoc-document {
|
|
737
|
+
display: flex;
|
|
738
|
+
flex-direction: column;
|
|
739
|
+
align-items: center;
|
|
740
|
+
justify-content: center;
|
|
741
|
+
min-width: max-content;
|
|
742
|
+
padding: 24px;
|
|
743
|
+
gap: 24px;
|
|
744
|
+
overflow: auto;
|
|
745
|
+
background: var(--ofv-surface-muted);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.ofv-msdoc-page {
|
|
749
|
+
position: relative;
|
|
750
|
+
width: calc(794px * var(--ofv-office-zoom, 1));
|
|
751
|
+
min-height: calc(1123px * var(--ofv-office-zoom, 1));
|
|
752
|
+
height: calc(1123px * var(--ofv-office-zoom, 1));
|
|
753
|
+
box-sizing: border-box;
|
|
754
|
+
overflow: hidden;
|
|
755
|
+
padding: calc(86px * var(--ofv-office-zoom, 1)) calc(76px * var(--ofv-office-zoom, 1));
|
|
756
|
+
border: 1px solid var(--ofv-border);
|
|
757
|
+
background: #fff;
|
|
758
|
+
box-shadow: 0 16px 42px rgba(15, 23, 42, 0.14);
|
|
759
|
+
color: #111827;
|
|
760
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
761
|
+
font-size: calc(10pt * var(--ofv-office-zoom, 1));
|
|
762
|
+
line-height: 1.32;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.ofv-msdoc-page-footer {
|
|
766
|
+
position: absolute;
|
|
767
|
+
right: calc(64px * var(--ofv-office-zoom, 1));
|
|
768
|
+
bottom: calc(34px * var(--ofv-office-zoom, 1));
|
|
769
|
+
left: calc(132px * var(--ofv-office-zoom, 1));
|
|
770
|
+
padding-top: calc(5px * var(--ofv-office-zoom, 1));
|
|
771
|
+
border-top: 1px solid #9ca3af;
|
|
772
|
+
color: #111827;
|
|
773
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
774
|
+
font-size: calc(8px * var(--ofv-office-zoom, 1));
|
|
775
|
+
line-height: 1.35;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.ofv-msdoc-footer-row {
|
|
779
|
+
display: grid;
|
|
780
|
+
grid-template-columns: minmax(0, 1fr) max-content;
|
|
781
|
+
gap: calc(18px * var(--ofv-office-zoom, 1));
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.ofv-msdoc-footer-row span:last-child {
|
|
785
|
+
text-align: right;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.ofv-msdoc-line-numbered {
|
|
789
|
+
padding: calc(44px * var(--ofv-office-zoom, 1)) calc(64px * var(--ofv-office-zoom, 1)) calc(86px * var(--ofv-office-zoom, 1)) calc(132px * var(--ofv-office-zoom, 1));
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.ofv-msdoc-page-header {
|
|
793
|
+
margin: 0 0 calc(8px * var(--ofv-office-zoom, 1));
|
|
794
|
+
padding: 0 0 calc(8px * var(--ofv-office-zoom, 1));
|
|
795
|
+
border-bottom: 1px solid #6b7280;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.ofv-msdoc-oasis-logo {
|
|
799
|
+
display: flex;
|
|
800
|
+
align-items: center;
|
|
801
|
+
gap: calc(8px * var(--ofv-office-zoom, 1));
|
|
802
|
+
min-height: calc(54px * var(--ofv-office-zoom, 1));
|
|
803
|
+
color: #4b148c;
|
|
804
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
805
|
+
font-size: calc(52px * var(--ofv-office-zoom, 1));
|
|
806
|
+
font-weight: 800;
|
|
807
|
+
letter-spacing: 0;
|
|
808
|
+
line-height: 1;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.ofv-msdoc-oasis-logo-image {
|
|
812
|
+
min-height: calc(54px * var(--ofv-office-zoom, 1));
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.ofv-msdoc-oasis-logo-image img {
|
|
816
|
+
width: calc(232px * var(--ofv-office-zoom, 1));
|
|
817
|
+
height: auto;
|
|
818
|
+
max-width: 100%;
|
|
819
|
+
object-fit: contain;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.ofv-msdoc-oasis-mark {
|
|
823
|
+
display: inline-grid;
|
|
824
|
+
place-items: center;
|
|
825
|
+
width: calc(40px * var(--ofv-office-zoom, 1));
|
|
826
|
+
height: calc(40px * var(--ofv-office-zoom, 1));
|
|
827
|
+
border-radius: calc(7px * var(--ofv-office-zoom, 1));
|
|
828
|
+
background: #f4b000;
|
|
829
|
+
color: #4b148c;
|
|
830
|
+
font-size: calc(34px * var(--ofv-office-zoom, 1));
|
|
831
|
+
font-weight: 800;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.ofv-msdoc-oasis-mark::before {
|
|
835
|
+
content: "S";
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
.ofv-msdoc-page p {
|
|
839
|
+
position: relative;
|
|
840
|
+
margin: 0 0 calc(6px * var(--ofv-office-zoom, 1));
|
|
841
|
+
white-space: pre-wrap;
|
|
842
|
+
overflow-wrap: anywhere;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.ofv-msdoc-line-numbered > :not(.ofv-msdoc-meta, .ofv-msdoc-page-header)::before {
|
|
846
|
+
position: absolute;
|
|
847
|
+
right: calc(100% + 28px * var(--ofv-office-zoom, 1));
|
|
848
|
+
top: 0;
|
|
849
|
+
width: calc(30px * var(--ofv-office-zoom, 1));
|
|
850
|
+
color: #111827;
|
|
851
|
+
content: attr(data-line);
|
|
852
|
+
font-family: "Times New Roman", Times, serif;
|
|
853
|
+
font-size: calc(12px * var(--ofv-office-zoom, 1));
|
|
854
|
+
font-weight: 400;
|
|
855
|
+
line-height: inherit;
|
|
856
|
+
text-align: right;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.ofv-msdoc-title {
|
|
860
|
+
margin: 0 0 calc(6px * var(--ofv-office-zoom, 1));
|
|
861
|
+
color: #333399;
|
|
862
|
+
font-size: calc(24px * var(--ofv-office-zoom, 1));
|
|
863
|
+
font-weight: 700;
|
|
864
|
+
line-height: 1.18;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.ofv-msdoc-subtitle {
|
|
868
|
+
margin: 0 0 calc(18px * var(--ofv-office-zoom, 1));
|
|
869
|
+
color: #333399;
|
|
870
|
+
font-size: calc(18px * var(--ofv-office-zoom, 1));
|
|
871
|
+
font-weight: 700;
|
|
872
|
+
line-height: 1.2;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.ofv-msdoc-heading {
|
|
876
|
+
margin: calc(18px * var(--ofv-office-zoom, 1)) 0 calc(6px * var(--ofv-office-zoom, 1));
|
|
877
|
+
color: #000099;
|
|
878
|
+
font-size: calc(18px * var(--ofv-office-zoom, 1));
|
|
879
|
+
font-weight: 700;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.ofv-msdoc-heading-level-1 {
|
|
883
|
+
padding-top: calc(5px * var(--ofv-office-zoom, 1));
|
|
884
|
+
border-top: 1px solid #9ca3af;
|
|
885
|
+
font-size: calc(18px * var(--ofv-office-zoom, 1));
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.ofv-msdoc-heading-level-2 {
|
|
889
|
+
margin: calc(12px * var(--ofv-office-zoom, 1)) 0 calc(4px * var(--ofv-office-zoom, 1));
|
|
890
|
+
border-top: 0;
|
|
891
|
+
font-size: calc(14px * var(--ofv-office-zoom, 1));
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.ofv-msdoc-heading-level-3 {
|
|
895
|
+
margin: calc(8px * var(--ofv-office-zoom, 1)) 0 calc(4px * var(--ofv-office-zoom, 1));
|
|
896
|
+
border-top: 0;
|
|
897
|
+
font-size: calc(12px * var(--ofv-office-zoom, 1));
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.ofv-msdoc-label {
|
|
901
|
+
margin-top: calc(6px * var(--ofv-office-zoom, 1));
|
|
902
|
+
color: #333399;
|
|
903
|
+
font-weight: 700;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.ofv-msdoc-label + .ofv-msdoc-paragraph {
|
|
907
|
+
margin-left: calc(36px * var(--ofv-office-zoom, 1));
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.ofv-msdoc-indent {
|
|
911
|
+
margin-left: calc(36px * var(--ofv-office-zoom, 1));
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
.ofv-msdoc-instruction {
|
|
915
|
+
color: #111827;
|
|
916
|
+
font-style: italic;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.ofv-msdoc-listItem {
|
|
920
|
+
margin-left: calc(18px * var(--ofv-office-zoom, 1));
|
|
921
|
+
padding-left: calc(14px * var(--ofv-office-zoom, 1));
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.ofv-msdoc-listItem::after {
|
|
925
|
+
position: absolute;
|
|
926
|
+
top: 0;
|
|
927
|
+
left: 0;
|
|
928
|
+
color: #111827;
|
|
929
|
+
content: "•";
|
|
930
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
931
|
+
font-size: inherit;
|
|
932
|
+
line-height: inherit;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
.ofv-msdoc-list-level-2 {
|
|
936
|
+
margin-left: calc(36px * var(--ofv-office-zoom, 1));
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.ofv-msdoc-reference {
|
|
940
|
+
margin-left: calc(108px * var(--ofv-office-zoom, 1));
|
|
941
|
+
text-indent: calc(-90px * var(--ofv-office-zoom, 1));
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.ofv-msdoc-page em {
|
|
945
|
+
font-style: italic;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.ofv-msdoc-ref-term {
|
|
949
|
+
font-weight: 700;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.ofv-msdoc-inline-code {
|
|
953
|
+
font-family: "Courier New", Courier, monospace;
|
|
954
|
+
font-size: calc(10px * var(--ofv-office-zoom, 1));
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.ofv-msdoc-keyword,
|
|
958
|
+
.ofv-msdoc-variable {
|
|
959
|
+
font-style: italic;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.ofv-msdoc-link-text {
|
|
963
|
+
color: #0000ee;
|
|
964
|
+
text-decoration: underline;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.ofv-msdoc-toc {
|
|
968
|
+
display: grid;
|
|
969
|
+
grid-template-columns: auto max-content;
|
|
970
|
+
column-gap: calc(10px * var(--ofv-office-zoom, 1));
|
|
971
|
+
align-items: baseline;
|
|
972
|
+
margin: calc(3px * var(--ofv-office-zoom, 1)) 0;
|
|
973
|
+
color: #0000ee;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.ofv-msdoc-toc::before {
|
|
977
|
+
grid-column: 1 / 3;
|
|
978
|
+
grid-row: 1;
|
|
979
|
+
align-self: end;
|
|
980
|
+
border-bottom: 1px dotted #9ca3af;
|
|
981
|
+
content: "";
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.ofv-msdoc-toc span {
|
|
985
|
+
position: relative;
|
|
986
|
+
z-index: 1;
|
|
987
|
+
background: #fff;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.ofv-msdoc-toc span:first-child {
|
|
991
|
+
padding-right: 4px;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.ofv-msdoc-toc span:last-child {
|
|
995
|
+
padding-left: 4px;
|
|
996
|
+
text-align: right;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.ofv-msdoc-toc-level-2 {
|
|
1000
|
+
margin-left: calc(12px * var(--ofv-office-zoom, 1));
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.ofv-msdoc-toc-level-3 {
|
|
1004
|
+
margin-left: calc(24px * var(--ofv-office-zoom, 1));
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
.ofv-msdoc-code {
|
|
1008
|
+
margin: 0 calc(22px * var(--ofv-office-zoom, 1));
|
|
1009
|
+
color: #800000;
|
|
1010
|
+
font-family: "Courier New", Courier, monospace;
|
|
1011
|
+
font-size: calc(9px * var(--ofv-office-zoom, 1));
|
|
1012
|
+
line-height: 1.18;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
.ofv-msdoc-table {
|
|
1016
|
+
position: relative;
|
|
1017
|
+
width: auto;
|
|
1018
|
+
max-width: 100%;
|
|
1019
|
+
margin: calc(8px * var(--ofv-office-zoom, 1)) 0;
|
|
1020
|
+
border-collapse: collapse;
|
|
1021
|
+
table-layout: auto;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
.ofv-msdoc-revision-table {
|
|
1025
|
+
table-layout: fixed;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
.ofv-msdoc-table th,
|
|
1029
|
+
.ofv-msdoc-table td {
|
|
1030
|
+
padding: 0 calc(5px * var(--ofv-office-zoom, 1));
|
|
1031
|
+
border: 1px solid #bfbfbf;
|
|
1032
|
+
vertical-align: top;
|
|
1033
|
+
text-align: left;
|
|
1034
|
+
line-height: 1.32;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.ofv-msdoc-table th {
|
|
1038
|
+
background: #f8fafc;
|
|
1039
|
+
font-weight: 700;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
.ofv-msdoc-meta,
|
|
1043
|
+
.ofv-msdoc-warning {
|
|
1044
|
+
display: none;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
683
1047
|
.ofv-docx-document {
|
|
684
1048
|
width: 100%;
|
|
685
1049
|
max-width: 100%;
|
|
@@ -745,6 +1109,19 @@
|
|
|
745
1109
|
overflow-wrap: anywhere;
|
|
746
1110
|
}
|
|
747
1111
|
|
|
1112
|
+
.ofv-docx-chart-preview {
|
|
1113
|
+
min-width: 0;
|
|
1114
|
+
overflow: hidden;
|
|
1115
|
+
background: #fff;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.ofv-docx-chart-preview .ofv-chart-svg {
|
|
1119
|
+
width: 100%;
|
|
1120
|
+
height: 100%;
|
|
1121
|
+
min-height: 0;
|
|
1122
|
+
padding: 0;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
748
1125
|
.ofv-docx-fallback-note {
|
|
749
1126
|
margin: 0 0 12px;
|
|
750
1127
|
padding: 8px 10px;
|
|
@@ -1402,9 +1779,19 @@
|
|
|
1402
1779
|
stroke-width: 1.5;
|
|
1403
1780
|
}
|
|
1404
1781
|
|
|
1782
|
+
.ofv-chart-gridline {
|
|
1783
|
+
stroke: #d9d9d9;
|
|
1784
|
+
stroke-width: 1;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
.ofv-chart-title {
|
|
1788
|
+
fill: #595959;
|
|
1789
|
+
font: 20px/1 Calibri, Arial, sans-serif;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1405
1792
|
.ofv-chart-label {
|
|
1406
|
-
fill:
|
|
1407
|
-
font: 12px/1
|
|
1793
|
+
fill: #595959;
|
|
1794
|
+
font: 12px/1 Calibri, Arial, sans-serif;
|
|
1408
1795
|
}
|
|
1409
1796
|
|
|
1410
1797
|
.ofv-chart-data {
|
|
@@ -3370,6 +3757,200 @@
|
|
|
3370
3757
|
word-break: break-word;
|
|
3371
3758
|
}
|
|
3372
3759
|
|
|
3760
|
+
.ofv-code-container .token.comment,
|
|
3761
|
+
.ofv-code-container .token.prolog,
|
|
3762
|
+
.ofv-code-container .token.doctype,
|
|
3763
|
+
.ofv-code-container .token.cdata,
|
|
3764
|
+
.ofv-markdown-body pre .token.comment,
|
|
3765
|
+
.ofv-markdown-body pre .token.prolog,
|
|
3766
|
+
.ofv-markdown-body pre .token.doctype,
|
|
3767
|
+
.ofv-markdown-body pre .token.cdata {
|
|
3768
|
+
color: #6b7280;
|
|
3769
|
+
}
|
|
3770
|
+
|
|
3771
|
+
.ofv-code-container .token.punctuation,
|
|
3772
|
+
.ofv-markdown-body pre .token.punctuation {
|
|
3773
|
+
color: #64748b;
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3776
|
+
.ofv-code-container .token.namespace,
|
|
3777
|
+
.ofv-markdown-body pre .token.namespace {
|
|
3778
|
+
opacity: 0.72;
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3781
|
+
.ofv-code-container .token.property,
|
|
3782
|
+
.ofv-code-container .token.tag,
|
|
3783
|
+
.ofv-code-container .token.boolean,
|
|
3784
|
+
.ofv-code-container .token.number,
|
|
3785
|
+
.ofv-code-container .token.constant,
|
|
3786
|
+
.ofv-code-container .token.symbol,
|
|
3787
|
+
.ofv-code-container .token.deleted,
|
|
3788
|
+
.ofv-markdown-body pre .token.property,
|
|
3789
|
+
.ofv-markdown-body pre .token.tag,
|
|
3790
|
+
.ofv-markdown-body pre .token.boolean,
|
|
3791
|
+
.ofv-markdown-body pre .token.number,
|
|
3792
|
+
.ofv-markdown-body pre .token.constant,
|
|
3793
|
+
.ofv-markdown-body pre .token.symbol,
|
|
3794
|
+
.ofv-markdown-body pre .token.deleted {
|
|
3795
|
+
color: #b45309;
|
|
3796
|
+
}
|
|
3797
|
+
|
|
3798
|
+
.ofv-code-container .token.selector,
|
|
3799
|
+
.ofv-code-container .token.attr-name,
|
|
3800
|
+
.ofv-code-container .token.string,
|
|
3801
|
+
.ofv-code-container .token.char,
|
|
3802
|
+
.ofv-code-container .token.builtin,
|
|
3803
|
+
.ofv-code-container .token.inserted,
|
|
3804
|
+
.ofv-markdown-body pre .token.selector,
|
|
3805
|
+
.ofv-markdown-body pre .token.attr-name,
|
|
3806
|
+
.ofv-markdown-body pre .token.string,
|
|
3807
|
+
.ofv-markdown-body pre .token.char,
|
|
3808
|
+
.ofv-markdown-body pre .token.builtin,
|
|
3809
|
+
.ofv-markdown-body pre .token.inserted {
|
|
3810
|
+
color: #15803d;
|
|
3811
|
+
}
|
|
3812
|
+
|
|
3813
|
+
.ofv-code-container .token.operator,
|
|
3814
|
+
.ofv-code-container .token.entity,
|
|
3815
|
+
.ofv-code-container .token.url,
|
|
3816
|
+
.ofv-code-container .language-css .token.string,
|
|
3817
|
+
.ofv-code-container .style .token.string,
|
|
3818
|
+
.ofv-markdown-body pre .token.operator,
|
|
3819
|
+
.ofv-markdown-body pre .token.entity,
|
|
3820
|
+
.ofv-markdown-body pre .token.url,
|
|
3821
|
+
.ofv-markdown-body pre .language-css .token.string,
|
|
3822
|
+
.ofv-markdown-body pre .style .token.string {
|
|
3823
|
+
color: #0369a1;
|
|
3824
|
+
}
|
|
3825
|
+
|
|
3826
|
+
.ofv-code-container .token.atrule,
|
|
3827
|
+
.ofv-code-container .token.attr-value,
|
|
3828
|
+
.ofv-code-container .token.keyword,
|
|
3829
|
+
.ofv-markdown-body pre .token.atrule,
|
|
3830
|
+
.ofv-markdown-body pre .token.attr-value,
|
|
3831
|
+
.ofv-markdown-body pre .token.keyword {
|
|
3832
|
+
color: #7c3aed;
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
.ofv-code-container .token.function,
|
|
3836
|
+
.ofv-code-container .token.class-name,
|
|
3837
|
+
.ofv-markdown-body pre .token.function,
|
|
3838
|
+
.ofv-markdown-body pre .token.class-name {
|
|
3839
|
+
color: #2563eb;
|
|
3840
|
+
}
|
|
3841
|
+
|
|
3842
|
+
.ofv-code-container .token.regex,
|
|
3843
|
+
.ofv-code-container .token.important,
|
|
3844
|
+
.ofv-code-container .token.variable,
|
|
3845
|
+
.ofv-markdown-body pre .token.regex,
|
|
3846
|
+
.ofv-markdown-body pre .token.important,
|
|
3847
|
+
.ofv-markdown-body pre .token.variable {
|
|
3848
|
+
color: #be123c;
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3851
|
+
.ofv-code-container .token.important,
|
|
3852
|
+
.ofv-code-container .token.bold,
|
|
3853
|
+
.ofv-markdown-body pre .token.important,
|
|
3854
|
+
.ofv-markdown-body pre .token.bold {
|
|
3855
|
+
font-weight: 600;
|
|
3856
|
+
}
|
|
3857
|
+
|
|
3858
|
+
.ofv-code-container .token.italic,
|
|
3859
|
+
.ofv-markdown-body pre .token.italic {
|
|
3860
|
+
font-style: italic;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
.ofv-code-container .token.entity,
|
|
3864
|
+
.ofv-markdown-body pre .token.entity {
|
|
3865
|
+
cursor: help;
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.comment,
|
|
3869
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.prolog,
|
|
3870
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.doctype,
|
|
3871
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.cdata,
|
|
3872
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.comment,
|
|
3873
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.prolog,
|
|
3874
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.doctype,
|
|
3875
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.cdata {
|
|
3876
|
+
color: #94a3b8;
|
|
3877
|
+
}
|
|
3878
|
+
|
|
3879
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.punctuation,
|
|
3880
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.punctuation {
|
|
3881
|
+
color: #cbd5e1;
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.property,
|
|
3885
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.tag,
|
|
3886
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.boolean,
|
|
3887
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.number,
|
|
3888
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.constant,
|
|
3889
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.symbol,
|
|
3890
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.deleted,
|
|
3891
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.property,
|
|
3892
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.tag,
|
|
3893
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.boolean,
|
|
3894
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.number,
|
|
3895
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.constant,
|
|
3896
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.symbol,
|
|
3897
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.deleted {
|
|
3898
|
+
color: #fbbf24;
|
|
3899
|
+
}
|
|
3900
|
+
|
|
3901
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.selector,
|
|
3902
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.attr-name,
|
|
3903
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.string,
|
|
3904
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.char,
|
|
3905
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.builtin,
|
|
3906
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.inserted,
|
|
3907
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.selector,
|
|
3908
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.attr-name,
|
|
3909
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.string,
|
|
3910
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.char,
|
|
3911
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.builtin,
|
|
3912
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.inserted {
|
|
3913
|
+
color: #86efac;
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.operator,
|
|
3917
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.entity,
|
|
3918
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.url,
|
|
3919
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .language-css .token.string,
|
|
3920
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .style .token.string,
|
|
3921
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.operator,
|
|
3922
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.entity,
|
|
3923
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.url,
|
|
3924
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .language-css .token.string,
|
|
3925
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .style .token.string {
|
|
3926
|
+
color: #7dd3fc;
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.atrule,
|
|
3930
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.attr-value,
|
|
3931
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.keyword,
|
|
3932
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.atrule,
|
|
3933
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.attr-value,
|
|
3934
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.keyword {
|
|
3935
|
+
color: #c4b5fd;
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.function,
|
|
3939
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.class-name,
|
|
3940
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.function,
|
|
3941
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.class-name {
|
|
3942
|
+
color: #93c5fd;
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3945
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.regex,
|
|
3946
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.important,
|
|
3947
|
+
.ofv-root.ofv-theme-dark .ofv-code-container .token.variable,
|
|
3948
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.regex,
|
|
3949
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.important,
|
|
3950
|
+
.ofv-root.ofv-theme-dark .ofv-markdown-body pre .token.variable {
|
|
3951
|
+
color: #fda4af;
|
|
3952
|
+
}
|
|
3953
|
+
|
|
3373
3954
|
@media (max-width: 640px) {
|
|
3374
3955
|
.ofv-code-header {
|
|
3375
3956
|
align-items: stretch;
|
|
@@ -3549,7 +4130,6 @@
|
|
|
3549
4130
|
/* PDF lazy loading elements */
|
|
3550
4131
|
.ofv-pdf-page-wrapper {
|
|
3551
4132
|
margin: 16px auto;
|
|
3552
|
-
max-width: 100%;
|
|
3553
4133
|
min-width: 0;
|
|
3554
4134
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
3555
4135
|
border: 1px solid var(--ofv-border);
|
|
@@ -3632,12 +4212,15 @@
|
|
|
3632
4212
|
line-height: 1;
|
|
3633
4213
|
pointer-events: none;
|
|
3634
4214
|
user-select: text;
|
|
4215
|
+
-webkit-text-size-adjust: none;
|
|
4216
|
+
text-size-adjust: none;
|
|
3635
4217
|
}
|
|
3636
4218
|
|
|
3637
4219
|
.ofv-pdf-text-layer span {
|
|
3638
4220
|
color: transparent;
|
|
3639
4221
|
position: absolute;
|
|
3640
4222
|
white-space: pre;
|
|
4223
|
+
line-height: 1;
|
|
3641
4224
|
cursor: text;
|
|
3642
4225
|
transform-origin: 0% 0%;
|
|
3643
4226
|
pointer-events: auto;
|