- Modal: shared backdrop/panel with ESC-close, backdrop-click-close, focus trap, body scroll lock; supports center + drawer-right variants, matrix/violet accents, default/wide widths. - EmptyState: icon + title + hint + optional CTA; compact variant for tight rails. - useEscapeKey, useFocusTrap: reusable hooks powering Modal; will also be adopted by CommandPalette and ContextMenu in follow-up commits. No retrofits yet — primitives only. tsc clean.
53 lines
1.0 KiB
CSS
53 lines
1.0 KiB
CSS
/* Shared EmptyState styling. Component-scoped .empty-state rules
|
|
(Attackers/Bounty/LiveLogs) still win over these base rules. */
|
|
|
|
.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);
|
|
}
|