Skip to content

Commit

Permalink
[nlb] Fix empty sections
Browse files Browse the repository at this point in the history
  • Loading branch information
bertfrees authored and josteinaj committed Mar 3, 2017
1 parent 4d57cf2 commit e5701c2
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions modules/nlb/book-to-pef/src/main/resources/css/nlb-default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,25 @@ head {
}

level1,
frontmatter, *[epub|type~='frontmatter'], bodymatter, *[epub|type~='bodymatter'], rearmatter, *[epub|type~='backmatter'] {
bodymatter, *[epub|type~='bodymatter'], rearmatter, *[epub|type~='backmatter'] {
display: block;
}

frontmatter, *[epub|type~='frontmatter'] {
display: none;
&:has(> *:not(doctitle,
h1[epub|type~='fulltitle'],
h1[epub|type~='z3998:covertitle'],
docauthor,
h1[epub|type~='z3998:author'],
.first-page,
.second-page,
.third-page,
.titlepage)) {
display: block;
}
}

blockquote, sidebar, aside[epub|type~='sidebar'], epigraph, aside[epub|type~='epigraph'], noteref, a[epub|type~='noteref'],
.Rammetekst, poem, section[epub|type~='z3998:poem'], div[epub|type~='z3998:poem'], linegroup, section.linegroup, div.linegroup, line, p.line {
display: block;
Expand Down Expand Up @@ -286,7 +301,10 @@ frontmatter, level1[epub|type~='frontmatter'] {
margin-top: 2;
text-align: center;
page-break-before: right;
border: ⠉ ⠸ ⠤ ⠇;
border-top: ⠉;
border-right: ⠸;
border-bottom: ⠤;
border-left: ⠇;
}

.precedingemptyline {
Expand Down Expand Up @@ -315,7 +333,8 @@ h1, .part h2 {
margin-right: 5;
margin-bottom: 1;
text-align: center;
border: ⠉ none;
border-top: ⠉;
border-bottom: ⠉;
}

h2, .part h3 {
Expand Down

0 comments on commit e5701c2

Please sign in to comment.