aboutsummaryrefslogtreecommitdiff
path: root/themes/alps/assets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-10-30 12:53:25 -0400
committerDrew DeVault <sir@cmpwn.com>2020-10-30 12:53:25 -0400
commit6a6ea3e63b89274bc70493835f6ba68918cad580 (patch)
treef46669ec165623da406b4fce1df970c95ed0d952 /themes/alps/assets
parentcbeacf9d060fbd8c593aa3a9a73d9fe94b9ee5d1 (diff)
downloadalps-6a6ea3e63b89274bc70493835f6ba68918cad580.tar.gz
alps-6a6ea3e63b89274bc70493835f6ba68918cad580.zip
message view: add print button & stylesheet
Diffstat (limited to 'themes/alps/assets')
-rw-r--r--themes/alps/assets/print.css10
-rw-r--r--themes/alps/assets/print.js6
2 files changed, 16 insertions, 0 deletions
diff --git a/themes/alps/assets/print.css b/themes/alps/assets/print.css
new file mode 100644
index 0000000..dd23d82
--- /dev/null
+++ b/themes/alps/assets/print.css
@@ -0,0 +1,10 @@
+header,
+aside,
+.actions,
+.tabs {
+ display: none;
+}
+
+.message {
+ padding: 0;
+}
diff --git a/themes/alps/assets/print.js b/themes/alps/assets/print.js
new file mode 100644
index 0000000..c4379ad
--- /dev/null
+++ b/themes/alps/assets/print.js
@@ -0,0 +1,6 @@
+const print = document.getElementById("print");
+print.style.display = "inherit";
+print.addEventListener("click", e => {
+ e.preventDefault();
+ window.print();
+});