Skip to content

Commit

Permalink
Page break classes for print
Browse files Browse the repository at this point in the history
Doesn't work in Webkit browsers (Safari, Chrome) -
https://bugs.webkit.org/show_bug.cgi?id=5097
  • Loading branch information
Gabriel Vautour committed Mar 6, 2013
1 parent ffcc1fa commit 18804fd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/base/sass/_default-print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,16 @@ a {

#wb-main, #wb-sec, #wb-sup {
min-height: 0 !important;
}

.page-break-before {
display: block;
page-break-before: always;
page-break-inside: avoid;
}

.page-break-after {
display: block;
page-break-after: always;
page-break-inside: avoid;
}

1 comment on commit 18804fd

@pjackson28
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it can be found here: https://github.com/wet-boew/wet-boew/blob/master/src/base/sass/_default-print.scss#L68-L81. Note that it looks a little different because of the placeholder/extends.

Please sign in to comment.