mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 22:59:59 -07:00
Phase 0 — CSS-only fixes: - Fix --font-mono to use real monospace stack (JetBrains Mono, Fira Code, etc.) - Replace hardcoded hex colors with CSS variables across 16+ files - Merge global-nav.css (507 lines) into layout.css, delete original - Reduce !important in responsive.css from 71 to 8 via .app-shell specificity - Standardize breakpoints to 480/768/1024/1280px Phase 1 — Loading states & SSE connection feedback: - Add centralized SSEManager (sse-manager.js) with exponential backoff - Add SSE status indicator dot in nav bar - Add withLoadingButton() + .btn-loading CSS spinner - Add mode section crossfade transitions Phase 2 — Accessibility: - Add aria-labels to icon-only buttons across mode partials - Add for/id associations to 42 form labels in 5 mode partials - Add aria-live on toast stack, enableListKeyNav() utility Phase 3 — Destructive action guards & list overflow: - Add confirmAction() styled modal, replace all 25 native confirm() calls - Add toast cap at 5 simultaneous toasts - Add list overflow indicator CSS Phase 4 — Inline style extraction: - Refactor switchMode() in app.js and index.html to use classList.toggle() - Add CSS toggle rules for all switchMode-controlled elements - Remove inline style="display:none" from 7+ HTML elements - Add utility classes (.hidden, .d-flex, .d-grid, etc.) Phase 5 — Mobile UX polish: - pre/code overflow handling already in place - Touch target sizing via --touch-min variable Phase 6 — Error handling consistency: - Add reportActionableError() to user-facing catch blocks in 5 mode JS files - 28 error toast additions alongside existing console.error calls Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
474 lines
11 KiB
CSS
474 lines
11 KiB
CSS
/* Meteor Scatter Mode Styles */
|
|
|
|
.meteor-visuals-container {
|
|
--ms-border: rgba(92, 255, 170, 0.24);
|
|
--ms-surface: linear-gradient(180deg, rgba(12, 19, 31, 0.97) 0%, rgba(5, 9, 17, 0.98) 100%);
|
|
--ms-accent: #6bffb8;
|
|
--ms-accent-dim: rgba(107, 255, 184, 0.13);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
background: radial-gradient(circle at 14% -18%, rgba(107, 255, 184, 0.15) 0%, rgba(107, 255, 184, 0) 38%),
|
|
radial-gradient(circle at 86% -26%, rgba(255, 200, 54, 0.12) 0%, rgba(255, 200, 54, 0) 36%),
|
|
#03070f;
|
|
border: 1px solid var(--ms-border);
|
|
border-radius: 10px;
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 10px 34px rgba(2, 8, 22, 0.55);
|
|
position: relative;
|
|
}
|
|
|
|
/* ── Headline Bar ── */
|
|
|
|
.ms-headline {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 12px;
|
|
background: rgba(8, 14, 25, 0.86);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ms-headline-left,
|
|
.ms-headline-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.ms-headline-tag {
|
|
border-radius: 999px;
|
|
padding: 1px 8px;
|
|
border: 1px solid rgba(107, 255, 184, 0.45);
|
|
background: var(--ms-accent-dim);
|
|
color: var(--ms-accent);
|
|
font-size: 10px;
|
|
font-family: var(--font-mono, monospace);
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ms-headline-tag.idle {
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
color: var(--text-dim, #667);
|
|
}
|
|
|
|
.ms-headline-tag.detecting {
|
|
border-color: rgba(255, 215, 0, 0.5);
|
|
background: rgba(255, 215, 0, 0.12);
|
|
color: #ffd700;
|
|
animation: ms-pulse 1s ease-in-out infinite;
|
|
}
|
|
|
|
.ms-headline-sub {
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
font-family: var(--font-mono, monospace);
|
|
white-space: nowrap;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
/* ── Stats Strip ── */
|
|
|
|
.ms-stats-strip {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
background: var(--ms-surface);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
|
flex-shrink: 0;
|
|
transition: box-shadow 0.3s ease;
|
|
}
|
|
|
|
.ms-stat-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 4px 8px;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.ms-stat-label {
|
|
font-size: 9px;
|
|
color: var(--text-dim, #667);
|
|
font-family: var(--font-mono, monospace);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.ms-stat-value {
|
|
font-size: 13px;
|
|
color: var(--text-primary, #eee);
|
|
font-family: var(--font-mono, monospace);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ms-stat-value.highlight {
|
|
color: var(--ms-accent);
|
|
}
|
|
|
|
/* ── Canvas Areas ── */
|
|
|
|
.ms-spectrum-wrap {
|
|
position: relative;
|
|
height: 80px;
|
|
flex-shrink: 0;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ms-spectrum-wrap canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.ms-waterfall-wrap {
|
|
position: relative;
|
|
flex: 1;
|
|
min-height: 200px;
|
|
background: #000;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ms-waterfall-wrap canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
/* Starfield canvas behind the waterfall */
|
|
.ms-starfield-canvas {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.ms-timeline-wrap {
|
|
position: relative;
|
|
height: 60px;
|
|
flex-shrink: 0;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.ms-timeline-wrap canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
/* ── Events Panel ── */
|
|
|
|
.ms-events-panel {
|
|
flex-shrink: 0;
|
|
max-height: 200px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: rgba(8, 14, 25, 0.9);
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.ms-events-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 6px 12px;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.ms-events-title {
|
|
font-size: 10px;
|
|
color: var(--text-dim, #667);
|
|
font-family: var(--font-mono, monospace);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.ms-events-count {
|
|
font-size: 10px;
|
|
color: var(--ms-accent);
|
|
font-family: var(--font-mono, monospace);
|
|
}
|
|
|
|
.ms-events-scroll {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.ms-events-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-family: var(--font-mono, monospace);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.ms-events-table thead {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
.ms-events-table th {
|
|
padding: 4px 8px;
|
|
text-align: left;
|
|
color: var(--text-dim, #667);
|
|
font-weight: 500;
|
|
background: rgba(8, 14, 25, 0.95);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.ms-events-table td {
|
|
padding: 3px 8px;
|
|
color: var(--text-secondary, #aab);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
|
|
}
|
|
|
|
.ms-events-table tr:hover td {
|
|
background: rgba(107, 255, 184, 0.04);
|
|
}
|
|
|
|
.ms-events-table .ms-snr-strong {
|
|
color: var(--ms-accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ms-events-table .ms-snr-moderate {
|
|
color: #ffd782;
|
|
}
|
|
|
|
.ms-events-table .ms-snr-weak {
|
|
color: var(--text-dim, #667);
|
|
}
|
|
|
|
.ms-tag {
|
|
display: inline-block;
|
|
padding: 0 4px;
|
|
border-radius: 3px;
|
|
font-size: 9px;
|
|
margin-right: 3px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text-dim, #667);
|
|
}
|
|
|
|
.ms-tag.strong {
|
|
border-color: rgba(107, 255, 184, 0.3);
|
|
background: rgba(107, 255, 184, 0.08);
|
|
color: var(--ms-accent);
|
|
}
|
|
|
|
.ms-tag.moderate {
|
|
border-color: rgba(255, 215, 130, 0.3);
|
|
background: rgba(255, 215, 130, 0.08);
|
|
color: #ffd782;
|
|
}
|
|
|
|
/* ── Ping Highlight Animation (Enhanced) ── */
|
|
|
|
@keyframes ms-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
@keyframes ms-ping-flash {
|
|
0% {
|
|
box-shadow: inset 0 0 30px rgba(107, 255, 184, 0.4),
|
|
0 0 15px rgba(107, 255, 184, 0.2);
|
|
border-color: rgba(107, 255, 184, 0.6);
|
|
}
|
|
50% {
|
|
box-shadow: inset 0 0 10px rgba(107, 255, 184, 0.15),
|
|
0 0 5px rgba(107, 255, 184, 0.08);
|
|
border-color: rgba(107, 255, 184, 0.35);
|
|
}
|
|
100% {
|
|
box-shadow: inset 0 0 0 rgba(107, 255, 184, 0),
|
|
0 0 0 rgba(107, 255, 184, 0);
|
|
border-color: var(--ms-border);
|
|
}
|
|
}
|
|
|
|
.ms-ping-flash {
|
|
animation: ms-ping-flash 0.7s ease-out;
|
|
}
|
|
|
|
/* Stats strip glow on detection */
|
|
@keyframes ms-stats-glow {
|
|
0% {
|
|
box-shadow: inset 0 0 20px rgba(107, 255, 184, 0.15);
|
|
}
|
|
100% {
|
|
box-shadow: inset 0 0 0 rgba(107, 255, 184, 0);
|
|
}
|
|
}
|
|
|
|
.ms-stats-glow {
|
|
animation: ms-stats-glow 0.6s ease-out;
|
|
}
|
|
|
|
/* Ping counter bounce */
|
|
@keyframes ms-counter-bounce {
|
|
0% { transform: scale(1); }
|
|
30% { transform: scale(1.35); color: #fff; }
|
|
60% { transform: scale(0.95); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
.ms-counter-bounce {
|
|
animation: ms-counter-bounce 0.4s ease-out;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* ── Particle Burst ── */
|
|
|
|
@keyframes ms-particle-burst {
|
|
0% {
|
|
opacity: 1;
|
|
transform: translate(0, 0) scale(1);
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
transform: translate(var(--dx, 30px), var(--dy, -30px)) scale(0.3);
|
|
}
|
|
}
|
|
|
|
.ms-particle {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
background: var(--ms-accent);
|
|
box-shadow: 0 0 4px var(--ms-accent), 0 0 8px rgba(107, 255, 184, 0.3);
|
|
pointer-events: none;
|
|
z-index: 5;
|
|
animation: ms-particle-burst 0.5s ease-out forwards;
|
|
}
|
|
|
|
/* ── Signal Meter ── */
|
|
|
|
.ms-signal-meter {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.ms-signal-meter-label {
|
|
font-size: 8px;
|
|
color: var(--text-dim, #667);
|
|
font-family: var(--font-mono, monospace);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.ms-signal-meter-bars {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 1px;
|
|
height: 16px;
|
|
}
|
|
|
|
.ms-signal-bar {
|
|
width: 3px;
|
|
background: rgba(255, 255, 255, 0.12);
|
|
border-radius: 1px;
|
|
transition: background 0.1s ease, height 0.1s ease;
|
|
}
|
|
|
|
.ms-signal-bar[data-idx="0"] { height: 4px; }
|
|
.ms-signal-bar[data-idx="1"] { height: 6px; }
|
|
.ms-signal-bar[data-idx="2"] { height: 7px; }
|
|
.ms-signal-bar[data-idx="3"] { height: 9px; }
|
|
.ms-signal-bar[data-idx="4"] { height: 10px; }
|
|
.ms-signal-bar[data-idx="5"] { height: 12px; }
|
|
.ms-signal-bar[data-idx="6"] { height: 14px; }
|
|
.ms-signal-bar[data-idx="7"] { height: 16px; }
|
|
|
|
.ms-signal-bar.active {
|
|
background: var(--ms-accent);
|
|
box-shadow: 0 0 3px rgba(107, 255, 184, 0.4);
|
|
}
|
|
|
|
.ms-signal-bar.active[data-idx="5"],
|
|
.ms-signal-bar.active[data-idx="6"],
|
|
.ms-signal-bar.active[data-idx="7"] {
|
|
background: #ffd700;
|
|
box-shadow: 0 0 3px rgba(255, 215, 0, 0.4);
|
|
}
|
|
|
|
.ms-signal-bar.peak {
|
|
background: rgba(255, 100, 100, 0.7);
|
|
box-shadow: 0 0 3px rgba(255, 100, 100, 0.3);
|
|
}
|
|
|
|
/* ── Empty State ── */
|
|
|
|
.ms-empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 1;
|
|
gap: 12px;
|
|
color: var(--text-dim, #667);
|
|
font-family: var(--font-mono, monospace);
|
|
font-size: 12px;
|
|
text-align: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
.ms-empty-state .ms-empty-icon {
|
|
font-size: 40px;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.ms-empty-state .ms-empty-text {
|
|
font-size: 11px;
|
|
opacity: 0.6;
|
|
max-width: 280px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* ── Responsive ── */
|
|
|
|
@media (max-width: 1023px) {
|
|
.ms-stats-strip {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
.ms-events-panel {
|
|
max-height: 150px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.ms-stats-strip {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
.ms-spectrum-wrap {
|
|
height: 60px;
|
|
}
|
|
.ms-timeline-wrap {
|
|
height: 40px;
|
|
}
|
|
}
|