Create OrganizationChartLevel.razor.css

This commit is contained in:
MeysamMoghaddam
2025-10-13 20:24:21 +03:30
parent 3f3e1c2a87
commit 417f9beb03

View File

@@ -0,0 +1,86 @@
/* Organization Chart Level Styles */
.org-level {
display: flex;
justify-content: center;
flex-wrap: wrap;
position: relative;
margin-top: 20px;
}
.org-level::before {
content: '';
position: absolute;
top: -40px;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 20px;
background: #ddd;
}
.org-level::after {
content: '';
position: absolute;
top: -20px;
left: 0;
right: 0;
height: 2px;
background: #ddd;
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 */
.org-level {
animation: fadeInLevel 0.3s ease-in-out;
}
@keyframes fadeInLevel {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}