Files
DECNET/decnet_web/src/components/EmptyState/EmptyState.css
anti fe8dd08ba6 style(web): center EmptyState contents with consistent min-height
Base .empty-state now flex-centers its icon/title/hint/CTA with a
140px min-height so icon-bearing empty states in the Dashboard side
panels (DECKIES UNDER SIEGE, TOP ATTACKERS) stop looking cramped.
Component-scoped rules (attackers-root, bounty-root, logs-root)
remain more specific and are unaffected.
2026-04-22 17:27:20 -04:00

64 lines
1.2 KiB
CSS

/* Shared EmptyState styling. Component-scoped .empty-state rules
(Attackers/Bounty/LiveLogs) still win over these base rules. */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
gap: 10px;
padding: 36px 20px;
min-height: 140px;
}
.empty-state-icon {
opacity: 0.4;
color: var(--violet);
}
.empty-state-title {
font-size: 0.75rem;
letter-spacing: 2px;
opacity: 0.7;
}
.empty-state-hint {
font-size: 0.65rem;
opacity: 0.45;
letter-spacing: 1px;
margin-top: -4px;
}
.empty-state-cta {
margin-top: 6px;
padding: 6px 12px;
background: transparent;
border: 1px solid var(--matrix);
color: var(--matrix);
font-family: var(--font-mono);
font-size: 0.65rem;
letter-spacing: 2px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
text-transform: uppercase;
}
.empty-state-cta:hover {
background: rgba(0, 255, 65, 0.1);
box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}
.empty-state.empty-state-compact {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 4px;
font-size: 0.65rem;
letter-spacing: 1.5px;
opacity: 0.5;
color: var(--text-dim, #888);
}