fix: skalér CV til 1 side ved PDF print
All checks were successful
Build and Deploy Erika CV / build-and-deploy (push) Successful in 39s
All checks were successful
Build and Deploy Erika CV / build-and-deploy (push) Successful in 39s
This commit is contained in:
@@ -381,8 +381,22 @@
|
|||||||
|
|
||||||
/* Print */
|
/* Print */
|
||||||
@media print {
|
@media print {
|
||||||
body { background: white; padding: 0; }
|
@page { size: A4; margin: 0; }
|
||||||
.cv-wrapper { box-shadow: none; border-radius: 0; max-width: 100%; }
|
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; }
|
.sidebar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
|
||||||
.pdf-btn { display: none; }
|
.pdf-btn { display: none; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user