diff options
author | anarcat <anarcat@web> | 2018-10-11 14:37:15 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2018-10-11 14:37:15 -0400 |
commit | 12c72a6a5f9f9593e134cdf981c91a53a06095d5 (patch) | |
tree | 73fc12d674a0270cfafc66aee676edfd10d6b5ae /doc/todo | |
parent | 711b13d85034c90aa6ce7df40a50386b29c26325 (diff) | |
download | ikiwiki-12c72a6a5f9f9593e134cdf981c91a53a06095d5.tar ikiwiki-12c72a6a5f9f9593e134cdf981c91a53a06095d5.tar.gz |
another thing to remove from prints
Diffstat (limited to 'doc/todo')
-rw-r--r-- | doc/todo/hide_add_comment_button_in_print.mdwn | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/doc/todo/hide_add_comment_button_in_print.mdwn b/doc/todo/hide_add_comment_button_in_print.mdwn new file mode 100644 index 000000000..cbfaca888 --- /dev/null +++ b/doc/todo/hide_add_comment_button_in_print.mdwn @@ -0,0 +1,48 @@ +[[!template id=gitbranch branch=anarcat/print-no-comment author="[[anarcat]]"]] + +Print versions are often a neglected part of a style sheet, but it's +great when people can actually print your webpage and get a satisfying +result. + +This often means removing a bunch of stuff that are irrelevant for +print. Ikiwiki already does a bunch of those things in the +base stylesheet: + + /* things to hide in printouts */ + @media print { + .actions { display: none; } + .tags { display: none; } + .trails { display: none; } + .feedbutton { display: none; } + #searchform { display: none; } + .blogform, #blogform { display: none; } + #backlinks { display: none; } + } + +But I think we should remove more. In particular, the `addcomment` +button is not relevant at all for print versions. There might be more: +in my [bootstrap theme][], I also had to [remove][] the whole footer, +because it was overlapping with the page content. It's unfortunate +because it removes the copyright notice, but I don't know how else to +fix this. + +Anyways, how about [this patch][]? + + --- a/doc/style.css + +++ b/doc/style.css + @@ -286,6 +286,7 @@ div.progress-done { + #searchform { display: none; } + .blogform, #blogform { display: none; } + #backlinks { display: none; } + + .addcomment { display: none; } + } + + /* infobox template */ + +Thanks! -- [[anarcat]] + +[bootstrap theme]: https://gitlab.com/anarcat/ikiwiki-bootstrap-anarcat +[remove]: https://gitlab.com/anarcat/ikiwiki-bootstrap-anarcat/commit/94521766f4206882c44764253452ec666d90d5c1 +[this patch]: https://gitlab.com/anarcat/ikiwiki/commit/33630b561623b8dca946916b733807e9b8c97849.patch + +[[!tag patch]] |