Files
rust-discovery/web/src/style.css
T
kevin_janssen 6ed57c4d0b
Rust development slice / linux (push) Failing after 7s
Show the same capacity bar for RAM and disk space
2026-11-18 18:47:46 +01:00

181 lines
15 KiB
CSS

:root {
color-scheme: light;
--canvas: #f4f6f5; --surface: #fff; --ink: #1b2e2c; --subtle: #526563; --line: #d7e0dd;
--accent: #17634f; --nav: #152d2a; --blue: #235e73;
font: 15px/1.55 system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .7em; text-wrap: pretty; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.65rem); font-weight: 680; letter-spacing: -.047em; }
h2 { font-size: 1.26rem; letter-spacing: -.025em; } h3 { font-size: 1.06rem; }
a, summary { color: var(--accent); }
p, li, td, dd, code { overflow-wrap: anywhere; }
main { padding: 28px; }
section, article, .login {
background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
padding: clamp(17px, 2.3vw, 27px); margin: 16px 0; min-width: 0;
}
article { background: #fbfcfb; }
label { display: block; margin: 12px 0; font-size: .92rem; font-weight: 600; }
input, select, textarea { display:block; width:100%; margin-top:5px; background:#fff; color:var(--ink); border:1px solid #adbfba; border-radius:6px; padding:9px 11px; font:inherit; font-weight:400; }
input[type=checkbox] { width:17px; height:17px; margin:0 7px 0 0; display:inline-block; vertical-align:middle; accent-color:var(--accent); }
button,.soft-button { background:var(--accent); color:white; border:1px solid transparent; border-radius:6px; font:inherit; font-weight:600; font-size:.91rem; padding:9px 14px; cursor:pointer; margin:3px 4px 3px 0; }
button:hover,.soft-button:hover { filter:brightness(.94); }
button:disabled { opacity:.48; cursor:not-allowed; filter:none; }
button.primary,.soft-button,.quiet { display:inline-flex; align-items:center; gap:7px; text-decoration:none; }
.quiet,.soft-button { background:white; color:var(--ink); border:1px solid var(--line); }
a.quiet { border-radius:6px; padding:7px 12px; }
.danger { color:#7b3029; background:#fdf1ee; border-color:#e6c4bc; }
.link { color:var(--blue); background:transparent; text-decoration:underline; padding:0; text-align:left; }
:focus-visible { outline:3px solid #318aad; outline-offset:3px; }
details { margin:12px 0; } summary { cursor:pointer; font-weight:600; }
pre,code,textarea { font-family:ui-monospace,monospace; } pre { padding:16px; background:#f0f4f2; border:1px solid var(--line); border-radius:6px; max-height:650px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.88rem; } textarea { tab-size:2; }
.muted,small { color:var(--subtle); } small { display:block; font-size:.82rem; }
.warning,.check,.simulation,.error { padding:12px 15px; border-radius:5px; }
.warning,.check,.simulation { color:#694913; background:#fff6dc; border-left:3px solid #c78c1b; }
.simulation { margin:12px clamp(16px,3vw,48px) 0; }
.error { background:#fff2ef; border:1px solid #e3b9b1; color:#842f27; white-space:pre-wrap; overflow-wrap:anywhere; margin:12px 0; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:5px 22px; }
.table { overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:.93rem; }
th,td { text-align:left; padding:12px; border-bottom:1px solid var(--line); vertical-align:middle; }
thead th { background:#f7f9f8; color:var(--subtle); font-weight:620; font-size:.81rem; }
.login { max-width:450px; margin:clamp(20px,10vh,100px) auto; border-top:4px solid var(--accent); padding:32px; }
.login h1 { margin-bottom:1em; font-size:1.8rem; }
.login form > button { width:100%; margin-top:12px; }
.workbench { display:grid; grid-template-columns:195px minmax(0,1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; height:100vh; height:100dvh; background:var(--nav); color:#eef7f3; display:flex; flex-direction:column; padding:25px 12px 15px; }
.brand { display:flex; align-items:center; gap:9px; padding:0 4px; color:white; text-decoration:none; font-weight:675; font-size:1.06rem; letter-spacing:-.035em; white-space:nowrap; }
.brand-mark { width:24px; flex:none; height:28px; position:relative; transform:rotate(-6deg); display:inline-block; }
.brand-mark i { position:absolute; width:18px; height:13px; border:2px solid #85c7a9; background:var(--nav); border-radius:3px; transform:skewY(-17deg); left:4px; top:11px; }
.brand-mark i:nth-child(2) { top:7px; } .brand-mark i:nth-child(3) { top:3px; background:#b5e9c7; border-color:#b5e9c7; }
.sidebar nav { margin-top:36px; display:grid; gap:5px; }
.sidebar nav a { position:relative; display:flex; align-items:center; gap:12px; padding:10px 13px; border-radius:7px; color:#c9d8d3; text-decoration:none; font-weight:500; }
.sidebar nav a:hover { background:#203d37; color:white; }
.sidebar nav a[aria-current=page] { background:#2c5045; color:#e4ffee; }
.sidebar nav a[aria-current=page]::before { position:absolute; content:""; left:0; height:16px; width:3px; background:#a4deb7; border-radius:2px; }
.nav-icon { width:19px; height:19px; flex:none; }
.account { margin-top:auto; border-top:1px solid #39504b; padding:15px 8px 2px; min-width:0; }
.account > div { display:flex; align-items:center; gap:7px; min-width:0; }
.account span:last-child { text-overflow:ellipsis; overflow:hidden; white-space:nowrap; font-size:.88rem; }
.account-dot { width:7px; height:7px; background:#91cfa3; border-radius:50%; flex:none; }
.account button { background:none; padding:5px 0; font-size:.83rem; font-weight:450; display:flex; align-items:center; gap:6px; color:#c5d8d0; }
.account button svg { width:14px; height:14px; }
.work-area { min-width:0; }
.topline { display:flex; min-height:64px; gap:16px; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding:8px clamp(16px,3vw,48px); background:#fafcfb; }
.crumb { display:flex; gap:10px; align-items:center; color:var(--subtle); font-size:.85rem; }
.crumb i { color:#889b94; font-style:normal; } .crumb b { font-weight:600; color:var(--ink); }
.context { display:flex; align-items:center; gap:8px; margin:0; font-size:.84rem; color:var(--subtle); }
.context select,.context strong { width:auto; max-width:min(52vw,24rem); font-size:.86rem; color:var(--ink); }
.context select { margin:0; padding:5px 8px; font-weight:600; }
.context strong { overflow-wrap:anywhere; }
.content { max-width:1800px; margin:0 auto; padding:clamp(20px,3.6vw,52px) clamp(16px,3vw,48px) 50px; }
.page-title { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.page-title h1 { margin:0; }
.page-title > div:has(.presence) { display:flex; align-items:center; gap:15px; flex-wrap:wrap; }
section.fleet { padding:0; overflow:hidden; }
.fleet-tabs,.subnav { display:flex; gap:19px; flex-wrap:wrap; border-bottom:1px solid var(--line); }
.fleet-tabs { padding:0 21px; }
.fleet-tabs button,.subnav a { background:none; border:0; border-radius:0; font-size:.93rem; font-weight:550; margin:0; padding:14px 1px 11px; border-bottom:3px solid transparent; color:var(--subtle); text-decoration:none; }
.fleet-tabs [aria-pressed=true],.subnav a[aria-current=page] { border-color:var(--accent); color:var(--accent); }
.filters { padding:17px 20px; display:flex; align-items:end; gap:12px; }
.filters label { margin:0; }
.filters label > span:not(.sr-only) { font-size:.78rem; color:var(--subtle); }
.filters input,.filters select { font-size:.9rem; padding:8px 10px; height:37px; }
.filters select { min-width:130px; max-width:210px; }
.search-box { position:relative; flex:1; min-width:100px; }
.search-box .nav-icon { position:absolute; bottom:10px; left:11px; width:16px; height:16px; color:var(--subtle); }
.search-box input { padding-left:34px; }
.fleet-table table { table-layout:fixed; }
.fleet-table td,.fleet-table th { padding:14px 9px; font-size:.88rem; }
.fleet-table th { font-size:.79rem; vertical-align:bottom; }
.fleet-table th:first-child,.fleet-table td:first-child { padding-left:18px; }
.fleet-table th:last-child,.fleet-table td:last-child { padding-right:18px; }
.fleet-table tbody tr { cursor:pointer; } .fleet-table tbody tr:hover,.fleet-table tr:focus-within { background:#f2f7f4; }
.release-table tbody tr { cursor:auto; }
.fleet-table .target-col { width:35px; }
.fleet-table td[data-label="Type"] { overflow-wrap:anywhere; }
.fleet-table input[type=checkbox] { margin:0; }
.host-link { padding:0; background:none; color:var(--accent); text-align:left; font-weight:680; margin:0; overflow-wrap:anywhere; }
.fleet-table .capacity-cell { font-variant-numeric:tabular-nums; }
.capacity-track { display:block; width:min(90px,100%); border-radius:2px; background:#e1ebe6; height:4px; margin-top:6px; overflow:hidden; }
.capacity-track i { display:block; height:100%; background:#659d84; }
.presence { display:inline-flex; align-items:center; gap:5px; border-radius:20px; padding:2px 8px; background:#edf1ef; color:#4d5f59; font-size:.8rem; font-weight:650; }
.presence i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.presence.online { color:#236343; background:#e6f4e9; }
.presence.historic { color:#80581c; background:#faf1df; }
.fleet small { font-size:.75rem; margin-top:3px; }
.list-message,.history-hint,.empty-list,.fleet > .error { margin:14px 20px; }
.history-hint,.list-footer { color:var(--subtle); font-size:.83rem; }
.empty-list { text-align:center; padding:28px 12px; } .empty-list svg { color:var(--subtle); } .empty-list h3 { margin:9px 0; }
.list-footer { padding:11px 19px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.selection { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:14px 18px; background:#ecf5ee; border:1px solid #b8d6c1; border-radius:8px; }
.selection > div { flex:1; }
.facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:18px 24px; margin-bottom:0; }
.facts dt { color:var(--subtle); font-size:.82rem; } .facts dd { margin:2px 0; font-weight:600; }
.order-results { margin-top:24px; }
.job-list { list-style:none; padding:0; }
.job-list > li { padding:8px 0; border-top:1px solid var(--line); }
.job-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.job-row strong { flex:1 1 8rem; }
.job-row button { margin:0; }
.device-job-name { flex:1 1 14rem; min-width:0; }
.job-result { margin-top:22px; scroll-margin-top:16px; border-color:#b9d5c8; background:#f2f8f5; }
.order-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap:12px; padding:16px 20px; border-bottom:1px solid var(--line); }
.order-filters label { margin:0; min-width:0; }
.order-filter-actions,.order-filters .error { grid-column:1/-1; }
.job-result > h3 { font-size:1.15rem; }
.job-result > section { margin:0; padding:0; border:0; background:none; }
.job-result > section > p:first-child { margin-top:0; }
.job-result .console-output { background:var(--surface); }
.job-list .job-result { margin:8px 0 2px; }
.order-script { margin-top:22px; }
.order-script > h3 { font-size:1.15rem; }
.order-script .script-body { max-height:24rem; }
.order-script .script-body:last-child { margin-bottom:0; }
@media (min-width:1101px) {
.order-execution:has(> .order-script) { display:grid; grid-template-columns:minmax(0, 3fr) minmax(0, 2fr); gap:16px; align-items:start; }
}
.device-detail > .quiet { margin-bottom:18px; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:1100px) and (min-width:761px) { .workbench {grid-template-columns:165px minmax(0,1fr);} .content {padding-left:18px;padding-right:18px;} .brand {font-size:1rem;} .fleet-table th,.fleet-table td {padding-inline:6px;} }
@media(max-width:760px) {
.workbench { display:block; }
.sidebar { position:static; height:auto; padding:13px 15px 0; display:grid; grid-template-columns:1fr auto; grid-template-areas:'brand account' 'nav nav'; align-items:center; gap:12px; }
.brand {grid-area:brand;padding:0;} .account {grid-area:account;border:0;margin:0;padding:0;} .account > div {display:none;} .account button {margin:0;}
.sidebar nav {grid-area:nav; display:flex; gap:1px; margin:0; padding-bottom:4px; overflow-x:auto;}
.sidebar nav a {display:flex; flex:1; justify-content:center; gap:5px; padding:7px 5px; font-size:.82rem;}
.sidebar nav .nav-icon {width:14px;height:14px;} .sidebar nav a[aria-current=page]::before {display:none;}
.topline {min-height:42px;flex-wrap:wrap;gap:6px 12px;} .content {padding-top:22px;} .page-title {margin-bottom:14px;}
.filters {flex-wrap:wrap;gap:8px;padding:12px 14px;align-items:stretch;} .filters label {flex:1 1 110px;} .filters .search-box {flex:1 0 100%;} .filters select {min-width:0;max-width:100%;} .fleet-tabs {padding:0 14px;}
.fleet-table thead {position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;}
.fleet-table table,.fleet-table tbody {display:block;} .fleet-table tr {display:grid;position:relative;grid-template-columns:1fr 1fr;gap:8px 14px;padding:15px 16px;border-top:1px solid var(--line);}
.fleet-table td,.fleet-table td:first-child,.fleet-table td:last-child {display:block;padding:0;border:0;font-size:.9rem;}
.fleet-table td[data-label]::before {content:attr(data-label);display:block;color:var(--subtle);font-size:.73rem;}
.fleet-table .hostname {grid-column:1/-1;padding-right:28px;} .host-link {font-size:1rem;}
.fleet-table .target-col {position:absolute;right:14px;top:14px;width:auto;} .capacity-track {width:76px;}
.list-footer {border-top:1px solid var(--line);flex-wrap:wrap;} .facts {grid-template-columns:1fr 1fr;gap:12px;}
}
@media(max-width:450px) { .sidebar nav a {flex-direction:column;gap:2px;} .crumb span,.crumb i {display:none;} .login {margin:18px 12px;} .facts {grid-template-columns:1fr;} }
@media(prefers-reduced-motion:no-preference) { a, button {transition:background-color 100ms,color 100ms;} }
.nav-count { display:inline-flex; align-items:center; justify-content:center; min-width:1.55em; padding:0 .35em; margin-left:auto; border-radius:12px; font-size:.73rem; color:#15382d; background:#b5e9c7; }
.sidebar nav a:has(.nav-count) { gap:7px; padding-inline:9px; }
.back-link { display:inline-block; margin:0 0 16px; font-size:.9rem; text-decoration:none; }
.back-link:hover { text-decoration:underline; }
.primary-action { display:inline-flex; align-items:center; gap:7px; padding:9px 14px; border-radius:6px; background:var(--accent); color:white; font-weight:600; text-decoration:none; }
.content fieldset { min-width:0; border:1px solid var(--line); border-radius:8px; padding:12px 18px 16px; margin:12px 0; }
.content legend { font-weight:650; padding:0 5px; }
.content textarea { min-height:5.5rem; }
@media(max-width:500px) {
.sidebar nav { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:2px; }
.sidebar nav a,.sidebar nav a:has(.nav-count) { flex-direction:row; padding:6px 2px; gap:4px; font-size:.78rem; }
.nav-count { margin-left:0; }
}
.order-status { display:inline-block; padding:2px 9px; border-radius:20px; color:#435a53; background:#edf2ef; font-size:.8rem; font-weight:630; }
.state-pending_approval,.state-awaiting_reboot,.state-unknown,.state-closed_unknown,.state-needs_attention { color:#77581a; background:#fcf1d5; }
.state-approved,.state-succeeded { color:#236343; background:#e6f4e9; }
.state-rejected,.state-failed,.state-revoked { color:#873c36; background:#faeae6; }
.state-running,.state-verifying { color:#285b70; background:#e6f1f6; }
@media(min-width:761px) { .order-list th:first-child { width:30%; } .order-list th:nth-child(2) {width:17%;} .order-list th:nth-child(3) {width:21%;} }