summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-10-04 23:28:32 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-10-04 23:28:32 -0400
commit9e4c1efb467014ce69886a31168b4adb3c8a8850 (patch)
tree772e682b9986817847a63859e615b572cd7fa908
parent9018599b1a62b898990e3f056eb1179561c366fe (diff)
Add some (S)CSS for printing.
-rw-r--r--print.scss26
-rw-r--r--src/views/Template.class.php2
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');