diff --git a/ledger_pyreport/jinja2/base.html b/ledger_pyreport/jinja2/base.html
index 69c273f..faa7055 100644
--- a/ledger_pyreport/jinja2/base.html
+++ b/ledger_pyreport/jinja2/base.html
@@ -23,6 +23,7 @@
{% block title %}{% endblock %}
+
{% block body %}{% endblock %}
diff --git a/ledger_pyreport/static/main.css b/ledger_pyreport/static/main.css
index 867ff0f..e94b2ab 100644
--- a/ledger_pyreport/static/main.css
+++ b/ledger_pyreport/static/main.css
@@ -18,6 +18,7 @@
body {
font-family: 'TeX Gyre Termes', 'Nimbus Roman', 'Times New Roman', 'Liberation Serif', Times, serif;
+ padding: 2em;
}
/* Tables */
@@ -121,12 +122,6 @@ label {
transition: opacity 0s;
}
-@media screen {
- body {
- padding: 2em;
- }
-}
-
@media print {
.nav-header {
display: none;
diff --git a/ledger_pyreport/static/print.css b/ledger_pyreport/static/print.css
new file mode 100644
index 0000000..a41311f
--- /dev/null
+++ b/ledger_pyreport/static/print.css
@@ -0,0 +1,25 @@
+/*
+ ledger-pyreport
+ Copyright © 2020 Lee Yingtong Li (RunasSudo)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
+body {
+ padding: initial;
+}
+
+.nav-header {
+ display: none;
+}