This commit is contained in:
MeysamMoghaddam
2025-10-13 22:31:53 +03:30
parent faa50d49a7
commit 560694fc28
2 changed files with 59 additions and 54 deletions

View File

@@ -6,15 +6,15 @@
border: 1px solid #e0e0e0;
border-radius: 8px;
background: #fafafa;
position: relative;
}
.org-tree {
display: flex;
flex-direction: column;
align-items: center;
min-width: 1200px;
min-height: 800px;
padding: 20px;
position: absolute;
}
.org-node {
@@ -44,10 +44,10 @@
transition: all 0.3s ease;
}
.node-card:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
border-color: #e0e0e0;
}
.node-card:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
border-color: #e0e0e0;
}
.node-avatar {
position: relative;
@@ -74,10 +74,10 @@
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.expand-btn:hover {
background: #026a9e;
transform: translateX(-50%) scale(1.1);
}
.expand-btn:hover {
background: #026a9e;
transform: translateX(-50%) scale(1.1);
}
.node-info {
text-align: center;
@@ -94,9 +94,9 @@
font-size: 12px;
}
.node-amounts > div {
margin-bottom: 4px;
}
.node-amounts > div {
margin-bottom: 4px;
}
.personal-amount {
color: #0380C0;
@@ -132,27 +132,27 @@
position: relative;
}
.org-level::before {
content: '';
position: absolute;
top: -40px;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 20px;
background: #ddd;
}
.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;
}
.org-level::after {
content: '';
position: absolute;
top: -20px;
left: 0;
right: 0;
height: 2px;
background: #ddd;
z-index: 1;
}
.org-sublevel {
display: flex;
@@ -162,27 +162,27 @@
position: relative;
}
.org-sublevel::before {
content: '';
position: absolute;
top: -20px;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 20px;
background: #ddd;
}
.org-sublevel::before {
content: '';
position: absolute;
top: -20px;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 20px;
background: #ddd;
}
.org-sublevel::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: #ddd;
z-index: 1;
}
.org-sublevel::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: #ddd;
z-index: 1;
}
/* Responsive adjustments */
@media (max-width: 768px) {
@@ -228,6 +228,7 @@
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
@@ -249,4 +250,4 @@
.expand-btn:active {
transform: translateX(-50%) scale(0.95);
}
}

View File

@@ -36,6 +36,10 @@
.org-node {
position: relative;
margin: 0px 15px 20px 15px;
display: flex;
flex-direction: column;
align-items: center;
min-width: 200px;
}
.node-connector {