Add static assets
This commit is contained in:
454
static/styles.css
Normal file
454
static/styles.css
Normal file
@@ -0,0 +1,454 @@
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--bg: #111415;
|
||||
--panel: #1c2224;
|
||||
--panel-soft: #242b2e;
|
||||
--text: #eff4f2;
|
||||
--muted: #9fb0aa;
|
||||
--line: #344044;
|
||||
--accent: #33c7a2;
|
||||
--accent-strong: #58ddbb;
|
||||
--danger: #ff716b;
|
||||
--warn: #f4c45f;
|
||||
--button: #2d6f88;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
button {
|
||||
min-height: 38px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 6px;
|
||||
background: var(--button);
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
padding: 0 14px;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
filter: brightness(1.08);
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
button.secondary {
|
||||
background: var(--panel-soft);
|
||||
border-color: var(--line);
|
||||
}
|
||||
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
width: 100%;
|
||||
min-height: 38px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: #121718;
|
||||
color: var(--text);
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
min-height: 82px;
|
||||
padding: 9px 10px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
textarea:disabled {
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin: 12px 0 6px;
|
||||
color: var(--muted);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.shell {
|
||||
width: min(1440px, 100%);
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.6rem;
|
||||
font-weight: 720;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.topbar p,
|
||||
.hint {
|
||||
color: var(--muted);
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.status-pill {
|
||||
min-width: 110px;
|
||||
text-align: center;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--line);
|
||||
background: var(--panel);
|
||||
color: var(--muted);
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.status-pill.online {
|
||||
color: #071512;
|
||||
background: var(--accent-strong);
|
||||
border-color: var(--accent-strong);
|
||||
}
|
||||
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: 340px minmax(0, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.main-stack {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.panel {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.panel-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.side {
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.scan-row,
|
||||
.send-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.full {
|
||||
width: 100%;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.divider {
|
||||
height: 1px;
|
||||
background: var(--line);
|
||||
margin: 18px 0;
|
||||
}
|
||||
|
||||
.dashboard {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.metric {
|
||||
min-height: 76px;
|
||||
background: #151a1c;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.metric.wide {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
.metric span {
|
||||
display: block;
|
||||
color: var(--muted);
|
||||
font-size: 0.8rem;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.metric strong {
|
||||
display: block;
|
||||
overflow-wrap: anywhere;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.command-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 280px minmax(0, 1fr);
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 0 10px;
|
||||
}
|
||||
|
||||
.send-row {
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.precision-actions,
|
||||
.log-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.log-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto auto;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.inline-check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: fit-content;
|
||||
margin-bottom: 12px;
|
||||
color: var(--muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.inline-check input {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.precision-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
|
||||
gap: 14px;
|
||||
align-items: start;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.plot-wrap {
|
||||
width: 100%;
|
||||
aspect-ratio: 1 / 1;
|
||||
border: 1px solid #222b2e;
|
||||
border-radius: 6px;
|
||||
background: #0a0d0e;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#precisionPlot {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.trend-controls {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 180px;
|
||||
gap: 12px;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.trend-wrap {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
border: 1px solid #222b2e;
|
||||
border-radius: 6px;
|
||||
background: #0a0d0e;
|
||||
overflow: hidden;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
#metricTrendPlot {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.log-status {
|
||||
min-height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: #151a1c;
|
||||
color: var(--muted);
|
||||
padding: 0 10px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.stat {
|
||||
min-height: 68px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: #151a1c;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.stat span {
|
||||
display: block;
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
|
||||
.stat strong {
|
||||
display: block;
|
||||
overflow-wrap: anywhere;
|
||||
font-size: 0.98rem;
|
||||
}
|
||||
|
||||
.segmented {
|
||||
display: flex;
|
||||
background: #121718;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.segmented button {
|
||||
min-height: 32px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.segmented button.active {
|
||||
background: var(--accent);
|
||||
color: #071512;
|
||||
}
|
||||
|
||||
.terminal-panel {
|
||||
min-height: 420px;
|
||||
}
|
||||
|
||||
#terminal {
|
||||
height: 360px;
|
||||
overflow: auto;
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
background: #0a0d0e;
|
||||
border: 1px solid #222b2e;
|
||||
color: #c7f7e7;
|
||||
font-family: "Cascadia Code", Consolas, monospace;
|
||||
font-size: 0.86rem;
|
||||
line-height: 1.45;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.tx {
|
||||
color: #8dc8ff;
|
||||
}
|
||||
|
||||
.rx {
|
||||
color: #d6f7e8;
|
||||
}
|
||||
|
||||
.bad {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.ok {
|
||||
color: var(--accent-strong);
|
||||
}
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
.layout,
|
||||
.command-grid,
|
||||
.precision-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.dashboard {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.metric.wide {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.shell {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.dashboard,
|
||||
.fields,
|
||||
.scan-row,
|
||||
.send-row,
|
||||
.log-row,
|
||||
.trend-controls,
|
||||
.stats-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.precision-actions {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.precision-actions button {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.metric.wide {
|
||||
grid-column: span 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user