From ec6c5aa42796741bf0ff2db5bd59360f20120c00 Mon Sep 17 00:00:00 2001 From: "LIABEUF, Stephane (External)" Date: Mon, 18 May 2026 02:43:03 +0200 Subject: [PATCH] fix: nav padding-right to avoid burger overlap, BD progress bar blue, PDF via window.print() Co-Authored-By: Claude Sonnet 4.6 --- index.html | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 2fd8a8c..fe6e11d 100644 --- a/index.html +++ b/index.html @@ -2490,7 +2490,7 @@ z-index: 100; display: flex; align-items: center; - padding: 0 48px + padding: 0 80px 0 48px } .nav-logo { @@ -2943,7 +2943,7 @@ background: var(--progress-color, #fff); } [data-theme="cyberpunk"] #read-progress { background: #00f5ff; box-shadow: 0 0 8px #00f5ff; } - [data-theme="bd"] #read-progress { background: #FFE033; } + [data-theme="bd"] #read-progress { background: #0055cc; } [data-theme="itpro"] #read-progress { background: #1a56db; } [data-theme="cgi"] #read-progress { background: linear-gradient(to right, #E31937, #A82465, #5236AB); @@ -3407,21 +3407,7 @@ // TÉLÉCHARGEMENT PDF // ══════════════════════════════════════════════ function downloadCV() { - const script = document.createElement('script'); - script.src = 'https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js'; - script.onload = () => { - const nom = document.querySelector('.hero-name')?.textContent?.trim().replace(/\s+/g, '_') || 'CV'; - const opt = { - margin: [10, 10, 10, 10], - filename: `CV_${nom}.pdf`, - image: { type: 'jpeg', quality: 0.95 }, - html2canvas: { scale: 2, useCORS: true, logging: false }, - jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }, - pagebreak: { mode: ['avoid-all', 'css'] } - }; - html2pdf().set(opt).from(document.getElementById('app')).save(); - }; - document.head.appendChild(script); + window.print(); }