From 5a6a93544f84305796fbc593226d3427e5abc90f Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 22 Mar 2007 00:02:48 +0000 Subject: [PATCH] * Make ikiwiki's stylesheet support printing by hiding parts of the page that shouldn't appear in a printout: Search box, actions bar, blog post form, tags, backlinks, and feed buttons. --- debian/changelog | 5 ++++- doc/sandbox.mdwn | 2 -- doc/style.css | 10 ++++++++++ doc/todo/Print_link.mdwn | 2 ++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6026cdc0e..c76efa241 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,8 +8,11 @@ ikiwiki (1.48) UNRELEASED; urgency=low * Allow link() PageSpecs to match relative, as is allowed with globs. * Add postform option to inline plugin. * Add an bug tracker to the softwaresite example. + * Make ikiwiki's stylesheet support printing by hiding parts of the page + that shouldn't appear in a printout: Search box, actions bar, + blog post form, tags, backlinks, and feed buttons. - -- Joey Hess Wed, 21 Mar 2007 16:58:00 -0400 + -- Joey Hess Wed, 21 Mar 2007 19:46:32 -0400 ikiwiki (1.47) unstable; urgency=low diff --git a/doc/sandbox.mdwn b/doc/sandbox.mdwn index bd942a19f..25a099a12 100644 --- a/doc/sandbox.mdwn +++ b/doc/sandbox.mdwn @@ -1,5 +1,3 @@ -[[meta link="data:text/css,%23searchform%20%7Bdisplay%3Anone%3B%7D" rel="stylesheet" type="text/css" media="print"]] - This is the SandBox, a page anyone can edit to try out ikiwiki. ---- diff --git a/doc/style.css b/doc/style.css index ef0cb9e57..0fc29f9e1 100644 --- a/doc/style.css +++ b/doc/style.css @@ -226,3 +226,13 @@ input#openid_url { color: #000; padding-left: 18px; } + +/* Things to hide in printouts. */ +@media print { + .actions { display: none; } + .tags { display: none; } + .feedbutton { display: none; } + #searchform { display: none; } + #blogform { display: none; } + #backlinks { display: none; } +} diff --git a/doc/todo/Print_link.mdwn b/doc/todo/Print_link.mdwn index 24d9feee5..697878019 100644 --- a/doc/todo/Print_link.mdwn +++ b/doc/todo/Print_link.mdwn @@ -69,3 +69,5 @@ for all ikiwiki pages. --Pawel >>>>> [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]] -- 2.26.2