Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#22381 closed Cleanup/optimization (worksforme)

small improvement of css media="print"

Reported by: zio.pietro.53@… Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords: css
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hello,

can you, please, adjust a bit css for printing documentation? Right navigation column
isn't printed (it's OK, I think nobody has clickable paper) but of this one remains
on paper solid painted empty column (width 13mm). Looks ugly (especially on b/w printing)
and it's vaste of ink/toner and space. Thanks

I think this little problem isn't version dependent.

Regards
Pietro

Attachments (2)

pg_one.pdf (47.6 KB ) - added by zio.pietro.53@… 10 years ago.
sample page for css media="print"
djangodocs.pdf (51.2 KB ) - added by Claude Paroz 10 years ago.
Printed with Firefox 28 on Linux

Download all attachments as: .zip

Change History (6)

by zio.pietro.53@…, 10 years ago

Attachment: pg_one.pdf added

sample page for css media="print"

by Claude Paroz, 10 years ago

Attachment: djangodocs.pdf added

Printed with Firefox 28 on Linux

comment:1 by Claude Paroz, 10 years ago

Resolution: worksforme
Status: newclosed

I'm unable to reproduce, so it may depend on the browser. If you find a way to avoid your issue with your browser, reopen with a patch.

in reply to:  1 comment:2 by anonymous, 10 years ago

Replying to claudep:

I'm unable to reproduce, so it may depend on the browser. If you find a way to avoid your issue with your browser, reopen with a patch.

You are right. I'm, sorry for non mentioned browser. The guilty are Opera/9.80 (X11; Linux i686) Presto/2.12.388 Version/12.16 and Opera for Windows 7 (unknown version, it's so buggy that refuses show About popup).

With Mozilla Firefox 28.0 for Ubuntu and for Win 7 all work fine, so Safari on MaC OS X and IE 11 for Win 7. (Have no other browsers and OSes)

But adding "#sidebar" to /* Hide unneccessary content */ block of print.css solved quickly problem on Opera.

comment:3 by Claude Paroz, 10 years ago

If we have a fix, even if it's only for Opera, we should apply it. However, it would be nice to at least understand the problem.
"#sidebar" should not target anything, as "sidebar" is a class, not an id. Maybe ".sidebar"? And the same div is already targeted by #documentation #content-related, why isn't the div hidden by that selector?

in reply to:  3 comment:4 by zio.pietro.53@…, 10 years ago

Replying to claudep:

If we have a fix, even if it's only for Opera, we should apply it. However, it would be nice to at least understand the problem.
"#sidebar" should not target anything, as "sidebar" is a class, not an id. Maybe ".sidebar"? And the same div is already targeted by #documentation #content-related, why isn't the div hidden by that selector?

Yeah, why isn't the div hidden by that selector? Nice question. I don't know.

My solution is Q&D only. I inspected element from Opera Inspector (or how is its name) and saw that it's <div id="content-related" class="sidebar">. Not find #sidebar in /* Hide unneccessary content */ block I added it and voilà, it works!

I agree it would be nice understand why this strange behavior, but I'm not so good in Opera mysteries ;)

Verified that my modification not harm printing in another browsers, so IMHO it can be added, even we don't know perfectly what&why. If you don't like this solution (I don't like Q&D hacks too), feel free to not add it, you are maintainer (I think).

Regards
Pietro

Note: See TracTickets for help on using tickets.
Back to Top