Add custom CSS rules for printing dashboard graphs

This commit is contained in:
Alex Martzios 2021-10-21 11:26:50 +03:00
parent 71bed68e05
commit 03952ee41f
3 changed files with 28 additions and 1 deletions

View File

@ -212,7 +212,7 @@
</ng-template>
</div>
</div>
<div class="uk-margin-medium-top uk-flex">
<div class="uk-margin-medium-top uk-flex hideInfo">
<!-- Last Stats Date-->
<div class="uk-width-2-3@m uk-width-1-2">
<img src="assets/common-assets/graph.svg" style="opacity: 0.4">

26
src/assets/print.css Normal file
View File

@ -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;
}
}

View File

@ -4,3 +4,4 @@
@import "assets/common-assets/library.css";
@import "assets/dashboard-theme/main.css";
@import "assets/new.css";
@import "assets/print.css"