From f1c7961ffd1da47b3d835309c7852fc2a8cf9307 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 --- .../intranet-tmpl/prog/css/src/staff-global.scss | 33 ++++++++++++++++++++++ .../intranet-tmpl/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 6ad62428ed..e2add3ec48 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -4488,3 +4488,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 %] -