// The one look. Imported last. Every control, list, panel and page part gets its look here and // nowhere else, so moving between pages changes the content and nothing else. The rules are in // docs/ui-language.md. :root { --radius-sm: 12px; --radius-md: 12px; --radius-lg: 20px; --radius-sheet: 16px; --control-h: 38px; --control-sm: 32px; --display: var(--font); --topbar-h: 56px; --gutter: 24px; --add-bg: #e6effb; --add-text: #1d3f6e; --add-mark: #2d68b4; --del-bg: #fbe8ea; --del-text: #8a1f2d; --del-mark: #b3202f; --bad: #b3202f; --danger: #b3202f; --caution: #b3202f; --danger-bg: #fbe8ea; --alert-bg: #fbe8ea; --alert-text: #8a1f2d; --pop-shadow: 0 12px 36px rgba(20, 18, 15, 0.14); } @mixin one-dark { --add-bg: #17304e; --add-text: #b9d6f7; --add-mark: #7fb3ef; --del-bg: #3b1d20; --del-text: #f7c2c6; --del-mark: #f27d84; --bad: #f27d84; --danger: #f27d84; --caution: #f27d84; --danger-bg: #3b1d20; --alert-bg: #3b1d20; --alert-text: #f7c2c6; --pop-shadow: 0 12px 36px rgba(0, 0, 0, 0.5); } :root[data-theme="dark"] { @include one-dark; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { @include one-dark; } } // Type body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 22px; } h1, .h1 { font-family: var(--font); font-size: 26px; font-stretch: normal; font-weight: 700; letter-spacing: -0.02em; line-height: 34px; } h2, .part-title, .sec > h2 { color: var(--muted); font-family: var(--font); font-size: 13px; font-stretch: normal; font-weight: 600; letter-spacing: 0; line-height: 20px; text-transform: none; } h3 { font-family: var(--font); font-size: 15px; font-stretch: normal; font-weight: 600; letter-spacing: 0; } .markdown-body { h1, h2, h3 { padding: 0; border: 0; color: var(--text); } h1 { margin: 0 0 10px; font-size: 24px; line-height: 32px; } h2 { margin: 20px 0 8px; font-size: 17px; font-weight: 700; line-height: 24px; } h3 { margin: 16px 0 6px; font-size: 15px; font-weight: 700; } p { margin: 0 0 10px; } ul, ol { margin: 0 0 10px; padding-left: 20px; } li { margin-bottom: 4px; } a { color: var(--accent); } code { padding: 1px 5px; border: 0; border-radius: 6px; background: var(--surface-2); font-family: var(--mono); font-size: 13.5px; } pre { margin: 0 0 10px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--surface-2); } pre code { padding: 0; background: none; } table { margin: 0 0 10px; border-collapse: collapse; } th, td { padding: 6px 12px 6px 0; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; } th { color: var(--muted); font-size: 13px; font-weight: 600; } blockquote { margin: 0 0 10px; padding: 0; border: 0; color: var(--muted); } > :last-child { margin-bottom: 0; } } .hint { color: var(--muted); font-size: 13px; line-height: 20px; } // Buttons: one filled pill for the page's main action, one soft pill for the rest, one small size. button, .button, summary.button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; height: var(--control-h); min-height: 0; padding: 0 18px; border: 0; border-radius: 19px; background: var(--surface-2); box-shadow: none; color: var(--text); cursor: pointer; font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: none; &:hover { border: 0; background: color-mix(in oklab, var(--surface-2) 88%, var(--text)); color: var(--text); text-decoration: none; } &:disabled, &[aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; } } button.primary, .button.primary, summary.button.primary { background: var(--text); color: var(--bg); &:hover { background: color-mix(in oklab, var(--text) 85%, var(--bg)); color: var(--bg); } } button.danger, .button.danger, summary.button.danger { background: var(--bad); color: var(--bg); &:hover { background: color-mix(in oklab, var(--bad) 85%, var(--bg)); color: var(--bg); } } button.small, .button.small, summary.button.small { height: var(--control-sm); padding: 0 14px; border-radius: 15px; font-size: 13px; } button.icon-btn, .icon-btn { width: var(--control-sm); height: var(--control-sm); padding: 0; border-radius: 50%; background: none; color: var(--muted); &:hover { background: var(--surface-2); color: var(--text); } } // An action inside content: a word in the accent's ink, so it never reads as a hint or a heading. a.act, span.act, button.act, summary.act, button.link-button, .link-button { display: inline-flex; align-items: center; height: 30px; min-height: 0; padding: 0 10px; border: 0; border-radius: 12px; background: none; box-shadow: none; color: var(--accent-ink); cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; &:hover { border: 0; background: var(--surface-2); color: var(--accent-ink); text-decoration: none; } &.quiet, &.quiet:hover { color: var(--muted); } &.danger, &.danger:hover { background: none; color: var(--bad); } &.danger:hover { background: var(--danger-bg); } } .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: -10px; // Every button is pinned to the top of a flex column by the old sheet; in a row of actions a // short word action stands on the middle line of a tall submit instead. > :is(button, .button) { align-self: auto; } } .sec > .acts { margin-top: 4px; } // A lone action in a topic keeps its words on the topic's edge, as a row of them does. .sec > a.act, .sec > button.act, .sec > details > summary.act, .sec > form > button.act:only-of-type { margin-left: -10px; } .act-form { display: inline-flex; } // Controls: a soft filled shape with no line around it. input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"], [type="range"], [type="hidden"]), select, textarea { box-sizing: border-box; min-height: 0; border: 0; border-radius: 12px; outline: 0; background-color: var(--surface-2); box-shadow: none; color: var(--text); font-family: var(--font); font-size: 15px; } input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"], [type="range"], [type="hidden"]), select { height: var(--control-h); padding: 0 12px; } select:not([multiple], [size]:not([size="1"])) { padding-right: 32px; border-radius: 19px; font-size: 14px; font-weight: 600; } textarea { padding: 10px 12px; line-height: 22px; } input:focus, select:focus, textarea:focus { border: 0; outline: 2px solid var(--focus); outline-offset: 1px; box-shadow: none; } :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } ::placeholder { color: var(--muted); opacity: 1; } input[type="checkbox"] { width: 18px; height: 18px; border: 0; border-radius: 6px; background: none; box-shadow: inset 0 0 0 1.5px var(--border-strong); &:checked { background: var(--accent); box-shadow: none; } } input[type="radio"] { flex: none; appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.5px var(--border-strong); cursor: pointer; &:checked { box-shadow: inset 0 0 0 5px var(--accent); } } // A form: the label beside its control, the hint under the control, the submit on the same edge. .fields { --label-w: 130px; display: flex; flex-direction: column; gap: 6px; max-width: 760px; } .field { display: grid; grid-template-columns: var(--label-w, 130px) minmax(0, max-content) minmax(0, 1fr); gap: 4px 16px; align-items: start; min-width: 0; > label, > .field-label { grid-column: 1; padding-top: 8px; font-size: 15px; font-weight: 500; line-height: 22px; } > *:not(label, .field-label) { grid-column: 2; min-width: 0; } > label.switch { grid-column: 2 / -1; padding-top: 0; } // The canvas's sizes: a line of text is 280 wide and so is a select, so every control in a form ends // on one edge; a box of text is 560. > input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"], [type="range"], [type="hidden"]) { width: 280px; max-width: 100%; } // A title or a summary is a sentence: as wide as a box of text. > input:is([name="title"], [name="summary"], [name="description"]) { width: 560px; } > select:not([multiple]) { width: 280px; max-width: 100%; } > textarea { width: 560px; max-width: 100%; } > .hint { margin: 0; } // A hint sits beside one short control, and under anything taller. A phone stacks it all. @media (min-width: 701px) { > .hint { grid-column: 3; grid-row: 1; align-self: center; } &:has(> textarea, > .choice, > div, > fieldset, > .hint ~ .hint, > :not(label, .field-label, .hint) ~ :not(label, .field-label, .hint)) > .hint { grid-column: 2 / -1; grid-row: auto; align-self: start; } } } // A field of several boxes to tick: one under another in the control column, its text by its box. .field > .checks { display: flex; flex-direction: column; gap: 6px; padding-top: 9px; > .switch { align-items: center; font-weight: 400; } } .fields > button[type="submit"], .fields > .button, .fields > .switch, .fields > .hint, .fields > fieldset { align-self: flex-start; margin-left: calc(var(--label-w) + 16px); } // A topic of fields outside a .fields form lines its box and its submit up the same way. .sec:has(> .field) > .switch, .sec:has(> .field) > button[type="submit"], .sec:has(> .field) > .acts:has(> button[type="submit"]) { align-self: flex-start; margin-left: calc(var(--label-w, 130px) + 16px); } @media (max-width: 700px) { .sec:has(> .field) > .switch, .sec:has(> .field) > button[type="submit"], .sec:has(> .field) > .acts:has(> button[type="submit"]) { margin-left: 0; } } .fields > .acts { align-self: flex-start; margin-left: calc(var(--label-w) + 16px); } // A form with no labelled field has no label column to clear: its controls start at the edge. .fields:not(:has(> .field, > .field-pair, > fieldset)) > :is(button[type="submit"], .button, .switch, .hint, .acts) { margin-left: 0; } .field:has(> label.sr-only) { grid-template-columns: minmax(0, 1fr); > :not(label) { grid-column: 1; } } .fields:has(> .field > label.sr-only) > :is(button[type="submit"], .button, .acts) { margin-left: 0; } // A quiet action leading the row keeps its words, not its padding, on the fields' edge. .fields > .acts > .act:first-child { margin-left: -10px; } .switch { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; } // Search bars are the same soft field with an icon inside. .plain-search { height: var(--control-h); margin: 0; padding: 0 14px; border: 0; border-radius: 19px; background: var(--surface-2); input, input:focus { height: 100%; outline: 0; background: none; } &:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; } } // Sections and second-level links share one row of soft tabs. .tabs, .repo-tabs, .sub { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; margin: 8px 0 0 -14px; padding: 2px; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 14px; scrollbar-width: none; } .tabs > a, .tabs .tab, .repo-tabs > a, .repo-tabs .tab, .sub > a:not(.act) { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 32px; margin: 0; padding: 0 12px; border: 0; border-radius: 15px; background: none; box-shadow: none; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; &:hover { background: var(--surface-2); color: var(--text); text-decoration: none; } &[aria-current="page"], &.active, &:has(:checked) { background: var(--surface); box-shadow: 0 0 0 1px var(--border); color: var(--text); font-weight: 500; // the same as its neighbours, so choosing never shifts the row } } .tab-count { position: relative; top: -1px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font-family: var(--mono); font-size: 12.5px; font-weight: 400; } // The top bar: profile, then the place you are in, which is also search. .topbar { position: static; display: flex; align-items: center; gap: 12px; height: var(--topbar-h); padding: 0 var(--gutter); border: 0; background: none; } .top-start { display: flex; flex: none; align-items: center; gap: 12px; width: auto; padding: 0; } .wordmark { color: var(--text); font-family: var(--font); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; &:hover { color: var(--text); text-decoration: none; } } .pathbar, .pathbar:has(.pathbar-edit) { flex: 0 1 auto; display: flex; align-items: center; gap: 8px; width: auto; min-width: 0; max-width: min(640px, 60vw); height: 36px; box-sizing: border-box; padding: 0 8px 0 14px; border: 0; border-radius: 18px; background: var(--surface-2); } .pathbar-segs { font-family: var(--font); font-size: 14px; } .pathbar-seg.last { font-weight: 600; } .pathbar-segs { display: flex; flex: 0 1 auto; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none; } .pathbar-edit, button.pathbar-edit { flex: none; align-self: center; width: auto; height: auto; padding: 0; background: none; font-size: 12px; font-weight: 400; &:hover { background: none; } .pathbar-hint { display: none; } kbd { padding: 2px 8px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: none; color: var(--muted); font-family: var(--mono); font-size: 12px; } } .top-explore { flex: none; height: 32px; padding: 0 12px; border-radius: 15px; color: var(--muted); font-size: 14px; font-weight: 500; &:hover { background: var(--surface-2); color: var(--text); text-decoration: none; } } .live-strip { margin-left: 0; } // The profile sits at the start of the bar; a dot says something waits for you. .corner-float { position: relative; inset: auto; z-index: 40; flex: none; width: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; transform: none; } .corner { position: relative; display: block; } .corner-btn, summary.corner-btn { position: relative; display: block; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; cursor: pointer; list-style: none; &::-webkit-details-marker { display: none; } &:hover { background: none; box-shadow: none; } .corner-avatar { display: block; width: 32px; height: 32px; border: 0; border-radius: 50%; } } .bell-count { color: var(--muted); font-family: var(--mono); font-size: 12.5px; } // Something waits for the viewer (an unread notification, a review request, a mention or a failed // run): a dot on the avatar. nav.js keeps the `waiting` class in step with the counts. details.corner.waiting > .corner-btn::after { content: ""; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; box-sizing: border-box; border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); } .corner-menu { position: absolute; top: 42px; right: auto; bottom: auto; left: 0; display: flex; flex-direction: column; gap: 2px; width: 260px; max-width: calc(100vw - 28px); padding: 8px !important; } .corner-who { margin: 0; overflow: hidden; padding: 6px 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; } .corner-link, a.corner-link, button.corner-link { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--text); text-decoration: none; &:hover { background: var(--surface-2); color: var(--text); text-decoration: none; } .val { color: var(--muted); font-family: var(--mono); font-size: 12.5px; } } // The avatar is the whole button: no inset, so it sits on the top bar's middle line. .corner-float summary.corner-btn { padding: 0; } .corner-sep { height: 1px; margin: 6px 4px; background: var(--border); } // Page parts .shell-body > main { box-sizing: border-box; width: 100%; max-width: none; padding: 12px var(--gutter) var(--gutter); } main[data-width] { max-width: none; } // Above the section tabs: the shell writes the tabs, the page writes its head. .shell-body > main { display: flex; flex-direction: column; min-width: 0; } main > .head { order: -1; } main > .tabs { margin-bottom: 12px; } .head { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-bottom: 8px; } .acts.asks { gap: 8px; margin-left: 0; } .head-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; > h1 { min-width: 0; margin: 0; overflow-wrap: anywhere; } .num { color: var(--muted); font-weight: 500; } > h1.bad { color: var(--bad); } > h1.live { color: var(--accent); } } .head-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; color: var(--muted); font-size: 14px; b { color: var(--text); font-weight: 600; } } .head-sub { a { color: inherit; text-decoration: none; } a:hover { color: var(--text); text-decoration: underline; } .sep { color: var(--muted); } .mono { font-family: var(--mono); font-size: 13px; } .b { color: var(--text); font-weight: 600; } } // Recent runs after the head line: a dot each, coloured by how it ended, the newest last. .pips { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: middle; } .pip { display: block; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); &.ok { background: var(--ok); box-shadow: none; } &.bad { background: var(--bad); box-shadow: none; } &.live { background: var(--accent); box-shadow: none; } // The newest run is a little larger. &.cur { width: 10px; height: 10px; } } .work { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; } .work:not(:has(> .rail)) { grid-template-columns: minmax(0, 1fr); } .rail { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; max-height: calc(100vh - 24px); font-size: 14px; > h2 { display: flex; gap: 8px; margin: 4px 12px 6px; } > input, > .plain-search { flex: none; width: 100%; margin-bottom: 6px; } } // The branch beside the Files heading: the small soft pill every other picker in a tools row is, 32px // tall, that opens the one menu. .rail-head .ref-select > summary { display: inline-flex; gap: 6px; align-items: center; height: 32px; min-height: 0; padding: 0 12px 0 14px; border: 0; border-radius: 16px; background: var(--surface-2); box-shadow: none; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 500; &:hover { background: color-mix(in oklab, var(--surface-2) 88%, var(--text)); } > svg:first-child { display: none; } code, .ref-name { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font-family: var(--font); font-size: 14px; } svg { width: 12px; height: 12px; } } // The rail's head starts on the sheet's top edge, with no rule above it: the list's own rows draw the lines. .rail-head.browse-bar { margin: 0 0 8px; padding: 0; border: 0; } .rail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; > h2 { margin: 0 0 0 12px; } > .code-search-act { margin-left: auto; } > .finder-open { flex: 1 0 100%; justify-content: space-between; height: var(--control-h); padding: 0 12px; background: var(--surface-2); font-size: 15px; font-weight: 400; kbd { border: 0; background: none; box-shadow: none; color: var(--muted); font-family: var(--mono); font-size: 12px; } } } .rail-list { flex: 1; display: flex; flex-direction: column; gap: 2px; min-height: 0; margin: -2px; padding: 2px; overflow-y: auto; } .rail-item { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 12px; color: var(--text); font-weight: 500; text-decoration: none; .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nm.dir { font-family: var(--mono); font-size: 13px; } .val { color: var(--muted); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; } &:hover { background: var(--surface-2); color: var(--text); text-decoration: none; } &[aria-current="page"], &[aria-current="true"], &.sel { background: var(--surface); box-shadow: 0 0 0 1px var(--border); font-weight: 500; // the same as its neighbours, so choosing never shifts the row } } .sheet { min-width: 0; overflow: clip; border-radius: var(--radius-sheet); background: var(--surface); box-shadow: 0 0 0 1px var(--border); } // A phone has no room for a box inside the page: the sheet runs to the screen's edges with a // hairline above and below, so its rows get the width the gutter and ring took. @media (max-width: 700px) { .sheet { margin-right: calc(-1 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); border-radius: 0; box-shadow: 0 -1px 0 var(--border), 0 1px 0 var(--border); } // A sheet that hugs its form on a wide screen takes the whole width here too, so no half band. main > .sheet.fit { align-self: stretch; } } // A panel opened inside the sheet lies over the page, so the sheet stops cutting while it is open. .sheet:has(details[open] > :is(.menu-list, .pop-panel, .status-list)) { overflow: visible; } .sheet .readme, .sheet .markdown-body { max-width: 796px; } // A readme in a sheet: its text starts on the tools row's inset, the canvas's 22px under the row. .sheet .readme { margin: 0; padding: 22px 18px 28px; .markdown-body, .readme-text { padding: 0; } border-radius: 0; background: none; box-shadow: none; } .sheet-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 48px; box-sizing: border-box; padding: 6px 10px 6px 18px; border-bottom: 1px solid var(--border); > strong { margin-right: 10px; font-weight: 700; overflow-wrap: anywhere; } } .sheet.fit { align-self: start; } .sheet-add { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); } .sheet > .state { margin: 0; padding: 14px 18px; } // Inside a sheet the topics carry the padding and the rows reach both edges. .sec { gap: 8px; padding: 14px 0; border: 0; &:last-child { border: 0; } } .sheet > .sec, .sheet > form > .sec, .sheet > .fields { padding: 14px 18px; } .sheet > .sec + .sec { border-top: 1px solid var(--border); } // A topic that opens with its own tools row: the row runs edge to edge, as a sheet's own does. .sheet > .sec > .sheet-tools:first-child { margin: -14px -18px 0; } .line, div.line { gap: 10px; box-sizing: border-box; min-height: 46px; padding: 8px 18px; border-bottom: 1px solid var(--border); &:last-child { border-bottom: 0; } .name { font-weight: 600; } .val { font-size: 14px; } } a.line:hover, summary.line:hover { background: color-mix(in oklab, var(--surface) 96%, var(--text)); } a.line:hover .name, .row-open > summary.line:hover .name { color: var(--text); } .line > :is(a.act, button.act, summary.act):first-child, .line > .act-form:first-child > .act, .line > details.reveal:first-child > summary.act { margin-left: -10px; } .sheet > .sec > .line, .sheet > .sec > div:not([class]) > .line, .sheet > .sec > .commits-list > .line, .sheet > .sec > .commits-list > .row-open > .line, .sheet > .sec > .row-open > .line { margin: 0 -18px; padding-right: 18px; padding-left: 18px; } .opened { gap: 10px; margin: 4px 0 6px; padding: 0; border: 0; } .row-open[open] > summary.line { padding-bottom: 4px; border-bottom: 0; } .row-open > .opened { margin: 0; padding: 0 18px 14px; border-bottom: 1px solid var(--border); } .sheet > .sec > .row-open > .opened, .sheet > .sec > .commits-list > .row-open > .opened { margin: 0 -18px; padding-right: 18px; padding-left: 18px; } .row-open:last-child > .opened { border-bottom: 0; } // Rows under a topic's heading are one list of that topic: their dividers stop at the text edges, // so only the lines between topics run edge to edge. .sheet > .sec:has(> h2) > .line, .sheet > .sec:has(> h2) > .row-open > .line, .sheet > .sec:has(> h2) > .row-open > .opened { margin: 0; padding-right: 0; padding-left: 0; } .sheet > .sec:has(> h2) > .line:focus-visible, .sheet > .sec:has(> h2) > .row-open > .line:focus-visible { margin: 0 -10px; padding-right: 10px; padding-left: 10px; } // The last row of a list ends on its topic's edge, closed or open, as a plain line does. .row-open:last-child:not([open]) > summary.line { border-bottom: 0; } // Tags .badge, .chip, .tag, .pill, .count { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 0; border-radius: 11px; background: var(--surface-2); box-shadow: none; color: var(--muted); font-family: var(--font); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; } // A label is a tag tinted with its own colour, readable in both themes. .label-chip.label-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 0; border-radius: 11px; background: color-mix(in oklab, var(--label, var(--muted)) 18%, var(--surface)); box-shadow: none; color: color-mix(in oklab, var(--label, var(--muted)) 50%, var(--text)); font-size: 12.5px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; } .badge.public, .badge.private { background: var(--surface-2); color: var(--muted); } // Every menu, dropdown and popover is this one panel. .menu-list, .tab-more-list, .strip-list, .corner-menu, .ref-menu, .pop-panel, .head-title > details.reveal:not(:has(.field)) > .opened, .row-menu-panel, details > .status-list, .palette-box { border: 0 !important; border-radius: 20px !important; background: var(--surface) !important; box-shadow: var(--pop-shadow), 0 0 0 1px var(--border) !important; } .tab-more-list > a, .strip-list a, .corner-menu > a, .corner-link, button.corner-link.link-button, .menu-list > a, .menu-list > form > button:not(.primary), .row-menu-panel > form > button, .row-menu-panel > button, .row-menu-panel > a { height: 34px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 500; } // The repo tabs' more menu opens under its tab, over the page. .tab-more { position: relative; } // The repo tabs scroll in their row, so the code pages panel is placed on the head instead. .repo-head { position: relative; } .tab-more > summary { list-style: none; cursor: pointer; &::-webkit-details-marker { display: none; } } .tab-more-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column; min-width: 200px; padding: 6px; > a { display: flex; align-items: center; color: var(--text); text-decoration: none; &:hover { background: var(--surface-2); } } } // Boxes from older pages read as sheets. .card, .fit-pane, .table-wrap, .readme, .repo-readme { border: 0; border-radius: var(--radius-sheet); background: var(--surface); box-shadow: 0 0 0 1px var(--border); } .sheet .card, .sheet .fit-pane, .sheet .table-wrap, .sheet .readme { border-radius: 0; box-shadow: none; } .table th, .table td { border-bottom: 1px solid var(--border); } .table tr:last-child td { border-bottom: 0; } .alert { padding: 10px 14px; border: 0; border-radius: 12px; background: var(--alert-bg); color: var(--alert-text); } // The strip: the whole thing, and how far along it is. Widths are classes, `fr1` to `fr40`, // because the page may not set inline styles. Use `views::parts::seg_fr`. .strip { display: flex; gap: 6px; min-width: 0; margin-top: 14px; } .strip.files { gap: 3px; } @for $i from 1 through 40 { .fr#{$i} { flex: $i 1 0; } } .seg { display: block; flex-basis: 0; min-width: 6px; padding: 0; color: var(--muted); text-decoration: none; .bar { position: relative; display: block; height: 10px; overflow: hidden; border-radius: 5px; background: var(--border-strong); b { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--accent); } } .lab { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; em { font-family: var(--mono); font-size: 12.5px; font-style: normal; } } &.ok .bar { background: var(--ok); } &.bad .bar { background: var(--bad); } &.skip .bar { background: none; box-shadow: inset 0 0 0 1.5px var(--border-strong); } &.wait .bar { background: var(--surface-2); } &.live .bar { background: var(--accent-soft); } &.sel .lab { color: var(--text); font-weight: 700; } &.bad .lab, &.bad .lab em { color: var(--bad); } &.live .lab, &.live .lab em { color: var(--accent); } } .jobs { display: flex; flex-direction: column; margin-top: 14px; } .job-row { display: grid; gap: 12px; align-items: center; min-height: 30px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .strip { margin: 0; } .seg .lab { display: none; } &.sel { color: var(--text); font-weight: 700; } } // A tick: a ring, ticked when done or viewed. .tick { position: relative; display: block; flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); &.done { box-shadow: inset 0 0 0 5px var(--border-strong); } // CI: passed, failed and running each have their colour; waiting stays a ring, cancelled a dashed one. &.ok { box-shadow: inset 0 0 0 5px var(--ok); } // Skipped or cancelled: the waiting ring, struck through. &.skip::after { content: ""; position: absolute; top: 7.25px; left: 2px; width: 12px; height: 1.5px; background: var(--border-strong); transform: rotate(-45deg); } &.bad { box-shadow: inset 0 0 0 5px var(--bad); } &.live { box-shadow: none; border: 2.5px solid var(--accent); border-right-color: transparent; animation: tick-spin 0.9s linear infinite; } &.on { background: var(--surface-2); box-shadow: none; &::after { content: ""; position: absolute; top: 3px; left: 5.5px; width: 4px; height: 8px; border: solid var(--text); border-width: 0 1.6px 1.6px 0; transform: rotate(42deg); } } &.cm { background: var(--accent); box-shadow: none; } } .line > .tick { align-self: center; } // Rows read as text: only their name stands out. .line a:not(.act, .button), .line .name { color: var(--text); text-decoration: none; } .line .val, .line .val a { color: var(--muted); } .line .val a:hover, .line a.name:hover { color: var(--accent); } // Tools sit on one line in their row: a form there is only its fields. .sheet-tools { > form, > .plain-search, > nav.sub, .ci-tl-tools { display: contents; } // The class twice: these win over the page-wide field rules, which carry attribute selectors. &#{&} select { width: auto; max-width: 200px; height: 32px; min-height: 0; padding: 0 30px 0 14px; border-radius: 16px; font-size: 14px; } // A live search needs no button: Enter still sends the form. .plain-search > button[type="submit"] { display: none; } &#{&} input[type="search"], &#{&} input[type="text"] { flex: none; background: var(--surface-2); width: 240px; height: 32px; min-height: 0; padding: 0 14px; border-radius: 16px; font-size: 14px; } > nav.sub a, .ci-tl-tab { padding: 4px 10px; border: 0; border-radius: 12px; background: none; box-shadow: none; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; } > nav.sub a:hover, .ci-tl-tab:hover { color: var(--text); } > nav.sub a.active, > nav.sub a[aria-current="page"], > nav.sub a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 500; // the same as its neighbours, so choosing never shifts the row } .switch { margin: 0 6px; font-size: 14px; } > .mono { color: var(--muted); font-size: 13px; } } // A conversation: entries and events in one sheet, each topic with its own edge. .issue-timeline { display: flex; flex-direction: column; } .thread-entry { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--border); background: none; box-shadow: none; } .thread-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; a { color: inherit; } strong a { color: var(--text); } } .issue-item-body { padding: 0; } .thread-event { margin: 0; padding: 8px 18px; border: 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14px; strong { color: var(--text); font-weight: 600; } } .issue-badge { height: 22px; padding: 0 8px; border: 0; border-radius: 11px; background: var(--surface-2); box-shadow: none; color: var(--muted); font-size: 12.5px; font-weight: 500; } // Reactions and Add reaction keep their words on the text's edge, as every quiet action does. .reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 0 -10px; padding: 0; } .reaction-picker > summary { height: auto; padding: 4px 10px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 14px; list-style: none; } .reaction { width: auto; height: 28px; min-height: 0; padding: 0 8px; border: 0; border-radius: 14px; background: var(--surface-2); font-size: 14px; } .reaction-emoji { font-size: 14px; } // Review: files in the rail, one file in the sheet, the decision under it. .rail-item.file { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; .tick-toggle { display: block; cursor: pointer; } .nm { overflow: hidden; color: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; direction: rtl; } .val { margin: 0; } input:checked + .tick { background: var(--surface-2); box-shadow: none; &::after { content: ""; position: absolute; top: 3px; left: 5.5px; width: 4px; height: 8px; border: solid var(--text); border-width: 0 1.6px 1.6px 0; transform: rotate(42deg); } } } main > .strip { margin: 0 0 12px; } .diff-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; } main > .diff-section, .work-main .diff-section { gap: 12px; } // A file's diff is a sheet of its own on the commit and compare pages; inside a sheet it is plain. .diff-file { min-width: 0; border: 0; overflow: clip; border-radius: var(--radius-sheet); background: var(--surface); box-shadow: 0 0 0 1px var(--border); } .sheet .diff-file { border-radius: 0; box-shadow: none; } .work-main .diff-file-header { display: none; } .diff-file-header { background: none; } .diff-index { display: none; } .diff-file-body { overflow-x: auto; border: 0; } .diff-table { width: 100%; border: 0; border-collapse: collapse; font-family: var(--mono); font-size: 13.5px; line-height: 22px; td { padding: 0; border: 0; box-shadow: none; } .diff-plus { width: 22px; min-width: 22px; background: none; text-align: center; a { opacity: 0; color: var(--accent); text-decoration: none; } } tr:hover .diff-plus a, .diff-plus a:focus-visible { opacity: 1; } .diff-ln { position: static; width: 52px; min-width: 52px; padding-right: 12px; border: 0; background: none; color: var(--muted); text-align: right; user-select: none; } .diff-code { padding-right: 18px; white-space: pre-wrap; overflow-wrap: anywhere; } .diff-line.add td { background: var(--add-bg); } .diff-line.del td { background: var(--del-bg); } .diff-line.hunk td { background: var(--surface-2); color: var(--muted); } } .diff-stats { font-family: var(--mono); font-size: 13px; } .work-main .sheet { padding-bottom: 72px; } .work-main .decide { margin: -72px 0 0 12px; } // A run: the page fits the window and the log scrolls inside its sheet. .ci-split { display: contents; } .shell-body > main:has(> .ci-run) { height: calc(100dvh - 66px); min-height: 560px; } .ci-tl-log { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; margin-top: 14px; } .ci-tl-radio { position: absolute; opacity: 0; pointer-events: none; } .ci-tl-panel { display: none; flex: 1 1 0; flex-direction: column; min-height: 0; overflow: auto; } #ci-view-log:checked ~ .ci-tl-panel-log, #ci-view-timeline:checked ~ .ci-tl-panel-timeline { display: flex; } .ci-tl-panel-log { overflow: hidden; } .ci-tl-tabs { display: contents; } // Log or Timeline: the current one held like a pressed tool inside the sheet, as a sort choice is, // with no underline or accent of its own. #ci-view-log:checked ~ .ci-logbar .ci-tl-tab-log, #ci-view-timeline:checked ~ .ci-logbar .ci-tl-tab-timeline { background: var(--surface-2); color: var(--text); box-shadow: none; font-weight: 500; // the same as its neighbours, so choosing never shifts the row } .ci-log { flex: 1 1 0; min-height: 0; margin: 0; padding: 10px 0; overflow: auto; border: 0; border-radius: 0; background: none; color: var(--text); font-family: var(--mono); font-size: 13.5px; line-height: 22px; } // A job with no output yet says so in the sheet's quiet hint, instead of an empty pane. .ci-log[data-empty]:empty::before { content: attr(data-empty); display: block; padding: 4px 18px; color: var(--muted); font-family: var(--sans, inherit); font-size: 13px; } .ci-log .ll { display: grid; grid-template-columns: 72px minmax(0, 1fr); white-space: pre-wrap; overflow-wrap: anywhere; } .ci-log .ln { padding-right: 18px; color: var(--muted); text-align: right; text-decoration: none; user-select: none; } .ci-log .ll.bad { background: var(--danger-bg); color: var(--bad); font-weight: 500; .ln { color: var(--bad); } } // The time column fits a long Turkish time ("122 dk 15 sn") on one line, the same width on every row. .job-row { grid-template-columns: 18px 150px 88px minmax(0, 1fr); // A phone gives the name what is left and keeps a short bar. @media (max-width: 700px) { grid-template-columns: 18px minmax(0, 1fr) 88px 72px; } .hint:not(.ci-tl-dur) { display: none; } .ci-tl-dur { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; } } .seg .bar progress { display: none; } .seg.live .bar { animation: seg-pulse 1.6s ease-in-out infinite; } @keyframes tick-spin { to { transform: rotate(360deg); } } @keyframes seg-pulse { 50% { opacity: 0.55; } } @media (prefers-reduced-motion: reduce) { .tick.live, .seg.live .bar { animation: none; } } .seg.live .bar progress { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; appearance: none; background: none; accent-color: var(--accent); } .seg.live .bar progress::-webkit-progress-bar { background: none; } .seg.live .bar progress::-webkit-progress-value { border-radius: 5px; background: var(--accent); } .seg.live .bar progress::-moz-progress-bar { border-radius: 5px; background: var(--accent); } // What the script builds is the same panel and the same rows. .select-search, .md-suggest, .kb-help, dialog[data-finder] { border: 0 !important; border-radius: 20px !important; background: var(--surface) !important; box-shadow: var(--pop-shadow), 0 0 0 1px var(--border) !important; color: var(--text); } .select-search { padding: 8px; } .select-search-input { width: 100%; margin-bottom: 6px; } .select-search-list, .md-suggest { margin: 0; padding: 0; list-style: none; } .md-suggest { padding: 8px; } .select-search-list > li:not(.select-search-group, .select-search-none), .md-suggest-item { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; &:hover, &.is-active, &.active { background: var(--surface-2); } } .select-search-group { margin: 8px 12px 4px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; } .select-search-none { padding: 8px 12px; color: var(--muted); font-size: 14px; } .kb-help { max-width: min(460px, calc(100vw - 16px)); padding: 18px; h2 { margin: 0 0 10px; color: var(--text); font-size: 17px; font-weight: 700; } } .notice, .draft-note { margin: 0 0 8px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 14px; } .done-tick { color: var(--muted); font-size: 13px; } .scrub-note, .scrub-when, .scrub-marker { color: var(--muted); font-family: var(--font); font-size: 13px; letter-spacing: 0; text-transform: none; } // Why a job failed: pinned above its log. // The note over a log that starts part way: one quiet line on the sheet's text edge. .log-cut { flex: none; margin: 0; padding: 8px 18px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; > .num { color: var(--text); font-variant-numeric: tabular-nums; } > a.act { margin-left: 0; padding: 0; } } .why { display: flex; flex: none; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 12px 18px; background: var(--danger-bg); color: var(--bad); font-weight: 600; code { background: none; color: inherit; font-family: var(--mono); font-size: 13.5px; font-weight: 500; } } // A review thread, under its line. .thread { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 8px 18px 8px 126px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-family: var(--font); font-size: 15px; line-height: 22px; p { margin: 0; } .who { font-weight: 600; span { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 400; } } } // Deciding on a review: one pill under the reading, one panel above it. .work-main { position: relative; min-width: 0; } .decide { position: sticky; z-index: 5; bottom: 12px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; width: fit-content; max-width: calc(100% - 24px); min-height: 60px; margin: 12px; padding: 10px 12px 10px 18px; border-radius: 30px; background: var(--surface); box-shadow: var(--pop-shadow), 0 0 0 1px var(--border); .stat { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 14px; white-space: nowrap; b { color: var(--text); } } } .decide-panel { position: absolute; z-index: 6; bottom: calc(100% + 12px); left: 0; display: flex; flex-direction: column; gap: 14px; width: min(460px, calc(100vw - 16px)); padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--pop-shadow), 0 0 0 1px var(--border); h3 { margin: 0; font-size: 17px; font-weight: 700; } textarea { width: 100%; height: 84px; resize: none; } } .opt { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 12px; font-size: 14px; font-weight: 600; small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; } input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); } &:has(input:checked) { background: var(--accent-soft); } } @media (max-width: 899px) { :root { --gutter: 14px; } .wordmark { display: none; } .pathbar, .pathbar:has(.pathbar-edit) { flex: 1 1 auto; max-width: none; } .pathbar-edit, .top-explore { display: none; } .work { grid-template-columns: minmax(0, 1fr); } .rail { position: static; max-height: none; } // A phone keeps the rail a column: a short list reads whole, a long one scrolls inside its own height. .rail-list { max-height: 296px; } // Under review the strip moves through the files, so the rail shows only the file that is open. main:has(> .strip) .rail .rail-item:not([aria-current]) { display: none; } } @media (max-width: 700px) { .field { grid-template-columns: minmax(0, 1fr); > label, > label.switch, > .field-label, > *:not(label, .field-label) { grid-column: 1; padding-top: 0; } } // On a phone the label sits above its box and every typed box takes the column's width. .field.field > :is(input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"], [type="hidden"]), textarea) { width: 100%; max-width: none; } .fields > button[type="submit"], .fields > .acts, .fields > .button, .fields > .switch, .fields > .hint, .fields > fieldset { margin-left: 0; } } // A few fixed choices: one soft trough with the chosen one lifted out of it. .field > .choice, .choice { display: inline-flex; flex: none; justify-self: start; width: fit-content; padding: 3px; border-radius: 19px; background: var(--surface-2); // The class twice: the page-wide rule for labels around a radio is more specific than one class. @at-root .choice.choice label { position: relative; display: inline-flex; align-items: center; height: 32px; margin: 0; padding: 0 16px; line-height: 1; border-radius: 16px; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; flex: none; } input { position: absolute; width: 0; height: 0; margin: 0; opacity: 0; } @at-root .choice.choice label:has(:checked) { background: var(--surface); box-shadow: 0 0 0 1px var(--border); color: var(--text); font-weight: 500; // the same as its neighbours, so choosing never shifts the row } label:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; } } // Appearance .sheet > form.appearance > .sec { padding: 0 18px; } .sheet > form.appearance > .sec + .sec { border-top: 0; } .appearance .sec:first-of-type { padding-top: 6px; } .appearance .sec:last-of-type { padding-bottom: 18px; } .appearance .sec { gap: 0; } .appearance h2 { margin: 18px 0 4px; } .appearance .field { grid-template-columns: 130px auto; justify-content: start; align-items: center; min-height: 50px; gap: 4px 16px; // A phone stacks the label over its control, which takes the column. @media (max-width: 700px) { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 6px 0; } } // On a phone a long choice (Turkish "Sistem ile eşleştir") tightens before it would leave the sheet. @media (max-width: 700px) { .choice.choice { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .choice.choice label { padding: 0 11px; font-size: 13px; } } .appearance .field > .field-label, .appearance .field > label { padding: 0; } .colour-group, .colour-picker { margin: 0; padding: 0; border: 0; } .colour-panel { display: none; } .colour-group[data-tab="light"] [data-colour-panel="light"], .colour-group[data-tab="dark"] [data-colour-panel="dark"] { display: block; } .colour-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .colour-choice { position: relative; display: block; width: auto; cursor: pointer; input { position: absolute; width: 0; height: 0; margin: 0; opacity: 0; } .accent-swatch, .base-swatch { display: block; width: 30px; height: 30px; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); } input:checked + span { outline: 2px solid var(--text); outline-offset: 2px; } input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; } } .tune { display: flex; align-items: center; gap: 10px; margin-left: 10px; } .tune-row { display: flex; align-items: center; gap: 10px; } .hue-stripe, .vivid-stripe { width: 130px; flex: none; } main select { white-space: nowrap; } // A phone puts a colour's fine tuning on its own line under the swatches. @media (max-width: 700px) { .tune, .tune-row { flex-wrap: wrap; margin-left: 0; } } .hex-input { width: 110px !important; font-family: var(--mono) !important; font-size: 13.5px !important; } .sound-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .sound-row .hint { margin-left: 2px; } .act.play { gap: 6px; font-size: 14px; &::before { content: ""; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; border-left: 7px solid currentColor; } } // A select opens the shared menu panel, and its icon is the shared chevron, not a triangle. The // chevron sits at the field's end, as a text field's end is its edge, so a wide select reads as one. @supports (appearance: base-select) { select:not([multiple]):not([size]) { gap: 8px; } select:not([multiple]):not([size])::picker-icon { content: ""; width: 6px; height: 6px; margin: -3px 2px 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; } select:not([multiple]):not([size]):open::picker-icon { rotate: 225deg; margin-top: 3px; } select:not([multiple]):not([size])::picker(select) { padding: 6px; border: 0; border-radius: 20px; box-shadow: var(--pop-shadow), 0 0 0 1px var(--border); margin-top: 6px; } select:not([multiple]):not([size]) option { display: flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 500; } select:not([multiple]):not([size]) option:checked { background: var(--surface-2); color: var(--text); font-weight: 600; } } // A pager or a lone tool under a sheet's rows sits on the rows' inset, not on the sheet's edge. .sheet > .acts { margin: 0; padding: 8px; } // A sort or view choice in a tools row: quiet words, the current one held like a pressed tool. .sheet-tools .sort { > .act.current, > .act[aria-current] { background: var(--surface-2); color: var(--text); font-weight: 500; // the same as its neighbours, so choosing never shifts the row } > .hint { font-size: 14px; } } // Pagers: Newer, the page, Older as quiet words in one row under the list, on the sheet's inset with // a hairline above. Every pager in the app is this row. nav.pager:not(.pager-numbered), .ci-side nav.pager:not(.pager-numbered) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 8px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; > a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 12px; color: var(--muted); font-weight: 500; text-decoration: none; &:first-child { margin-left: -10px; } &:hover { background: var(--surface-2); color: var(--text); text-decoration: none; } } > span { padding: 0 10px; } > span:first-child { padding-left: 0; } } // A closed disclosure leaves no empty box behind: in a row of actions its hidden content would be one // more item, and one more gap, between its summary and the next action. details:not([open])::details-content { display: none; } // A button in a tools row sits on the row's middle line, like the words beside it. .sheet-tools > button, .sheet-tools > form > button { align-self: center; } // Colour rows: five presets on fixed columns, then the Custom chip, then hue, vividness and hex, // so Background and Accent line up column for column. A note about a lightened hex goes under them. .colour-choices { display: grid; grid-template-columns: repeat(5, 30px) auto auto; align-items: center; gap: 8px; } .colour-choices > .tune { grid-column: 7; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-left: 12px; > .tune-row { display: contents; } .hue-stripe, .vivid-stripe { flex: none; width: 170px; } } @media (max-width: 700px) { .colour-choices > .tune { grid-column: 1 / -1; margin-left: 0; } } .head-title { min-height: 38px; } .repo-head .head-sub { min-height: 1lh; } main:has(> nav.tabs) > .head:has(.head-sub), main:has(> nav.tabs[data-section="admin"]) > .head { min-height: 64px; } // A focus ring sits inside what has it, so a list that scrolls on its own never cuts it off. :is(.rail-item, .line, summary, nav.tabs a, .tabs a, .sub a, .choice label):focus-visible { outline-offset: -2px; } // A row's actions follow its text on the same line. A confirm opens in place of its word: the // question, then the danger button and Keep it, all on the row. .line { flex-wrap: wrap; } .line > :is(details.reveal, .act-form, a.act, button.act) { flex: none; align-self: center; } .line > details.reveal[open] > summary { display: none; } .line > details.reveal > form.opened { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; > .hint { margin: 0; } > .acts.asks { margin: 0; } } // The account menu's name is its profile link: a menu row in the name's weight. a.corner-who { display: flex; align-items: center; min-height: 34px; box-sizing: border-box; border-radius: 12px; color: var(--text); font-weight: 600; text-decoration: none; &:hover { background: var(--surface-2); } } // Run alerts: the previews stand on the switch's middle line, as tall as its choices. .sound-row > .act.play { align-self: center; height: 32px; border-radius: 16px; } // The custom colour reads as a word with its swatch, not as one more circle. .colour-choice:has(> .custom-word) { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; width: auto; height: 32px; padding: 0 12px 0 4px; border-radius: 16px; background: var(--surface-2); color: var(--text); font-size: 14px; cursor: pointer; > .hue-swatch { width: 24px; height: 24px; } > .custom-word { max-width: none; overflow: visible; font-size: 14px; font-weight: 400; color: var(--text); } } // A form of one field sends from beside it: the field, then its button on the same line. form.fields:has(> .field + button[type="submit"]):not(:has(> :not(.field, button[type="submit"], input[type="hidden"]))):not(:has(> .field ~ .field)) { flex-direction: row; flex-wrap: wrap; align-items: flex-start; column-gap: 8px; > .field { flex: none; } > button[type="submit"] { margin: 0; } } // Numbered pages are the same row as every pager: on the sheet's inset with a hairline above, the // numbers quiet words, the current one held like a pressed tool at the same weight, so moving // between pages never shifts the row. nav.pager.pager-numbered { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 8px 18px; border-top: 1px solid var(--border); font-size: 14px; .pager-page, .pager-step, .pager-gap { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 30px; margin: 0; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; } // Every number and gap is one width, and Previous and Next always hold their place (dimmed when // there is nowhere to go), so moving between pages never moves a thing in the row. .pager-page, .pager-gap { min-width: 40px; padding: 0 4px; } .pager-step { padding: 0 10px; } .pager-step.off { opacity: 0.4; cursor: default; } > :first-child { margin-left: -8px; } .current { background: var(--surface-2); color: var(--text); font-weight: 500; } a:hover { color: var(--text); } } // A commit subject among a row's facts stays inline with the facts after it. .line .val .commit-line { display: inline-flex; max-width: 40ch; vertical-align: bottom; } // Passed is green everywhere, but a green with the accent's lightness and strength, so CI results // sit with the chosen accent instead of beside it. A grey accent still gets a readable green. @supports (color: oklch(from red l c h)) { :root:root:root { --ok: oklch(from var(--accent) l clamp(0.09, c, 0.15) 158); } } // One focus ring for every control: 2px in the focus colour, drawn inside the control's own edge, // so a sheet's or a row's edge never clips it and it looks the same on a button, a quiet action, a // pager number or a tab. :is(button, .button, a.act, .act, nav.pager a, .ci-tl-tab, .corner-who):focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; box-shadow: none; } // A list's search: one 32px soft field with its icon inside, then Exact and Aa as quiet options that // hold like a pressed tool when on. The ring is the field's own, drawn inside its edge, so focusing or // typing never moves or grows a thing in the row. .list-find { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; &#{&} .plain-search { display: inline-flex; flex: none; align-items: center; gap: 8px; box-sizing: border-box; width: 280px; height: 32px; margin: 0; padding: 0 12px; border-radius: 16px; background: var(--surface-2); &:focus-within { outline: 2px solid var(--focus); outline-offset: -2px; } .ico { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; } input[type="search"] { flex: 1; width: auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: none; box-shadow: none; font-size: 14px; } > button[type="submit"] { display: none; } } } .find-opt.find-opt { position: relative; display: inline-flex; flex-direction: row; align-items: center; box-sizing: border-box; height: 32px; padding: 0 12px; border-radius: 16px; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 500; user-select: none; > input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; } &:hover { color: var(--text); } &:has(> input:checked) { background: var(--surface-2); color: var(--text); } &:has(> input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; } } @media (max-width: 640px) { .list-find { width: 100%; } .list-find.list-find .plain-search { flex: 1 1 auto; width: auto; } } // A filter beside a list's search: its word, then the small soft select every tools row uses. .find-filter.find-filter { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin-left: 8px; color: var(--muted); font-size: 14px; font-weight: 500; @media (max-width: 700px) { margin-left: 0; } select { width: auto; max-width: 220px; height: 32px; min-height: 0; padding: 0 30px 0 14px; border-radius: 16px; font-size: 14px; } input[type="date"] { width: auto; height: 32px; min-height: 0; padding: 0 12px; border-radius: 16px; font-size: 14px; } } // A list's search inside a topic: the same row as a sheet's tools, on the topic's edge. .sec-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 0 6px; } // A run of log entries folded into one row opens in place to list each entry, a step in from the // row's edge, so a fold never hides what happened. details.log-group { border-bottom: 1px solid var(--border); &:last-child { border-bottom: 0; } > summary.line { border-bottom: 0; cursor: pointer; list-style: none; &::-webkit-details-marker { display: none; } > .count::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); } } &[open] > summary.line > .count { background: var(--text); color: var(--bg); &::after { transform: translateY(1px) rotate(-135deg); } } > .log-items { margin: 0 18px 8px 30px; border-left: 2px solid var(--border); > .line { min-height: 34px; padding: 4px 12px; border-bottom: 0; } } } // A reveal in a form of fields opens from the control column, its word on the controls' edge // like the switches and the submit beside it. .fields > details.reveal > summary.act { margin-left: calc(var(--label-w, 130px) + 6px); } @media (max-width: 700px) { .fields > details.reveal > summary.act { margin-left: -10px; } } // A page's own actions beside its title are all the same soft pill as Edit profile or Run // workflow, whether the action is a link, a form's button or a reveal's word; a dangerous one // keeps its red word on the pill. What opens from a reveal keeps its own kit. .head-title > :is(a.act, button.act), .head-title > form.act-form > button.act, .head-actions > form.act-form > button.act, .head-title > details.reveal > summary.act { display: inline-flex; align-items: center; box-sizing: border-box; height: var(--control-h); padding: 0 18px; border: 0; border-radius: 19px; background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; &:hover { background: color-mix(in oklab, var(--surface-2) 88%, var(--text)); color: var(--text); text-decoration: none; } &.danger, &.danger:hover { color: var(--bad); } } // A confirm opened from a pill beside the title floats under the pill as a panel, so the title's // row never reflows around it. A form of fields still opens in place, with room for its labels. .head-title > details.reveal:not(:has(.field)) { display: block; position: relative; > .opened { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; width: max-content; max-width: min(360px, calc(100vw - 32px)); margin: 0; padding: 14px 16px; > .hint { margin: 0; } > .acts { margin-left: 0; } } // On a phone the pill may sit far right: the panel spans the title's row instead. @media (max-width: 700px) { position: static; > .opened { right: 0; width: auto; max-width: none; } } } @media (max-width: 700px) { .head-title:has(> details.reveal[open]) { position: relative; } } // A choice whose options are places (an import's source) reads exactly like one of radios. .choice.choice > a { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 16px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; &:hover { color: var(--text); text-decoration: none; } &[aria-current="page"] { background: var(--surface); box-shadow: 0 0 0 1px var(--border); color: var(--text); } &:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; } } // Exact and Aa sit inside the field at its end, so they never wrap under it. .list-find.list-find .plain-search:has(> .find-opt) { width: 320px; padding-right: 4px; gap: 6px; > .find-opt { flex: none; height: 24px; padding: 0 8px; border-radius: 12px; font-size: 12px; } > .find-opt:has(> input:checked) { background: var(--surface); } } // In a rail the search takes the rail's width. .rail .list-find { display: flex; width: 100%; &.list-find .plain-search, &.list-find .plain-search:has(> .find-opt) { flex: 1 1 100%; width: auto; min-width: 0; } } // A facts topic: each line is a label on the label column, its value, and the action for it. // Facts read as a short table: compact lines with no rules or gaps between them. .sec.facts { gap: 0; > h2 { margin-bottom: 6px; } } .sec.facts > .line { min-height: 34px; padding-top: 2px; padding-bottom: 2px; border-bottom: 0; } // An opened action in a fact line keeps its field and button on the line. .sec.facts .line > details.reveal > form.opened { flex-wrap: nowrap; > input[type="text"] { flex: none; width: 280px; } @media (max-width: 640px) { flex-wrap: wrap; > input[type="text"] { width: 100%; } } } .sec.facts .line > .key { flex: 0 0 136px; color: var(--muted); font-size: 14px; // On a phone every label sits over its value, so no line differs from the next. @media (max-width: 640px) { flex-basis: 100%; } } @media (max-width: 640px) { .sec.facts > .line { row-gap: 0; padding-top: 4px; padding-bottom: 4px; } } // A topic's own action, standing alone under its heading (Rename repository, Transfer repository, // Regenerate codes), is a small soft pill like Star, not a word: it is the thing the topic is for. // Tools on a line of facts stay words. A dangerous one keeps its red word on the pill. .sec > .acts > details.reveal > summary.act, .sec > .acts > :is(a.act, button.act), .sec > .acts > form.act-form > button.act, .sec > :is(a.act, button.act), .sec > details > summary.act, .sec > form > button.act:only-of-type { display: inline-flex; align-items: center; width: fit-content; height: var(--control-sm); margin-left: 0; padding: 0 14px; border-radius: 15px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; &:hover { background: color-mix(in oklab, var(--surface-2) 88%, var(--text)); color: var(--text); } &.danger, &.danger:hover { background: var(--danger-bg); color: var(--bad); } &.quiet { color: var(--muted); } } // Pills keep their own edge, so a row of them starts on the topic's text edge. .sec > .acts:has(> details.reveal > summary.act, > a.act, > button.act, > form.act-form > button.act) { margin-left: 0; gap: 8px; }