Files
pipelines/web/shell.css
T
alan 3314f8405b web: one status glyph, a compact settings button and collapsible panes
- Run and pipeline rows use one coloured status glyph with the word in its
  tooltip; the run version sits at the right of the title line; the usage
  metrics row is gone.
- Settings is an icon beside the connection status (rail and dock), not a
  destination tab; the destinations keep a roving tab even while Settings is
  open.
- The rail and every list pane collapse to a narrow strip from an icon at their
  top-right (remembered per device). A collapsed runs list shows the status
  glyph, pipelines their flow glyph, chats their status word.
- Tool calls open in a modal (rendered/expanded rows in place) instead of an
  inline popover; the chip stays a quiet line beside the message.
- Refresh tooltips show the last data arrival (manual or socket) per
  destination.
2026-10-20 01:36:38 +01:00

604 lines
16 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-icon { width: 26px; height: 26px; flex: none; border-radius: 7px; display: block; }
.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; }
/* Search opens a modal, so it leads the rail rather than squatting at the
bottom next to the status; Settings is the last destination. */
.rail-search { margin: var(--space-xs) 0 var(--space-s); }
.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);
}
/* The Search / destinations boundary needs to read as a separator, not vanish. */
.rail-divider-visible { background: var(--color-border); margin: var(--space-xs) var(--space-s); }
.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: stretch;
gap: 0;
min-width: 0;
padding: 0 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; }
/* Real tabs, not chips: flush cells on a bar, the selected one underlined and
filled with the panel's own surface so it reads as connected to the content. */
.strip-tab {
position: relative;
flex: 0 0 auto;
min-height: var(--density-touch-target);
display: inline-flex;
align-items: center;
padding: 0 var(--space-s);
border: 0;
border-radius: 0;
background: transparent;
color: var(--color-muted);
font-size: 12.5px;
font-weight: var(--weight-medium);
white-space: nowrap;
}
.strip-tab:hover { background: var(--tint-hover); color: var(--color-text); }
.strip-tab[aria-selected="true"] {
color: var(--color-text);
font-weight: var(--weight-semibold);
background: var(--color-bg);
box-shadow: inset 0 -2px 0 var(--color-accent);
}
.strip-tab:focus-visible { outline-offset: -3px; }
/* ---- 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-surface);
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); }
}
/* Settings sits beside the connection status, not in the destination list. */
.rail-footer-row { display: flex; align-items: center; gap: 6px; }
.rail-footer-row .shell-status { flex: 1 1 auto; min-width: 0; }
.shell-settings {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--muted);
}
.shell-settings:hover { background: var(--tint-hover); color: var(--color-text); }
.shell-settings.active { background: var(--tint-selected); color: var(--color-text); }
.dock-status-row { display: flex; align-items: stretch; gap: 2px; }
.dock-status-row .dock-status { flex: 1 1 auto; min-width: 0; }
.dock-settings { width: 56px; height: 48px; }