From 45899dbb09445f67e61657d502d6db02f816487d Mon Sep 17 00:00:00 2001 From: Mohaimen Hasan Date: Mon, 23 Nov 2026 12:26:26 +0600 Subject: [PATCH] attachment design done --- .../authorized-person.component.css | 121 ++++++++++++++++++ .../authorized-person.component.html | 95 +++++++------- .../employee-payroll-profile.component.css | 25 ++++ .../employee-payroll-profile.component.html | 43 +++---- .../src/styles/theme/gohr-theme.scss | 64 +++++++++ 5 files changed, 272 insertions(+), 76 deletions(-) diff --git a/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-person/authorized-person.component.css b/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-person/authorized-person.component.css index e69de29..7c60e88 100644 --- a/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-person/authorized-person.component.css +++ b/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-person/authorized-person.component.css @@ -0,0 +1,121 @@ +/* Authorized Person dialog form — layout only; every colour comes from the GoHR palette */ +.ap-fieldset { + margin: 0; + padding: 0; + border: none; + min-width: 0; +} + +.ap-section { + padding: 16px; + margin-bottom: 14px; + background: var(--gh-tb); + border: 1px solid var(--gh-bo); + border-radius: 10px; +} + +.ap-section__title { + display: flex; + align-items: center; + gap: 8px; + margin: 0 0 14px; + padding-bottom: 10px; + border-bottom: 1px solid var(--gh-bo); + font-size: 14px; + font-weight: 700; + color: var(--gh-ht); +} + +.ap-section__title i { + color: var(--gh-lk); +} + +.ap-grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 14px 18px; +} + +.ap-field { + display: flex; + flex-direction: column; + gap: 6px; + min-width: 0; +} + +.ap-field--full { + margin-bottom: 14px; +} + +.ap-field label { + font-size: 13px; + font-weight: 600; + color: var(--gh-ht); +} + +/* Filled from the selected employee, not typed: shown as read-only */ +.ap-readonly { + background: var(--gh-pb) !important; + color: var(--gh-muted) !important; + cursor: default; +} + +.ap-attach { + display: flex; + align-items: center; + gap: 10px; +} + +.ap-attach input[type=file] { + flex: 1; + min-width: 0; +} + +.ap-attach__remove { + flex-shrink: 0; +} + +.ap-preview { + display: flex; + align-items: center; + justify-content: center; + margin-top: 12px; + min-height: 120px; + padding: 10px; + border-radius: 8px; + border: 1px solid var(--gh-bo); + background: var(--gh-pb); +} + +.ap-preview img { + display: block; + max-width: 100%; + max-height: 220px; + object-fit: contain; + border-radius: 6px; +} + +.ap-preview--empty { + border-style: dashed; +} + +.ap-preview__placeholder { + display: inline-flex; + align-items: center; + gap: 8px; + font-size: 13px; + color: var(--gh-muted); +} + +.ap-actions { + display: flex; + justify-content: flex-end; + gap: 8px; + padding-top: 4px; +} + +@media (max-width: 640px) { + .ap-grid { + grid-template-columns: minmax(0, 1fr); + } +} diff --git a/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-person/authorized-person.component.html b/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-person/authorized-person.component.html index f94dcd4..305a5ee 100644 --- a/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-person/authorized-person.component.html +++ b/HRM.UI/ClientApp/src/app/adhoc-feature/authorized-persons/authorized-person/authorized-person.component.html @@ -1,62 +1,57 @@ -
-
- Authorized Person -
-
- -
-
+ + +
+
+

Person details

+ +
+
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
- +
+
+ + +
+
+ + +
+
+ + +
+
+ +
-
+
-
-
- - +
+

Attachment

