lumina/ui/views/components/account-relationship-graph.scss
2025-11-29 23:13:05 +03:00

224 lines
4.2 KiB
SCSS

.account-relationship-graph {
padding: 20px;
background: var(--color-alt-bg, #f5f5f5);
border-radius: 8px;
border: 1px solid var(--color-border, #e0e0e0);
margin: 20px 0;
}
.graph-stats {
display: flex;
gap: 20px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.stat-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 15px;
background: var(--color-bg, #fff);
border-radius: 6px;
border: 1px solid var(--color-border, #e0e0e0);
}
.stat-label {
font-size: 0.9rem;
color: var(--color-text-dimmed, #666);
}
.stat-value {
font-size: 1.2rem;
font-weight: 700;
color: #00f0ff;
font-family: 'Orbitron', monospace;
}
.graph-visualization {
padding: 0;
background: var(--color-bg, #fff);
border-radius: 6px;
border: 1px solid var(--color-border, #e0e0e0);
margin-bottom: 20px;
min-height: 400px;
position: relative;
overflow: hidden;
}
.graph-visualization-3d {
width: 100%;
height: 400px;
background: #000;
border-radius: 6px;
overflow: hidden;
}
.graph-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.view-mode-toggle {
display: flex;
gap: 10px;
}
.view-mode-toggle button {
padding: 8px 16px;
background: transparent;
border: 1px solid var(--color-border, #e0e0e0);
border-radius: 4px;
cursor: pointer;
transition: all 0.2s ease;
&.active {
background: rgba(0, 240, 255, 0.1);
border-color: #00f0ff;
color: #00f0ff;
}
&:hover {
background: var(--color-alt-bg, #f5f5f5);
}
}
.graph-3d-note {
padding: 40px;
text-align: center;
color: var(--color-text-dimmed, #666);
font-style: italic;
}
.selected-node-info {
margin-top: 20px;
padding: 15px;
background: rgba(0, 240, 255, 0.1);
border-radius: 6px;
border: 1px solid rgba(0, 240, 255, 0.3);
h4 {
margin-top: 0;
color: #00f0ff;
}
button {
margin-top: 10px;
padding: 6px 12px;
background: transparent;
border: 1px solid var(--color-border, #e0e0e0);
border-radius: 4px;
cursor: pointer;
}
}
.graph-placeholder {
text-align: center;
color: var(--color-text-dimmed, #666);
}
.graph-note {
margin: 15px 0;
font-size: 0.9rem;
line-height: 1.6;
}
.graph-legend {
display: flex;
justify-content: center;
gap: 30px;
margin-top: 20px;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.85rem;
}
.legend-node {
width: 12px;
height: 12px;
border-radius: 50%;
background: #00f0ff;
display: inline-block;
}
.legend-edge {
width: 30px;
height: 2px;
background: rgba(0, 240, 255, 0.5);
display: inline-block;
}
.connections-list {
h4 {
margin-bottom: 15px;
color: #00f0ff;
}
}
.connection-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px;
background: var(--color-bg, #fff);
border-radius: 6px;
border: 1px solid var(--color-border, #e0e0e0);
margin-bottom: 10px;
}
.connection-accounts {
display: flex;
align-items: center;
gap: 10px;
font-family: monospace;
}
.account-node {
padding: 4px 8px;
background: rgba(0, 240, 255, 0.1);
border-radius: 4px;
color: #00f0ff;
font-size: 0.9rem;
}
.connection-arrow {
color: var(--color-text-dimmed, #666);
}
.connection-count {
font-size: 0.9rem;
color: var(--color-text-dimmed, #666);
font-weight: 600;
}
.no-relationships {
padding: 40px;
text-align: center;
color: var(--color-text-dimmed, #666);
font-style: italic;
}
// Dark theme
[data-theme="dark"] .account-relationship-graph,
.dark .account-relationship-graph {
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .stat-item,
[data-theme="dark"] .graph-visualization,
[data-theme="dark"] .connection-item,
.dark .stat-item,
.dark .graph-visualization,
.dark .connection-item {
background: rgba(255, 255, 255, 0.02);
border-color: rgba(255, 255, 255, 0.1);
}