This commit is contained in:
MeysamMoghaddam
2025-10-13 20:52:23 +03:30
parent 45896f8c14
commit 24380d5dda
2 changed files with 128 additions and 93 deletions

View File

@@ -1,27 +1,27 @@
/* Organization Chart Level Styles - inherits from main chart styles */ /* Organization Chart Level Styles */
.org-level { .org-level {
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;
position: relative; position: relative;
margin-top: 20px; margin-top: 40px;
} }
.org-level::before { .org-level::before {
content: ''; content: '';
position: absolute; position: absolute;
top: -40px; top: -80px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
width: 2px; width: 2px;
height: 20px; height: 40px;
background: #ddd; background: #ddd;
} }
.org-level::after { .org-level::after {
content: ''; content: '';
position: absolute; position: absolute;
top: -20px; top: -40px;
left: 0; left: 0;
right: 0; right: 0;
height: 2px; height: 2px;
@@ -29,28 +29,20 @@
z-index: 1; z-index: 1;
} }
/* Responsive adjustments for levels */ /* Node styles for levels */
@media (max-width: 768px) { .org-node {
.org-level { position: relative;
flex-direction: column; margin: 0px 15px 20px 15px;
align-items: center;
}
} }
/* Animation for level expansion */ .node-connector {
.org-level { position: absolute;
animation: fadeInLevel 0.3s ease-in-out; top: -40px;
} left: 50%;
transform: translateX(-50%);
@keyframes fadeInLevel { width: 2px;
from { height: 40px;
opacity: 0; background: #ddd;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
} }
.node-card { .node-card {
@@ -134,3 +126,46 @@
.amount { .amount {
font-weight: 600; font-weight: 600;
} }
/* Responsive adjustments for levels */
@media (max-width: 768px) {
.org-level {
flex-direction: column;
align-items: center;
margin-top: 20px;
}
.org-node {
margin: 10px 0;
}
.node-card {
min-width: 160px;
max-width: 220px;
padding: 12px;
}
.node-name {
font-size: 13px;
}
.node-amounts {
font-size: 11px;
}
}
/* Animation for level expansion */
.org-level {
animation: fadeInLevel 0.3s ease-in-out;
}
@keyframes fadeInLevel {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}