* 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.
master
joey 2007-03-22 00:02:48 +00:00
parent eeea100023
commit 5a6a93544f
4 changed files with 16 additions and 3 deletions

5
debian/changelog vendored
View File

@ -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 <joeyh@debian.org> Wed, 21 Mar 2007 16:58:00 -0400
-- Joey Hess <joeyh@debian.org> Wed, 21 Mar 2007 19:46:32 -0400
ikiwiki (1.47) unstable; urgency=low

View File

@ -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.
----

View File

@ -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; }
}

View File

@ -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]]