runloopable / web /src /styles /wave49 /connectors.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
8729c1d verified
Raw History Blame Contribute Delete
35.5 kB
/* --------------------------------------------------------------------------- styles/wave49/connectors.css β€” W49-T12, ruling R26, contract C4. THE CONNECTOR MODAL'S SURFACE, in a real stylesheet. β›” IT IS A FILE AND NOT AN INLINE const CSS = ... STRING, which is what the ticket's how asks for and what the graph rules below used to be. A rules string injected through <style> in a component is invisible to the R5 font scan (verify_ui.font_literals walks every stylesheet under src), so a literal font size could ride into the tree unseen, and it re-injects itself on every mount of the component that owns it. β›”β›” AND THERE ARE NO BACKTICKS AND NO GLOB IN THIS FILE'S COMMENTS, WHICH IS NOT A STYLE CHOICE. The first draft wrote a glob for "every stylesheet under src" the way the rest of the repo does, and that glob spells a comment TERMINATOR in the middle of a sentence: the header closed nine lines early, the prose after it became declarations, and lightningcss failed the production build. That is the exact hazard verify_build's section A is named for, found by running it. β›”β›” TRAP 1 β€” A PORTALLED OVERLAY PAINTS ITS OWN BACKGROUND ([[a-portal-overlay-carries-its-own-surface]]). The wave-48 date editor rendered TRANSPARENT over the canvas because its class chain missed the one class that carried a surface. .conn-modal-backdrop therefore carries its own scrim and .conn-modal its own background; neither inherits one from the page it was opened from, because it is a direct child of <body>. β›”β›” TRAP 2 β€” Z-LAYERING IS A THREE-WAY ORDER ([[z-layering-is-a-three-way-order]]). The stack is DIALOG (--cg-z-record) under PORTAL STEP (--cg-z-overlay), so a menu opened INSIDE this modal still paints above it. Tokens only, never a literal number: raising one modal above one panel is how the step under it got broken last time. ⭐ Tokens only for colour and type as well (DESIGN.md Β§5). Where the record modal next door writes rgba(25, 34, 46, 0.34), this file derives the same effect from --lp-ink with color-mix, the idiom --cg-primary-hover already uses. --------------------------------------------------------------------------- */ .conn-modal-backdrop { position: fixed; inset: 0; z-index: var(--cg-z-record); display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--lp-ink) 34%, transparent); } /* ⭐⭐ W52-T03 β€” WIDENED, owner instruction 23 verbatim: "the connector popup width needs to be longer." 760px is the OLD number; the fallback calc stays so a narrow viewport still fits with its 24px margin either side. Nothing inside the panel is a fixed pixel width that would break wider (the row grid, the field table and the relationship stage are all fluid or scroll their own overflow), so no other rule in this block needed to move. */ .conn-modal { width: min(960px, calc(100vw - 48px)); max-height: min(720px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid color-mix(in srgb, var(--lp-line) 82%, var(--lp-muted)); border-radius: var(--lp-r-lg); background: var(--lp-surface); box-shadow: 0 30px 80px color-mix(in srgb, var(--lp-ink) 22%, transparent), 0 4px 18px color-mix(in srgb, var(--lp-ink) 12%, transparent); color: var(--lp-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--lp-fs-sm); /* 150 ms ease-out on opacity and transform only (DESIGN.md Β§4). */ animation: conn-modal-open 150ms cubic-bezier(0.2, 0, 0, 1); } .conn-modal:focus { outline: none; } @keyframes conn-modal-open { from { opacity: 0; transform: translateY(6px) scale(0.992); } to { opacity: 1; transform: none; } } @media (prefers-reduced-motion: reduce) { .conn-modal { animation: none; } } .conn-modal-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--lp-line); } .conn-modal-save-actions { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; } .conn-modal-save-actions .conn-db-link { margin-top: 0; } .conn-modal-save-actions button:disabled { opacity: 0.48; cursor: default; text-decoration: none; } .conn-modal-close:disabled, .conn-modal-tab:disabled { opacity: 0.48; cursor: default; } .conn-modal-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--lp-line); border-radius: var(--lp-r-md); background: var(--lp-surface-2); } .conn-modal-name { flex: 1 1 auto; min-width: 0; font-size: var(--lp-fs-md); font-weight: 600; color: var(--lp-ink); } /* The status pill. Blue is the interactive/selected hue, so a STATE reads green when it is live and neutral otherwise (DESIGN.md Β§3): a connector nobody has connected is not an error and must not wear red. */ .conn-modal-pill { flex: 0 0 auto; padding: 2px 9px; border-radius: var(--lp-r-pill); background: var(--lp-surface-2); color: var(--lp-muted); font-size: var(--lp-fs-3xs); font-weight: 600; } /* The server sends the state lowercase ("connected"), and the CARD pill it sits beside capitalises it with `.conn-state::first-letter` (index.css). Observation on the running app caught this rule missing here: the modal read "connected" against the card's "Connected", one fact spelled two ways on one screen. Sentence case, never `text-transform: uppercase` (DESIGN.md section 2). */ .conn-modal-pill::first-letter { text-transform: capitalize; } .conn-modal-pill.is-on { background: var(--lp-green-tint); color: var(--lp-green-deep); } .conn-modal-pill.is-open { background: var(--lp-blue-tint); color: var(--lp-blue-deep); } .conn-modal-close { flex: 0 0 auto; appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: var(--lp-r-md); background: transparent; color: var(--lp-muted); font: inherit; cursor: pointer; } .conn-modal-close:hover { background: var(--lp-wash); color: var(--lp-ink); } .conn-modal-close:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 1px; } .conn-modal-tabs { flex: 0 0 auto; display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--lp-line); } /* One control shape per rail (DESIGN.md Β§4): every tab is the same quiet button, selected state carried by ink and an underline rather than by a second shape. */ .conn-modal-tab { appearance: none; padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--lp-muted); font-family: inherit; font-size: var(--lp-fs-2xs); font-weight: 600; cursor: pointer; } .conn-modal-tab:hover { color: var(--lp-ink); } .conn-modal-tab[aria-selected="true"] { color: var(--lp-primary); border-bottom-color: var(--lp-primary); } .conn-modal-tab:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: -2px; } .conn-modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px; } .conn-modal-rows { display: grid; grid-template-columns: 128px 1fr; gap: 8px 14px; margin: 0; } .conn-modal-rows dt { color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .conn-modal-rows dd { margin: 0; color: var(--lp-ink); font-size: var(--lp-fs-2xs); } .conn-modal-creates { margin: 16px 0 0; padding: 10px 12px; border: 1px solid var(--lp-line); border-radius: var(--lp-r-md); background: var(--lp-wash); color: var(--lp-ink); font-size: var(--lp-fs-2xs); } .conn-modal-note { margin: 0; color: var(--lp-muted); font-size: var(--lp-fs-2xs); } /* β›” `.conn-modal-placeholder` STOOD HERE AND IS DELETED BY W49-T14. It painted the three tabs T13, T14 and T15 replaced, and the last of the three has landed, so the rule had no element left to reach. A dead rule in a shared sheet is a rule the next reader restores an element for. */ /* ⭐⭐ W52-T03 β€” THE CARD'S SETTINGS DOOR, owner instruction 23: "a long 'setting' button at the bottom part of the card that spans from left to right of the card." It is a real button so the keyboard can reach it and so focus has somewhere to RETURN to when the modal closes. ⚠ THIS RULE USED TO SHAPE THE WHOLE-CARD-OPENING HEAD BUTTON (W49-T12, R26) β€” mark, name and state chip wrapped in one flex row with `text-align: left`. That affordance is gone (R26 is superseded on this point by instruction 23: a dedicated bottom button INSTEAD of the whole card opening on click); the class name stays because `verify_ui.py::_connector_modal_faults` pins the literal string `className="conn-card-open"` as proof a keyboard can reach the modal, and renaming it would have meant editing that gate, which is outside this ticket's fence. β›”β›” THE BLEED IS DELIBERATE. `.conn-card` pads 14px 16px; the negative margins here cancel exactly that on three sides so the button's own border reaches the card's own edges β€” "spans from left to right" is a literal geometry requirement, not a figure of speech, and a button merely as wide as the padded content box would stop short of the card's own border. */ .conn-card-open { appearance: none; align-self: stretch; /* Push to the BOTTOM of the card. `.conn-card` is `display: flex; flex-direction: column`, and the grid it sits in stretches every card in a row to the same height (CSS Grid's default `align-items: stretch`), so a shorter card's button still lands on the true bottom edge. */ margin-top: auto; margin-right: -16px; margin-bottom: -14px; margin-left: -16px; padding: 10px 16px; border: 0; border-top: 1px solid var(--lp-line); border-radius: 0 0 var(--lp-r-md) var(--lp-r-md); background: var(--lp-surface-2); color: var(--lp-ink); font: inherit; font-size: var(--lp-fs-xs); font-weight: 600; text-align: center; cursor: pointer; } .conn-card-open:hover { background: var(--lp-wash); color: var(--lp-primary); } .conn-card-open:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: -2px; border-radius: 0 0 var(--lp-r-md) var(--lp-r-md); } /* --------------------------------------------------------------------------- W49-T15 / RULING R33 - THE RELATIONSHIP DIAGRAM. β›”β›” THE RULES THAT USED TO STAND HERE PAINTED `ConnectorRelationshipCanvas`, and both it and they are DELETED. That canvas drew every card with all of its fields (16 for vendors, 15 for three more) and put every edge label at the midpoint of the two CARD CENTRES. Two relationships joining one pair of cards in opposite directions therefore shared one label point and overprinted: "Vendor record" over "Bills" is the illegible smear the owner rejected in `reference/ERROR 19 connector.png`. Restyling that renderer would have kept the defect, so the geometry is what changed. ⚠ EVERY NUMBER HERE IS PAIRED WITH A CONSTANT IN RelationshipDiagram.tsx and `verify_ui.py` holds them together: Β· the header is 31px because the card is border-box and carries a 1px hairline above it, so its content ends exactly HEADER_H (32) below the card's top, which is where the layout puts the first row; Β· a row is ROW_H (22) and the expand control is MORE_H (28), so a port drawn by the SVG lands on the middle of the row the browser paints; Β· type sizes are TOKENS, and the layout measures text at the px those tokens resolve to against the 17px root. A layout measuring 10px while the CSS paints 11.6875px is a geometry proof over numbers nothing renders. β›” NO STACKING ORDER IS NAMED IN THIS BLOCK AT ALL. The edge layer sits under the cards by DOM order alone, both being positioned children of one stage, so nothing here can disturb the three-way order the modal above it depends on ([[z-layering-is-a-three-way-order]]). --------------------------------------------------------------------------- */ .conn-rd { display: flex; flex-direction: column; gap: 10px; } .conn-rd-scroll { overflow: auto; overscroll-behavior-x: contain; border: 1px solid var(--lp-line); border-radius: var(--lp-r-md); background: var(--lp-surface-2); } .conn-rd-stage { position: relative; } .conn-rd-edges { position: absolute; top: 0; left: 0; display: block; } .conn-rd-line { fill: none; stroke: var(--lp-blue-deep); stroke-width: 1.5; stroke-linejoin: round; } .conn-rd-arrow { fill: var(--lp-blue-deep); } /* The label rides the ink, not the pastel (DESIGN.md section 3), and carries a halo of the stage colour so a line crossing under it stays legible. */ .conn-rd-label { fill: var(--lp-ink); font-family: Inter, sans-serif; font-size: var(--lp-fs-3xs); font-weight: 600; paint-order: stroke fill; stroke: var(--lp-surface-2); stroke-width: 3px; stroke-linejoin: round; } .conn-rd-card { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--lp-line); border-radius: var(--lp-r-md); background: var(--lp-surface); } .conn-rd-card-title { flex: 0 0 auto; height: 31px; margin: 0; padding: 0 12px; display: flex; align-items: center; border-bottom: 1px solid var(--lp-line); color: var(--lp-ink); font-size: var(--lp-fs-2xs); font-weight: 600; white-space: nowrap; } .conn-rd-rows { flex: 0 0 auto; margin: 0; padding: 0; list-style: none; } .conn-rd-row { position: relative; height: 22px; padding: 0 12px; display: flex; align-items: center; gap: 6px; color: var(--lp-ink); font-size: var(--lp-fs-3xs); white-space: nowrap; } .conn-rd-row-name { flex: 1 1 auto; min-width: 0; overflow: hidden; } .conn-rd-row.is-link .conn-rd-row-name { font-weight: 600; } .conn-rd-key { flex: 0 0 auto; color: var(--lp-muted); font-size: var(--lp-fs-3xs); font-weight: 600; } /* The port: the exact point an edge attaches to, so a reader can see that a line leaves THIS field row and not the middle of the card. */ .conn-rd-port { position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: var(--lp-r-pill); background: var(--lp-blue-deep); } .conn-rd-port.is-left { left: 0; } .conn-rd-port.is-right { right: 0; } .conn-rd-empty { height: 22px; margin: 0; padding: 0 12px; display: flex; align-items: center; color: var(--lp-muted); font-size: var(--lp-fs-3xs); } /* The affordance R33 asks for: a real button that expands the card IN PLACE. It resets native chrome like every other control in this file (DESIGN.md). */ .conn-rd-more { flex: 0 0 auto; appearance: none; height: 28px; padding: 0 12px; border: 0; border-top: 1px solid var(--lp-line); background: transparent; color: var(--lp-primary); font-family: inherit; font-size: var(--lp-fs-3xs); font-weight: 600; text-align: left; cursor: pointer; } .conn-rd-more:hover { background: var(--lp-wash); color: var(--lp-primary-hover); } .conn-rd-more:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: -2px; } .conn-rd-note { margin: 0; color: var(--lp-muted); font-size: var(--lp-fs-2xs); } /* --------------------------------------------------------------------------- W49-T13 β€” THE KEYCHAIN TAB. Same rules as the shell above it: tokens only for colour and type, one control shape for the whole tab, red reserved for the destructive act and never used as a call to action. No stacking context is created here at all, which is deliberate: this tab lives INSIDE the dialog step the modal already owns, so nothing in this block may name a stacking order. --------------------------------------------------------------------------- */ .conn-kc-list { margin: 0 0 14px; padding: 0; list-style: none; border: 1px solid var(--lp-line); border-radius: var(--lp-r-md); } .conn-kc-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--lp-line); } .conn-kc-row:last-child { border-bottom: 0; } .conn-kc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .conn-kc-label { color: var(--lp-ink); font-size: var(--lp-fs-2xs); font-weight: 600; } .conn-kc-meta, .conn-kc-empty, .conn-kc-note { color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .conn-kc-empty, .conn-kc-note { margin: 0 0 12px; } .conn-kc-test { color: var(--lp-ink); font-size: var(--lp-fs-3xs); } .conn-kc-error { margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--lp-red); border-radius: var(--lp-r-sm); background: var(--lp-red-tint); color: var(--lp-red-deep); font-size: var(--lp-fs-2xs); } .conn-kc-controls, .conn-kc-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; } /* Every control in this tab resets native chrome and carries the same shape (DESIGN.md). The anchor is in the list so an OAuth Connect link reads as the same control as the button beside it. */ .conn-kc-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--set-space-2); min-height: var(--set-control-height); padding: var(--set-space-1) var(--set-space-3); border: var(--lp-hairline-width) solid var(--lp-line); border-radius: var(--lp-r-md); background: var(--lp-surface); color: var(--lp-ink); font-family: inherit; font-size: var(--lp-fs-xs); font-weight: var(--lp-fw-semibold); line-height: var(--lp-lh-tight); text-decoration: none; cursor: pointer; transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); } .conn-kc-btn:active:enabled { transform: scale(0.97); } .conn-kc-btn:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } .conn-kc-btn:disabled { opacity: 0.5; cursor: not-allowed; } /* The call to action carries the primary token. Red is the destructive hue and is never borrowed for it. */ .conn-kc-btn.is-primary { border-color: var(--lp-primary); background: var(--lp-primary); color: var(--lp-surface); } .conn-kc-btn.is-primary:focus-visible { outline-color: var(--lp-primary); } .conn-kc-btn.is-danger { border-color: var(--lp-red); background: var(--lp-red-tint); color: var(--lp-red-deep); } @media (hover: hover) and (pointer: fine) { .conn-kc-btn:hover:enabled, a.conn-kc-btn:hover { background: var(--lp-wash); border-color: var(--lp-blue-deep); } .conn-kc-btn.is-primary:hover:enabled, a.conn-kc-btn.is-primary:hover { background: var(--lp-primary-hover); border-color: var(--lp-primary-hover); } .conn-kc-btn.is-danger:hover:enabled { background: var(--lp-red); border-color: var(--lp-red); color: var(--lp-red-deep); } } @media (prefers-reduced-motion: reduce) { .conn-kc-btn { transition: none; } .conn-kc-btn:active:enabled { transform: none; } } .conn-kc-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; } .conn-kc-field label { color: var(--lp-muted); font-size: var(--lp-fs-3xs); font-weight: 600; } .conn-kc-field input, .conn-kc-field select { padding: 7px 9px; border: 1px solid var(--lp-line); border-radius: var(--lp-r-sm); background: var(--lp-surface); color: var(--lp-ink); font-family: inherit; font-size: var(--lp-fs-2xs); } .conn-kc-field input:focus-visible, .conn-kc-field select:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 0; } /* The link Settings keeps: one row, one sentence, one door. */ .conn-kc-link { appearance: none; padding: 0; border: 0; background: transparent; color: var(--lp-primary); font-family: inherit; font-size: var(--lp-fs-2xs); font-weight: 600; text-align: left; cursor: pointer; } .conn-kc-link:hover { color: var(--lp-primary-hover); text-decoration: underline; } .conn-kc-link:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } /* W49-T14, O9, ruling R26 - the link the ODOO CARD keeps, where its field-enablement chip row used to sit. Same treatment as `.conn-kc-link` (T13's door out of Settings) and deliberately its OWN rule rather than a second selector on that one: the two doors sit in different surfaces and are owned by different tickets, and a shared declaration would mean either ticket's restyle silently repainted the other's control. Quiet on purpose - the card's own "Sync settings" button (W52-T03 renamed it from "Manage keys") is the primary action here and this is a way out of it, not a rival CTA. */ .conn-db-link { appearance: none; padding: 0; margin-top: 8px; border: 0; background: transparent; color: var(--lp-primary); font-family: inherit; font-size: var(--lp-fs-2xs); font-weight: 600; text-align: left; cursor: pointer; } .conn-db-link:hover { color: var(--lp-primary-hover); text-decoration: underline; } .conn-db-link:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } /* --------------------------------------------------------------------------- W49-T18, ruling R27, contract C4 - the card's filing line. S72 removed the category rail and its rules. TOKENS ONLY for colour, type and radius. No literal hex, no literal font size, and no literal z-index anywhere in this file - the filing line does not layer, and a bare number here would be read by verify_ui's raw-text scan even inside a comment. AND NO GLOB IN THIS COMMENT. A recursive glob spells a comment terminator in the middle of a sentence and closes the block early, which broke the production build once already while tsc stayed green. --------------------------------------------------------------------------- */ /* The card's filing line: the category it sits under, and the catalogue's own endpoint count. Separated by space rather than by a punctuation character, which keeps the copy rule out of the layout. */ .conn-card-file { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: var(--lp-fs-3xs); color: var(--lp-muted); } .conn-file-cat { padding: 1px 7px; border-radius: var(--lp-r-pill); background: var(--lp-surface-2); color: var(--lp-muted); font-weight: 600; } .conn-file-n { align-self: center; } /* --------------------------------------------------------------------------- W49-T19 - R31 / C5. THE AMAZON REVIEWS PULL: the action on the overview tab and the dialog that states the price before it spends anything. z-order, and it is a THREE-WAY order, not two: the connector modal above sits on the DIALOG step (--cg-z-record) and this dialog opens ON TOP of it, so it takes the PORTAL step (--cg-z-overlay). Tokens, never a literal ([[z-layering-is-a-three-way-order]]). The surface paints its OWN background and its own backdrop. A portalled overlay that inherits neither renders transparent over whatever it covers, which is exactly how the v59 date editor shipped invisible ([[a-portal-overlay-carries-its-own-surface]]). --------------------------------------------------------------------------- */ .conn-modal-act { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--lp-line); } .conn-modal-go { appearance: none; padding: 6px 12px; border: 1px solid transparent; border-radius: var(--lp-r-md); background: var(--lp-primary); color: var(--lp-surface); font: inherit; font-size: var(--lp-fs-xs); font-weight: 600; cursor: pointer; } .conn-modal-go:hover { background: var(--lp-primary-hover); } .conn-modal-go:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } .conn-modal-act-note { flex: 1 1 220px; min-width: 0; color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .monid-run-backdrop { position: fixed; inset: 0; z-index: var(--cg-z-overlay); display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--lp-ink) 34%, transparent); } .monid-run { width: min(520px, calc(100vw - 48px)); max-height: min(640px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid color-mix(in srgb, var(--lp-line) 82%, var(--lp-muted)); border-radius: var(--lp-r-lg); background: var(--lp-surface); box-shadow: 0 30px 80px color-mix(in srgb, var(--lp-ink) 22%, transparent), 0 4px 18px color-mix(in srgb, var(--lp-ink) 12%, transparent); color: var(--lp-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--lp-fs-sm); animation: conn-modal-open 150ms cubic-bezier(0.2, 0, 0, 1); } .monid-run:focus { outline: none; } .monid-run-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--lp-line); } .monid-run-name { flex: 1 1 auto; min-width: 0; font-size: var(--lp-fs-md); font-weight: 600; color: var(--lp-ink); } .monid-run-close { flex: 0 0 auto; appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: var(--lp-r-md); background: transparent; color: var(--lp-muted); font: inherit; cursor: pointer; } .monid-run-close:hover { background: var(--lp-wash); color: var(--lp-ink); } .monid-run-close:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } .monid-run-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px; } .monid-run-label { display: block; margin-bottom: 6px; color: var(--lp-muted); font-size: var(--lp-fs-2xs); font-weight: 600; } .monid-run-input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--lp-line); border-radius: var(--lp-r-sm); background: var(--lp-surface); color: var(--lp-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--lp-fs-xs); resize: vertical; } .monid-run-input:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 1px; } .monid-run-hint, .monid-run-note { margin: 8px 0 0; color: var(--lp-muted); font-size: var(--lp-fs-2xs); } /* The money line. Ink, not muted: it is the sentence the operator is being asked to agree to, and a greyed price is a price that reads as furniture. Tabular figures because it is a financial number (DESIGN.md section 2). */ .monid-run-cost { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--lp-r-md); background: var(--lp-surface-2); color: var(--lp-ink); font-size: var(--lp-fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; } /* Red is negative and destructive, and a refusal is the negative case. It rides the deep companion on its own tint, never the pastel on white. */ .monid-run-refusal { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--lp-r-md); background: var(--lp-red-tint); color: var(--lp-red-deep); font-size: var(--lp-fs-xs); } .monid-run-done { display: flex; flex-direction: column; gap: 6px; } .monid-run-line { margin: 0; color: var(--lp-ink); font-size: var(--lp-fs-xs); } .monid-run-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--lp-line); background: var(--lp-wash); } .monid-run-btn { appearance: none; padding: 7px 14px; border: 1px solid var(--lp-line); border-radius: var(--lp-r-md); background: var(--lp-surface); color: var(--lp-ink); font: inherit; font-size: var(--lp-fs-xs); font-weight: 600; cursor: pointer; } .monid-run-btn:hover { background: var(--lp-surface-2); } .monid-run-btn:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } .monid-run-btn.is-primary { border-color: transparent; background: var(--lp-primary); color: var(--lp-surface); font-variant-numeric: tabular-nums; } .monid-run-btn.is-primary:hover { background: var(--lp-primary-hover); } .monid-run-btn[disabled] { opacity: 0.5; cursor: not-allowed; } .monid-run-btn.is-primary[disabled]:hover { background: var(--lp-primary); } /* ═══════════════════════════════════════════════════════════════════════════ W49-T14 Β· R21/R22/R23/R24 β€” THE DATABASES TAB, the onboarding disclosure. β›” NO LITERAL COLOUR AND NO LITERAL FONT SIZE, as everywhere else in this sheet, and no literal z-index: this tab opens no layer of its own, so it declares no stacking step at all rather than a number that would fight the two the modal already owns. ⭐ IT IS A TABLE SHAPED SURFACE (DESIGN.md section 4): one control shape per rail, aligned edges, and tabular numerals on every count so a column of field counts lines up down the list. ═══════════════════════════════════════════════════════════════════════════ */ .conn-db { display: flex; flex-direction: column; gap: 12px; } .conn-db-desc { margin: 0; color: var(--lp-ink); font-size: var(--lp-fs-2xs); } .conn-db-note, .conn-db-basis, .conn-db-shared { margin: 0; color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .conn-db-shared { padding: 7px 10px; border-radius: var(--lp-r-sm); background: var(--lp-wash); } .conn-db-basis { margin-top: 6px; font-size: var(--lp-fs-3xs); } .conn-db-lede { margin: 0; color: var(--lp-ink); font-size: var(--lp-fs-2xs); } .conn-db-n { font-weight: 600; font-variant-numeric: tabular-nums; } .conn-db-error { margin: 0; padding: 8px 10px; border: 1px solid var(--lp-red); border-radius: var(--lp-r-sm); background: var(--lp-red-tint); color: var(--lp-red-deep); font-size: var(--lp-fs-2xs); } /* ⚠ A REFUSAL IS NOT AN ERROR THE READER CAUSED (DESIGN.md section 4), so it does not wear the destructive red the error above does. It is an amber statement of fact: the table stayed on, and here is what uses it. */ .conn-db-refusal { margin: 0; padding: 8px 10px; border-left: 3px solid var(--lp-yellow); border-radius: var(--lp-r-sm); background: var(--lp-yellow-tint); color: var(--lp-ink); font-size: var(--lp-fs-2xs); font-variant-numeric: tabular-nums; } .conn-db-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--lp-line); border-radius: var(--lp-r-md); } .conn-db-item { padding: 10px 12px; border-bottom: 1px solid var(--lp-line); display: flex; flex-direction: column; gap: 8px; } .conn-db-item:last-child { border-bottom: 0; } .conn-db-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; } /* ⭐ W56-T33 β€” THE POPULATION SIGNAL IS THE WORD IN THE CELL, and these three rules are reinforcement only. `Not counted yet` and `Empty` are printed in the row itself, so a reader who cannot see weight or tint still gets the whole answer (DESIGN.md section 4). */ .conn-db-row.is-populated .conn-db-src, .conn-db-row.is-populated td { font-weight: 600; } .conn-db-row.is-empty td { color: var(--lp-muted); } .conn-db-row.is-uncounted td { color: inherit; } /* The disclosure control. Native chrome reset in the base rule (DESIGN.md section 4): a class styled button that leaks UA border and background is the wave-19 item-3 bug. */ .conn-db-more { appearance: none; border: 0; background: none; font: inherit; color: inherit; padding: 0; flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; text-align: left; cursor: pointer; } .conn-db-more:hover .conn-db-name { color: var(--lp-primary); } .conn-db-more:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; border-radius: var(--lp-r-sm); } .conn-db-name { font-size: var(--lp-fs-2xs); font-weight: 600; color: var(--lp-ink); } .conn-db-count { font-size: var(--lp-fs-3xs); color: var(--lp-muted); font-variant-numeric: tabular-nums; } .conn-db-state { font-size: var(--lp-fs-3xs); color: var(--lp-muted); font-weight: 600; } /* ONE switch shape, used on both rails: the database rail and the field rail. A second control shape for the same act is what DESIGN.md section 4 calls a new control shape joining no rhythm. */ .conn-db-switch { appearance: none; border: 1px solid var(--lp-line); background: var(--lp-surface-2); font: inherit; color: inherit; flex: 0 0 auto; width: 34px; height: 20px; padding: 2px; border-radius: var(--lp-r-pill); cursor: pointer; display: inline-flex; align-items: center; /* ⚠ NO TRANSITION ON THE TRACK. DESIGN.md section 4 allows motion on opacity and transform only, so the state change is carried by the knob's translate below and the fill simply swaps. A tweened background is the one animation that rule names. */ } .conn-db-switch.is-on { border-color: var(--lp-primary); background: var(--lp-primary); } .conn-db-switch:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } .conn-db-switch:disabled { opacity: 0.55; cursor: default; } .conn-db-knob { width: 14px; height: 14px; border-radius: var(--lp-r-pill); background: var(--lp-surface); transform: translateX(0); transition: transform 140ms ease-out; } .conn-db-switch.is-on .conn-db-knob { transform: translateX(14px); } @media (prefers-reduced-motion: reduce) { .conn-db-switch, .conn-db-knob { transition: none; } } .conn-db-fields { width: 100%; border-collapse: collapse; font-size: var(--lp-fs-3xs); } .conn-db-fields th { text-align: left; font-weight: 600; color: var(--lp-muted); padding: 4px 8px; border-bottom: 1px solid var(--lp-line); } .conn-db-fields td { padding: 4px 8px; border-bottom: 1px solid var(--lp-line); color: var(--lp-ink); vertical-align: middle; } .conn-db-fields tr:last-child td { border-bottom: 0; } .conn-db-src { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--lp-muted); } .conn-db-type { color: var(--lp-muted); } .conn-db-cell-switch { width: 44px; } .conn-db-sub { margin: 0 0 6px; font-size: var(--lp-fs-3xs); font-weight: 600; color: var(--lp-muted); } .conn-db-excluded { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--lp-line); } .conn-db-exlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; } .conn-db-exlist li { display: flex; gap: 8px; font-size: var(--lp-fs-3xs); } .conn-db-reason { color: var(--lp-muted); }
/* ---------------------------------------------------------------------------
styles/wave49/connectors.css β€” W49-T12, ruling R26, contract C4.
THE CONNECTOR MODAL'S SURFACE, in a real stylesheet.
β›” IT IS A FILE AND NOT AN INLINE const CSS = ... STRING, which is what the
ticket's how asks for and what the graph rules below used to be. A rules
string injected through <style> in a component is invisible to the R5 font
scan (verify_ui.font_literals walks every stylesheet under src), so a literal
font size could ride into the tree unseen, and it re-injects itself on every
mount of the component that owns it.
β›”β›” AND THERE ARE NO BACKTICKS AND NO GLOB IN THIS FILE'S COMMENTS, WHICH IS
NOT A STYLE CHOICE. The first draft wrote a glob for "every stylesheet under
src" the way the rest of the repo does, and that glob spells a comment
TERMINATOR in the middle of a sentence: the header closed nine lines early,
the prose after it became declarations, and lightningcss failed the
production build. That is the exact hazard verify_build's section A is named
for, found by running it.
β›”β›” TRAP 1 β€” A PORTALLED OVERLAY PAINTS ITS OWN BACKGROUND
([[a-portal-overlay-carries-its-own-surface]]). The wave-48 date editor
rendered TRANSPARENT over the canvas because its class chain missed the one
class that carried a surface. .conn-modal-backdrop therefore carries its own
scrim and .conn-modal its own background; neither inherits one from the
page it was opened from, because it is a direct child of <body>.
β›”β›” TRAP 2 β€” Z-LAYERING IS A THREE-WAY ORDER
([[z-layering-is-a-three-way-order]]). The stack is DIALOG (--cg-z-record)
under PORTAL STEP (--cg-z-overlay), so a menu opened INSIDE this modal still
paints above it. Tokens only, never a literal number: raising one modal above
one panel is how the step under it got broken last time.
⭐ Tokens only for colour and type as well (DESIGN.md §5). Where the record
modal next door writes rgba(25, 34, 46, 0.34), this file derives the same
effect from --lp-ink with color-mix, the idiom --cg-primary-hover
already uses.
--------------------------------------------------------------------------- */
.conn-modal-backdrop {
position: fixed;
inset: 0;
z-index: var(--cg-z-record);
display: grid;
place-items: center;
padding: 24px;
background: color-mix(in srgb, var(--lp-ink) 34%, transparent);
}
/* ⭐⭐ W52-T03 β€” WIDENED, owner instruction 23 verbatim: "the connector popup width needs to be
longer." 760px is the OLD number; the fallback calc stays so a narrow viewport still fits with
its 24px margin either side. Nothing inside the panel is a fixed pixel width that would break
wider (the row grid, the field table and the relationship stage are all fluid or scroll their
own overflow), so no other rule in this block needed to move. */
.conn-modal {
width: min(960px, calc(100vw - 48px));
max-height: min(720px, calc(100vh - 48px));
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px solid color-mix(in srgb, var(--lp-line) 82%, var(--lp-muted));
border-radius: var(--lp-r-lg);
background: var(--lp-surface);
box-shadow:
0 30px 80px color-mix(in srgb, var(--lp-ink) 22%, transparent),
0 4px 18px color-mix(in srgb, var(--lp-ink) 12%, transparent);
color: var(--lp-ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
font-size: var(--lp-fs-sm);
/* 150 ms ease-out on opacity and transform only (DESIGN.md Β§4). */
animation: conn-modal-open 150ms cubic-bezier(0.2, 0, 0, 1);
}
.conn-modal:focus {
outline: none;
}
@keyframes conn-modal-open {
from {
opacity: 0;
transform: translateY(6px) scale(0.992);
}
to {
opacity: 1;
transform: none;
}
}
@media (prefers-reduced-motion: reduce) {
.conn-modal {
animation: none;
}
}
.conn-modal-head {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 10px;
padding: 14px 16px;