From eaabed085f9b7afcab53d793c5a8c796ad3b75f3 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 Signed-off-by: Jonathan Druart --- .../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 a698ec9bf9..1b6a2ba8ef 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -4497,3 +4497,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 %] -