feat: margin and page breaks
This commit is contained in:
@ -29,7 +29,7 @@
|
|||||||
/* PRINT MODE */
|
/* PRINT MODE */
|
||||||
@media print {
|
@media print {
|
||||||
body {
|
body {
|
||||||
margin: 2cm 1.5cm 2cm 1.5cm;
|
margin: 1cm;
|
||||||
background: white;
|
background: white;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
@ -40,7 +40,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
margin-top: 0;
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
break-after: always;
|
break-after: always;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
@ -49,6 +50,28 @@
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
break-before: page;
|
||||||
|
page-break-before: always;
|
||||||
|
break-after: avoid;
|
||||||
|
page-break-after: avoid;
|
||||||
|
break-inside: avoid;
|
||||||
|
page-break-inside: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
p,
|
||||||
|
ul,
|
||||||
|
ol,
|
||||||
|
li,
|
||||||
|
pre,
|
||||||
|
blockquote,
|
||||||
|
table {
|
||||||
|
break-inside: avoid;
|
||||||
|
page-break-inside: avoid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SCREEN MODE */
|
/* SCREEN MODE */
|
||||||
|
|||||||
Reference in New Issue
Block a user