Improve print styles: add page margins and prevent awkward breaks
This commit is contained in:
parent
22a3b8d00f
commit
72d2d67842
13
pages/cv.vue
13
pages/cv.vue
|
|
@ -373,6 +373,10 @@ a {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
|
@page {
|
||||||
|
margin: 15mm;
|
||||||
|
}
|
||||||
|
|
||||||
.cv-container {
|
.cv-container {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 15mm;
|
padding: 15mm;
|
||||||
|
|
@ -395,6 +399,13 @@ a {
|
||||||
.cv-section h4 {
|
.cv-section h4 {
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
border-bottom: 1pt solid #999;
|
border-bottom: 1pt solid #999;
|
||||||
|
break-after: avoid;
|
||||||
|
page-break-after: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
break-inside: avoid;
|
||||||
|
page-break-inside: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-title {
|
.item-title {
|
||||||
|
|
@ -409,6 +420,8 @@ a {
|
||||||
|
|
||||||
.year-header {
|
.year-header {
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
|
break-after: avoid;
|
||||||
|
page-break-after: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,10 @@ hr {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
|
@page {
|
||||||
|
margin: 15mm;
|
||||||
|
}
|
||||||
|
|
||||||
.cv-container {
|
.cv-container {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 15mm;
|
padding: 15mm;
|
||||||
|
|
@ -205,6 +209,13 @@ hr {
|
||||||
.cv-section h4 {
|
.cv-section h4 {
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
border-bottom: 1pt solid #999;
|
border-bottom: 1pt solid #999;
|
||||||
|
break-after: avoid;
|
||||||
|
page-break-after: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.work-entry {
|
||||||
|
break-inside: avoid;
|
||||||
|
page-break-inside: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.work-title {
|
.work-title {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue