Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Add print css for document list

Alexander Menk37287c3e7e21
diff --git a/src-ui/src/print.scss b/src-ui/src/print.scss
new file mode 100644
index 000000000..1b29c5100
--- /dev/null
+++ b/src-ui/src/print.scss
@@ -0,0 +1,30 @@
+@media print {
+ #sidebarMenu, .btn-toolbar {
+ display: none !important
+ }
+
+ .sticky-top {
+ display: none;
+ }
+
+ main, main.ml-sm-auto, main.mx-sm-auto {
+ margin-left: 0 !important;
+ margin-right: 0 !important;
+ }
+
+ main.col-lg-10 {
+ max-width: 100%;
+ flex-basis: 100%;
+ display: block;
+ }
+
+ .d-none.d-lg-table-cell { // always display ASN on print
+ display: table-cell !important;
+ }
+
+ app-document-list table {
+ thead th:first-child, tbody td:first-child { // hide checkboxes
+ display: none;
+ }
+ }
+}
diff --git a/src-ui/src/styles.scss b/src-ui/src/styles.scss
index 34f575a05..88f5b2665 100644
--- a/src-ui/src/styles.scss
+++ b/src-ui/src/styles.scss
@@ -1,5 +1,6 @@
@import "theme";
@import "theme_dark";
+@import "print";
@import "node_modules/bootstrap/scss/bootstrap";
@import "~@ng-select/ng-select/themes/default.theme.css";