Skip to content

Commit

Permalink
Fix issue where introduction counter is not reset. (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ned Zimmerman authored Oct 5, 2017
1 parent 056fe7b commit 4276247
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions assets/book/styles/components/structure/_numbering.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,26 @@ div.front-matter {
&.introduction {
page: introduction;
prince-page-group: start;
counter-reset: page 1;
}
}

div.part {
page: part;
prince-page-group: start;

&.introduction {
counter-reset: page 1;
}
}

div.chapter {
page: chapter;
prince-page-group: start;

&.introduction {
counter-reset: page 1;
}
}

div.back-matter {
Expand All @@ -67,12 +76,6 @@ div.blank-page {
prince-page-group: start;
}

// Page 1 Counter Reset

div.introduction {
counter-reset: page 1;
}

// PDF Bookmark levels

.chapter-number {
Expand Down

0 comments on commit 4276247

Please sign in to comment.