@open-file-viewer/core 0.1.16 → 0.1.18

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/style.css CHANGED
@@ -733,6 +733,317 @@
733
733
  line-height: 1.6;
734
734
  }
735
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
+
736
1047
  .ofv-docx-document {
737
1048
  width: 100%;
738
1049
  max-width: 100%;
@@ -3418,6 +3729,7 @@
3418
3729
  max-width: 100%;
3419
3730
  min-width: max-content;
3420
3731
  background: transparent !important;
3732
+ color: var(--ofv-text);
3421
3733
  font-family: var(--ofv-font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
3422
3734
  font-size: calc(13px * var(--ofv-text-zoom, 1));
3423
3735
  line-height: 1.6;
@@ -3767,6 +4079,7 @@
3767
4079
  overflow: auto;
3768
4080
  font-size: 85%;
3769
4081
  line-height: 1.45;
4082
+ color: var(--ofv-text);
3770
4083
  background-color: var(--ofv-surface-muted);
3771
4084
  border-radius: 6px;
3772
4085
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-file-viewer/core",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Framework-agnostic browser file preview core.",
5
5
  "license": "MIT",
6
6
  "type": "module",