diff --git a/cmd/palette/outputs.go b/cmd/palette/outputs.go index 187d9b0..e8420a9 100644 --- a/cmd/palette/outputs.go +++ b/cmd/palette/outputs.go @@ -549,9 +549,9 @@ func fontsCSS(p palette) string { } // appSizeVars is the app's sizes that do not change with its density: the navigation's width, the -// bar over a page, how wide a page, a panel, a card, the inspector, a split section's aside, a -// fact's label and a search field may be, the spot's grid and signal, a state's mark and a -// machine's last hour. A size a consumer has no variable for is one it writes itself, and then it +// bar over a page, how wide a page, a panel, a card, the inspector, the rail beside a page's +// sections, a fact's label and a search field may be, the spot's grid and signal, a state's mark and +// a machine's last hour. A size a consumer has no variable for is one it writes itself, and then it // drifts. func appSizeVars(p palette) string { var b strings.Builder diff --git a/palette.toml b/palette.toml index 85e9cd7..3a00931 100644 --- a/palette.toml +++ b/palette.toml @@ -101,7 +101,7 @@ spot_border = "#313E5A" # its edge on the page, and the rule between its verdict # action is the one saturated fill on it. Until 2026-12-01 the action was the navy, the text's own # ink; the cyan is what the console's destination draws (target.html, spin-stack/brand#67). The # accent says "the action" or "selected" by being a fill or a mark - a solid button, a selected -# row's bar, the current tab's underline - and not by being coloured words. What is drawn as words +# row's bar, a selected card's edge - and not by being coloured words. What is drawn as words # in the accent's hue - a link, an action written as words, the focus ring - is accent_text, the # cyan darkened further: the accent as text is 4.39:1 on raised and 3.7:1 on its own selected tint. # The tints (tint.hover, tint.selected) are this cyan over the surface, a pale blue, with @@ -252,12 +252,12 @@ light = [ # only the label's hue said selected). # # Selected, and where you are, are one tint (--spin-selected, the accent at tint.selected over the -# surface they sit on): the selected row and the current item of the navigation. The tint is a -# plane, held from its surface at the hover tier, and what says "selected" is the accent beside it: -# a row's 3 px edge at its leading side, the navigation's label in accent_text at the strong weight. -# A selected card is its edge in the accent, 2 px all round, on its own surface: a card is already a -# plane of its own. The current tab and a section's place in its rail are a 2 px line in the -# accent. At 0.14 the tint is the prototype's of 2026-12-04 (light's +# surface they sit on): the selected row, the current item of the navigation, a page's current tab +# and a section's place in the rail beside it. The tint is a plane, held from its surface at the +# hover tier, and what says "selected" is the accent beside it: a row's 3 px edge at its leading +# side; the label of a navigation item, a tab or a place in accent_text at the strong weight. A +# selected card is its edge in the accent, 2 px all round, on its own surface: a card is already a +# plane of its own. At 0.14 the tint is the prototype's of 2026-12-04 (light's # #DDEBF2 to its #DCEBF3) and every word keeps its colour on it: the text, muted, the label, # accent_text and the three states each hold their floor there (0.27 before it made a selected row # heavier than its own words, which had to turn to the text's colour). What is under the pointer @@ -426,22 +426,20 @@ width_page = 1600 # px # What a page is made of, inside that column (the flat pattern, 2026-11-18). An object - a # workspace, a team, the installation - has one row of tabs, never a second under it: twelve tabs # in five groups were two levels of navigation inside one thing. Its settings are one page that -# scrolls, not tabs. Each section of that page is split: its title and a line of what it governs -# in an aside on the left, its rows on the right in a card - a hairline edge at `radius`, on the -# page's plane, no shadow. A row is a label, its value and one verb -# (Rename, Change, Manage); its detail, and its editing with Save and Cancel, open inside the row, -# never in a dialog or on another tab. A page shows one banner at most, the one that matters most, -# with its cause and its actions. A section's rows - settings, facts read for a diagnosis, a table - +# scrolls, not tabs, its sections listed in a rail beside them. A setting is a row of two lines, its +# name over what it governs, with its value and what changes it at its end (Copy, Change, Delete); +# its detail, and its editing with Save and Cancel, open inside the row, never in a dialog or on +# another tab. A section's rows - settings, facts read for a diagnosis, a table - # sit in one panel under the section's heading, so a section is a block the eye finds before it # reads a word (2026-11-30: a heading and a hairline over rows on the page's own plane read as one # long undivided list). Above them a page's verdict is on the spot ([dark]), the one plane that is # not the page's: the page, its panels and its spot (2026-12-04; two planes left nothing a focal # point). One panel per -# section, never a panel per row nor a panel inside a panel. On a phone the aside goes over its card. -width_aside = 280 # px: a split section's aside +# section, never a panel per row nor a panel inside a panel. On a phone the rail is left out. +width_aside = 280 # px: the rail beside a page's sections # A thing with its own identity and its single action - a network policy, a resource preset, a -# forge's app - is a panel: an edge in `border`, its header (name, state, the action and its menu) on -# `surface`, its body on the page. A list of many is a table, never a panel per row. Panels tile +# forge's app - is a panel of its own: its name, its state, its action and its menu head its rows. +# A list of many is a table, never a panel per row. Panels tile # across the column, each at least this wide: at 1600 px two rules tables side by side, where one stretched to the # column's width put a port 1000 px from its destination (2026-11-08). In the column a table has # fixed tracks, so a column is at one x in every row and every panel, and a label and its value @@ -531,14 +529,12 @@ xl = 24 # checker holds the outline from the page and from `surface` at the line floor. # # One rule for words and icons: the primary action is words alone. An icon goes alone where there -# is no room for words - a toolbar, a row's actions - and only with a caption: its name and its -# key, shown at once when the pointer or the focus reaches it, never after a delay. An icon whose -# caption waits is a guess. A caption covers nothing a person reads: a row's is in the row itself, -# to the left of its actions, in room the row's last column keeps for it - above its action it -# covered the age of the row above - and a toolbar's is over the margin above the toolbar. Never an -# icon and a word on every row. A third party's logo as an -# icon - an editor's, a forge's - is drawn as that party's brand terms say (its colours, its clear -# space, unaltered), or a generic glyph is used in its place. +# is no room for words - a toolbar, a row's menu - and only with a caption: its name and its key, +# shown at once when the pointer or the focus reaches it, never after a delay. An icon whose +# caption waits is a guess. A caption covers nothing a person reads. Never an icon and a word on +# every row: a row's next step is words ([layout]). A third party's logo as an icon - an editor's, +# a forge's - is drawn as that party's brand terms say (its colours, its clear space, unaltered), or +# a generic glyph is used in its place. # # A key hint: the key that does what its control does, on a cap beside the control's word - New task # c, Approve a, the search's ⌘K - where the key works on that page. The key's name as the key shows diff --git a/target.html b/target.html index 45eeeb7..6d44ed0 100644 --- a/target.html +++ b/target.html @@ -28,129 +28,20 @@ #frame { box-shadow: 0 0 0 1px var(--spin-border); } .bare .hud { display: none; } .bare .stage { padding: 0; } .bare #frame { box-shadow: none; } -/* The workspace page, Settings, the Overview and Runners, as they were drawn on 2026-12-01, in a - 1440 by 900 desktop. */ -@scope (.frame) { -:scope { --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; width: 1440px; height: 900px; overflow: hidden; display: grid; grid-template-columns: var(--spin-sidebar-app) minmax(0, 1fr); background: var(--spin-page); } -.mono { font-family: var(--spin-font-mono); } -.muted { color: var(--spin-muted); } -.link { color: var(--spin-accent-text); } -.warn-t { color: var(--spin-warning); } -.err-t { color: var(--spin-error); } -.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } -.grow { flex: 1; } -.side { display: flex; flex-direction: column; min-height: 0; background: var(--spin-surface); border-right: 1px solid var(--spin-border); padding: 0 var(--s2) var(--s2); } -.side .brand { display: flex; align-items: center; gap: var(--s2); height: 52px; padding: 0 var(--s2); font: 600 15px var(--spin-font-mono); } -.side .brand img { width: 20px; height: 20px; } -.side .search { display: flex; align-items: center; gap: var(--s2); height: var(--spin-control-md); margin: 0 0 var(--s3); padding: 0 var(--s2); border: 1px solid var(--spin-control-border); border-radius: var(--spin-radius-sm); background: var(--spin-control); color: var(--spin-muted); } -.side .search span:last-child { margin-left: auto; font: 13px var(--spin-font-mono); } -.side .group { margin: var(--s4) var(--s2) var(--s1); font-weight: 500; color: var(--spin-muted); } -.side nav a, .side .foot a { display: flex; align-items: center; gap: 10px; height: var(--spin-control-md); padding: 0 var(--s2); border-radius: var(--spin-radius-sm); color: var(--spin-muted); } -.side nav a:hover, .side .foot a:hover { background: var(--spin-row-hover); color: var(--spin-text); } -.side nav a.cur, .side .foot a.cur { background: var(--spin-raised); color: var(--spin-text); font-weight: 500; } -.side nav a .n { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--spin-text); font-weight: 400; } -.side svg, .btn svg, .input svg, .sec-h svg { width: var(--spin-control-icon); height: var(--spin-control-icon); flex: none; } -.side .foot { margin-top: auto; border-top: 1px solid var(--spin-hairline); padding-top: var(--s2); } -.side .who { display: flex; align-items: center; gap: 10px; padding: var(--s2); } -.side .who i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--spin-raised); font: 500 13px var(--spin-font-sans); font-style: normal; flex: none; } -.side .who div { min-width: 0; line-height: 18px; } -.side .ver { padding: 0 var(--s2); font: 13px var(--spin-font-mono); color: var(--spin-muted); } -.main { min-width: 0; min-height: 0; overflow: auto; padding: var(--s6) var(--s8) var(--s6); } -h1 { margin: 0; font: var(--spin-heading-weight) 24px/32px var(--spin-font-heading); letter-spacing: var(--spin-heading-tracking); } -h2 { margin: 0; font: var(--spin-heading-weight) 16px/24px var(--spin-font-heading); letter-spacing: -0.01em; } -.name { font-size: 14px; font-weight: 500; } -.ph { display: flex; align-items: flex-start; gap: var(--s4); margin-bottom: var(--s6); } -.ph > div:first-child { min-width: 0; flex: 1; } -.ph .acts { display: flex; align-items: center; gap: var(--s2); padding-top: 2px; } -.crumb { display: flex; gap: var(--s2); margin-bottom: var(--s1); color: var(--spin-muted); } -.ctx { margin: var(--s1) 0 0; color: var(--spin-muted); } -.verdict { display: flex; align-items: center; gap: var(--s2); margin: var(--s1) 0 0; font-size: 14px; font-weight: 500; } -.verdict .ex { font-size: 13px; font-weight: 400; color: var(--spin-muted); } -.mk { display: inline-block; width: 8px; height: 8px; flex: none; } -.mk.ok { border-radius: 50%; background: var(--spin-success); } -.mk.idle { border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--spin-muted); } -.mk.warn { width: 7px; height: 7px; margin: 0 0.5px; transform: rotate(45deg); border-radius: 1px; background: var(--spin-warning); } -.mk.err { border-radius: 1px; background: var(--spin-error); } -.st { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; min-width: 0; } -.st .why { color: var(--spin-muted); overflow: hidden; text-overflow: ellipsis; } -.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--spin-control-gap); height: var(--spin-control-md); padding: 0 var(--s3); border-radius: var(--spin-radius-sm); border: 1px solid transparent; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--spin-duration-fast) var(--spin-ease); } -.btn.sm { height: var(--spin-control-sm); padding: 0 10px; } -.btn.primary { background: var(--spin-accent); color: var(--spin-on-accent); } -.btn.primary:hover { background: var(--spin-accent-fill-hover); } -.btn.secondary { background: var(--spin-control); border-color: var(--spin-control-border); } -.btn.secondary:hover { background: var(--spin-control-hover); } -.btn.ghost { background: transparent; color: var(--spin-muted); } -.btn.ghost:hover { background: var(--spin-row-hover); color: var(--spin-text); } -.btn.icon { width: var(--spin-control-md); padding: 0; } -.verb { justify-self: end; display: inline-flex; align-items: center; height: var(--spin-control-sm); padding: 0 var(--s2); margin-right: calc(-1 * var(--s2)); border-radius: var(--spin-radius-sm); border: 0; background: transparent; color: var(--spin-muted); font-weight: 500; white-space: nowrap; cursor: pointer; } -.r:hover .verb, .dr:hover .verb { color: var(--spin-text); } -.verb:hover { background: var(--spin-row-action-hover); } -.verb.danger:hover { color: var(--spin-error); } -.r > .btn { justify-self: end; } -.sec + .sec { margin-top: var(--s6); } -.sec-h { display: flex; align-items: center; gap: var(--s2); min-height: var(--spin-control-md); margin-bottom: var(--s2); } -.sec-h .n { color: var(--spin-muted); } -.sec-h + .ex { margin: calc(-1 * var(--s2)) 0 var(--s2); color: var(--spin-muted); } -.panel { background: var(--spin-surface); border: 1px solid var(--spin-hairline); border-radius: var(--spin-radius-sm); overflow: hidden; } -.r { display: grid; align-items: center; column-gap: var(--s4); height: var(--spin-row); padding: 0 var(--s3); white-space: nowrap; } -.r > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; } -.r:hover { background: var(--spin-row-hover); } -.r.head { height: var(--spin-control-md); border-bottom: 1px solid var(--spin-hairline); font-size: 12px; font-weight: 500; color: var(--spin-muted); } -.r.head:hover { background: none; } -.r .t { color: var(--spin-muted); text-align: right; } -.clock { font-family: var(--spin-font-mono); color: var(--spin-muted); } -.r .num { text-align: right; } -.facts .r + .r { border-top: 1px solid var(--spin-hairline); } -.facts .r > :first-child { color: var(--spin-muted); } -.dr { display: flex; align-items: center; gap: var(--s6); min-height: 52px; padding: 6px var(--s4); } -.dr + .dr { border-top: 1px solid var(--spin-hairline); } -.dr .k { flex: 1; min-width: 0; } -.dr .k > * { display: block; } -.dr .k > b { font-size: 14px; font-weight: 500; } -.dr .k > span { color: var(--spin-muted); } -.dr .v { flex: none; display: flex; align-items: center; gap: var(--s3); } -.dr .fig { min-width: 88px; text-align: right; } -.dr .verb { min-width: 80px; justify-content: flex-end; } -:not(.vb) > .dr > .v:not(:has(.verb))::after { content: ''; width: 72px; } -.vb { margin-bottom: var(--s6); } -.vb .top { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s4); } -.vb .top > .mk { margin-top: 8px; } -.vb .top p { margin: 0; color: var(--spin-muted); } -.vb .top .clock { margin-left: auto; padding-top: 2px; } -.vb .dr { gap: var(--s3); padding-left: 36px; border-top: 1px solid var(--spin-hairline); } -.meter { display: inline-block; width: 56px; height: 4px; border-radius: 2px; background: var(--spin-raised); vertical-align: middle; margin-right: var(--s2); position: relative; overflow: hidden; } -.meter i { position: absolute; inset: 0 auto 0 0; background: var(--spin-text); border-radius: 2px; } -.meter.warn i { background: var(--spin-warning); } -.dr .meter { width: 120px; margin-right: 0; } -.tabs { display: flex; gap: var(--s6); margin: calc(-1 * var(--s2)) 0 var(--s6); border-bottom: 1px solid var(--spin-hairline); } -.tabs a { display: inline-flex; align-items: center; gap: 6px; height: var(--spin-control-lg); margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--spin-muted); } -.tabs a.cur { color: var(--spin-text); font-weight: 500; border-color: var(--spin-accent); } -.tabs a .n { color: var(--spin-muted); font-weight: 400; } -.two { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: var(--s6); align-items: start; } -.rail { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; } -.rail .head { margin-bottom: var(--s2); color: var(--spin-muted); font-weight: 500; } -.rail a { display: flex; align-items: center; height: var(--spin-control-sm); padding-left: var(--s3); border-left: 2px solid var(--spin-hairline); color: var(--spin-muted); } -.rail a.cur { color: var(--spin-text); font-weight: 500; border-color: var(--spin-accent); } -.prob .ph2 { display: flex; align-items: center; gap: var(--s3); height: 48px; padding: 0 var(--s3); border-bottom: 1px solid var(--spin-hairline); } -.prob .ph2 .name { font-family: var(--spin-font-mono); font-size: 14px; } -.prob + .prob { margin-top: var(--s3); } -.prob .facts .r { grid-template-columns: 96px minmax(0, 1fr); } -.ev { display: flex; gap: var(--s4); } -.sub { color: var(--spin-muted); } -.nest { display: inline-flex; align-items: center; gap: var(--s2); padding-left: var(--s6); } -} - /* The console as the prototype of 2026-12-04 draws it: the navigation, a bar over the page with where the person is and the page's one way to make something, and the page. A page leads with its verdict on the spot; what needs the person is a card with its next step; everything else is a row. The frame is a container, so a 390 px frame is drawn as a phone in a desktop's window. */ -@scope (.app) { -:scope { container: app / inline-size; background: var(--spin-page); } +.app { container: app / inline-size; background: var(--spin-page); } .shell { display: grid; grid-template-columns: var(--spin-sidebar-app) minmax(0, 1fr); min-height: 100vh; } -svg { width: var(--spin-control-icon); height: var(--spin-control-icon); flex: none; } -.mono { font-family: var(--spin-font-mono); } +.app svg { width: var(--spin-control-icon); height: var(--spin-control-icon); flex: none; } +/* An id, a command or a clock time, in the mono, never broken at its hyphens. */ +.mono { font-family: var(--spin-font-mono); white-space: nowrap; } +/* A path in the mono, which breaks after a slash and nowhere else. */ +.path { font-family: var(--spin-font-mono); } .muted { color: var(--spin-muted); } .link { color: var(--spin-accent-text); } +.warn-t { color: var(--spin-warning); } .err-t { color: var(--spin-error); } /* The ranks of type, each set whole from its six variables. */ @@ -176,6 +67,7 @@ .mark.warn { width: calc(var(--spin-mark) - 1px); height: calc(var(--spin-mark) - 1px); margin: 0 0.5px; border-radius: 1px; transform: rotate(45deg); } .mark.err { border-radius: 1px; } .mark.idle { background: none; box-shadow: inset 0 0 0 1.5px var(--c); } +.st { display: inline-flex; align-items: center; gap: var(--spin-space-xs); } /* A key hint: the key that does what its control does, on a cap. */ kbd { display: inline-grid; place-items: center; min-width: var(--spin-kbd); height: var(--spin-kbd); padding: 0 var(--spin-space-2xs); border: 1px solid var(--spin-border); border-radius: var(--spin-radius-xs); background: var(--spin-surface); color: var(--spin-muted); font: var(--spin-weight-medium) var(--spin-rank-label-size)/1 var(--spin-font-mono); } @@ -191,13 +83,17 @@ .btn.sm { height: var(--spin-control-sm); padding: 0 var(--spin-space-sm); } .btn.icon { width: var(--spin-control-md); padding: 0; } .btn.icon.sm { width: var(--spin-control-sm); } -/* A row's verb: a word in accent_text, lifted off its row under the pointer. */ +.btn[aria-pressed=true] { border-color: var(--spin-accent); background: var(--spin-selected); color: var(--spin-accent-text); } +/* A row's verb: a word in accent_text, lifted off its row under the pointer; one that takes + something away turns to error under it. */ .verb { display: inline-flex; align-items: center; height: var(--spin-control-sm); padding: 0 var(--spin-space-xs); border: 0; border-radius: var(--spin-radius-xs); background: none; color: var(--spin-accent-text); font-weight: var(--spin-weight-strong); white-space: nowrap; cursor: pointer; } .verb:hover { background: var(--spin-row-action-hover); } +.verb.danger:hover { color: var(--spin-error); } /* A next step written as words, with the arrow that says it goes somewhere. */ .go { display: inline-flex; align-items: center; gap: var(--spin-space-2xs); color: var(--spin-accent-text); font-weight: var(--spin-weight-strong); white-space: nowrap; } -/* The navigation, on the surface. */ +/* The navigation, on the surface. Where the person is - the page, the place on it, the view of it - + is the selected tint with its word in accent_text. */ .side { display: flex; flex-direction: column; gap: var(--spin-space-xl); padding: var(--spin-space-xl) var(--spin-space-md); background: var(--spin-surface); border-right: 1px solid var(--spin-hairline); } .brand { display: flex; align-items: center; gap: var(--spin-space-sm); padding: 0 var(--spin-space-sm); } .brand img { width: var(--spin-control-sm); height: var(--spin-control-sm); } @@ -205,9 +101,9 @@ .search kbd { margin-left: auto; } .nav { display: flex; flex-direction: column; gap: var(--spin-space-3xs); } .nav > .rank-label { padding: 0 var(--spin-space-sm) var(--spin-space-sm); } -.nav a { display: flex; align-items: center; gap: var(--spin-space-sm); height: var(--spin-control-md); padding: 0 var(--spin-space-sm); border-radius: var(--spin-radius-sm); color: var(--spin-muted); } -.nav a:hover { background: var(--spin-row-hover); color: var(--spin-text); } -.nav a[aria-current] { background: var(--spin-selected); color: var(--spin-accent-text); font-weight: var(--spin-weight-strong); } +.nav a, .tabs a, .rail a { display: flex; align-items: center; gap: var(--spin-space-sm); height: var(--spin-control-md); padding: 0 var(--spin-space-sm); border-radius: var(--spin-radius-sm); color: var(--spin-muted); white-space: nowrap; } +.nav a:hover, .tabs a:hover, .rail a:hover { background: var(--spin-row-hover); color: var(--spin-text); } +.nav a[aria-current], .tabs a[aria-current], .rail a[aria-current] { background: var(--spin-selected); color: var(--spin-accent-text); font-weight: var(--spin-weight-strong); } .nav .n { display: inline-flex; align-items: center; gap: var(--spin-space-xs); margin-left: auto; color: var(--spin-text); } .side .foot { display: flex; flex-direction: column; gap: var(--spin-space-md); margin-top: auto; } .who { display: flex; align-items: center; gap: var(--spin-space-sm); padding: var(--spin-space-md) var(--spin-space-sm) 0; border-top: 1px solid var(--spin-hairline); } @@ -225,13 +121,16 @@ .content { max-width: var(--spin-width-page); margin: 0 auto; padding: var(--spin-inset-page) var(--spin-inset-page) calc(2 * var(--spin-inset-page)); } /* A page's head: what it counts, its title with the cursor that says it has just arrived, its - line, and on the right what it does besides making something. */ + line, and on the right what it does besides making something. Its views, when it has them, are + tabs under it. */ .head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--spin-space-lg); margin-bottom: var(--spin-gap-head); } .head h1 { margin: var(--spin-space-sm) 0; } .head h1 .cur { color: var(--spin-accent); animation: spin-blink var(--spin-blink) steps(1) var(--spin-blink-times); } .head p { margin: 0; color: var(--spin-muted); } .head .acts { display: flex; align-items: center; gap: var(--spin-space-sm); } @keyframes spin-blink { 50% { opacity: 0; } } +.tabs { display: flex; gap: var(--spin-space-2xs); margin: calc(-1 * var(--spin-space-sm)) 0 var(--spin-gap-head); } +.tabs .rank-label { margin-left: var(--spin-space-2xs); } /* The spot: the verdict and the counts it rests on, the one plane a page has that is not its own, with the one texture in the palette. It holds words and figures, never a control. */ @@ -249,20 +148,27 @@ .figs { display: flex; border-left: 1px solid var(--spin-spot-border); } .fig { display: flex; flex-direction: column; justify-content: space-between; gap: var(--spin-space-lg); min-width: var(--spin-width-figure); padding: var(--spin-inset-spot) var(--spin-space-lg); } .fig + .fig { border-left: 1px solid var(--spin-spot-border); } -.fig b { color: var(--c); } +.fig b { color: var(--c, var(--spin-spot-text)); } .fig.idle b { color: var(--spin-spot-text); } -.fig .rank-label { display: flex; align-items: center; gap: var(--spin-space-xs); color: var(--spin-spot-muted); } +.fig .rank-label { display: flex; align-items: center; gap: var(--spin-space-xs); color: var(--spin-spot-muted); white-space: nowrap; } .skel { display: block; border-radius: var(--spin-radius-xs); background: var(--spin-raised); } .spot .skel { background: var(--spin-spot-border); } -/* A section: its heading, how many it holds, and on the right what orders it. */ +/* A section: its heading, how many it holds, and on the right what orders it or what adds to it. */ .sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--spin-space-md); margin: var(--spin-gap-section) 0 var(--spin-gap); } .sec-head > div { display: flex; align-items: baseline; gap: var(--spin-space-sm); } .sec-head h2 { margin: 0; } +.intro { max-width: var(--spin-measure); margin: calc(-1 * var(--spin-space-xs)) 0 var(--spin-gap); color: var(--spin-muted); } +/* Sections side by side, and a page's sections beside the list of them. */ +.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--spin-gap-section); align-items: start; } +.with-rail { display: grid; grid-template-columns: minmax(0, 1fr) var(--spin-width-aside); gap: var(--spin-gap-section); align-items: start; } +.rail { position: sticky; top: var(--spin-inset-page); display: flex; flex-direction: column; gap: var(--spin-space-3xs); margin-top: var(--spin-gap-section); } +.rail > .rank-label { padding: 0 var(--spin-space-sm) var(--spin-space-sm); } /* What needs the person, and only that, is a card: its state and how long, what it is, its reason, - and its next step beside where it is. */ + and its next step beside where it is. A card alone is no wider than a panel's least. */ .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--spin-width-card-min), 1fr)); gap: var(--spin-gap); } +.cards:has(> :only-child) { grid-template-columns: minmax(0, var(--spin-width-panel-min)); } .card { display: flex; flex-direction: column; min-width: 0; padding: var(--spin-inset-card); border: 1px solid var(--spin-hairline); border-radius: var(--spin-radius); background: var(--spin-surface); } .card[aria-current] { border-color: var(--spin-accent); box-shadow: inset 0 0 0 1px var(--spin-accent); } .card .top { display: flex; align-items: center; justify-content: space-between; gap: var(--spin-space-sm); } @@ -273,8 +179,14 @@ .card p b { color: var(--spin-text); font-weight: var(--spin-weight-strong); } .card p.why { color: var(--spin-error); } .card .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spin-space-sm); margin-top: var(--spin-space-md); padding-top: var(--spin-space-md); border-top: 1px solid var(--spin-hairline); } -.card .foot .acts { display: flex; align-items: center; gap: var(--spin-space-xs); margin-left: auto; } +.card .foot .acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spin-space-xs); margin-left: auto; } .card .foot .acts:only-child { margin-left: 0; } +/* A problem's cause, what it touches and where its evidence is. */ +.kv { flex: 1; display: grid; grid-template-columns: var(--spin-width-key) minmax(0, 1fr); align-content: start; gap: var(--spin-space-xs) var(--spin-space-md); margin: var(--spin-space-sm) 0 0; } +.kv dt { color: var(--spin-muted); } +.kv dd { margin: 0; } +.links { display: flex; flex-wrap: wrap; gap: var(--spin-space-2xs) var(--spin-space-md); } +.links a { color: var(--spin-accent-text); font-weight: var(--spin-weight-strong); } .empty { display: flex; align-items: flex-start; gap: var(--spin-space-lg); padding: var(--spin-inset-spot); border: 1px dashed var(--spin-border); border-radius: var(--spin-radius); background: var(--spin-surface); } .empty h3 { margin: 0 0 var(--spin-space-2xs); } .empty p { margin: 0; color: var(--spin-muted); } @@ -288,7 +200,6 @@ .seg { display: flex; gap: var(--spin-space-3xs); padding: var(--spin-space-2xs); border-radius: var(--spin-radius-sm); background: var(--spin-page); } .seg button { display: inline-flex; align-items: center; gap: var(--spin-space-xs); height: var(--spin-control-sm); padding: 0 var(--spin-space-md); border: 0; border-radius: var(--spin-radius-xs); background: none; color: var(--spin-muted); font-weight: var(--spin-weight-medium); white-space: nowrap; cursor: pointer; } .seg button[aria-pressed=true] { background: var(--spin-surface); color: var(--spin-text); font-weight: var(--spin-weight-strong); box-shadow: 0 0 0 1px var(--spin-hairline); } -.btn[aria-pressed=true] { border-color: var(--spin-accent); background: var(--spin-selected); color: var(--spin-accent-text); } .input { display: flex; align-items: center; gap: var(--spin-space-sm); min-width: var(--spin-width-search); height: var(--spin-control-md); padding: 0 var(--spin-space-xs) 0 var(--spin-space-md); border: 1px solid var(--spin-border-strong); border-radius: var(--spin-radius-sm); background: var(--spin-surface); color: var(--spin-muted); } .input kbd { margin-left: auto; } @@ -326,18 +237,38 @@ .fact + .fact { border-top: 1px solid var(--spin-hairline); } .fact > span:first-child { color: var(--spin-muted); } +/* A setting or a fact of one thing: its name over the line that says what it governs or why, and + on the right its value and what changes it. */ +.row2 { display: flex; align-items: center; gap: var(--spin-space-lg); min-height: var(--spin-row-two); padding: var(--spin-space-sm) var(--spin-inset-cell); } +.row2 + .row2 { border-top: 1px solid var(--spin-hairline); } +.row2 .k { flex: 1; min-width: 0; } +.row2 .k > b { display: block; } +.row2 .k > span { display: block; color: var(--spin-muted); } +.row2 .v { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--spin-space-md); } +/* How much of what it holds a machine uses, in its state's colour on the raised plane. */ +.meter { position: relative; flex: none; width: var(--spin-usage-width); height: var(--spin-space-xs); overflow: hidden; border-radius: var(--spin-radius-xs); background: var(--spin-raised); } +.meter i { position: absolute; inset: 0 auto 0 0; background: var(--c); } + /* A table of many: its heads in the label rank, a hairline between rows, a row's next step at its end - at most one outlined button, a verb in accent_text, and its menu. */ .table { width: 100%; border-collapse: collapse; } .table th { padding: var(--spin-space-sm); border-bottom: 1px solid var(--spin-hairline); text-align: left; white-space: nowrap; } .table td { height: var(--spin-row-item); padding: var(--spin-space-xs) var(--spin-space-sm); vertical-align: middle; white-space: nowrap; } +.table.log td { height: var(--spin-row); } +.table.log td:not(:last-child) { width: 1%; } .table :is(th, td):first-child { padding-left: var(--spin-space-md); } .table :is(th, td):last-child { padding-right: var(--spin-space-md); } .table tbody tr + tr td { border-top: 1px solid var(--spin-hairline); } -.table tbody tr:not(.group):hover td { background: var(--spin-row-hover); } -.table td.agent { white-space: normal; text-wrap: pretty; } +.table tbody tr:not(.group, .sub):hover td { background: var(--spin-row-hover); } +.table .num { text-align: right; } +.table td.wrap { white-space: normal; text-wrap: pretty; } +.table td .why { display: block; color: var(--spin-muted); } .table tr.group td { height: auto; padding: var(--spin-space-sm) var(--spin-space-md); background: var(--spin-page); } .table tr.group span { margin-left: var(--spin-space-sm); color: var(--spin-muted); } +/* What a row holds, under it and of it. */ +.table tbody tr.sub td { height: auto; padding-bottom: var(--spin-space-md); border-top: 0; } +.on { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spin-space-xs) var(--spin-space-lg); } +.on > span { display: inline-flex; align-items: center; gap: var(--spin-space-xs); } .chip { display: inline-flex; align-items: center; gap: var(--spin-space-sm); height: var(--spin-control-sm); padding: 0 var(--spin-space-sm); border-radius: var(--spin-radius-sm); background: var(--tint); font-weight: var(--spin-weight-medium); white-space: nowrap; } .st-for { display: inline-flex; align-items: center; gap: var(--spin-space-sm); } .where span { display: block; } @@ -345,7 +276,7 @@ /* A machine's last hour, as GetWorkspaceUsage gives it: its own cores dashed, what it is lent above them, what it used, and the figures beside it. */ .use { display: flex; align-items: center; gap: var(--spin-space-sm); } -.spark { display: block; width: var(--spin-usage-width); height: var(--spin-usage-height); overflow: visible; } +svg.spark { display: block; width: var(--spin-usage-width); height: var(--spin-usage-height); overflow: visible; } .spark .lent { fill: var(--spin-usage-lent); } .spark .own { stroke: var(--spin-usage-own); stroke-width: 1; stroke-dasharray: 2 3; } .spark .area { fill: var(--spin-usage-used); } @@ -358,31 +289,35 @@ column, a table's row as a block, and no key hints, since a phone has no keys. */ @container app (width < 768px) { .shell { grid-template-columns: minmax(0, 1fr); } - .side, .crumb .desk, kbd, .sec-note { display: none; } + .side, .crumb .desk, kbd, .sec-note, .rail { display: none; } .bar { padding: 0 var(--spin-space-lg); } .bar .menu { display: inline-flex; } - .btn, .seg button, .verb { min-height: var(--spin-target-touch); } + .btn, .seg button, .verb, .tabs a { min-height: var(--spin-target-touch); } .btn.icon { width: var(--spin-target-touch); } .content { padding: var(--spin-space-xl) var(--spin-space-lg) calc(2 * var(--spin-space-xl)); } .head { flex-direction: column; align-items: flex-start; } .spot { grid-template-columns: minmax(0, 1fr); } .figs { border-top: 1px solid var(--spin-spot-border); border-left: 0; } .fig { flex: 1; gap: var(--spin-space-sm); min-width: 0; padding: var(--spin-space-md) var(--spin-space-lg); } - .split { grid-template-columns: minmax(0, 1fr); } + .fig .rank-label { white-space: normal; } + .split, .cols, .with-rail { grid-template-columns: minmax(0, 1fr); } .tools { flex-direction: column; align-items: stretch; } .input { min-width: 0; } + .row2 { flex-wrap: wrap; gap: var(--spin-space-2xs) var(--spin-space-lg); } + .row2 .k { flex-basis: 100%; } + .row2 .v { justify-content: flex-start; } .table thead { display: none; } .table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--spin-space-xs) var(--spin-space-md); padding: var(--spin-space-md) var(--spin-space-lg); } .table tbody tr + tr { border-top: 1px solid var(--spin-hairline); } - .table td, .table tbody tr + tr td, .table td:is(:first-child, :last-child) { height: auto; padding: 0; border: 0; } - .table td.agent, .table td.use, .table td:last-child, .table tr.group td { grid-column: 1 / -1; min-width: 0; } - .table td.where, .table td.use:has(.none) { display: none; } + .table tbody tr.sub { padding-top: 0; border-top: 0; } + .table td, .table tbody tr + tr td, .table td:is(:first-child, :last-child), .table.log td:not(:last-child) { width: auto; height: auto; padding: 0; border: 0; } + .table td.span, .table td:last-child, .table tr:is(.group, .sub) td { grid-column: 1 / -1; min-width: 0; } + .table td.desk, .table td.use:has(.none) { display: none; } .actions { justify-content: flex-start; } } @media (prefers-reduced-motion: reduce) { .head h1 .cur, .item.live .tile::after { animation: none; } } -} @@ -394,209 +329,51 @@ -
+