From 9e4c1efb467014ce69886a31168b4adb3c8a8850 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 4 Oct 2011 23:28:32 -0400 Subject: Add some (S)CSS for printing. --- print.scss | 26 ++++++++++++++++++++++++++ src/views/Template.class.php | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 print.scss diff --git a/print.scss b/print.scss new file mode 100644 index 0000000..746527a --- /dev/null +++ b/print.scss @@ -0,0 +1,26 @@ +div.infobar { + display: none; +} + +fieldset { + page-break-inside: auto; + border: solid black; + border-width: 1pt 0 0 1pt; + legend { + background-color: white; + border: solid 1pt black; + } +} + +input[type="password"], input[type="submit"] { + display: none; +} +input[type="text"] { + background: transparent; + border: none; + border-bottom: solid 1pt black; +} +textarea { + border: solid 1pt black; + height: 5em; +} diff --git a/src/views/Template.class.php b/src/views/Template.class.php index 663ec05..bf57e93 100644 --- a/src/views/Template.class.php +++ b/src/views/Template.class.php @@ -138,7 +138,7 @@ class Template { $str.= $this->tag('title', array(), htmlspecialchars($title)); $str.= $this->css('style.css', 'all'); $str.= $this->css('screen.css', 'screen'); - $str.= $this->css('logo-style.css', 'screen'); + $str.= $this->css('print.css', 'print'); $str.= $this->closeTag('head'); $body_class = 'logged'.($logged_in?'in':'out'); -- cgit v1.2.3-2-g168b