Skip to content

Commit

Permalink
fix: Prevent page break after heading
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Oct 31, 2023
1 parent 1db7bae commit 6ebc151
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions typora/torillic.css
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,22 @@ h1, h2, h3, h4, h5, h6 {
break-after: avoid;
}

/* Major headings */
/* Headings */
h1, h2, h3, h4 {
font-family: var(--head);
font-weight: 700;
font-variant: small-caps;
color: var(--red);
}
h1 + *,
h2 + *,
h3 + *,
h4 + *,
h5 + *,
h6 + * {
break-before: avoid;
}

/* Individual headings */
h1 {
font-size: 36pt;
column-span: all;
Expand Down

0 comments on commit 6ebc151

Please sign in to comment.