#22381 closed Cleanup/optimization (worksforme)
small improvement of css media="print"
Reported by: | 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)
Change History (6)
by , 11 years ago
Attachment: | pg_one.pdf added |
---|
follow-up: 2 comment:1 by , 11 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
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.
comment:2 by , 11 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.
follow-up: 4 comment:3 by , 11 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?
comment:4 by , 11 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
sample page for css media="print"