From a2e66ea04f81155c9df95afc153235a8f7ad8c57 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 --- .../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 e339309288..d1a9541f55 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -4469,3 +4469,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 319043cc2b..6dbf9c03af 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt @@ -294,7 +294,7 @@ [% IF register.last_cashup %] -