diff options
-rw-r--r-- | print.scss | 26 | ||||
-rw-r--r-- | src/views/Template.class.php | 2 |
2 files changed, 27 insertions, 1 deletions
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'); |