@courtifyai/docx-render 1.0.3 → 1.0.5
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.es.js +1249 -1216
- package/dist/index.umd.js +29 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.docx-container{width:100%;height:100%;overflow:hidden;background-color:#525659;font-family:Segoe UI,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}.docx-wrapper{position:relative;width:100%;height:100%;overflow:auto;padding:30px;display:flex;flex-direction:column;align-items:center;gap:30px}.docx-page{background:#fff;box-shadow:0 0 10px #00000080;box-sizing:border-box;display:flex;flex-direction:column;position:relative;overflow:hidden;flex-shrink:0;width:595.3pt;min-height:841.9pt;padding:72pt 90pt}.docx-section-content{flex:1;z-index:1}.docx-header,.docx-footer{z-index:1;color:#666;font-size:10pt}.docx-header{padding-bottom:12pt;border-bottom:1px solid #eee;margin-bottom:12pt}.docx-footer{padding-top:12pt;border-top:1px solid #eee;margin-top:auto}.docx-body{line-height:1.5;color:#000}.docx-p{margin:0;min-height:1em}.docx-run{white-space:pre-wrap;overflow-wrap:break-word}.docx-superscript{vertical-align:super;font-size:.75em;line-height:0}.docx-subscript{vertical-align:sub;font-size:.75em;line-height:0}.docx-dstrike{text-decoration:line-through;text-decoration-style:double}.docx-symbol{display:inline}.docx-underline-single{text-decoration:underline;text-decoration-style:solid}.docx-underline-words{text-decoration:underline;text-decoration-skip-ink:none}.docx-underline-double{text-decoration:underline;text-decoration-style:double}.docx-underline-thick{text-decoration:underline;text-decoration-style:solid;text-decoration-thickness:2px}.docx-underline-dotted{text-decoration:underline;text-decoration-style:dotted}.docx-underline-dottedHeavy{text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:2px}.docx-underline-dash{text-decoration:underline;text-decoration-style:dashed}.docx-underline-dashedHeavy{text-decoration:underline;text-decoration-style:dashed;text-decoration-thickness:2px}.docx-underline-dashLong{text-decoration:underline;text-decoration-style:dashed}.docx-underline-dashLongHeavy{text-decoration:underline;text-decoration-style:dashed;text-decoration-thickness:2px}.docx-underline-dotDash{text-decoration:none;border-bottom:1px dashed currentColor;background-image:linear-gradient(90deg,currentColor 1px,transparent 1px);background-size:4px 1px;background-repeat:repeat-x;background-position:0 100%}.docx-underline-dashDotHeavy{text-decoration:none;border-bottom:2px dashed currentColor}.docx-underline-dotDotDash{text-decoration:none;border-bottom:1px dotted currentColor}.docx-underline-dashDotDotHeavy{text-decoration:none;border-bottom:2px dotted currentColor}.docx-underline-wave{text-decoration:underline;text-decoration-style:wavy}.docx-underline-wavyHeavy{text-decoration:underline;text-decoration-style:wavy;text-decoration-thickness:2px}.docx-underline-wavyDouble{text-decoration:underline;text-decoration-style:wavy;position:relative}.docx-underline-wavyDouble:after{content:"";position:absolute;left:0;right:0;bottom:-3px;border-bottom:1px wavy currentColor;text-decoration:underline wavy}.docx-tab{display:inline-block;min-width:36pt}.docx-list-item{display:flex;align-items:baseline}.docx-numbering-wrapper{display:inline-block;flex-shrink:0;min-width:24pt;text-align:right;margin-right:6pt}.docx-numbering{white-space:nowrap}.docx-numbering-suffix{display:inline-block}.docx-highlight{
|
|
1
|
+
.docx-container{width:100%;height:100%;overflow:hidden;background-color:#525659;font-family:Segoe UI,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}.docx-wrapper{position:relative;width:100%;height:100%;overflow:auto;padding:30px;display:flex;flex-direction:column;align-items:center;gap:30px}.docx-page{background:#fff;box-shadow:0 0 10px #00000080;box-sizing:border-box;display:flex;flex-direction:column;position:relative;overflow:hidden;flex-shrink:0;width:595.3pt;min-height:841.9pt;padding:72pt 90pt}.docx-section-content{flex:1;z-index:1}.docx-header,.docx-footer{z-index:1;color:#666;font-size:10pt}.docx-header{padding-bottom:12pt;border-bottom:1px solid #eee;margin-bottom:12pt}.docx-footer{padding-top:12pt;border-top:1px solid #eee;margin-top:auto}.docx-body{line-height:1.5;color:#000}.docx-p{margin:0;min-height:1em}.docx-run{white-space:pre-wrap;overflow-wrap:break-word}.docx-superscript{vertical-align:super;font-size:.75em;line-height:0}.docx-subscript{vertical-align:sub;font-size:.75em;line-height:0}.docx-dstrike{text-decoration:line-through;text-decoration-style:double}.docx-symbol{display:inline}.docx-underline-single{text-decoration:underline;text-decoration-style:solid}.docx-underline-words{text-decoration:underline;text-decoration-skip-ink:none}.docx-underline-double{text-decoration:underline;text-decoration-style:double}.docx-underline-thick{text-decoration:underline;text-decoration-style:solid;text-decoration-thickness:2px}.docx-underline-dotted{text-decoration:underline;text-decoration-style:dotted}.docx-underline-dottedHeavy{text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:2px}.docx-underline-dash{text-decoration:underline;text-decoration-style:dashed}.docx-underline-dashedHeavy{text-decoration:underline;text-decoration-style:dashed;text-decoration-thickness:2px}.docx-underline-dashLong{text-decoration:underline;text-decoration-style:dashed}.docx-underline-dashLongHeavy{text-decoration:underline;text-decoration-style:dashed;text-decoration-thickness:2px}.docx-underline-dotDash{text-decoration:none;border-bottom:1px dashed currentColor;background-image:linear-gradient(90deg,currentColor 1px,transparent 1px);background-size:4px 1px;background-repeat:repeat-x;background-position:0 100%}.docx-underline-dashDotHeavy{text-decoration:none;border-bottom:2px dashed currentColor}.docx-underline-dotDotDash{text-decoration:none;border-bottom:1px dotted currentColor}.docx-underline-dashDotDotHeavy{text-decoration:none;border-bottom:2px dotted currentColor}.docx-underline-wave{text-decoration:underline;text-decoration-style:wavy}.docx-underline-wavyHeavy{text-decoration:underline;text-decoration-style:wavy;text-decoration-thickness:2px}.docx-underline-wavyDouble{text-decoration:underline;text-decoration-style:wavy;position:relative}.docx-underline-wavyDouble:after{content:"";position:absolute;left:0;right:0;bottom:-3px;border-bottom:1px wavy currentColor;text-decoration:underline wavy}.docx-tab{display:inline-block;min-width:36pt}.docx-list-item{display:flex;align-items:baseline}.docx-numbering-wrapper{display:inline-block;flex-shrink:0;min-width:24pt;text-align:right;margin-right:6pt}.docx-numbering{white-space:nowrap}.docx-numbering-suffix{display:inline-block}.docx-highlight{border-bottom:2px solid #3b82f6!important;cursor:pointer;text-decoration:none;display:inline;padding-bottom:1px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.docx-highlight:hover{border-bottom-color:#2563eb!important}.docx-highlight--active{border-bottom-color:#1d4ed8!important;border-bottom-width:3px!important}.docx-comments-layer{position:fixed;top:0;bottom:0;width:220px;z-index:1000;pointer-events:none}.docx-comment-bubble{pointer-events:auto}.docx-comment-bubble{position:relative;width:100%;background:#fffbeb;border:1px solid #fcd34d;border-left:4px solid #f59e0b;border-radius:8px;padding:12px 14px;font-size:13px;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #00000014;margin-bottom:12px}.docx-comment-bubble:hover{box-shadow:0 4px 12px #f59e0b33;transform:translate(-2px)}.docx-comment-bubble--active{background:#fef3c7;border-color:#f59e0b;box-shadow:0 4px 16px #f59e0b4d}.docx-comment-header{display:flex;align-items:center;gap:10px;margin-bottom:8px}.docx-comment-avatar{width:28px;height:28px;background:linear-gradient(135deg,#f59e0b,#d97706);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:600;flex-shrink:0}.docx-comment-meta{flex:1;min-width:0}.docx-comment-author{display:block;font-weight:600;color:#92400e;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.docx-comment-date{display:block;font-size:11px;color:#b45309;margin-top:1px}.docx-comment-content{color:#78350f;line-height:1.5;word-wrap:break-word}.docx-comment-actions{display:flex;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid #fcd34d;opacity:0;transition:opacity .2s ease}.docx-comment-bubble:hover .docx-comment-actions{opacity:1}.docx-comment-btn{display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:none;background:#fff;border-radius:4px;cursor:pointer;color:#92400e;transition:all .15s ease}.docx-comment-btn:hover{background:#fef3c7}.docx-comment-btn.delete:hover{background:#fef2f2;color:#dc2626}.docx-comment-btn.accept{color:#059669}.docx-comment-btn.accept:hover{background:#ecfdf5;color:#047857}.docx-comment-btn.reject{color:#dc2626}.docx-comment-btn.reject:hover{background:#fef2f2;color:#b91c1c}.docx-comment-ref{cursor:pointer;font-size:12px;vertical-align:super;margin-left:2px;opacity:.7;transition:opacity .2s}.docx-comment-ref:hover{opacity:1}.docx-comment-start,.docx-comment-end{display:none}.docx-table{border-collapse:collapse;margin:6pt 0;font-size:inherit;table-layout:fixed;width:100%}.docx-td{padding:4pt 6pt;vertical-align:top;word-wrap:break-word;overflow-wrap:break-word}.docx-table .docx-p{margin:0;min-height:auto}.docx-bookmark{display:inline;position:relative}.docx-link{color:#0563c1;text-decoration:underline}.docx-link:hover{color:#954f72}.docx-link[href^="#"]{cursor:pointer}.docx-image{max-width:100%;height:auto}.docx-drawing{display:inline-block}.docx-footnote-ref,.docx-endnote-ref{color:#06c;cursor:pointer;font-size:.8em;vertical-align:super;line-height:0;padding:0 2px;transition:color .2s}.docx-footnote-ref:hover,.docx-endnote-ref:hover{color:#003d99;text-decoration:underline}.docx-footnotes-section{margin-top:auto;padding-top:12pt;font-size:9pt;color:#333}.docx-footnotes-separator{border:none;border-top:1px solid #ccc;margin:0 0 8pt;width:33%}.docx-footnotes-list{margin:0;padding-left:20pt;list-style-type:decimal}.docx-footnote{margin-bottom:4pt;line-height:1.4}.docx-footnote .docx-p{display:inline;margin:0;min-height:auto}.docx-endnotes-section{background:#fff;box-shadow:0 0 10px #00000080;box-sizing:border-box;width:595.3pt;padding:40pt 90pt;margin-top:30px}.docx-endnotes-title{font-size:14pt;font-weight:700;margin:0 0 12pt;padding-bottom:8pt;border-bottom:2px solid #333}.docx-endnotes-list{margin:0;padding-left:20pt;list-style-type:decimal;font-size:10pt}.docx-endnote{margin-bottom:8pt;line-height:1.5}.docx-endnote .docx-p{display:inline;margin:0;min-height:auto}.docx-page-break{height:40px;border-bottom:2px dashed #ccc;margin:20px 0;position:relative}.docx-page-break:after{content:"分页";position:absolute;left:50%;bottom:-10px;transform:translate(-50%);background:#fff;padding:0 12px;font-size:12px;color:#999}.docx-column-break{display:block;break-after:column}.docx-lines{position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:999}.docx-wrapper::-webkit-scrollbar{width:12px;height:12px}.docx-wrapper::-webkit-scrollbar-track{background:#3d3d3d}.docx-wrapper::-webkit-scrollbar-thumb{background:#666;border-radius:6px}.docx-wrapper::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 900px){.docx-wrapper{padding:16px}.docx-page{width:100%;min-height:auto;padding:40px 30px}.docx-comments-layer,.docx-lines{display:none}}@media print{.docx-container{background:#fff}.docx-wrapper{padding:0;overflow:visible;display:block;background:#fff}.docx-page{box-shadow:none;margin:0;page-break-after:always;width:100%;min-height:100vh}.docx-page:last-child{page-break-after:auto}.docx-comments-layer{display:none}.docx-highlight{border-bottom:1px solid #666}.docx-lines,.docx-page-break{display:none}}
|