Skip to content

Commit

Permalink
Update print page break-related declarations (#1657)
Browse files Browse the repository at this point in the history
Webkit browsers have supported break- properties for a good while.
  • Loading branch information
DavidOliver authored Feb 1, 2023
1 parent 1abf7ec commit 2d14453
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion assets/css/content/cheatsheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
min-width: 300px;
margin: 0 0 calc(var(--vertical-space) * 2) 0;
break-inside: avoid;
-webkit-column-break-inside: avoid;
}

.page-cheatmd h3::after {
Expand Down
6 changes: 2 additions & 4 deletions assets/css/print-cheatsheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
}

.page-cheatmd section.h2 {
page-break-inside: avoid;
break-inside: avoid;
}

/* h3 */
Expand All @@ -102,8 +102,6 @@
min-width: 300px;
margin: 0 0 .75em 0;
break-inside: avoid;
page-break-inside: avoid;
-webkit-column-break-inside: avoid;
}

/* h4 */
Expand Down Expand Up @@ -155,7 +153,7 @@
border-collapse: collapse;
margin: 0;
font-variant-numeric: tabular-nums;
page-break-inside: avoid;
break-inside: avoid;
}

.page-cheatmd th,
Expand Down
3 changes: 1 addition & 2 deletions assets/css/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

.summary-row {
page-break-inside: avoid;
break-inside: avoid;
}

#toast {
Expand Down Expand Up @@ -56,7 +56,6 @@
.content-inner pre code.makeup {
border-color: var(--gray300);
white-space: break-spaces;
page-break-inside: avoid;
break-inside: avoid;
}

Expand Down

0 comments on commit 2d14453

Please sign in to comment.