Files
stack/packages/webui/src/public/workflows.css
T

57 lines
3.2 KiB
CSS

/* SP9 (#1873): the read-only workflow pages (#/orgs/<id>/workflows[/<name>]) and the organization
page's Workflows card. Colours come from the theme tokens, so light and dark both follow the theme. */
.wfg{min-width:0}
.wfg h2{font-size:15px;margin:22px 0 8px}
.wfg-scope:first-of-type h2{margin-top:6px}
.wfg-list{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.wfg-item{padding:12px 14px;border-top:1px solid var(--line-soft,var(--line));overflow-wrap:anywhere}
.wfg-item:first-child{border-top:0}
.wfg-item-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.wfg-item-h a{font-weight:600;color:var(--action,var(--accent));text-decoration:none}
.wfg-item-h a:hover{text-decoration:underline}
.wfg-desc{margin:4px 0 0;color:var(--muted);font-size:13.5px}
.wfg-chain{list-style:none;display:flex;flex-wrap:wrap;gap:4px 0;margin:8px 0 0;padding:0;font-size:13px;color:var(--text)}
.wfg-chain li{display:inline-flex;align-items:center}
.wfg-chain li+li::before{content:"\2192";color:var(--muted);padding:0 8px}
:is(.wfg,.wfg-card) a:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:4px}
/* The graph scrolls inside its own frame when it is wider than the frame; the page never does. */
.wfg-frame{max-width:100%;overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px}
.wfg-graph{display:block}
.wfg-graph.is-vertical{width:100%;max-width:340px;height:auto;margin:0 auto}
.wfg-node{cursor:pointer;text-decoration:none}
.wfg-node rect{fill:var(--canvas);stroke:var(--line);stroke-width:1.5}
.wfg-node:hover rect{stroke:var(--muted)}
.wfg-node.is-sel rect{stroke:var(--accent);stroke-width:2.5;fill:var(--raised)}
.wfg-node:focus{outline:none}
.wfg-node:focus-visible rect{stroke:var(--focus);stroke-width:3}
.wfg-node text{font-family:var(--font);fill:var(--text)}
.wfg-meta{font-size:12px;fill:var(--muted)!important;letter-spacing:.02em}
.wfg-title{font-size:15px;font-weight:600;fill:var(--strong,var(--text))!important}
.wfg-roles{font-size:13px;font-family:var(--mono)!important;fill:var(--text)}
.wfg-miss{font-size:12px;fill:var(--danger)!important}
.wfg-node .wfg-none{fill:var(--muted);font-family:var(--font)}
.wfg-edge{fill:none;stroke:var(--muted);stroke-width:1.5}
.wfg-arrow{fill:var(--muted)}
.wfg-detail{margin-top:16px;overflow-wrap:anywhere}
.wfg-detail h2{margin:0 0 10px}
.wfg-dl{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:8px 16px;margin:0 0 12px}
.wfg-dl dt{color:var(--muted);font-size:13px}
.wfg-dl dd{margin:0}
@media (max-width:700px){
.wfg-dl{grid-template-columns:minmax(0,1fr);gap:2px}
.wfg-dl dd{margin-bottom:8px}
}
/* The organization page's card, above Settings in the right column. */
.wfg-card>.ws-sec-h{margin-top:0}
.wfg-card+.ws-sec-h{margin-top:22px}
.wfg-cardlist{list-style:none;margin:0}
.wfg-cardlist li+li{border-top:1px solid var(--line-soft,var(--line))}
.wfg-cardlist a{display:block;padding:8px 0;color:var(--text);text-decoration:none;overflow-wrap:anywhere}
.wfg-cardlist a:hover strong{text-decoration:underline}
.wfg-cardlist strong{color:var(--action,var(--accent))}
.wfg-card [data-wfg-none]{margin:0 0 8px}
.wfg-card p:last-child{margin-bottom:0}