Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use default styles in pdf.less #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pdf.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ Styles used in PDFs by the DW2PDF plugin (in addition to all.css, and
the DW2PDF plugin also includes style.css via the 'usestyles' option)
********************************************************************/

.dokuwiki {

@import 'style.less';
@import 'print_or_pdf.less';

.dokuwiki {

/*____________ only print ____________*/
/* due to including style.css, these need to be overwritten again */

Expand Down
4 changes: 2 additions & 2 deletions print.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Print Styles for the Wrap Plugin (additional to all.css)
********************************************************************/

.dokuwiki {

@import 'print_or_pdf.less';

.dokuwiki {

/* boxes and notes with icons
********************************************************************/

Expand Down
6 changes: 3 additions & 3 deletions print_or_pdf.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ Styles shared between print.css and pdf.css

/*____________ pagebreak ____________*/

.wrap_pagebreak {
.dokuwiki .wrap_pagebreak {
page-break-after: always;
}

/*____________ avoid page break ____________*/
/* not yet supported by most browsers */

.wrap_nopagebreak {
.dokuwiki .wrap_nopagebreak {
page-break-inside: avoid;
}

/*____________ no print ____________*/

.wrap_noprint {
.dokuwiki .wrap_noprint {
display: none;
}