Path: redb-route/vscode-redb-route/media/graph.css Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/vscode-redb-route/media/graph.css ---- /* The Ф8 graph: every color is a VSCode THEME variable (09-UX §6) — the view lives in the user's theme, light and dark both, nothing hard-coded. */ body { font-family: var(--vscode-font-family); font-size: 12px; color: var(--vscode-foreground); background: var(--vscode-editor-background); margin: 0; padding: 10px 14px; } /* ── route ─────────────────────────────────────────────────────────── */ .route { margin-bottom: 14px; overflow-x: auto; padding-bottom: 2px; } .route-header { font-weight: 600; margin: 6px 0 4px; color: var(--vscode-foreground); } .route-header .description { font-weight: 400; opacity: 0.7; margin-left: 8px; } /* ── the strip above (onException etc, §3.9) ───────────────────────── */ .strip { border-bottom: 1px solid var(--vscode-editorWidget-border, var(--vscode-panel-border)); padding: 2px 0 4px; margin-bottom: 6px; opacity: 0.9; } .strip > summary { cursor: pointer; color: var(--vscode-editorWarning-foreground); list-style: none; } .strip > summary::before { content: "▲ "; } /* ── the main line: a horizontal row that wraps only inside branches ── */ .seq { display: flex; flex-direction: row; /* the main line runs through the vertical CENTER: a branching block forks off it and the continuation visibly rejoins after the whole block, not after its first row */ align-items: center; flex-wrap: nowrap; width: max-content; } .seq > * { flex: none; } /* The gap between two steps: the SVG overlay draws the curve and its arrowhead through it. */ .edge { align-self: center; width: 30px; flex: none; margin: 0 1px; position: relative; } /* ── nodes (§3.2, §6): category first, icon second ─────────────────── */ .node { display: inline-flex; align-items: baseline; gap: 4px; border-radius: 3px; padding: 1px 6px; cursor: pointer; /* every element is a BOX (owner request 2026-09-09): neutral steps get the muted outline, category colors override it and keep the visual hierarchy */ border: 1px solid var(--vscode-editorWidget-border, var(--vscode-panel-border, #555)); max-width: 260px; white-space: nowrap; } .node:hover { outline: 1px solid var(--vscode-focusBorder); } .node .t { opacity: 0.6; font-size: 0.85em; } .node .icon { opacity: 0.9; } /* category weights and colors */ .cat-source { border-color: var(--vscode-charts-green, #89d185); border-left-width: 4px; } .cat-sendExternal { background: var(--vscode-button-background); color: var(--vscode-button-foreground); } .cat-sendExternal .t { opacity: 0.8; } .cat-sendInternal { border-color: var(--vscode-button-background); color: var(--vscode-foreground); } .cat-transform { opacity: 0.85; } .cat-flow { border-color: var(--vscode-charts-blue, #75beff); font-weight: 600; padding: 3px 10px; } .cat-errors { border-color: var(--vscode-editorWarning-foreground, #cca700); color: var(--vscode-editorWarning-foreground, #cca700); } .cat-userCode { border-color: var(--vscode-charts-purple, #b180d7); } .cat-unknown { border-style: dashed; border-color: var(--vscode-descriptionForeground); opacity: 0.8; } /* ── scope: a bracket over its stretch (§3.3, §3.7) ────────────────── */ .scope { border: 1px solid var(--vscode-charts-blue, #75beff); border-radius: 6px; padding: 3px 6px 4px; margin: 0 2px; } .scope.cat-errors { border-color: var(--vscode-editorWarning-foreground, #cca700); } .scope.cat-transform { border-color: var(--vscode-editorWidget-border, #666); } .scope > .scope-head { font-size: 0.85em; opacity: 0.85; margin-bottom: 2px; cursor: pointer; white-space: nowrap; } .scope > .scope-head .repeat { margin-left: 4px; } /* ── branching: a stack of rows (§3.4, §3.6) ───────────────────────── */ /* The decision diamond with the stack of branches beside it; the curves of the overlay carry the fan out and the merge back, so the group needs no box and no rail of its own. */ .branching { display: flex; flex-direction: row; align-items: center; gap: 40px; margin: 0 2px; } /* the stack of branch rows to the right of the diamond */ .lstack { display: flex; flex-direction: column; gap: 14px; } .branch { display: flex; align-items: center; gap: 0; } .branch > .branch-label { flex: none; font-size: 0.85em; opacity: 0.85; border: 1px solid var(--vscode-editorWidget-border, #666); border-radius: 3px; padding: 1px 6px; cursor: pointer; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .branch > .branch-label.warn { color: var(--vscode-editorWarning-foreground, #cca700); border-color: var(--vscode-editorWarning-foreground, #cca700); } /* ── bean declarations: a muted registry row, not steps ────────────── */ .beans { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; margin: 4px 0 10px; opacity: 0.85; } .beans-title { opacity: 0.6; font-size: 0.85em; } .bean-chip { border: 1px solid var(--vscode-charts-purple, #b180d7); border-radius: 8px; padding: 0 7px; cursor: pointer; font-size: 0.9em; } .bean-chip:hover { outline: 1px solid var(--vscode-focusBorder); } /* ── the layout toggle ─────────────────────────────────────────────── */ .toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; justify-content: flex-end; padding: 2px 0 6px; background: var(--vscode-editor-background); } .toolbar button { background: none; border: 1px solid var(--vscode-editorWidget-border, var(--vscode-panel-border)); color: var(--vscode-foreground); border-radius: 3px; padding: 1px 8px; cursor: pointer; font-size: 0.85em; opacity: 0.7; } .toolbar button.active { opacity: 1; border-color: var(--vscode-focusBorder); background: var(--vscode-list-activeSelectionBackground, transparent); } .toolbar .zoom-box { display: inline-flex; gap: 2px; margin-left: 10px; } .toolbar .zoom-pct { min-width: 46px; } /* The zoomed drawing surface (the toolbar and the panel stay 1:1). max-content keeps the box hugging its widest child, so the curve overlay's rect covers ALL of the content. */ .canvas { position: relative; width: max-content; min-width: 100%; } /* ── the vertical layout: TD columns, routes side by side ──────────── */ .routes-grid { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; } .routeV { flex: none; max-width: 100%; margin-bottom: 10px; } .vcol { display: flex; flex-direction: column; align-items: flex-start; width: max-content; max-width: 100%; } /* vertical edge with a DOWN arrowhead — the message goes that way */ .vedge { align-self: center; height: 14px; width: 0; border-left: 1px solid var(--vscode-descriptionForeground); opacity: 0.55; position: relative; margin: 1px 0; } .vedge::after { content: ""; position: absolute; left: -3.5px; bottom: -1px; border-top: 5px solid var(--vscode-descriptionForeground); border-left: 3px solid transparent; border-right: 3px solid transparent; } /* nodes and slots center on the column's spine */ .vcol > .node, .vcol > .slot, .vcol > .scope, .vcol > .vbranching { align-self: center; } .vcol > .slot { height: 12px; } .vertical .seq:hover > .slot { opacity: 0.45; } .vcol:hover > .slot { opacity: 0.45; } .vscope { margin: 2px 0; } .vscope > .vcol { padding: 2px 8px; } .vbranching { display: flex; flex-direction: column; align-items: center; margin: 2px 0; /* the group contour: choice/tryCatch and their branches are ONE visible box */ border: 1px solid var(--vscode-charts-blue, #75beff); border-radius: 6px; padding: 5px 10px 6px; } .vbranching.cat-errors { border-color: var(--vscode-editorWarning-foreground, #cca700); } .vbranch-head { display: inline-flex; align-items: baseline; gap: 4px; border: 1px solid var(--vscode-charts-blue, #75beff); border-radius: 3px; padding: 1px 8px; font-weight: 600; cursor: pointer; } .vbranch-head.cat-errors { border-color: var(--vscode-editorWarning-foreground, #cca700); } /* the RAIL under the head; every branch hangs off it with a vertical stub */ .vfan { display: flex; align-items: flex-start; gap: 18px; margin-top: 8px; border-top: 1px solid var(--vscode-descriptionForeground); } .vbranch { display: flex; flex-direction: column; align-items: center; } .vbranch::before { content: ""; height: 9px; border-left: 1px solid var(--vscode-descriptionForeground); opacity: 0.55; margin-bottom: 2px; } .vbranch > .branch-label { margin-top: 0; } /* ── the mermaid look: SVG curves + shapes over the columnar layout ── */ .mermaid-look { position: relative; } .edge-overlay { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 0; } .edge-overlay path { stroke: var(--vscode-descriptionForeground); stroke-width: 1.5; opacity: 1; } .edge-overlay path.head { fill: var(--vscode-descriptionForeground); stroke: none; } /* the curves carry the flow — the stub edges and rails step aside */ .mermaid-look .vedge, .mermaid-look .vbranch::before { display: none; } .mermaid-look .vfan { border-top: none; margin-top: 30px; gap: 26px; } .mermaid-look .vcol { row-gap: 26px; } .mermaid-look .vbranching { border: none; padding: 0; } .mermaid-look .routes-grid { gap: 8px 44px; } .mermaid-look .routeV { z-index: 1; } .mermaid-look .node, .mermaid-look .scope, .mermaid-look .vbranch-head, .mermaid-look .branch-label { position: relative; z-index: 1; } /* slots stay silent until pointed at — a blue plus ON a curve is noise */ .mermaid-look .vcol:hover > .slot { opacity: 0; } .mermaid-look .slot:hover, .mermaid-look .slot.drop { opacity: 1 !important; } /* mermaid-ish fills and shapes */ .mermaid-look .node { background: var(--vscode-editorWidget-background, var(--vscode-editor-background)); padding: 3px 10px; border-radius: 4px; } .mermaid-look .vbranch-head { /* the decision diamond */ clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border: none; background: var(--vscode-list-hoverBackground, var(--vscode-editorWidget-background)); padding: 14px 36px; } .mermaid-look .branch-label { /* the condition hexagon */ clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); border: none; background: var(--vscode-list-hoverBackground, var(--vscode-editorWidget-background)); box-shadow: none; padding: 5px 18px; max-width: 340px; } /* the bracket as a mermaid subgraph: light rounded box, muted title top-left, the category kept as a thin left accent */ .mermaid-look .scope { border: 1px solid var(--vscode-editorWidget-border, var(--vscode-panel-border)); border-left: 3px solid var(--vscode-charts-blue, #75beff); border-radius: 10px; padding: 6px 14px 10px; } .mermaid-look .scope.cat-errors { border-left-color: var(--vscode-editorWarning-foreground, #cca700); } .mermaid-look .scope.cat-transform { border-left-color: var(--vscode-editorWidget-border, #666); } /* The vscope is a plain block outside this mode; align-self on the head needs a flex parent, or the head stays a full-width block hugging the left edge. */ .mermaid-look .vscope { display: flex; flex-direction: column; align-items: center; } .mermaid-look .scope > .scope-head { /* centered above the content column — the entry curve is a short vertical, not a dive from the far-left corner of a wide box */ align-self: center; opacity: 0.75; border: none; padding: 0 0 6px; } /* ── the snake: the main line wrapped into rows (§2, §11) ──────────── */ .seq.measure { position: absolute; visibility: hidden; left: -10000px; top: 0; } .atom { display: inline-flex; align-items: center; flex: none; } .snake { display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: 100%; } .snake-row { min-height: 34px; } /* The elbows at the ends of a wrapped row: they only hold the room the carriage return turns in, the overlay draws the turn itself. */ .wrap { flex: none; align-self: stretch; width: 14px; position: relative; min-height: 22px; } .wrap.out { margin-left: 2px; } .wrap.in { margin-right: 2px; } /* The lane between two rows the carriage return runs along; the overlay draws it, the lane only holds its height. Width is set inline to the actual row width. */ .uturn { position: relative; height: 24px; flex: none; } /* ── collapse (§4) ─────────────────────────────────────────────────── */ .fold { cursor: pointer; opacity: 0.6; padding: 0 3px; user-select: none; } .fold:hover { opacity: 1; } .node.collapsed { font-weight: 600; border-style: solid; } .scope.compact { display: flex; align-items: center; border: none; padding: 0; } .scope.compact > .scope-head { margin-bottom: 0; border: 1px solid var(--vscode-charts-blue, #75beff); border-radius: 4px; padding: 1px 6px; } .scope.compact.cat-errors > .scope-head { border-color: var(--vscode-editorWarning-foreground, #cca700); } /* ── insert slots and the palette (§8.4, §8.5) ─────────────────────── */ .slot { align-self: center; flex: none; width: 10px; height: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity 0.1s; } .seq:hover > .slot { opacity: 0.45; } .slot:hover { opacity: 1 !important; } .slot.drop { opacity: 1 !important; } .slot-plus { font-weight: 700; color: var(--vscode-charts-blue, #75beff); pointer-events: none; } .slot.drop .slot-plus { color: var(--vscode-focusBorder); } [draggable="true"] { cursor: grab; } #overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 10; } #overlay.open { display: block; } .palette { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); width: 340px; max-height: 70vh; display: flex; flex-direction: column; background: var(--vscode-editorWidget-background, var(--vscode-editor-background)); border: 1px solid var(--vscode-editorWidget-border, var(--vscode-panel-border)); border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); } .palette-search { margin: 8px; background: var(--vscode-input-background); color: var(--vscode-input-foreground); border: 1px solid var(--vscode-input-border, transparent); border-radius: 2px; padding: 4px 8px; } .palette-list { overflow-y: auto; padding: 0 4px 8px; } .palette-cat { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.55; margin: 8px 6px 3px; } .palette-item { display: flex; justify-content: space-between; gap: 8px; padding: 3px 8px; border-radius: 3px; cursor: pointer; } .palette-item:hover { background: var(--vscode-list-hoverBackground); } .palette-hint { opacity: 0.55; font-size: 0.85em; } .panel-actions button.danger { margin-left: 6px; color: var(--vscode-editorError-foreground, #f66); } /* ── the context menu: editing verbs one right-click away ──────────── */ .ctx-menu { position: fixed; z-index: 30; min-width: 170px; background: var(--vscode-menu-background, var(--vscode-editorWidget-background)); color: var(--vscode-menu-foreground, var(--vscode-foreground)); border: 1px solid var(--vscode-menu-border, var(--vscode-editorWidget-border)); border-radius: 5px; padding: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); } .ctx-item { padding: 4px 12px; border-radius: 3px; cursor: pointer; white-space: nowrap; } .ctx-item:hover { background: var(--vscode-menu-selectionBackground, var(--vscode-list-hoverBackground)); color: var(--vscode-menu-selectionForeground, inherit); } .ctx-item.danger { color: var(--vscode-editorError-foreground, #f66); } /* while dragging, every drop slot lights up — mermaid mode included */ .dragging .slot { opacity: 0.55 !important; } /* ── selection and the properties panel (§8) ───────────────────────── */ .selected { outline: 2px solid var(--vscode-focusBorder) !important; outline-offset: 1px; } body.with-panel { padding-right: calc(var(--panel-width, 380px) + 12px); } #panel { position: fixed; top: 0; right: 0; bottom: 0; width: var(--panel-width, 380px); overflow-y: auto; background: var(--vscode-sideBar-background, var(--vscode-editor-background)); border-left: 1px solid var(--vscode-editorWidget-border, var(--vscode-panel-border)); padding: 8px 10px; box-sizing: border-box; } #panel:empty { display: none; } .panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .panel-type { font-weight: 600; } .panel-close { cursor: pointer; opacity: 0.6; padding: 2px 5px; } .panel-close:hover { opacity: 1; } .field { display: flex; flex-direction: column; gap: 2px; margin-bottom: 7px; } .field label { font-size: 0.85em; opacity: 0.75; } .field.undeclared label { font-style: italic; } .field .value { background: var(--vscode-input-background); color: var(--vscode-input-foreground); border: 1px solid var(--vscode-input-border, transparent); border-radius: 2px; padding: 3px 6px; font-family: var(--vscode-editor-font-family, monospace); font-size: 0.95em; } .field .value:focus { outline: 1px solid var(--vscode-focusBorder); } .field .value:disabled { opacity: 0.55; } .panel-section { margin: 12px 0 6px; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.55; border-top: 1px solid var(--vscode-editorWidget-border, var(--vscode-panel-border)); padding-top: 8px; } .content-row { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; } .content-type { flex: none; font-size: 0.8em; opacity: 0.6; min-width: 52px; } .content-row .value { flex: 1; min-width: 0; } .content-opaque { flex: 1; font-family: var(--vscode-editor-font-family, monospace); font-size: 0.85em; opacity: 0.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .content-remove { flex: none; cursor: pointer; opacity: 0.5; padding: 0 3px; } .content-remove:hover { opacity: 1; color: var(--vscode-editorError-foreground, #f66); } .content-add { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; } .content-add button { background: none; border: 1px dashed var(--vscode-descriptionForeground); color: var(--vscode-foreground); border-radius: 3px; padding: 1px 8px; cursor: pointer; font-size: 0.85em; opacity: 0.8; } .content-add button:hover { opacity: 1; border-style: solid; } .panel-actions { margin-top: 10px; border-top: 1px solid var(--vscode-editorWidget-border, var(--vscode-panel-border)); padding-top: 8px; } .panel-actions button { background: var(--vscode-button-secondaryBackground, var(--vscode-button-background)); color: var(--vscode-button-secondaryForeground, var(--vscode-button-foreground)); border: none; border-radius: 3px; padding: 4px 10px; cursor: pointer; } /* ── whole-file states ─────────────────────────────────────────────── */ .notice { margin: 30px auto; max-width: 480px; text-align: center; opacity: 0.85; } .notice button { margin-top: 10px; background: var(--vscode-button-background); color: var(--vscode-button-foreground); border: none; border-radius: 3px; padding: 5px 12px; cursor: pointer; } /* ── the mermaid look over the snake: left to right, curves carry the flow ── */ /* the rows sit right under one another: the curve, not a gap, carries the eye across */ .mermaid-look.lr .snake { gap: 0; } /* a bracket reads left to right as well: its title first, the body beside it */ .mermaid-look.lr .scope { display: flex; flex-direction: row; align-items: center; gap: 30px; padding: 10px 16px; } .mermaid-look.lr .scope > .scope-head { align-self: center; padding: 0; margin: 0; } .mermaid-look .lbranch-head { /* the decision diamond, as in the top-down mermaid look */ position: relative; z-index: 1; flex: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--vscode-list-hoverBackground, var(--vscode-editorWidget-background)); padding: 14px 34px; white-space: nowrap; cursor: pointer; } /* ── tiles: one size for every step, a glyph and a short caption (owner, 2026-09-24) ── The glyph carries the color of its group, the tile stays neutral; the details of a step live in the tooltip and the properties panel. "stacked" puts the glyph over the caption, "inline" (root.tiles-inline) beside it. */ .tile { --tone: var(--vscode-descriptionForeground); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: none; box-sizing: border-box; width: 66px; height: 52px; padding: 4px 2px 3px; position: relative; cursor: pointer; white-space: nowrap; max-width: none; } .tile .glyph { display: block; width: 24px; height: 24px; flex: none; color: var(--tone); } .tile .glyph svg { display: block; width: 24px; height: 24px; } .tile .cap { font-size: 10.5px; line-height: 12px; max-width: 62px; overflow: hidden; text-overflow: ellipsis; color: var(--vscode-foreground); opacity: 0.9; } .tiles-inline .tile { flex-direction: row; justify-content: flex-start; gap: 6px; width: 108px; height: 30px; padding: 0 8px; } .tiles-inline .tile .glyph, .tiles-inline .tile .glyph svg { width: 20px; height: 20px; } .tiles-inline .tile .cap { font-size: 11.5px; line-height: 14px; max-width: 70px; } /* the colors of the groups: where the message comes from and goes, how it is routed, what is done to its data, what only watches, what handles failure */ .tone-in { --tone: var(--vscode-charts-green, #89d185); } .tone-out { --tone: var(--vscode-charts-blue, #3794ff); } .tone-inner { --tone: var(--vscode-charts-blue, #3794ff); } .tone-code { --tone: var(--vscode-charts-purple, #b180d7); } .tone-data { --tone: var(--vscode-charts-orange, #d18616); } .tone-route { --tone: var(--vscode-terminal-ansiCyan, #29b8db); } .tone-watch { --tone: var(--vscode-descriptionForeground, #9d9d9d); } .tone-error { --tone: var(--vscode-charts-red, #f14c4c); } .tone-muted { --tone: var(--vscode-descriptionForeground, #9d9d9d); } /* one neutral box for every tile, the group color as a soft border — beats the old category boxes (filled endpoints, diamonds, hexagons) in both looks */ .tile, .mermaid-look .tile, .mermaid-look .tile.branch-label, .mermaid-look .tile.vbranch-head, .mermaid-look .tile.lbranch-head, .mermaid-look .scope > .tile.scope-head, .scope.compact > .tile.scope-head { clip-path: none; background: var(--vscode-editorWidget-background, var(--vscode-editor-background)); color: var(--vscode-foreground); border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent); border-radius: 7px; font-weight: 400; opacity: 1; box-shadow: none; } .mermaid-look .tile { padding: 4px 2px 3px; } .mermaid-look.tiles-inline .tile, .tiles-inline .mermaid-look .tile { padding: 0 8px; } .tile.tone-inner { border-style: dashed; } .tile.cat-unknown { border-style: dashed; } .tile.branch-label { max-width: none; } .tile:hover { outline: 1px solid var(--vscode-focusBorder); } /* the fold toggle and the counter ride the corners of a container tile */ .tile > .fold { position: absolute; top: 0; right: 2px; font-size: 10px; line-height: 12px; padding: 0 2px; } .tile > .badge { position: absolute; bottom: 1px; right: 4px; font-size: 9.5px; line-height: 11px; opacity: 0.8; } .tiles-inline .tile > .fold { top: 50%; transform: translateY(-50%); right: 3px; } .tiles-inline .tile > .badge { bottom: 0; right: 16px; } /* ── left to right: one top line through every row ───────────────────── Steps hang from the TOP of a row, so the line through the tiles stays straight however tall a container beside them is. A container's head tile sits on that line: the box starts 9px higher (its border and padding), every plain step drops 9px to meet it, and the body pulls up 9px so its first row is on the same line as the head. */ .mermaid-look.lr .snake-row, .mermaid-look.lr .atom { align-items: flex-start; } .mermaid-look.lr .atom > .node, .mermaid-look.lr .atom > .branching, .mermaid-look.lr .atom > .scope.compact { margin-top: 9px; } .mermaid-look.lr .atom > .slot { align-self: flex-start; margin-top: 27px; } .mermaid-look.lr .scope { align-items: flex-start; gap: 28px; padding: 8px 18px 10px 10px; } .mermaid-look.lr .scope.compact { padding: 0; gap: 0; align-items: center; } .mermaid-look.lr .scope > .scope-head { align-self: flex-start; } .mermaid-look.lr .scope > .snake { margin-top: -9px; } /* a container opening a container's body must not share its parent's top border */ .mermaid-look.lr .scope > .snake > .snake-row:first-child > .atom > .scope:not(.compact) { margin-top: 9px; } .mermaid-look.lr .branching { align-items: flex-start; gap: 30px; } .mermaid-look.lr .lstack { gap: 12px; } .mermaid-look.lr .branch { align-items: flex-start; } .mermaid-look.lr .branch > .snake { margin-top: -9px; } .mermaid-look.lr .snake-row { min-height: 70px; } .tiles-inline .mermaid-look.lr .snake-row, .mermaid-look.lr.tiles-inline .snake-row { min-height: 48px; } .mermaid-look.lr.tiles-inline .atom > .slot { margin-top: 16px; } /* ── top down: the tiles sit on the column spine ─────────────────────── */ .mermaid-look .vbranch-head.tile { padding: 4px 2px 3px; } .mermaid-look.tiles-inline .vbranch-head.tile { padding: 0 8px; } /* the caption on an edge: the loop's «repeat» */ .edge-overlay text.edge-label { fill: var(--vscode-descriptionForeground); font-size: 10px; font-family: var(--vscode-font-family); } /* the `end` tile of a wrapper: the same glyph, quieter — it closes, it does not act */ .tile.wrapper-end { border-style: dashed; opacity: 0.75; } .tile.wrapper-end .cap { font-size: 10px; } /* a row that closes a loop keeps room under it for the `repeat` lane */ .mermaid-look.lr .snake-row:has(> .atom > .wrapper-end[data-wrapper-type="loop"]) { padding-bottom: 28px; } /* a setter row in the panel: name, then `=` constant or `ƒ` expression, then the value */ .content-assign { display: flex; align-items: center; gap: 4px; flex: 1.6; min-width: 0; } .content-row .content-assign .content-kind { flex: none; width: 38px; } /* ── conditional paths (owner, 2026-09-24): where a message goes when the condition fails ── skip — the condition did not hold, the message goes past (filter, choice without otherwise, ofType, a duplicate at idempotentConsumer); drop — the message goes nowhere (sample, debounce); error — the step raises, the message goes to the catch / onException. */ .edge-overlay path.cond { fill: none; stroke-dasharray: 5 3; stroke-width: 1.5; } .edge-overlay path.cond.skip { stroke: var(--vscode-charts-orange, #d18616); } .edge-overlay path.cond.drop { stroke: var(--vscode-descriptionForeground, #9d9d9d); } .edge-overlay path.cond.error { stroke: var(--vscode-charts-red, #f14c4c); } .edge-overlay path.head.skip { fill: var(--vscode-charts-orange, #d18616); } .edge-overlay path.head.drop { fill: var(--vscode-descriptionForeground, #9d9d9d); } .edge-overlay path.head.error { fill: var(--vscode-charts-red, #f14c4c); } .edge-overlay text.edge-label.skip { fill: var(--vscode-charts-orange, #d18616); } .edge-overlay text.edge-label.error { fill: var(--vscode-charts-red, #f14c4c); } /* rows keep room under them for the lanes and stubs of conditional paths */ .mermaid-look.lr .snake-row:has(> .atom > [data-cond]), .mermaid-look.lr .snake-row:has(> .atom > .wrapper-open[data-wrapper-type="ofType"]), .mermaid-look.lr .snake-row:has(> .atom > .wrapper-open[data-wrapper-type="idempotentConsumer"]), .mermaid-look.lr .snake-row:has(> .atom > .branching[data-type="filter"]), .mermaid-look.lr .snake-row:has(> .atom > .branching[data-type="choice"]) { padding-bottom: 28px; } .content-row .content-kind-target { flex: none; width: 82px; } /* the grip on the panel's left edge: drag to widen, the width is remembered for all documents */ #panel-grip { position: fixed; top: 0; bottom: 0; right: var(--panel-width, 380px); width: 6px; margin-right: -3px; cursor: ew-resize; z-index: 5; display: none; } body.with-panel #panel-grip { display: block; } #panel-grip:hover, body.resizing-panel #panel-grip { background: var(--vscode-focusBorder); opacity: 0.6; } body.resizing-panel { cursor: ew-resize; user-select: none; } /* top down: the columns stand in the middle of the window, not against its left edge */ .vertical .routes-grid { justify-content: center; } /* ── top down, compact (owner, 2026-09-25: the gaps read as breaks) ───────── The insert slot takes no height of its own: it sits in the gap between two tiles (its negative margins cancel its height) and stays clickable there. One short gap per step is left for the arrow; a branch column no longer ends with a tall empty tail. */ .mermaid-look .vcol { row-gap: 12px; } .mermaid-look .vbranch > .vcol { margin-top: 6px; } .mermaid-look .vcol > .slot { height: 12px; margin: -6px 0; position: relative; z-index: 2; } .mermaid-look .vfan { margin-top: 22px; } /* ── folding, visible (owner, 2026-09-25: the tiny triangle did not tell folded from open) ── The toggle is a small boxed button in the tile's corner; a folded container looks like a stack of cards with the count of what it hides. */ .tile > .fold { top: 3px; right: 3px; width: 16px; height: 16px; padding: 0; font-size: 12px; line-height: 16px; text-align: center; border-radius: 4px; opacity: 1; color: var(--vscode-foreground); background: color-mix(in srgb, var(--vscode-foreground) 12%, transparent); } .tile > .fold:hover { background: var(--vscode-focusBorder); color: var(--vscode-button-foreground, #fff); } .tiles-inline .tile > .fold { top: 50%; transform: translateY(-50%); right: 4px; } /* a folded container: two cards peeking out behind it, and the count as a chip */ .tile.collapsed { box-shadow: 3px 3px 0 -1px var(--vscode-editorWidget-background, var(--vscode-editor-background)), 3px 3px 0 0 color-mix(in srgb, var(--tone) 55%, transparent), 6px 6px 0 -1px var(--vscode-editorWidget-background, var(--vscode-editor-background)), 6px 6px 0 0 color-mix(in srgb, var(--tone) 35%, transparent); } .tile.collapsed > .fold { background: var(--vscode-focusBorder); color: var(--vscode-button-foreground, #fff); } .tile.collapsed > .badge { bottom: auto; top: 3px; left: 3px; right: auto; min-width: 16px; height: 16px; padding: 0 3px; box-sizing: border-box; border-radius: 8px; font-size: 10px; line-height: 16px; text-align: center; opacity: 1; color: var(--vscode-button-foreground, #fff); background: var(--vscode-focusBorder); } .tiles-inline .tile.collapsed > .badge { top: 50%; transform: translateY(-50%); left: auto; right: 24px; } /* volume for a folded container: the stack of cards casts a soft shadow, it lifts off the graph */ .tile.collapsed { box-shadow: 3px 3px 0 -1px var(--vscode-editorWidget-background, var(--vscode-editor-background)), 3px 3px 0 0 color-mix(in srgb, var(--tone) 55%, transparent), 6px 6px 0 -1px var(--vscode-editorWidget-background, var(--vscode-editor-background)), 6px 6px 0 0 color-mix(in srgb, var(--tone) 35%, transparent), 4px 8px 14px 0 rgba(0, 0, 0, 0.45); } /* a whole route folds to its title line: the same boxed button as a container's fold */ .route-header { display: flex; align-items: center; gap: 6px; } .route-fold { display: inline-block; width: 16px; height: 16px; font-size: 12px; line-height: 16px; text-align: center; border-radius: 4px; cursor: pointer; user-select: none; font-weight: 400; color: var(--vscode-foreground); background: color-mix(in srgb, var(--vscode-foreground) 12%, transparent); } .route-fold:hover, .route-fold.folded { background: var(--vscode-focusBorder); color: var(--vscode-button-foreground, #fff); } .route-count { font-weight: 400; font-size: 10.5px; padding: 0 7px; border-radius: 8px; line-height: 16px; color: var(--vscode-button-foreground, #fff); background: var(--vscode-focusBorder); } .route-folded { margin: 2px 0 8px; } /* ── the properties panel as a property grid (owner, 2026-09-25: "деловые стили") ────── A sticky title with the step's glyph, then label | value rows on hairlines like the VS Code settings editor, section captions in small caps, and a sticky action bar at the bottom. */ #panel { padding: 0; display: flex; flex-direction: column; } #panel > * { flex: none; } .panel-head { position: sticky; top: 0; z-index: 3; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; background: var(--vscode-sideBar-background, var(--vscode-editor-background)); border-bottom: 1px solid var(--vscode-editorWidget-border, var(--vscode-panel-border)); } .panel-head .glyph { width: 22px; height: 22px; flex: none; } .panel-head .glyph svg { width: 22px; height: 22px; display: block; } .panel-type { flex: 1; font-size: 13px; letter-spacing: 0.01em; } .panel-close { width: 22px; height: 22px; line-height: 22px; padding: 0; text-align: center; border-radius: 4px; } .panel-close:hover { background: color-mix(in srgb, var(--vscode-foreground) 12%, transparent); } #panel .field { display: grid; grid-template-columns: minmax(84px, 34%) 1fr; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-bottom: 1px solid color-mix(in srgb, var(--vscode-editorWidget-border, #454545) 50%, transparent); } #panel .field:hover { background: color-mix(in srgb, var(--vscode-foreground) 4%, transparent); } #panel .field label { font-size: 12px; opacity: 0.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #panel .field .value, #panel .content-row .value { width: 100%; box-sizing: border-box; min-height: 24px; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--vscode-input-border, color-mix(in srgb, var(--vscode-foreground) 16%, transparent)); background: var(--vscode-input-background); font-size: 12px; } #panel .field .value:focus, #panel .content-row .value:focus { outline: none; border-color: var(--vscode-focusBorder); } #panel .panel-section { margin: 0; padding: 12px 12px 5px; border-top: none; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.6; } #panel .content-row { margin: 0; padding: 4px 12px; gap: 6px; border-bottom: 1px solid color-mix(in srgb, var(--vscode-editorWidget-border, #454545) 50%, transparent); } #panel .content-row:hover { background: color-mix(in srgb, var(--vscode-foreground) 4%, transparent); } #panel .content-add { padding: 8px 12px; margin: 0; } .panel-actions { position: sticky; bottom: 0; margin-top: auto !important; display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--vscode-editorWidget-border, var(--vscode-panel-border)); background: var(--vscode-sideBar-background, var(--vscode-editor-background)); } .panel-actions button { padding: 5px 12px; border-radius: 3px; font-size: 12px; background: var(--vscode-button-background); color: var(--vscode-button-foreground); } .panel-actions button:hover { filter: brightness(1.1); } .panel-actions button.danger { margin-left: auto; background: transparent; color: var(--vscode-editorError-foreground, #f14c4c); border: 1px solid color-mix(in srgb, var(--vscode-editorError-foreground, #f14c4c) 60%, transparent); } .panel-actions button.danger:hover { background: color-mix(in srgb, var(--vscode-editorError-foreground, #f14c4c) 14%, transparent); filter: none; } .panel-head .glyph { color: var(--tone); } /* a setter row shares its width: kind | name | = / ƒ | value | ✕ — never 100% each */ #panel { overflow-x: hidden; } #panel .value { color: var(--vscode-input-foreground, var(--vscode-foreground)); } #panel select.value option { color: var(--vscode-foreground); background: var(--vscode-dropdown-background, var(--vscode-input-background)); } #panel .content-row { display: flex; align-items: center; } #panel .content-row > .value, #panel .content-row .content-assign .value { width: auto; min-width: 0; flex: 1 1 0; } #panel .content-row > .content-kind-target { flex: none; width: 84px; } #panel .content-row .content-assign { flex: 1.6 1 0; min-width: 0; display: flex; gap: 4px; } #panel .content-row .content-assign .content-kind { flex: none; width: 40px; } #panel .content-row > .content-type { flex: none; width: 64px; min-width: 0; } #panel .content-remove { flex: none; width: 16px; text-align: center; } #panel .content-row .content-assign .content-kind { width: 48px; padding: 2px 3px; }