question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Point me in the right direction: adding media print support

See original GitHub issue

I want to use print js and i want it to detect and use my @media print{} style block. point me in the right direction for adding this support, so i can get a PR open and merged and hopefully you can crank out a new version asap. i need this bad, so bad i will do the PR myself. just need a bit of a push in the right direction. i’m not super familiar with typescript but i did work on a few angular2/4 projects so i know enough to probably get it done.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
r3wtcommented, May 17, 2018

@crabbly First, i’d like to thank the crabbly team for their work on this matter. Second, i’d like to think the author of the PR, @zikkAbdelaziz . Thank you Zakaria. Thank you Crabbly Team. I got busy and ended up just bailing on the PR in favor of the path of least resistance, which was just rolling my own using @media print and window.print(). In the future, i’ll probably take a look at migrating to this library if it makes sense. Thank you all again for your hard work, i appreciate it, and i’m sure there will be others that will come along to appreciate your hard work as well. Have a blessed day. Garrett

2reactions
zikkcommented, May 17, 2018

@r3wt You’re welcome @crabbly Check out #168

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Create Printer-friendly Pages with CSS - SitePoint
In Chrome, open the Developer Tools and select More Tools, then Rendering from the three-dot icon menu at the top right. Change the...
Read more >
A Complete Guide to CSS Media Queries
CSS Media queries are a way to target browser by certain characteristics, features, and user preferences, then apply styles based on those ...
Read more >
media - CSS: Cascading Style Sheets - MDN Web Docs
The @media CSS at-rule can be used to apply part of a style sheet based on the result of one or more media...
Read more >
Tips for working with images in Publisher - Microsoft Support
What do you want to do? · Enhance your message with pictures · Use the right size picture for the medium · Reduce...
Read more >
CSS: The Perfect Print Stylesheet | The Jotform Blog
Creating the Optimal Print Stylesheet. All CSS settings go between the opening and the closing bracket.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found