Files
pipelines/web/shell.css
T
alan 1eaedf5c53 web: move the detail sections into a tab row above the detail
The section list lived in the destination rail, next to Pipelines/Runs/Chat, which
read as navigation rather than as the current detail's view. On a wide screen the
sections are now a tab row at the top of the detail pane and the rail keeps only
destinations; narrow keeps the thumb-zone strip at the bottom.
2026-10-19 22:06:41 +01:00

573 lines
14 KiB
CSS

/* ===========================================================================
The persistent app shell (L2/L3/L4): 200px destination rail + workspace on
wide; workspace + bottom destination bar on narrow. The document never
scrolls: every pane owns its one scroller.
=========================================================================== */
html,
body {
height: 100%;
overflow: hidden;
}
body {
height: 100vh;
height: 100dvh;
}
.icon-sprite {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
}
.icon {
width: var(--icon-rail);
height: var(--icon-rail);
flex: none;
fill: none;
}
/* The first focusable on every route: invisible until focused. */
.skip-link {
position: fixed;
z-index: calc(var(--layer-toast) + 1);
top: 8px;
left: 8px;
padding: 8px 12px;
border-radius: var(--radius-control);
background: var(--color-elevated);
color: var(--color-text);
border: 1px solid var(--color-border);
transform: translateY(-160%);
}
.skip-link:focus {
transform: none;
}
.app-root {
display: flex;
flex-direction: column;
height: 100vh;
height: 100dvh;
min-height: 0;
overflow: hidden;
background: var(--color-bg);
}
/* ---- Workspace ---------------------------------------------------------- */
.workspace {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
outline: none;
}
/* The destination tabpanel inside the main landmark: it takes the workspace's
height and never scrolls itself (its panes own their scrollers). */
.pane-main {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
outline: none;
}
.content {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.pane-layout {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
overflow: hidden;
}
.list-pane,
.detail-pane {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.list-pane { background: var(--color-surface); }
.detail-pane { background: var(--color-bg); }
/* One scroller per pane. */
.list-scroll,
.pane-scroll,
.settings-pane {
flex: 1 1 auto;
min-height: 0;
min-width: 0;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
.list-pane > .list,
.list-pane > .gallery {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--color-surface);
}
/* A detail body that scrolls inside the pane; the section rail/strip stays
outside it. */
.detail-pane > .pane-scroll > .detail,
.detail-pane > .pane-scroll > .detail.run-detail {
min-height: 100%;
padding: var(--space-s);
background: transparent;
border: 0;
border-radius: 0;
}
.detail-pane > .pane-scroll > .detail > h1,
.detail-pane > .pane-scroll > .detail > .run-tab-body > h1 {
margin-top: 0;
}
/* Narrow Back-to-list controls. */
.pane-back {
display: none;
flex: 0 0 auto;
padding: var(--space-xs) var(--space-m) 0;
background: var(--color-bg);
}
.pane-back button {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: var(--density-control-height-small);
font-size: 13px;
color: var(--color-muted);
background: transparent;
border-color: transparent;
}
.pane-back button:hover { color: var(--color-text); background: var(--tint-hover); }
/* ---- Destination rail (wide) ------------------------------------------- */
.app-rail { display: none; }
.rail-brand {
display: flex;
align-items: center;
gap: var(--space-xs);
min-height: 48px;
padding: 0 var(--space-s);
margin-bottom: var(--space-xs);
color: var(--color-text);
font: var(--type-title-small);
letter-spacing: var(--tracking-tight);
}
.rail-brand-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: var(--radius-control);
background: var(--tint-selected-strong);
color: var(--color-accent);
font-size: 13px;
font-weight: var(--weight-semibold);
}
.rail-destinations,
.rail-tablist {
display: flex;
flex-direction: column;
gap: var(--space-3xs);
min-width: 0;
}
.rail-item,
.rail-search {
display: flex;
align-items: center;
gap: var(--space-s);
width: 100%;
min-height: var(--density-touch-target);
padding: 0 var(--space-s);
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
text-align: left;
text-decoration: none;
font-size: 14px;
font-weight: var(--weight-medium);
}
.rail-item:hover,
.rail-search:hover {
background: var(--tint-hover);
color: var(--color-text);
}
.rail-item[aria-selected="true"] {
position: relative;
background: var(--tint-selected);
color: var(--color-text);
font-weight: var(--weight-semibold);
}
.rail-item[aria-selected="true"]::before {
content: "";
position: absolute;
left: 0;
top: 10px;
bottom: 10px;
width: 3px;
border-radius: 3px;
background: var(--color-accent);
}
.rail-item .icon,
.rail-search .icon { color: currentColor; }
.rail-search { margin-top: var(--space-xs); }
.rail-search[aria-expanded="true"] { background: var(--tint-selected); color: var(--color-text); }
.rail-badge {
margin-left: auto;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 9px;
background: var(--color-accent);
color: var(--color-bg);
font-size: 11px;
font-weight: var(--weight-semibold);
font-variant-numeric: tabular-nums;
line-height: 18px;
text-align: center;
}
.rail-badge[hidden] { display: none; }
.rail-divider {
height: 1px;
flex: none;
margin: var(--space-s) var(--space-xs);
background: var(--color-divider);
}
.rail-sections { display: none; min-height: 0; }
.rail-sections.has-sections { display: block; }
.rail-heading {
margin: 0 0 var(--space-2xs);
padding: 0 var(--space-s);
color: var(--color-faint);
font: var(--type-label);
letter-spacing: var(--tracking-eyebrow);
text-transform: uppercase;
}
.rail-tab {
display: flex;
align-items: center;
gap: var(--space-xs);
width: 100%;
min-height: var(--density-control-height);
padding: 0 var(--space-s);
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
text-align: left;
font-size: 13px;
}
.rail-tab:hover { background: var(--tint-hover); color: var(--color-text); }
.rail-tab[aria-selected="true"] {
background: var(--tint-selected);
color: var(--color-text);
font-weight: var(--weight-semibold);
box-shadow: inset 2px 0 0 var(--color-accent);
}
.rail-footer {
margin-top: auto;
padding-top: var(--space-s);
border-top: 1px solid var(--color-divider);
}
/* The compact dot+word status control; always a Settings shortcut. */
.shell-status {
display: flex;
align-items: center;
gap: var(--space-xs);
width: 100%;
min-height: var(--density-control-height);
padding: 0 var(--space-s);
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
font-size: 12px;
text-align: left;
}
.shell-status:hover { background: var(--tint-hover); color: var(--color-text); }
.shell-status-dot {
width: 8px;
height: 8px;
flex: none;
border-radius: 50%;
background: currentColor;
}
.shell-status[data-state="connected"] { color: var(--color-ok); }
.shell-status[data-state="connecting"] { color: var(--color-warn); }
.shell-status[data-state="disconnected"] { color: var(--color-bad); }
.shell-status[data-state="idle"],
.shell-status[data-state="unconfigured"] { color: var(--color-muted); }
.shell-status-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---- Section strip (narrow) -------------------------------------------- */
.section-strip {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: var(--space-3xs);
min-width: 0;
padding: 4px var(--space-xs);
background: var(--color-surface);
border-top: 1px solid var(--color-divider);
overflow-x: auto;
overflow-y: hidden;
overscroll-behavior-x: contain;
scrollbar-width: none;
}
.section-strip::-webkit-scrollbar { display: none; }
.section-strip:empty { display: none; }
.strip-tab {
flex: 0 0 auto;
min-height: var(--density-touch-target);
display: inline-flex;
align-items: center;
padding: 0 var(--space-xs);
border: 1px solid transparent;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
font-size: 12px;
white-space: nowrap;
}
.strip-tab:hover { background: var(--tint-hover); color: var(--color-text); }
.strip-tab[aria-selected="true"] {
color: var(--color-text);
background: var(--color-surface-2);
border-color: var(--color-divider);
box-shadow: inset 0 -2px 0 var(--color-accent);
font-weight: var(--weight-semibold);
}
/* ---- Bottom destination bar (narrow) ----------------------------------- */
.destination-dock {
flex: 0 0 auto;
display: flex;
flex-direction: column;
gap: 2px;
padding: 2px var(--space-xs) calc(4px + env(safe-area-inset-bottom, 0px));
background: var(--color-surface);
border-top: 1px solid var(--color-divider);
}
.dock-status {
align-self: flex-start;
width: auto;
min-height: 26px;
padding: 0 var(--space-xs);
font-size: 11px;
}
.dock-row { display: flex; align-items: stretch; gap: 2px; min-width: 0; }
.dock-tabs { display: flex; flex: 1 1 auto; min-width: 0; gap: 2px; }
.dock-item {
position: relative;
flex: 1 1 0;
min-width: 0;
min-height: 48px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
padding: 4px 2px;
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
text-decoration: none;
font-size: 11px;
line-height: 14px;
}
.dock-item .icon { width: var(--icon-list); height: var(--icon-list); }
.dock-item-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-item:hover { background: var(--tint-hover); color: var(--color-text); }
.dock-item[aria-selected="true"] {
background: var(--tint-selected);
color: var(--color-accent);
font-weight: var(--weight-semibold);
}
.dock-badge {
position: absolute;
top: 3px;
right: 6px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: var(--radius-control);
background: var(--color-accent);
color: var(--color-bg);
font-size: 10px;
font-weight: var(--weight-semibold);
font-variant-numeric: tabular-nums;
line-height: 16px;
text-align: center;
}
.dock-badge[hidden] { display: none; }
.dock-search {
flex: 0 0 56px;
min-height: 48px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
font-size: 11px;
}
.dock-search .icon { width: var(--icon-list); height: var(--icon-list); }
.dock-search[aria-expanded="true"] { background: var(--tint-selected); color: var(--color-text); }
/* ---- Shared pane text --------------------------------------------------- */
.detail-title {
margin: 0 0 var(--space-xs);
font: var(--type-title);
letter-spacing: var(--tracking-tight);
overflow-wrap: anywhere;
}
.pane-head-actions { display: flex; gap: var(--space-2xs); align-items: center; flex: none; }
.pane-head-text { min-width: 0; }
.search-field-row { display: flex; gap: var(--space-xs); align-items: center; min-width: 0; }
.search-field-row .search-input { flex: 1 1 auto; }
.run-row-meta,
.metric-value,
.timeline-duration,
.artifact-size { font-variant-numeric: tabular-nums; }
.search-host {
flex: 0 0 auto;
min-width: 0;
background: var(--color-surface);
border-bottom: 1px solid var(--color-divider);
}
.search-host:empty { display: none; }
.search-host .search-panel { padding: var(--space-xs) var(--space-s); }
.search-input { flex: 1 1 240px; min-width: 0; }
/* ---- Wide layout (one breakpoint, 600px) -------------------------------- */
@media (min-width: 600px) {
.app-root { flex-direction: row; }
.app-rail {
display: flex;
flex-direction: column;
flex: 0 0 var(--layout-rail);
width: var(--layout-rail);
min-height: 0;
padding: var(--space-s) var(--space-xs);
background: var(--color-surface);
border-right: 1px solid var(--color-divider);
}
.workspace {
padding-top: env(safe-area-inset-top, 0px);
}
.app-rail {
/* Below 900px the rail gives up width it does not need so the detail pane
keeps a readable measure at the 600px switch. */
flex-basis: 168px;
width: 168px;
}
.pane-layout {
/* A grid track is sized from its MAX before the free track is resolved, so
minmax(200px, 360px) beside 1fr took 360px and clipped the detail to 40px
at 600px. Cap the list where the workspace is narrow; widen it only when
there is room for both. */
grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
}
.list-pane { border-right: 1px solid var(--color-divider); }
.pane-back { display: none; }
/* The detail's sections belong with the detail, not with the destinations:
on a wide screen they are a tab row above the detail body. The rail keeps
only the destinations. (Narrow keeps the thumb-zone strip at the bottom.) */
.rail-sections,
.rail-sections.has-sections { display: none; }
.section-strip {
order: -1;
border-top: 0;
border-bottom: 1px solid var(--color-divider);
background: var(--color-bg);
padding: 0 var(--space-s);
}
.destination-dock { display: none; }
}
@media (min-width: 900px) {
.app-rail { flex-basis: var(--layout-rail); width: var(--layout-rail); }
.pane-layout {
grid-template-columns: minmax(220px, var(--layout-list-max)) minmax(0, 1fr);
}
}
/* ---- Narrow layout ------------------------------------------------------ */
@media (max-width: 599px) {
.pane-layout { position: relative; }
.pane-layout > .list-pane,
.pane-layout > .detail-pane {
grid-area: 1 / 1;
display: none;
}
.pane-layout[data-active-pane="list"] > .list-pane,
.pane-layout[data-active-pane="detail"] > .detail-pane {
display: flex;
}
.pane-back { display: block; }
.pane-head { padding: var(--space-xs) var(--space-s); }
.detail-pane > .pane-scroll > .detail { padding: var(--space-s); }
.settings-pane > .settings { padding: var(--space-s) var(--space-s) var(--space-l); }
}