From 80bdbfda624076a04964ba0a20992d0118302e4c Mon Sep 17 00:00:00 2001 From: Romain Estievenart Date: Wed, 22 Apr 2020 09:45:52 +0000 Subject: [PATCH 1/3] [IMP] hr_attendance: uniformize barcode screen UI The main goal of this commit is to apply the same style used by event_barcode. Task ID: 2210396 --- .../static/src/scss/hr_attendance.scss | 31 +++++++++++++++---- .../static/src/xml/attendance.xml | 16 +++++----- 2 files changed, 33 insertions(+), 14 deletions(-) diff --git a/addons/hr_attendance/static/src/scss/hr_attendance.scss b/addons/hr_attendance/static/src/scss/hr_attendance.scss index 986197a82f4..193d8b40e35 100644 --- a/addons/hr_attendance/static/src/scss/hr_attendance.scss +++ b/addons/hr_attendance/static/src/scss/hr_attendance.scss @@ -53,11 +53,35 @@ text-align: center; position: relative; background-color: fade-out(white, 0.1); + &.o_barcode_main { + font-family: 'Lato', sans-serif; + width: 100%; + text-align: center; + background-color: #fff; + padding: 3em; + img { + width: 115px; + height: 60px; + } + .o_hr_attendance_kiosk_welcome_row img { + max-width: inherit; + } + @include media-breakpoint-down(sm) { + h2 { + margin-left: -10px; + margin-right: -10px; + } + } + } @include media-breakpoint-down(sm) { overflow: hidden; padding: 0 2em 2em; flex: 1 0 auto; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; } @include media-breakpoint-up(md) { @@ -75,11 +99,6 @@ display: flex; align-items: center; } - @include media-breakpoint-down(md) { - > div { - margin-bottom: 20px; - } - } img { max-width: 80px; @@ -187,7 +206,7 @@ img.o_hr_attendance_kiosk_company_image { overflow:hidden; // prevent margins colapsing with h1 - margin: 1rem 0 4rem; + margin: 1rem 0 2rem; width: 200px; } diff --git a/addons/hr_attendance/static/src/xml/attendance.xml b/addons/hr_attendance/static/src/xml/attendance.xml index 429f06249f5..90c4d985a71 100644 --- a/addons/hr_attendance/static/src/xml/attendance.xml +++ b/addons/hr_attendance/static/src/xml/attendance.xml @@ -9,20 +9,20 @@
-
-

Welcome to

+
+

Welcome to

Company Logo
-
+
-
Scan your badge
+
Scan your badge
-
-

or

+
+

or

-
+
From ccc243823eb0936220022208b5a9e0499f52bd7c Mon Sep 17 00:00:00 2001 From: Romain Estievenart Date: Fri, 24 Apr 2020 07:05:48 +0000 Subject: [PATCH 2/3] [IMP] pos_hr: uniformize barcode screen UI The main goal of this commit is to apply the same style used by event_barcode Task ID: 2210396 --- addons/pos_hr/static/src/css/pos.css | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/addons/pos_hr/static/src/css/pos.css b/addons/pos_hr/static/src/css/pos.css index aa0bae46af6..6117d89b7b4 100644 --- a/addons/pos_hr/static/src/css/pos.css +++ b/addons/pos_hr/static/src/css/pos.css @@ -43,6 +43,8 @@ font-size: larger; } .pos .login-body{ + display: flex; + justify-content: center; height:37%; } @@ -80,6 +82,43 @@ color: #555555; border-radius: 5px; } +@media screen and (max-width: 576px) { + .pos .screen-login { + font-family: 'Lato', sans-serif; + width: 100%; + height: 100%; + text-align: center; + background-color: #fff; + overflow: hidden; + } + .pos .login-body { + flex-direction: column; + align-items: center; + } + .pos .login-button { + color: #fff; + background-color: #00A09D; + border-color: #00A09D; + height: 38px; + } + .pos .popups .popup-selection { + width: 90%; + left: initial; + right: initial; + } + .pos .login-barcode-text { + color: #adb5bd; + margin-top: 8px; + margin-bottom: 0; + font-size: 15px; + font-weight: 400; + line-height: 1.2; + } + .pos .login-element .o_barcode_mobile_container .o_mobile_barcode { + top:0; + height: 55px; + } +} .pos .pos-rightheader .header-button.lock-button { font-size: 20px; From bd09d2acfb2f7d01afe9e04d05555fae14943e92 Mon Sep 17 00:00:00 2001 From: Romain Estievenart Date: Mon, 29 Jun 2020 09:16:27 +0000 Subject: [PATCH 3/3] [IMP] hr_attendance, barcodes: extract barcode.png to barcodes It's now possible to use this image in all modules that depend on barcodes. Task ID: 2210396 --- .../static/src => barcodes/static}/img/barcode.png | Bin addons/hr_attendance/static/src/xml/attendance.xml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename addons/{hr_attendance/static/src => barcodes/static}/img/barcode.png (100%) diff --git a/addons/hr_attendance/static/src/img/barcode.png b/addons/barcodes/static/img/barcode.png similarity index 100% rename from addons/hr_attendance/static/src/img/barcode.png rename to addons/barcodes/static/img/barcode.png diff --git a/addons/hr_attendance/static/src/xml/attendance.xml b/addons/hr_attendance/static/src/xml/attendance.xml index 90c4d985a71..4ad3b4353ac 100644 --- a/addons/hr_attendance/static/src/xml/attendance.xml +++ b/addons/hr_attendance/static/src/xml/attendance.xml @@ -14,7 +14,7 @@ Company Logo
- +
Scan your badge