+ +
+ +
+ +
+ @if (photo) { + Attachment preview + } @else { + No attachment selected + } +
+
+ +
+ +
diff --git a/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.css b/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.css index e69de29..087e095 100644 --- a/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.css +++ b/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.css @@ -0,0 +1,25 @@ +/* Left and right cards of the profile form always have the same height (layout only) */ +.epp-equal-card { + height: 100%; + align-content: flex-start; +} + +/* Eligible for OT + Attendance Location Around on one line */ +.epp-checks { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 12px 32px; + min-height: 43px; +} + +.epp-check { + display: inline-flex; + align-items: center; + gap: 8px; +} + +.epp-check label { + margin: 0; + cursor: pointer; +} diff --git a/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.html b/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.html index f3b0f0f..887a708 100644 --- a/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.html +++ b/HRM.UI/ClientApp/src/app/payroll/career-and-profile/employee-payroll-profile/employee-payroll-profile.component.html @@ -42,7 +42,7 @@
-
+
-
- -
-
- + +
+
+ +
-
- -
-
+
-
+ +
+
-
+
— with or without kendoTextBox — gets the same look: +// dashed palette border, an upload icon + "Choose file" link-style button, file name in muted text. +// Inputs that are hidden behind their own custom upload UI keep their own styling. +// The icon is drawn with gradients in var(--gh-lk), so it follows the palette (no image, no hex). +$gh-file: 'input[type=file]:not(.ack-file-input, .ait-file-input, .inv-file-input, .smu-hidden-input, .ebu-hidden-input)'; +#{$std} #{$gh-file} { + height: var(--gh-h) !important; + min-height: var(--gh-h) !important; + box-sizing: border-box; + padding: 0 var(--gh-field-px) 0 4px !important; + line-height: calc(var(--gh-h) - 2px) !important; + font-family: inherit; + font-size: 13px !important; + color: var(--gh-muted) !important; + background: var(--gh-pb) !important; + border: 1px dashed var(--gh-bo2) !important; + border-radius: var(--gh-field-r) !important; + box-shadow: none !important; + cursor: pointer; + transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s; +} +#{$std} #{$gh-file}:hover:not(:disabled) { + border-color: var(--gh-lk) !important; + background: var(--gh-th) !important; +} +#{$std} #{$gh-file}:focus, +#{$std} #{$gh-file}:focus-visible { + outline: none !important; + border-color: var(--gh-focus) !important; + box-shadow: 0 0 0 3px var(--gh-ring) !important; +} +#{$std} #{$gh-file}:disabled { + opacity: 0.6; + cursor: not-allowed; +} +#{$std} #{$gh-file}::file-selector-button { + height: calc(var(--gh-h) - 10px); + margin: 4px 10px 0 0; + padding: 0 10px 0 28px; + border: none; + border-radius: 4px; + font: inherit; + font-size: 13px; + font-weight: 600; + line-height: calc(var(--gh-h) - 10px); // after `font`, which would reset it to the input's line-height + color: var(--gh-lk); + cursor: pointer; + vertical-align: top; + background-color: transparent; + // upload icon: base bar, stem, arrow head + background-image: + linear-gradient(var(--gh-lk), var(--gh-lk)), + linear-gradient(var(--gh-lk), var(--gh-lk)), + conic-gradient(from 135deg at 50% 0, var(--gh-lk) 90deg, transparent 0); + background-size: 12px 2px, 2px 8px, 10px 5px; + background-position: 8px calc(50% + 6px), 13px calc(50% + 1px), 9px calc(50% - 4px); + background-repeat: no-repeat; + transition: background-color 0.15s; +} +#{$std} #{$gh-file}:hover:not(:disabled)::file-selector-button { + background-color: color-mix(in srgb, var(--gh-lk) 10%, transparent); +} + // ---- Compact fields inside grids (data cells and filter row) ---- #{$std} .k-grid :is(td, .k-filter-row th) :is(.k-input, .k-picker):not(.k-textarea, .k-multiselect, .k-input .k-input, .k-picker .k-input) { height: var(--gh-h-sm) !important;