diff --git a/templates/index.html b/templates/index.html index 0f6fbfd..704cb54 100644 --- a/templates/index.html +++ b/templates/index.html @@ -381,8 +381,22 @@ /* Print */ @media print { - body { background: white; padding: 0; } - .cv-wrapper { box-shadow: none; border-radius: 0; max-width: 100%; } + @page { size: A4; margin: 0; } + html, body { background: white; padding: 0; margin: 0; display: block; } + body { + -webkit-print-color-adjust: exact; + print-color-adjust: exact; + } + .cv-wrapper { + box-shadow: none; + border-radius: 0; + width: 100%; + max-width: 100%; + transform-origin: top left; + transform: scale(0.78); + height: 128vh; + overflow: hidden; + } .sidebar { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .pdf-btn { display: none; } }