@open-file-viewer/core 0.1.18 → 0.1.19

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
@@ -864,6 +864,13 @@
864
864
  line-height: 1.18;
865
865
  }
866
866
 
867
+ .ofv-msdoc-form-document .ofv-msdoc-title {
868
+ color: #111827;
869
+ font-family: "Microsoft YaHei", "PingFang SC", Arial, Helvetica, sans-serif;
870
+ font-size: calc(18pt * var(--ofv-office-zoom, 1));
871
+ text-align: center;
872
+ }
873
+
867
874
  .ofv-msdoc-subtitle {
868
875
  margin: 0 0 calc(18px * var(--ofv-office-zoom, 1));
869
876
  color: #333399;
@@ -1025,6 +1032,14 @@
1025
1032
  table-layout: fixed;
1026
1033
  }
1027
1034
 
1035
+ .ofv-msdoc-form-table {
1036
+ width: 100%;
1037
+ table-layout: fixed;
1038
+ border: 2px solid #111827;
1039
+ color: #111827;
1040
+ font-family: "Microsoft YaHei", "PingFang SC", Arial, Helvetica, sans-serif;
1041
+ }
1042
+
1028
1043
  .ofv-msdoc-table th,
1029
1044
  .ofv-msdoc-table td {
1030
1045
  padding: 0 calc(5px * var(--ofv-office-zoom, 1));
@@ -1039,6 +1054,239 @@
1039
1054
  font-weight: 700;
1040
1055
  }
1041
1056
 
