Skip to content

Commit 2d14453

Browse files
authored
Update print page break-related declarations (#1657)
Webkit browsers have supported break- properties for a good while.
1 parent 1abf7ec commit 2d14453

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

assets/css/content/cheatsheet.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
min-width: 300px;
5252
margin: 0 0 calc(var(--vertical-space) * 2) 0;
5353
break-inside: avoid;
54-
-webkit-column-break-inside: avoid;
5554
}
5655

5756
.page-cheatmd h3::after {

assets/css/print-cheatsheet.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}
8383

8484
.page-cheatmd section.h2 {
85-
page-break-inside: avoid;
85+
break-inside: avoid;
8686
}
8787

8888
/* h3 */
@@ -102,8 +102,6 @@
102102
min-width: 300px;
103103
margin: 0 0 .75em 0;
104104
break-inside: avoid;
105-
page-break-inside: avoid;
106-
-webkit-column-break-inside: avoid;
107105
}
108106

109107
/* h4 */
@@ -155,7 +153,7 @@
155153
border-collapse: collapse;
156154
margin: 0;
157155
font-variant-numeric: tabular-nums;
158-
page-break-inside: avoid;
156+
break-inside: avoid;
159157
}
160158

161159
.page-cheatmd th,

assets/css/print.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
.summary-row {
19-
page-break-inside: avoid;
19+
break-inside: avoid;
2020
}
2121

2222
#toast {
@@ -56,7 +56,6 @@
5656
.content-inner pre code.makeup {
5757
border-color: var(--gray300);
5858
white-space: break-spaces;
59-
page-break-inside: avoid;
6059
break-inside: avoid;
6160
}
6261

0 commit comments

Comments
 (0)