Skip to content

Commit ca49f02

Browse files
committed
fix page size
1 parent a2b8701 commit ca49f02

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

docs/style/moratab.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ body {
119119
}
120120
.content div.math {
121121
text-align: center;
122+
page-break-inside: avoid;
122123
}
123124
.content table {
124125
width: 100%;
@@ -173,6 +174,9 @@ body {
173174
display: none;
174175
}
175176
@media print {
177+
@page {
178+
margin: 15mm;
179+
}
176180
body {
177181
font-size: 20px;
178182
color: #000;

docs/style/moratab.less

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ body {
133133
}
134134
div.math {
135135
text-align: center;
136+
page-break-inside: avoid;
136137
}
137138

138139
// table
@@ -192,6 +193,10 @@ body {
192193
}
193194

194195
@media print {
196+
@page {
197+
margin: 15mm;
198+
}
199+
195200
body {
196201
font-size: 20px;
197202
color: #000;
@@ -243,8 +248,8 @@ body {
243248
}
244249

245250
tr {
246-
page-break-inside:avoid;
247-
page-break-after:auto;
251+
page-break-inside: avoid;
252+
page-break-after: auto;
248253
}
249254
}
250255

0 commit comments

Comments
 (0)