-
Notifications
You must be signed in to change notification settings - Fork 185
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
CSS media queries #24
Comments
4.0.4 fixed an issue where PDF generation was broken on High Sierra when headers or footers were enabled. As far as I can see, everything else is working well on Sierra and High Sierra. Print media queries are working as intended when I export documents using built-in templates. |
The above js returns the following values in print mode:
Sorry about the print media queries, they indeed seem to work correctly for me as well. |
@mb21 You’re correct, the hidden window used for generating PDFs doesn’t match paper dimensions. Thank you for reporting this issue! We’ll fix it in the next update. |
Thanks for looking into this. btw, what is the measure for a px you are using? Are you following the CSS spec's 1px=1/96inch? |
This is fixed in iA Writer 4.1.1, the above js now returns the following when printing to A4: 596 |
@mb21 Thank you again for reporting the issue! |
Since iA Writer 4.0.4 (or possibly 4.0.3), when exporting to PDF the media queries that are responsive to the width of the document in my template are broken.
The CSS inside
@media (max-width: 590px)
used to not take effect when printing/exporting. Now I need to use the ridiculously low@media (max-width: 90px)
.What's the recommended way to do those?
@media print
doesn't seem to take effect.The text was updated successfully, but these errors were encountered: