From 03952ee41f410cbc92e9471dbd66ed2ba1c9485e Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Thu, 21 Oct 2021 11:26:50 +0300 Subject: [PATCH] Add custom CSS rules for printing dashboard graphs --- src/app/monitor/monitor.component.html | 2 +- src/assets/print.css | 26 ++++++++++++++++++++++++++ src/styles.css | 1 + 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/assets/print.css diff --git a/src/app/monitor/monitor.component.html b/src/app/monitor/monitor.component.html index a9982bd..76ef042 100644 --- a/src/app/monitor/monitor.component.html +++ b/src/app/monitor/monitor.component.html @@ -212,7 +212,7 @@ -
+
diff --git a/src/assets/print.css b/src/assets/print.css new file mode 100644 index 0000000..b96c843 --- /dev/null +++ b/src/assets/print.css @@ -0,0 +1,26 @@ +@media print { + #sidebar_main, + #page_content_header, + #tm-mobile, + .tm-header-mobile, + #notifications-switcher, + .getDataButton, + .hideInfo, + .footer-light-background { + display: none !important; + top: 0 !important; + left: 0 !important; + right: 0 !important; + padding: 0 !important; + margin: 0 !important; + } + #page_content, + .uk-navbar-center { + padding-left: 0 !important; + padding-top: 0 !important; + } + #page_content_inner { + padding: 0 !important; + margin: 0 !important; + } +} \ No newline at end of file diff --git a/src/styles.css b/src/styles.css index 6520bf3..e1dccbe 100644 --- a/src/styles.css +++ b/src/styles.css @@ -4,3 +4,4 @@ @import "assets/common-assets/library.css"; @import "assets/dashboard-theme/main.css"; @import "assets/new.css"; +@import "assets/print.css" \ No newline at end of file