Skip to content

Commit

Permalink
Prevent page breaks in the middle of a license.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ned Zimmerman committed Aug 18, 2017
1 parent 69b11fd commit 0d47d9d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/book/styles/components/pages/_back-matter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ div.index {
font-size: $section-license-font-size;
font-style: $section-license-font-style;
margin-top: $section-license-margin-top;
page-break-inside: avoid;
}

img {
Expand Down
1 change: 1 addition & 0 deletions assets/book/styles/components/pages/_chapters.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
font-size: $section-license-font-size;
font-style: $section-license-font-style;
margin-top: $section-license-margin-top;
page-break-inside: avoid;
}

img {
Expand Down
1 change: 1 addition & 0 deletions assets/book/styles/components/pages/_front-matter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ div.epigraph {
font-size: $section-license-font-size;
font-style: $section-license-font-style;
margin-top: $section-license-margin-top;
page-break-inside: avoid;
}

img {
Expand Down
1 change: 1 addition & 0 deletions assets/legacy/styles/_epub-house-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ div.sidebar {
font-size: 0.8em;
font-style: italic;
margin-top: 2em;
page-break-inside: avoid;
}

.license-attribution img {
Expand Down
1 change: 1 addition & 0 deletions assets/legacy/styles/_pdf-house-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,7 @@ div.sidebar p + p {
font-size: 0.8em;
font-style: italic;
margin-top: 2em;
page-break-inside: avoid;
}

.license-attribution img {
Expand Down

0 comments on commit 0d47d9d

Please sign in to comment.