From 45896f8c144e5af9fbb081caadb2dd965463ef5c Mon Sep 17 00:00:00 2001 From: MeysamMoghaddam <65253484+MeysamMoghaddam@users.noreply.github.com> Date: Mon, 13 Oct 2025 20:31:36 +0330 Subject: [PATCH] Update OrganizationChartLevel.razor.css --- .../Shared/OrganizationChartLevel.razor.css | 116 +++++++++++++----- 1 file changed, 83 insertions(+), 33 deletions(-) diff --git a/src/FrontOffice.Main/Shared/OrganizationChartLevel.razor.css b/src/FrontOffice.Main/Shared/OrganizationChartLevel.razor.css index bac6184..0c6c65a 100644 --- a/src/FrontOffice.Main/Shared/OrganizationChartLevel.razor.css +++ b/src/FrontOffice.Main/Shared/OrganizationChartLevel.razor.css @@ -1,4 +1,4 @@ -/* Organization Chart Level Styles */ +/* Organization Chart Level Styles - inherits from main chart styles */ .org-level { display: flex; justify-content: center; @@ -29,44 +29,12 @@ z-index: 1; } -/* Node styles for levels */ -.org-node.child-node { - display: inline-block; - margin: 0 15px; - vertical-align: top; -} - -.org-node.grandchild-node { - display: inline-block; - margin: 20px 10px 0; - vertical-align: top; -} - -/* Connector lines */ -.node-connector { - position: absolute; - top: -20px; - left: 50%; - transform: translateX(-50%); - width: 2px; - height: 20px; - background: #ddd; -} - /* Responsive adjustments for levels */ @media (max-width: 768px) { .org-level { flex-direction: column; align-items: center; } - - .org-node.child-node { - margin: 10px 0; - } - - .org-node.grandchild-node { - margin: 15px 0 0; - } } /* Animation for level expansion */ @@ -83,4 +51,86 @@ opacity: 1; transform: translateY(0); } +} + +.node-card { + background: white; + border-radius: 12px; + padding: 16px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + border: 2px solid #f0f0f0; + min-width: 200px; + max-width: 280px; + transition: all 0.3s ease; +} + + .node-card:hover { + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); + border-color: #e0e0e0; + } + +.node-avatar { + position: relative; + text-align: center; + margin-bottom: 12px; +} + +.expand-btn { + position: absolute; + bottom: -8px; + left: 50%; + transform: translateX(-50%); + background: #0380C0; + color: white; + border: none; + border-radius: 50%; + width: 24px; + height: 24px; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + transition: all 0.2s ease; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); +} + + .expand-btn:hover { + background: #026a9e; + transform: translateX(-50%) scale(1.1); + } + +.node-info { + text-align: center; +} + +.node-name { + font-weight: 600; + font-size: 14px; + color: #333; + margin-bottom: 8px; +} + +.node-amounts { + font-size: 12px; +} + + .node-amounts > div { + margin-bottom: 4px; + } + +.personal-amount { + color: #0380C0; +} + +.team-amount { + color: #05AF82; +} + +.label { + font-weight: 500; + margin-left: 4px; +} + +.amount { + font-weight: 600; } \ No newline at end of file