Closed mhulse closed 11 years ago
So far, going to mix this:
https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css#L230-L300
... and this:
http://code.google.com/p/hartija/source/browse/trunk/print.css
... and then massage from there.
After seeing the results of the my current print stylesheet on the live site, I can say that the print styles are going to need some more massaging.
Patch: Using PrintFriendly on story pages and removed my first attempt at a print style sheet.
Back to drawing board.
Some resources:
Need to determine best way to handle @media print {}
and @media other {}
media queries. Currently, with the print styles removed, the mobile version of the site is what gets printed.
Contemplating removing all of the media screen and
bits from all media queries.
I need to test how all styles (desktop styles) affect the printed product. Is it best to override those styles in the print styles, or try to start from scratch. After my last attempt, I'm going to remove the media restrictions (screen and
) from the media queries and go from there (this will allow the desktop styles to get printed).
On one hand, I like the thought of starting from a clean slate (using browser defaults) for the printed page, but I just don't see how that's possible with the current "mobile-first" media query setup (the mobile styles are out in the open).
If nothing else, I need to add more display: none;
elements to this list:
Doing so would fix the problems Tyler was having with our story pages.
Here's the final solution:
This solution will allow for someone to print what they "see" (as a desktop view) on any of our pages, and the Printfriendly script will allow someone to print a printer-friendly version of a story if they so choose.
:+1:
Ahhh, there's a "pro" version:
http://www.printfriendly.com/pro
We should consider paying for it.
$4 monthly or $40 yearly(save 17%)
Need to determine best way to handle @media print {} and @media other {} media queries. Currently, with the print styles removed, the mobile version of the site is what gets printed.
Respond.js might not work with just @media {}
blocks. Need to do @media all and {}
. That issue is a couple years old, so maybe the code has been updated to work without the all
bit?
We've bought a 1 year PrintFriendly subscription. Also, I've discovered that it's going to be next to impossible to get our current adaptive setup to print out desktop view on 8.5" x 11" page. From what I've tested, the print dimensions utilize MQ sizes and the "tablet" size (for example) prints out onto page because that's what fits. I don't think there's an elegant workaround.
I still need to change my MQs to @media all and
or just @media
.
For now, PrintFriendly alleviates some of the urgency in having a perfectly crafted print stylesheet asap.
Closing.
Partially done. Might need to re-work media queries and approach to CSS linking to keep screen sheets separate from print.