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

Friendly print/pdf #247

Closed
nhatn1507 opened this issue Nov 8, 2017 · 2 comments
Closed

Friendly print/pdf #247

nhatn1507 opened this issue Nov 8, 2017 · 2 comments
Labels

Comments

@nhatn1507
Copy link

It would be awesome if users can generate each page into a pdf and print it without losing the page's great structure.

@ghost
Copy link

ghost commented Dec 2, 2017

Hello
You may inject the following CSS to the page and print it as PDF file
devHintsIo.txt

@media print {
h2 {
width: 86%;
max-width: 86%;
display: block;
}
.h3-section-list > .h3-section {
width: 86%;
max-width: 86%;
}
.h3-section-list.-three-column > .h3-section {
width: 45%;
max-width: 45%;
}
.h3-section-list > .h3-section,
.h3-section-list.-three-column > .h3-section {
page-break-inside: avoid;
box-sizing: border-box;
position: unset !important;
display: inline-block;
float: left !important;
margin-left: 20px;
}
.h2-section {
page-break-inside: avoid;
}
footer {
display: none;
}
}

@chadwithuhc
Copy link
Collaborator

Duplicate of #113

@chadwithuhc chadwithuhc marked this as a duplicate of #113 Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants