* 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
parent
eeea100023
commit
5a6a93544f
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
----
|
||||
|
|
|
@ -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; }
|
||||
}
|
||||
|
|
|
@ -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]]
|
||||
|
|
Loading…
Reference in New Issue