From 3082bb6f574a2945233910763f64fe14bc08e4a0 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 21 Aug 2020 14:45:28 +0100 Subject: [PATCH] Bug 26172: (follow-up) Add print option Signed-off-by: Sally --- .../prog/css/src/staff-global.scss | 33 +++++++++++++++++++ .../prog/en/modules/pos/register.tt | 19 ++++++++++- 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 57c0d58cd1..084822d6bc 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -4491,3 +4491,36 @@ div .suggestion_note { border-bottom-right-radius: 5px; } } + +@media print { + body.modalprinter * { + visibility: hidden; + } + + body.modalprinter .modal-dialog.focused { + position: absolute; + padding: 0; + margin: 0; + left: 0; + top: 0; + } + + body.modalprinter .modal-dialog.focused .modal-content { + border-width: 0; + } + + body.modalprinter .modal-dialog.focused .modal-content .modal-header .modal-title, + body.modalprinter .modal-dialog.focused .modal-content .modal-body, + body.modalprinter .modal-dialog.focused .modal-content .modal-body * { + visibility: visible; + } + + body.modalprinter .modal-dialog.focused .modal-content .modal-header, + body.modalprinter .modal-dialog.focused .modal-content .modal-body { + padding: 0; + } + + body.modalprinter .modal-dialog.focused .modal-content .modal-header .modal-title { + margin-bottom: 20px; + } +} diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt index 2c0edb3cb3..a492287c7e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt @@ -306,7 +306,7 @@ [% IF register.last_cashup %] -