]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Make ikiwiki's stylesheet support printing by hiding parts of the page
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 22 Mar 2007 00:02:48 +0000 (00:02 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 22 Mar 2007 00:02:48 +0000 (00:02 +0000)
  that shouldn't appear in a printout: Search box, actions bar,
  blog post form, tags, backlinks, and feed buttons.

debian/changelog
doc/sandbox.mdwn
doc/style.css
doc/todo/Print_link.mdwn

index 6026cdc0e3b602654273683ff826daa92ebe4bd6..c76efa241549bceac4bc7d7ca4be913071c32b52 100644 (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
 
index bd942a19fd6bacc0107ba8888bd9519129f5e7fd..25a099a1254295759659e88abd379982b2917c27 100644 (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.
 
 ----
index ef0cb9e5710164afb9850a3a16e0997a2ef0e84a..0fc29f9e1c7d7eff4b4272c7d07e4dbce21617e2 100644 (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; }
+}
index 24d9feee538f8485638eaf85976d3fd99466b94e..697878019c706a51e339a5a581d700dfe8ca0afa 100644 (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]]