aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-22 00:02:48 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-22 00:02:48 +0000
commit5a6a93544f84305796fbc593226d3427e5abc90f (patch)
tree87aebcc834cd67e0dd2081de00cb3c5c71daafcd
parenteeea1000233a352f1a3bee3122b37e2d9fafe0e0 (diff)
downloadikiwiki-5a6a93544f84305796fbc593226d3427e5abc90f.tar
ikiwiki-5a6a93544f84305796fbc593226d3427e5abc90f.tar.gz
* 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.
-rw-r--r--debian/changelog5
-rw-r--r--doc/sandbox.mdwn2
-rw-r--r--doc/style.css10
-rw-r--r--doc/todo/Print_link.mdwn2
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 <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
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]]