1057
+ .ofv-msdoc-form-table th,
1058
+ .ofv-msdoc-form-table td {
1059
+ min-height: calc(34px * var(--ofv-office-zoom, 1));
1060
+ padding: calc(6px * var(--ofv-office-zoom, 1)) calc(8px * var(--ofv-office-zoom, 1));
1061
+ border-color: #111827;
1062
+ font-size: calc(11pt * var(--ofv-office-zoom, 1));
1063
+ line-height: 1.45;
1064
+ }
1065
+
1066
+ .ofv-msdoc-form-label,
1067
+ .ofv-msdoc-form-section {
1068
+ background: #b7e63a;
1069
+ font-weight: 700;
1070
+ }
1071
+
1072
+ .ofv-msdoc-form-label {
1073
+ text-align: center;
1074
+ }
1075
+
1076
+ .ofv-msdoc-form-section {
1077
+ font-size: calc(12pt * var(--ofv-office-zoom, 1));
1078
+ }
1079
+
1080
+ .ofv-msdoc-form-caption {
1081
+ font-weight: 700;
1082
+ }
1083
+
1084
+ .ofv-msdoc-form-empty {
1085
+ background: #fff;
1086
+ }
1087
+
1088
+ .ofv-msdoc-training-workbook {
1089
+ font-family: SimSun, "Songti SC", serif;
1090
+ }
1091
+
1092
+ .ofv-msdoc-training-page {
1093
+ padding: calc(85px * var(--ofv-office-zoom, 1)) calc(68px * var(--ofv-office-zoom, 1));
1094
+ color: #111;
1095
+ font-family: SimSun, "Songti SC", serif;
1096
+ font-size: calc(12pt * var(--ofv-office-zoom, 1));
1097
+ line-height: 1.9;
1098
+ }
1099
+
1100
+ .ofv-msdoc-training-page::after {
1101
+ position: absolute;
1102
+ inset: calc(70px * var(--ofv-office-zoom, 1)) calc(68px * var(--ofv-office-zoom, 1)) calc(70px * var(--ofv-office-zoom, 1));
1103
+ border: 1px solid #111;
1104
+ content: "";
1105
+ pointer-events: none;
1106
+ }
1107
+
1108
+ .ofv-msdoc-training-page:first-child::after {
1109
+ top: calc(120px * var(--ofv-office-zoom, 1));
1110
+ }
1111
+
1112
+ .ofv-msdoc-training-page > * {
1113
+ position: relative;
1114
+ z-index: 1;
1115
+ }
1116
+
1117
+ .ofv-msdoc-training-page .ofv-msdoc-title {
1118
+ margin: 0 0 calc(10px * var(--ofv-office-zoom, 1));
1119
+ color: #111;
1120
+ font-family: SimHei, "Microsoft YaHei", sans-serif;
1121
+ font-size: calc(15pt * var(--ofv-office-zoom, 1));
1122
+ line-height: 1.25;
1123
+ text-align: center;
1124
+ }
1125
+
1126
+ .ofv-msdoc-training-page .ofv-msdoc-training-paragraph {
1127
+ margin: 0;
1128
+ padding: calc(3px * var(--ofv-office-zoom, 1)) calc(6px * var(--ofv-office-zoom, 1));
1129
+ white-space: pre-line;
1130
+ }
1131
+
1132
+ .ofv-msdoc-training-indent {
1133
+ padding-left: calc(30px * var(--ofv-office-zoom, 1));
1134
+ text-indent: 2em;
1135
+ }
1136
+
1137
+ .ofv-msdoc-training-center {
1138
+ border: 1px solid #111;
1139
+ text-align: center;
1140
+ }
1141
+
1142
+ .ofv-msdoc-training-table {
1143
+ width: 100%;
1144
+ margin: 0;
1145
+ border-collapse: collapse;
1146
+ table-layout: fixed;
1147
+ }
1148
+
1149
+ .ofv-msdoc-training-table td {
1150
+ box-sizing: border-box;
1151
+ padding: calc(5px * var(--ofv-office-zoom, 1)) calc(7px * var(--ofv-office-zoom, 1));
1152
+ border: 1px solid #111;
1153
+ vertical-align: middle;
1154
+ white-space: pre-line;
1155
+ }
1156
+
1157
+ .ofv-msdoc-training-identity td:nth-child(odd) {
1158
+ width: 25%;
1159
+ background: #a6e600;
1160
+ font-family: SimHei, "Microsoft YaHei", sans-serif;
1161
+ font-weight: 700;
1162
+ text-align: center;
1163
+ }
1164
+
1165
+ .ofv-msdoc-training-identity td:nth-child(even) {
1166
+ width: 25%;
1167
+ height: calc(47px * var(--ofv-office-zoom, 1));
1168
+ }
1169
+
1170
+ .ofv-msdoc-training-section {
1171
+ margin: 0;
1172
+ }
1173
+
1174
+ .ofv-msdoc-training-section-head td {
1175
+ width: 50%;
1176
+ padding: calc(12px * var(--ofv-office-zoom, 1));
1177
+ font-family: SimHei, "Microsoft YaHei", sans-serif;
1178
+ font-size: calc(11pt * var(--ofv-office-zoom, 1));
1179
+ font-weight: 700;
1180
+ }
1181
+
1182
+ .ofv-msdoc-training-green {
1183
+ background: #a6e600;
1184
+ }
1185
+
1186
+ .ofv-msdoc-training-image-strip {
1187
+ display: flex;
1188
+ align-items: center;
1189
+ justify-content: center;
1190
+ gap: calc(8px * var(--ofv-office-zoom, 1));
1191
+ margin: calc(6px * var(--ofv-office-zoom, 1)) auto;
1192
+ }
1193
+
1194
+ .ofv-msdoc-training-image {
1195
+ display: block;
1196
+ width: 100%;
1197
+ height: 100%;
1198
+ object-fit: cover;
1199
+ }
1200
+
1201
+ .ofv-msdoc-training-switches .ofv-msdoc-training-image {
1202
+ width: calc(156px * var(--ofv-office-zoom, 1));
1203
+ height: calc(182px * var(--ofv-office-zoom, 1));
1204
+ }
1205
+
1206
+ .ofv-msdoc-training-plan td:first-child { width: 10%; }
1207
+ .ofv-msdoc-training-plan td { height: calc(34px * var(--ofv-office-zoom, 1)); text-align: center; }
1208
+ .ofv-msdoc-training-plan tr:first-child td { height: auto; }
1209
+ .ofv-msdoc-training-plan tr:last-child td { height: calc(88px * var(--ofv-office-zoom, 1)); text-align: left; }
1210
+ .ofv-msdoc-training-page:nth-child(2) .ofv-msdoc-training-plan td { height: calc(38px * var(--ofv-office-zoom, 1)); }
1211
+ .ofv-msdoc-training-page:nth-child(2) .ofv-msdoc-training-plan tr:last-child td { height: calc(104px * var(--ofv-office-zoom, 1)); }
1212
+ .ofv-msdoc-training-assignment td { text-align: center; }
1213
+
1214
+ .ofv-msdoc-training-equipment {
1215
+ margin-bottom: calc(50px * var(--ofv-office-zoom, 1));
1216
+ }
1217
+ .ofv-msdoc-training-equipment tr:first-child td { text-align: center; }
1218
+ .ofv-msdoc-training-equipment tr:not(:first-child) td:nth-child(1) { width: 8%; }
1219
+ .ofv-msdoc-training-equipment tr:not(:first-child) td:nth-child(2) { width: 43%; }
1220
+ .ofv-msdoc-training-equipment tr:not(:first-child) td:nth-child(3) { width: 27%; }
1221
+ .ofv-msdoc-training-equipment tr:not(:first-child) td:nth-child(4) { width: 22%; text-align: center; }
1222
+ .ofv-msdoc-training-equipment tr:nth-child(n+3) td { height: calc(33px * var(--ofv-office-zoom, 1)); }
1223
+ .ofv-msdoc-training-equipment td { padding-block: calc(3px * var(--ofv-office-zoom, 1)); }
1224
+
1225
+ .ofv-msdoc-training-people td:first-child { width: 29%; padding: 0; }
1226
+ .ofv-msdoc-training-people td:nth-child(2) { width: 22%; }
1227
+ .ofv-msdoc-training-people td:nth-child(3) { width: 49%; }
1228
+ .ofv-msdoc-training-people .ofv-msdoc-training-image { height: calc(112px * var(--ofv-office-zoom, 1)); object-fit: contain; }
1229
+
1230
+ .ofv-msdoc-training-work-table td:first-child {
1231
+ width: 34%;
1232
+ padding: calc(3px * var(--ofv-office-zoom, 1));
1233
+ }
1234
+ .ofv-msdoc-training-work-table td:last-child {
1235
+ width: 66%;
1236
+ padding-block: calc(4px * var(--ofv-office-zoom, 1));
1237
+ }
1238
+ .ofv-msdoc-training-work-table .ofv-msdoc-training-image { height: calc(132px * var(--ofv-office-zoom, 1)); }
1239
+ .ofv-msdoc-training-work { break-inside: avoid; }
1240
+
1241
+ .ofv-msdoc-training-page:nth-child(3) {
1242
+ line-height: 1.75;
1243
+ }
1244
+
1245
+ .ofv-msdoc-training-page:nth-child(4) {
1246
+ line-height: 1.55;
1247
+ }
1248
+
1249
+ .ofv-msdoc-training-quality td:first-child { width: 18%; text-align: center; }
1250
+ .ofv-msdoc-training-quality td:nth-child(2) { width: 55%; }
1251
+ .ofv-msdoc-training-quality td:nth-child(3) { width: 27%; text-align: center; }
1252
+ .ofv-msdoc-training-quality td { padding-block: calc(7px * var(--ofv-office-zoom, 1)); }
1253
+ .ofv-msdoc-training-quality tr:last-child td { height: calc(220px * var(--ofv-office-zoom, 1)); }
1254
+
1255
+ .ofv-msdoc-training-reflection {
1256
+ margin: calc(20px * var(--ofv-office-zoom, 1));
1257
+ padding: calc(12px * var(--ofv-office-zoom, 1));
1258
+ border: 1px solid #111;
1259
+ white-space: pre-line;
1260
+ }
1261
+
1262
+ .ofv-msdoc-training-score {
1263
+ margin-top: calc(18px * var(--ofv-office-zoom, 1));
1264
+ font-size: calc(10pt * var(--ofv-office-zoom, 1));
1265
+ line-height: 1.35;
1266
+ }
1267
+ .ofv-msdoc-training-score tr:first-child td {
1268
+ background: #a6e600;
1269
+ font-family: SimHei, "Microsoft YaHei", sans-serif;
1270
+ font-size: calc(12pt * var(--ofv-office-zoom, 1));
1271
+ font-weight: 700;
1272
+ text-align: center;
1273
+ }
1274
+ .ofv-msdoc-training-score td:first-child { width: 20%; text-align: center; }
1275
+ .ofv-msdoc-training-score td:nth-child(2) { width: 58%; }
1276
+ .ofv-msdoc-training-score td:nth-child(3),
1277
+ .ofv-msdoc-training-score td:nth-child(4) { width: 11%; text-align: center; }
1278
+ .ofv-msdoc-training-score td { padding-block: calc(5px * var(--ofv-office-zoom, 1)); }
1279
+
1280
+ .ofv-msdoc-training-footer {
1281
+ position: absolute !important;
1282
+ right: 0;
1283
+ bottom: calc(54px * var(--ofv-office-zoom, 1));
1284
+ left: 0;
1285
+ color: #9ca3af;
1286
+ font-size: calc(8px * var(--ofv-office-zoom, 1));
1287
+ text-align: center;
1288
+ }
1289
+
1042
1290
  .ofv-msdoc-meta,
1043
1291
  .ofv-msdoc-warning {
1044
1292
  display: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-file-viewer/core",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Framework-agnostic browser file preview core.",
5
5
  "license": "MIT",
6
6
  "type": "module",