Files
pikasTech-HWLAB/web/hwlab-cloud-web/styles.css
T
2026-05-21 18:19:16 +00:00

326 lines
4.4 KiB
CSS

:root {
color-scheme: dark;
--bg: #101214;
--surface: #171a1f;
--surface-2: #20242b;
--surface-3: #252a32;
--text: #edf0e8;
--muted: #a9b0aa;
--line: #373d43;
--accent: #f0c75e;
--ok: #7fc97a;
--warn: #f0a35e;
--bad: #ff6b5f;
--mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
--body: "Aptos", "Segoe UI", system-ui, sans-serif;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
background: var(--bg);
color: var(--text);
font: 13px/1.45 var(--body);
}
body {
padding: 18px;
}
.shell {
max-width: 1380px;
margin: 0 auto;
display: grid;
gap: 12px;
}
.topbar,
.panel {
background: var(--surface);
border: 1px solid var(--line);
}
.topbar {
min-height: 74px;
display: flex;
justify-content: space-between;
gap: 16px;
align-items: center;
padding: 14px 16px;
}
.eyebrow {
margin: 0 0 2px;
color: var(--muted);
font-size: 11px;
letter-spacing: 0;
text-transform: uppercase;
}
h1,
h2,
p,
dl,
ol,
ul,
table {
margin: 0;
}
h1 {
font-size: 24px;
line-height: 1.1;
}
h2 {
font-size: 15px;
line-height: 1.2;
}
.status {
display: flex;
align-items: center;
justify-content: flex-end;
}
.panel {
padding: 14px 16px;
}
.panel.compact {
padding: 12px 14px;
}
.panel-head {
display: grid;
gap: 3px;
margin-bottom: 12px;
}
.panel-head p {
color: var(--muted);
max-width: 880px;
}
.split {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 12px;
}
.metrics {
display: grid;
gap: 8px;
}
.metrics.six {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
.metrics.two {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.metric,
.milestone {
min-width: 0;
background: var(--surface-2);
border: 1px solid var(--line);
padding: 9px 10px;
}
.metric-label {
display: block;
color: var(--muted);
font-size: 11px;
line-height: 1.2;
}
.metric-value {
display: block;
margin-top: 4px;
font-size: 13px;
line-height: 1.25;
overflow-wrap: anywhere;
}
.milestones {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 8px;
}
.milestone {
display: grid;
gap: 7px;
min-height: 118px;
}
.milestone-head,
.blocker-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.milestone p,
.blockers p {
color: var(--text);
overflow-wrap: anywhere;
}
.milestone small {
color: var(--muted);
}
.badge {
display: inline-flex;
align-items: center;
width: fit-content;
max-width: 100%;
min-height: 24px;
padding: 3px 8px;
border: 1px solid var(--line);
background: var(--surface-3);
color: var(--text);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
overflow-wrap: anywhere;
}
.tone-pass,
.tone-healthy {
color: var(--ok);
}
.tone-blocked,
.tone-network_blocker {
color: var(--bad);
}
.tone-not_run {
color: var(--warn);
}
.table-wrap {
overflow-x: auto;
border: 1px solid var(--line);
}
table {
width: 100%;
min-width: 900px;
border-collapse: collapse;
background: var(--surface-2);
}
th,
td {
text-align: left;
vertical-align: top;
padding: 8px 9px;
border-bottom: 1px solid var(--line);
}
th {
color: var(--muted);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
}
td {
max-width: 360px;
overflow-wrap: anywhere;
}
tbody tr:last-child td {
border-bottom: 0;
}
.mono {
font-family: var(--mono);
font-size: 12px;
}
.wrap {
overflow-wrap: anywhere;
word-break: break-word;
}
.danger {
border-color: color-mix(in srgb, var(--bad) 45%, var(--line));
}
.blockers,
.commands {
display: grid;
gap: 8px;
padding-left: 0;
list-style: none;
}
.blockers li,
.commands li {
min-width: 0;
padding: 9px 10px;
background: var(--surface-2);
border: 1px solid var(--line);
overflow-wrap: anywhere;
}
.commands {
counter-reset: command;
}
.commands li {
counter-increment: command;
}
.commands li::before {
content: counter(command) ". ";
color: var(--accent);
font-family: var(--body);
font-weight: 700;
}
@media (max-width: 1120px) {
.metrics.six,
.milestones {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 820px) {
body {
padding: 10px;
}
.topbar,
.split {
grid-template-columns: 1fr;
}
.topbar {
display: grid;
align-items: start;
}
.status {
justify-content: flex-start;
}
.metrics.six,
.metrics.two,
.milestones {
grid-template-columns: 1fr;
}
}