-types Html2pdf.js -
/* Inner content styles — classic academic formatting */ .paper-content padding: 2.2rem 2.5rem;
.tool-btn background: #0f172a; border: none; padding: 8px 18px; border-radius: 40px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.9rem; color: #f1f5f9; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.1);
// Reset functionality: restores original academic content const resetBtn = document.getElementById('resetPaperBtn'); if (resetBtn) resetBtn.addEventListener('click', () => const editableDiv = document.getElementById('editableContent'); if (editableDiv) editableDiv.innerHTML = originalContentHTML; // After reset, re-attach contenteditable attributes? Actually original HTML already has contenteditable="true" on elements. // But some dynamic innerHTML might lose reference? Since we set innerHTML exactly as original, all attributes remain. // Ensure that contenteditable elements are editable again (fine because original had them). // small optional: reapply any event if needed, but no extra events needed. ); -types html2pdf.js
.tool-btn.primary:hover background: #1f557c;
.paper-content .references margin-top: 2rem; font-size: 0.85rem; border-top: 1px solid #cbd5e1; padding-top: 1rem; font-family: 'Inter', sans-serif; /* Inner content styles — classic academic formatting */
/* Typography for the camera-ready PDF */ .paper-content h1 font-size: 2.3rem; font-weight: 600; letter-spacing: -0.3px; margin-top: 0.5rem; margin-bottom: 0.25rem; text-align: center; font-family: 'Cormorant Garamond', serif; border-bottom: 2px solid #cbd5e1; display: inline-block; width: 100%; padding-bottom: 0.5rem;
.paper-content .figure-caption font-size: 0.8rem; text-align: center; font-family: 'Inter', sans-serif; color: #4b5563; margin-top: 0.3rem; Since we set innerHTML exactly as original, all
.tool-btn:hover background: #2d3a5e; transform: translateY(-1px);
.paper-content .author-line text-align: center; margin: 1rem 0 0.5rem; font-size: 1rem; font-weight: 500; font-family: 'Inter', sans-serif; color: #2d3e50;
/* Toolbar styling */ .toolbar background: #1e293b; padding: 1rem 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid #334155;
.paper-content .affiliation text-align: center; font-size: 0.85rem; color: #475569; margin-bottom: 1.8rem; font-family: 'Inter', sans-serif; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.75rem;