Restyle UI with neon/terminal "hackertyper" theme
Darker phosphor-black background with ambient neon vignette, monospace everywhere, glowing neon-green accents, and CRT scanline + brand-flicker effects. Restyle only — every class name HTML/app.js depends on is preserved (status pills, fec-cell, slot-arrow, table classes, etc.). - Neon-green primary / cyan secondary / magenta-red danger, all with text-shadow + box-shadow glow - Glowing focus rings on inputs, glowing buttons and selected rows - CRT scanline overlay (body::after, non-interactive) + subtle flicker - Neon scrollbars and selection highlight Verified by rendering the login view offscreen via Electron. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
581e16e7ed
commit
49a0e1cba1
1 changed files with 200 additions and 48 deletions
248
renderer/app.css
248
renderer/app.css
|
|
@ -1,21 +1,40 @@
|
|||
/* Simple, dense, operator-oriented UI.
|
||||
No framework — just hand-tuned CSS. */
|
||||
/* Neon / terminal "hackertyper" theme.
|
||||
Dense, operator-oriented UI — no framework, hand-tuned CSS.
|
||||
Class names are load-bearing (HTML + renderer/app.js reference them);
|
||||
this file only restyles, it doesn't rename anything. */
|
||||
|
||||
:root {
|
||||
--bg: #0e1116;
|
||||
--bg-elev: #161b22;
|
||||
--bg-elev-2: #1f2630;
|
||||
--fg: #e7edf3;
|
||||
--fg-dim: #8a94a3;
|
||||
--border: #2a313c;
|
||||
--accent: #3ea6ff;
|
||||
--accent-hover: #65baff;
|
||||
--ok: #3fb950;
|
||||
--warn: #d29922;
|
||||
--danger: #f85149;
|
||||
--danger-hover: #ff6a62;
|
||||
--info: #58a6ff;
|
||||
--mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
|
||||
/* Near-black base, faintly green-shifted like a phosphor display. */
|
||||
--bg: #03070a;
|
||||
--bg-elev: #070d12;
|
||||
--bg-elev-2: #0c151c;
|
||||
|
||||
/* Phosphor-tinted text. */
|
||||
--fg: #d7f7ea;
|
||||
--fg-dim: #6f9b8e;
|
||||
--border: #123026;
|
||||
|
||||
/* Neon accents. */
|
||||
--neon: #00ffa3; /* primary — terminal green/cyan */
|
||||
--neon-soft: #19f9d8;
|
||||
--cyan: #38e1ff;
|
||||
--magenta: #ff3df0;
|
||||
|
||||
--accent: var(--neon);
|
||||
--accent-hover: var(--neon-soft);
|
||||
--ok: #2bff88;
|
||||
--warn: #ffc44d;
|
||||
--danger: #ff3b6b;
|
||||
--danger-hover: #ff5d85;
|
||||
--info: var(--cyan);
|
||||
|
||||
--mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
|
||||
|
||||
/* Reusable glow shadows. */
|
||||
--glow-neon: 0 0 6px rgba(0, 255, 163, 0.55);
|
||||
--glow-neon-strong: 0 0 10px rgba(0, 255, 163, 0.7), 0 0 22px rgba(0, 255, 163, 0.35);
|
||||
--glow-danger: 0 0 8px rgba(255, 59, 107, 0.6);
|
||||
--glow-cyan: 0 0 8px rgba(56, 225, 255, 0.55);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
|
@ -26,16 +45,69 @@ html, body {
|
|||
height: 100%;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
/* Monospace everywhere — terminal feel. */
|
||||
font-family: var(--mono);
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
code { font-family: var(--mono); background: var(--bg-elev-2); padding: 1px 4px; border-radius: 3px; font-size: 12px; }
|
||||
/* Ambient phosphor vignette behind everything. */
|
||||
body {
|
||||
background:
|
||||
radial-gradient(1200px 600px at 50% -10%, rgba(0, 255, 163, 0.08), transparent 60%),
|
||||
radial-gradient(900px 500px at 100% 110%, rgba(56, 225, 255, 0.06), transparent 60%),
|
||||
var(--bg);
|
||||
}
|
||||
|
||||
/* CRT scanline + flicker overlay. Non-interactive, sits above content. */
|
||||
body::after {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
z-index: 9999;
|
||||
background: repeating-linear-gradient(
|
||||
to bottom,
|
||||
rgba(0, 0, 0, 0) 0px,
|
||||
rgba(0, 0, 0, 0) 2px,
|
||||
rgba(0, 0, 0, 0.18) 3px,
|
||||
rgba(0, 0, 0, 0) 4px
|
||||
);
|
||||
mix-blend-mode: multiply;
|
||||
opacity: 0.5;
|
||||
animation: scanflicker 6s steps(60) infinite;
|
||||
}
|
||||
@keyframes scanflicker {
|
||||
0%, 97%, 100% { opacity: 0.5; }
|
||||
98% { opacity: 0.62; }
|
||||
99% { opacity: 0.42; }
|
||||
}
|
||||
|
||||
::selection { background: rgba(0, 255, 163, 0.28); color: #fff; text-shadow: none; }
|
||||
|
||||
/* Neon scrollbars (WebKit / Chromium — Electron). */
|
||||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||
::-webkit-scrollbar-track { background: var(--bg-elev); }
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #0f3a2c;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover { background: #135a44; box-shadow: var(--glow-neon); }
|
||||
|
||||
code {
|
||||
font-family: var(--mono);
|
||||
background: var(--bg-elev-2);
|
||||
padding: 1px 4px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
color: var(--neon-soft);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.muted { color: var(--fg-dim); }
|
||||
.small { font-size: 12px; }
|
||||
.hidden { display: none !important; }
|
||||
.error { color: var(--danger); }
|
||||
.error { color: var(--danger); text-shadow: var(--glow-danger); }
|
||||
.row { display: flex; gap: 8px; align-items: center; }
|
||||
.inline { display: inline-flex; align-items: center; gap: 6px; }
|
||||
|
||||
|
|
@ -44,26 +116,41 @@ code { font-family: var(--mono); background: var(--bg-elev-2); padding: 1px 4px;
|
|||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 10px 16px;
|
||||
background: var(--bg-elev);
|
||||
background: linear-gradient(180deg, rgba(0, 255, 163, 0.05), transparent), var(--bg-elev);
|
||||
border-bottom: 1px solid var(--border);
|
||||
box-shadow: 0 1px 0 rgba(0, 255, 163, 0.15), 0 6px 18px -10px rgba(0, 255, 163, 0.3);
|
||||
}
|
||||
.topbar .brand { font-weight: 600; letter-spacing: 0.3px; }
|
||||
.topbar .session { margin-left: auto; color: var(--fg-dim); font-family: var(--mono); font-size: 12px; }
|
||||
.topbar .brand {
|
||||
font-weight: 700;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
color: var(--neon);
|
||||
text-shadow: var(--glow-neon-strong);
|
||||
animation: brandflicker 4.5s infinite;
|
||||
}
|
||||
.topbar .brand::before { content: "▌ "; color: var(--neon); opacity: 0.8; }
|
||||
@keyframes brandflicker {
|
||||
0%, 19%, 21%, 55%, 57%, 100% { opacity: 1; text-shadow: var(--glow-neon-strong); }
|
||||
20% { opacity: 0.7; }
|
||||
56% { opacity: 0.85; text-shadow: var(--glow-neon); }
|
||||
}
|
||||
.topbar .session { margin-left: auto; color: var(--cyan); font-family: var(--mono); font-size: 12px; text-shadow: var(--glow-cyan); }
|
||||
|
||||
.view { display: flex; gap: 0; height: calc(100vh - 45px); }
|
||||
#view-login { justify-content: center; align-items: flex-start; padding-top: 60px; }
|
||||
|
||||
.card {
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border: 1px solid var(--neon);
|
||||
border-radius: 8px;
|
||||
padding: 24px;
|
||||
width: 440px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
box-shadow: var(--glow-neon-strong), inset 0 0 30px rgba(0, 255, 163, 0.05);
|
||||
}
|
||||
.card h1 { margin: 0 0 4px; font-size: 18px; }
|
||||
.card h1 { margin: 0 0 4px; font-size: 18px; color: var(--neon); text-shadow: var(--glow-neon); letter-spacing: 1px; }
|
||||
.card p { margin: 0 0 8px; }
|
||||
|
||||
label {
|
||||
|
|
@ -72,8 +159,10 @@ label {
|
|||
gap: 4px;
|
||||
color: var(--fg-dim);
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
label.inline { flex-direction: row; align-items: center; gap: 6px; color: var(--fg); }
|
||||
label.inline { flex-direction: row; align-items: center; gap: 6px; color: var(--fg); text-transform: none; letter-spacing: 0; }
|
||||
|
||||
input[type="text"], input[type="password"], input[type="url"],
|
||||
input[type="number"], input[type="search"], input[type="datetime-local"],
|
||||
|
|
@ -84,40 +173,90 @@ select {
|
|||
padding: 7px 9px;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
font-family: inherit;
|
||||
font-family: var(--mono);
|
||||
outline: none;
|
||||
transition: border-color 0.12s ease, box-shadow 0.12s ease;
|
||||
}
|
||||
input:focus, select:focus { border-color: var(--accent); }
|
||||
input::placeholder { color: #3f5e54; }
|
||||
input:focus, select:focus {
|
||||
border-color: var(--neon);
|
||||
box-shadow: var(--glow-neon), inset 0 0 8px rgba(0, 255, 163, 0.12);
|
||||
caret-color: var(--neon);
|
||||
}
|
||||
/* Glowing checkbox accent. */
|
||||
input[type="checkbox"] { accent-color: var(--neon); }
|
||||
|
||||
button {
|
||||
font-family: inherit;
|
||||
font-family: var(--mono);
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.5px;
|
||||
padding: 7px 14px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg-elev-2);
|
||||
color: var(--fg);
|
||||
cursor: pointer;
|
||||
transition: border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease, background 0.12s ease;
|
||||
}
|
||||
button:hover:not(:disabled) { border-color: var(--neon); color: var(--neon); box-shadow: var(--glow-neon); }
|
||||
button:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
|
||||
button.primary {
|
||||
background: rgba(0, 255, 163, 0.1);
|
||||
color: var(--neon);
|
||||
border-color: var(--neon);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
text-shadow: var(--glow-neon);
|
||||
box-shadow: var(--glow-neon), inset 0 0 10px rgba(0, 255, 163, 0.12);
|
||||
}
|
||||
button.primary:hover:not(:disabled) {
|
||||
background: rgba(0, 255, 163, 0.18);
|
||||
color: #002a1c;
|
||||
background-color: var(--neon);
|
||||
box-shadow: var(--glow-neon-strong);
|
||||
text-shadow: none;
|
||||
}
|
||||
button:hover:not(:disabled) { border-color: var(--accent); }
|
||||
button:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
button.primary { background: var(--accent); color: #001828; border-color: var(--accent); font-weight: 600; }
|
||||
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
|
||||
button.ghost { background: transparent; }
|
||||
button.danger { background: var(--danger); color: #fff; border-color: var(--danger); font-weight: 600; }
|
||||
button.danger:hover:not(:disabled) { background: var(--danger-hover); border-color: var(--danger-hover); }
|
||||
button.ghost:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); }
|
||||
|
||||
button.danger {
|
||||
background: rgba(255, 59, 107, 0.12);
|
||||
color: var(--danger);
|
||||
border-color: var(--danger);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
text-shadow: var(--glow-danger);
|
||||
box-shadow: var(--glow-danger), inset 0 0 10px rgba(255, 59, 107, 0.12);
|
||||
}
|
||||
button.danger:hover:not(:disabled) {
|
||||
background: var(--danger);
|
||||
color: #1a0008;
|
||||
border-color: var(--danger-hover);
|
||||
box-shadow: 0 0 12px rgba(255, 59, 107, 0.8), 0 0 26px rgba(255, 59, 107, 0.4);
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.panel-left {
|
||||
width: 320px;
|
||||
padding: 16px;
|
||||
border-right: 1px solid var(--border);
|
||||
background: var(--bg-elev);
|
||||
background: linear-gradient(180deg, rgba(0, 255, 163, 0.03), transparent 240px), var(--bg-elev);
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.panel-left h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-dim); margin: 12px 0 0; }
|
||||
.panel-left h2 {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
color: var(--neon);
|
||||
text-shadow: var(--glow-neon);
|
||||
margin: 12px 0 0;
|
||||
padding-bottom: 4px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.panel-left h2:first-child { margin-top: 0; }
|
||||
|
||||
.panel-main {
|
||||
|
|
@ -128,23 +267,27 @@ button.danger:hover:not(:disabled) { background: var(--danger-hover); border-col
|
|||
gap: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.panel-main h2 { margin: 0; font-size: 15px; }
|
||||
.panel-main h2 { margin: 0; font-size: 15px; color: var(--fg); letter-spacing: 0.5px; }
|
||||
.fleet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
|
||||
.fleet-head h2 span { color: var(--neon); text-shadow: var(--glow-neon); }
|
||||
|
||||
.selected-summary {
|
||||
background: var(--bg-elev-2);
|
||||
padding: 8px 10px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
.selected-summary strong { color: var(--neon); text-shadow: var(--glow-neon); }
|
||||
|
||||
.fleet-table-wrap {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
box-shadow: inset 0 0 24px rgba(0, 255, 163, 0.04);
|
||||
}
|
||||
.fleet-table {
|
||||
width: 100%;
|
||||
|
|
@ -157,8 +300,12 @@ button.danger:hover:not(:disabled) { background: var(--danger-hover); border-col
|
|||
background: var(--bg-elev);
|
||||
text-align: left;
|
||||
padding: 8px 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-weight: 600;
|
||||
border-bottom: 1px solid var(--neon);
|
||||
color: var(--neon);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
font-weight: 700;
|
||||
text-shadow: var(--glow-neon);
|
||||
z-index: 1;
|
||||
}
|
||||
.fleet-table tbody td {
|
||||
|
|
@ -171,13 +318,16 @@ button.danger:hover:not(:disabled) { background: var(--danger-hover); border-col
|
|||
text-overflow: ellipsis;
|
||||
max-width: 320px;
|
||||
}
|
||||
.fleet-table tbody tr:hover { background: var(--bg-elev-2); }
|
||||
.fleet-table tbody tr.selected { background: rgba(62, 166, 255, 0.12); }
|
||||
.fleet-table tbody tr:hover { background: rgba(0, 255, 163, 0.06); }
|
||||
.fleet-table tbody tr.selected {
|
||||
background: rgba(0, 255, 163, 0.12);
|
||||
box-shadow: inset 3px 0 0 var(--neon), inset 0 0 18px rgba(0, 255, 163, 0.12);
|
||||
}
|
||||
|
||||
.status-ok { color: var(--ok); }
|
||||
.status-warn { color: var(--warn); }
|
||||
.status-err { color: var(--danger); }
|
||||
.status-info { color: var(--info); }
|
||||
.status-ok { color: var(--ok); text-shadow: 0 0 6px rgba(43, 255, 136, 0.55); }
|
||||
.status-warn { color: var(--warn); text-shadow: 0 0 6px rgba(255, 196, 77, 0.5); }
|
||||
.status-err { color: var(--danger); text-shadow: var(--glow-danger); }
|
||||
.status-info { color: var(--info); text-shadow: var(--glow-cyan); }
|
||||
.status-pending { color: var(--fg-dim); }
|
||||
|
||||
/* Compact FEC counter readout under the health pill in the preview
|
||||
|
|
@ -188,10 +338,10 @@ button.danger:hover:not(:disabled) { background: var(--danger-hover); border-col
|
|||
/* Verify-view table cells contain stacked before/after blocks; let
|
||||
them wrap and align to the top so before/after lines line up. */
|
||||
#verify-table tbody td { white-space: normal; vertical-align: top; }
|
||||
#verify-table .delta-arrow { color: var(--fg-dim); font-size: 11px; }
|
||||
#verify-table .delta-arrow { color: var(--neon); font-size: 11px; }
|
||||
#verify-table .before-line, #verify-table .after-line { display: block; }
|
||||
#verify-table .before-line { color: var(--fg-dim); font-size: 11px; }
|
||||
.fec-pill { font-weight: 600; }
|
||||
.fec-pill { font-weight: 700; }
|
||||
.fec-counters {
|
||||
display: block;
|
||||
margin-top: 3px;
|
||||
|
|
@ -209,5 +359,7 @@ button.danger:hover:not(:disabled) { background: var(--danger-hover); border-col
|
|||
padding: 1px 6px;
|
||||
border-radius: 3px;
|
||||
background: var(--bg-elev-2);
|
||||
border: 1px solid var(--border);
|
||||
border: 1px solid var(--neon);
|
||||
color: var(--neon);
|
||||
text-shadow: var(--glow-neon);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue