Indefero

Issue 713: Provide a designated print.css for wiki and other areas

Reported by Nikolaus Schaller, Jul 6, 2011

If I open a documentation page ("Wiki") and want to print 
it, much space is wasted by the "Created, Updated, Old 
Revisions" list on the left side. Approx. 40%.

There should be some "Printable Version" option (Icon) 
that reloads the page and shows the headline & contents w/o 
navigation (and TOC).

Comment 1 by Thomas Keller, Jul 6, 2011

The printable version button is actually not needed - we just need 
to provide print-specific rules, either via

@media print ... {
}

or (better) by a separate print style sheet. Both are picked up 
automatically by modern browsers when they render a page for printer 
output.

This stylesheet could then also remove / replace the colorful 
navigation area, which would otherwise still have to be printed and 
fix a couple of other nuisances.
Labels: Type:Enhancement Type:Defect
Status: Accepted
Summary: Provide a designated print.css for wiki and other areas

Comment 2 by Nikolaus Schaller, Jul 7, 2011

Well, sometimes I would like to preview in the browser what I would 
get *before* printing. Some browsers allow the user to change the 
"media" attribute on the fly but not all.

So an option could be to have an additional "Print 
Preview" button which simply outputs the HTML that loads 
print.css instead of screen.css.

And, the standard screen.css can include some

@media print { @import url("print.css") }

so that it always switches when being printed.

Comment 3 by William Martin, Oct 4, 2011

Wiki page have now a css for printer output

commit 15d4d1aa7d3c5772247109e594d94a5314d1713a
Labels: Milestone:Release1.2
Status: Fixed
Owner: wysman

Comment 4 by Batist Leman, Dec 1, 2011

I might have an old version, but I think it needs to be:

hd, #ft, .context {
    display: none;
}

instead of
 
hd, #ft, #context {
    display: none;
}

so "context" is a class in my version instead of an id.

Thanks for the commit btw, works like a charm.

Created: 1 year 10 months ago by Nikolaus Schaller

Updated: 1 year 5 months ago

Status: Fixed

Owner: William Martin

Followed by: 3 persons

Labels:
Priority:Medium
Type:Enhancement
Milestone:Release1.2