X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/76738fda2c0889cfc792374375c434ba0aa6f49c..34a9cf1a05764f3ecbf198e6040de2eb87541c9d:/doc/todo/Print_link.mdwn?ds=sidebyside diff --git a/doc/todo/Print_link.mdwn b/doc/todo/Print_link.mdwn index ee5765ced..697878019 100644 --- a/doc/todo/Print_link.mdwn +++ b/doc/todo/Print_link.mdwn @@ -53,4 +53,21 @@ for all ikiwiki pages. --Pawel >>>> ikiwiki plugins. >>>> BTW, I also was thinkig about plugin to CVS support, ->>>> but unfortunately I don't have too much free time. --Pawel \ No newline at end of file +>>>> but unfortunately I don't have too much free time. --Pawel + +>> You don't need a stylesheet-switching UI or a printer-friendly +>> version; just link to a stylesheet with `media="print"`. --[[JoshTriplett]] + +>>> Example? --[[Joey]] + +>>>> I used `meta` to add a `media="print"` stylesheet to the [[sandbox]]. In print or +>>>> print preview (on browsers supporting data URIs), you should no longer +>>>> see the search form. --[[JoshTriplett]] + +>>>>> (And I broke it, since it was a security hole ;-). So it looks like +>>>>> media=print can be +>>>>> [used inside a style sheet](http://www.w3.org/TR/REC-CSS2/media.html), +>>>>> so the thing to do would be to edit style.css to automatically disable parts +>>>>> not wanted when printing. That would rock. --[[Joey]] + +Yay! I've modified the stylesheet and this is [[done]]. --[[Joey]]