Closed (fixed)
Project:
Zen
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2007 at 06:59 UTC
Updated:
11 Feb 2007 at 23:15 UTC
I would like to suggest that a print.css file be added to the zen theme.
I have attached a copy of my (very simplistic) print.css as a start.
Changes to add the CSS to the template.php or page.tpl.php will also need to be included to make this work!
Hope this helps.
Russ
| Comment | File | Size | Author |
|---|---|---|---|
| print_2.css | 782 bytes | rport |
Comments
Comment #1
jjeff commentedOoh, yeah... I like this! We should definitely have a print.css file, but how should this best be handled?
The style.css file is loaded for media="all". Should print.css just be called in with overwrites? I guess it would make most sense to do this by adding some code to template.php to call it in.
Comment #2
zirafa commentedMaybe having media="print" for print.css and media="screen" for style.css might work out well. We can just load both all the time so when somebody clicks print in their browser it uses the print.css. It would be a good example of how you can apply different CSS to different media types.
http://www.w3.org/TR/REC-CSS2/media.html
Comment #3
jjeff commentedI think we're probably better off making a screen.css file and moving a bunch of the stuff from style.css over to there. In the meantime, I've committed this print.css (with some modifications) along with the template.php code to include it on the page. Committed to the DRUPAL-5 development branch.
Comment #4
jjeff commentedComment #5
rport commentedHi jjeff
In the current print.css you have this little gem of code;
is the second squeeze necessary?
rport
Comment #6
jjeff commentedHi rport,
Ooop.. I think that's a mistake.
Comment #7
jjeff commentedfixed
Comment #8
(not verified) commented