/* UI elements follow the cdn.farm design system (tokens, type, buttons, segmented control). */ :root, [data-theme="light"] { --field: #f3f7f3; --surface: #fff; --surface-sunk: #e9f0eb; --ink: #11261f; --ink-muted: #55675e; --line: #e0e8e2; --line-strong: #7d9187; --sprout: #5ac8fa; --on-sprout: #04263a; --sprout-ink: #0a6b94; --sprout-soft: #dff3fd; /* cdn.farm "Glacier" */ --sun-ink: #7a5300; --sun-soft: #fff2c2; --beet: #c2255c; --beet-soft: #fde6ee; --focus: #11261f; --shadow: 0 1px 2px rgba(17, 38, 31, .05), 0 6px 24px rgba(17, 38, 31, .06); color-scheme: light; } [data-theme="dark"] { --field: #0b1410; --surface: #121f19; --surface-sunk: #0e1914; --ink: #e7f1eb; --ink-muted: #93a69c; --line: #1f3229; --line-strong: #5a776a; --sprout-ink: #7fd6ff; --sprout-soft: #0f3142; --sun-ink: #ffd23f; --sun-soft: #33290a; --beet: #ff7aa3; --beet-soft: #3b1323; --focus: #5ac8fa; --shadow: 0 1px 2px rgba(0, 0, 0, .5); color-scheme: dark; } :root { --r-sm: 8px; --r-md: 14px; --r-pill: 999px; --display: "Funnel Display", "Avenir Next", system-ui, sans-serif; --sans: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif; --mono: "Spline Sans Mono", ui-monospace, Menlo, Consolas, monospace; } *, *::before, *::after { box-sizing: border-box; } body { margin: 0; background: var(--field); color: var(--ink); font: 400 15px/24px var(--sans); -webkit-font-smoothing: antialiased; } :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } a { color: var(--sprout-ink); text-decoration: none; } code, kbd { font-family: var(--mono); } kbd { padding: 1px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; } h2, h3, p, ul { margin: 0; } svg { flex: none; } .muted { color: var(--ink-muted); } .bad { color: var(--beet); } .label { font: 600 11.5px/16px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); } .spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } } /* Inbox layout: a slim top bar, then the list on the left and the open repo on the right, each scrolling on its own. */ .app { display: flex; flex-direction: column; height: 100dvh; max-width: 1680px; margin: 0 auto; padding: 0 clamp(12px, 2vw, 28px); } .top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; } .top__right { display: flex; align-items: center; gap: 10px; font-size: 14px; } .logo { display: inline-flex; align-items: center; gap: 9px; font: 700 20px/1 var(--display); letter-spacing: -.02em; color: var(--ink); } .logo img { width: 26px; height: 26px; } .notice { flex: none; margin-bottom: 12px; padding: 10px 16px; border-radius: var(--r-md); background: var(--beet-soft); } .notice--info { background: var(--sprout-soft); } .notice--demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; } .notice--demo p { flex: 1 1 320px; } .promise { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 11px; border-radius: var(--r-pill); background: var(--sprout); color: var(--on-sprout); font: 700 13.5px/1 var(--sans); letter-spacing: -.005em; white-space: nowrap; cursor: help; } .logo__tag { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line-strong); font: 400 14px/1 var(--sans); letter-spacing: 0; color: var(--ink-muted); } @media (max-width: 1100px) { .logo__tag { display: none; } } .notice code, .empty code { padding: 2px 8px; border-radius: 6px; background: var(--surface); color: var(--sprout-ink); font-size: 13px; font-weight: 500; white-space: nowrap; } .empty code { background: var(--surface); box-shadow: 0 0 0 1px var(--line); } .split { flex: 1; display: grid; grid-template-columns: clamp(320px, 30vw, 420px) minmax(0, 1fr); gap: 14px; min-height: 0; margin-bottom: 14px; } .split--bare { grid-template-columns: minmax(0, 1fr); } .split--bare .side { display: none; } .side, .main { min-height: 0; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); } .side { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; } .side__list { overflow-y: auto; padding: 6px; } .main { overflow-y: auto; } /* buttons: labelled (.btn) and icon-only (.ibtn) */ .btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid transparent; background: none; color: var(--ink); font: 600 13.5px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: transform .08s, border-color .12s, background-color .12s; } .btn:active, .ibtn:active { transform: translateY(1px); } .btn:disabled { opacity: .45; cursor: default; transform: none; } .btn--primary { background: var(--sprout); color: var(--on-sprout); } .btn--primary:hover { box-shadow: inset 0 0 0 999px rgba(4, 38, 58, .08); } .btn--outline { background: var(--surface); border-color: var(--line-strong); } .btn--outline:hover { border-color: var(--ink); } .btn.is-on { border-color: var(--ink); background: var(--surface-sunk); } .btn--danger { background: var(--beet); color: var(--surface); } .btn--danger:hover { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .1); } .ibtn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-muted); cursor: pointer; transition: background-color .12s, color .12s; } .ibtn:hover { background: var(--surface-sunk); color: var(--ink); } .ibtn--danger:hover { background: var(--beet-soft); color: var(--beet); } .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .actions .btn { max-width: 100%; } /* a long remote URL shortens with … instead of overflowing */ .actions .btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .actions__remote { margin-left: auto; } /* list tools: search and sort on one row, the filter below, stretched to the pane */ .tools { display: grid; gap: 8px; padding: 10px 10px 8px; border-bottom: 1px solid var(--line); } .tools__row { display: flex; gap: 8px; } .seg { display: flex; max-width: 100%; overflow-x: auto; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-sunk); } .seg label { position: relative; flex: 1; min-width: 0; } /* options share the full width */ .seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; } .seg span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; font: 600 13.5px/1 var(--sans); color: var(--ink-muted); } .seg small { font: 500 12px var(--mono); } .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); } .seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; } .tools .seg span { gap: 5px; height: 28px; padding: 0 6px; font-size: 13px; } .search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 10px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-muted); cursor: text; } .search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sprout-soft); } .search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font: 400 14px var(--sans); } .search input::placeholder { color: var(--ink-muted); } .select { height: 36px; max-width: 100%; padding: 0 6px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 600 13px var(--sans); cursor: pointer; } .select:hover { border-color: var(--ink); } mark { padding: 0 1px; border-radius: 3px; background: var(--sun-soft); color: inherit; } /* metadata filters (src/Filters.jsx): folded under the status filter, active ones as chips */ .mfilt summary { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: var(--r-sm); font: 600 12.5px/1 var(--sans); color: var(--ink-muted); list-style: none; cursor: pointer; user-select: none; } .mfilt summary::-webkit-details-marker { display: none; } .mfilt summary:hover { background: var(--surface-sunk); color: var(--ink); } .mfilt summary b { padding: 0 6px; border-radius: var(--r-pill); background: var(--sprout); color: var(--on-sprout); font: 600 11px/18px var(--mono); } .mfilt summary svg:last-child { margin-left: auto; transition: transform .12s; } .mfilt[open] summary svg:last-child { transform: rotate(180deg); } .mfilt__body { display: grid; gap: 6px; padding: 6px 2px 4px; } .mf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px); align-items: center; gap: 10px; } .mf > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 13px/20px var(--sans); } .mf .select { height: 30px; font-weight: 500; } .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 24px; padding: 0 6px 0 9px; border: 0; border-radius: var(--r-pill); background: var(--sprout-soft); color: var(--sprout-ink); font: 500 12px/1 var(--sans); white-space: nowrap; cursor: pointer; } .chip b { font-weight: 600; } .chip:hover { background: var(--beet-soft); color: var(--beet); } /* the tree: one row per repo, nested repos indented under their parent */ .tree, .tree__kids { list-style: none; padding: 0; display: grid; gap: 1px; } /* Guide lines like a file manager: a rail down from the parent's status dot, an elbow into each nested repo. 14px = the row's left padding (6) + half the dot's hover area (8.5); 17px = the middle of a row's first line. */ .tree__kids { margin: 0 0 4px 14px; padding-left: 12px; } .tree__kids > li { position: relative; } .tree__kids > li::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; border-left: 1.5px solid var(--line-strong); } .tree__kids > li:last-child::before { bottom: auto; height: 17px; } .tree__kids > li::after { content: ""; position: absolute; top: 17px; left: -12px; width: 10px; border-top: 1.5px solid var(--line-strong); } .tree__kids .row { padding-left: 2px; } .tree__kids .row__name { font-weight: 500; } .row__kind { color: var(--ink-muted); } /* line 3: the fold toggle first, then tags; hidden when it has neither */ .row__body { flex: 1; min-width: 0; display: grid; } .row { user-select: none; cursor: pointer; } /* the whole row opens the repo; a double-click folds, it shouldn't select words */ .row__foot { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 4px; } .row__foot:empty { display: none; } .row__fold { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 4px 0 6px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); font: 600 11px/1 var(--mono); color: var(--ink); cursor: pointer; } .row__fold:hover { border-color: var(--ink); } .row__fold[aria-expanded="false"] { background: var(--ink); border-color: var(--ink); color: var(--surface); } /* folded: hidden repos stand out */ .row { display: flex; align-items: flex-start; gap: 6px; padding: 7px 10px 7px 6px; border-radius: var(--r-sm); } .row:hover { background: var(--surface-sunk); } .row.is-open { background: var(--sprout-soft); } .row > .tip { margin-top: 2px; } .row__hit { min-width: 0; display: grid; gap: 1px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; } .row__top { display: flex; align-items: center; gap: 8px; min-width: 0; } .row__name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 14px/20px var(--sans); } .row__top .pills { flex: none; flex-wrap: nowrap; gap: 4px; } .row__top .pill { height: 20px; padding: 0 6px 0 5px; gap: 3px; font: 600 11.5px/1 var(--mono); } .row__ago { flex: none; min-width: 2.5ch; text-align: right; font: 500 12px var(--mono); color: var(--ink-muted); } .row__sub { display: flex; align-items: center; gap: 6px; min-width: 0; font: 400 12.5px/18px var(--mono); color: var(--ink-muted); } .row__sub > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .row__branch { flex: 0 1 auto; max-width: 55%; } .row__subject { flex: 1 1 0; font-family: var(--sans); } .row__subject::before { content: "· "; } .row .tags { flex-wrap: nowrap; min-width: 0; overflow: hidden; } .row .tag { flex: 0 1 auto; min-width: 46px; } /* every tag stays in view: long ones shrink first and end in … */ .none { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: var(--ink-muted); } .none .more { justify-self: center; } /* status dot: always paired with a tooltip saying what it means */ .dot { display: block; width: 9px; height: 9px; border-radius: 50%; } .dot--ok { background: var(--sprout); box-shadow: 0 0 0 3px var(--sprout-soft); } .dot--warn { background: var(--sun-ink); box-shadow: 0 0 0 3px var(--sun-soft); } .dot--bad { background: var(--beet); box-shadow: 0 0 0 3px var(--beet-soft); } /* tooltip (src/Tip.jsx) */ .tip { position: relative; z-index: 1; display: inline-flex; padding: 4px; border-radius: 50%; cursor: help; } .tip__bubble { position: absolute; top: calc(100% + 6px); left: 50%; z-index: 20; display: grid; gap: 2px; width: max-content; max-width: 280px; padding: 8px 11px; border-radius: var(--r-sm); background: var(--ink); color: var(--surface); box-shadow: var(--shadow); font: 500 12.5px/18px var(--sans); letter-spacing: 0; text-align: left; white-space: normal; transform: translateX(-50%); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s, visibility .12s; } .tip__bubble b { font-weight: 650; } /* every title="" as a styled bubble after a pause (TitleTips in src/Tip.jsx); a popover, so above dialogs too */ .ttip { position: fixed; inset: auto; top: 0; left: 0; margin: 0; padding: 7px 10px; border: 0; border-radius: var(--r-sm); max-width: 300px; width: max-content; background: var(--ink); color: var(--surface); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); font: 500 12.5px/18px var(--sans); white-space: normal; overflow-wrap: anywhere; pointer-events: none; animation: tip-in .12s ease-out; } @keyframes tip-in { from { opacity: 0; transform: translateY(-3px); } } .tip:hover, .tip:focus-visible { z-index: 3; } .tip:hover .tip__bubble, .tip:focus-visible .tip__bubble { opacity: 1; visibility: visible; } .row .tip__bubble { left: -4px; transform: none; } /* opens to the right, so the pane's edge never clips it */ .branch { display: flex; align-items: center; gap: 6px; min-width: 0; font: 400 13px/18px var(--mono); color: var(--ink-muted); } .branch > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .pills { display: flex; flex-wrap: wrap; gap: 6px; } .pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: var(--r-pill); font: 600 12px/1 var(--sans); white-space: nowrap; background: var(--surface-sunk); color: var(--ink-muted); } .pill--ok { background: var(--sprout-soft); color: var(--sprout-ink); } .pill--warn { background: var(--sun-soft); color: var(--sun-ink); } .pill--bad { background: var(--beet-soft); color: var(--beet); } /* details: the reading pane */ .details { display: grid; gap: 18px; padding: 20px 24px 28px; animation: drop .16s ease-out; } @keyframes drop { from { opacity: 0; transform: translateY(-6px); } } /* title + close on the first row, actions on their own row below */ .details__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px 12px; } .details__head > .ibtn { grid-area: 1 / 2; } .details__head > .actions, .details__more { grid-column: 1 / -1; } .details__more { margin-top: -10px; } /* sits close under the title */ .details__head h2 { font: 700 24px/30px var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; } .crumb { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; color: var(--ink-muted); } button.crumb { cursor: pointer; } button.crumb:hover { color: var(--sprout-ink); text-decoration: underline; text-underline-offset: 4px; } /* the description: reads as text, edits in place */ .about { margin: 0 0 6px; cursor: text; } .about p { padding: 4px 0; font-size: 15px; line-height: 23px; white-space: pre-line; overflow-wrap: anywhere; } .about p.muted { font-style: italic; } .about em { font-style: italic; } .about b { font-weight: 650; } .about a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; } .about a:hover { text-decoration-color: currentColor; } .about .ibtn { width: 26px; height: 26px; margin: -2px 0 -6px 4px; vertical-align: baseline; opacity: 0; } /* inline after the text, so it takes no column */ .about:hover .ibtn, .about .ibtn:focus-visible { opacity: 1; } @media (hover: none) { .about .ibtn { opacity: 1; } } .about--edit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; cursor: auto; } /* a full-width column: field-sizing would otherwise shrink it to the text */ .about--edit textarea { width: 100%; min-height: 36px; font-size: 15px; line-height: 23px; field-sizing: content; resize: none; } .about--edit small { font-size: 12px; line-height: 16px; } .details__head code { display: block; font-size: 13px; color: var(--ink-muted); overflow-wrap: anywhere; } .details__status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface-sunk); } .details__status .pill--plain { background: var(--surface); } /* a plain pill is the band's own colour: lift it, so it still reads as a pill */ /* 2 by 2: uncommitted and commits, then scripts and dependencies. A column is at least half the pane (less half the 40px gap), so there are never three across, and at least 300px, so a narrow pane stacks them. */ .details__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(300px, calc(50% - 20px))), 1fr)); gap: 20px 40px; } .details section { display: grid; align-content: start; gap: 10px; min-width: 0; } .error { color: var(--beet); font: 13.5px/22px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; } .files, .commits { list-style: none; padding: 0; display: grid; gap: 4px; font: 400 13.5px/22px var(--mono); } .files li, .commits li { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; } .files .add { color: var(--sprout-ink); } .files .del { color: var(--beet); } .files .mod { color: var(--sun-ink); } .files .new { color: var(--ink-muted); } .commits svg, .commits code, .commits small { color: var(--ink-muted); } .commits span { flex: 1; min-width: 0; font-family: var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* package.json: scripts and dependencies (src/Pkg.jsx) */ .pkg { list-style: none; padding: 0; display: grid; gap: 4px; font: 400 13px/22px var(--mono); } .pkg li { display: flex; align-items: center; gap: 10px; min-width: 0; } .pkg b { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; } .pkg span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-muted); } .pkg small { flex: none; margin-left: auto; font-size: 12.5px; color: var(--ink-muted); } .pkg i { flex: none; padding: 0 5px; border-radius: var(--r-pill); background: var(--surface-sunk); color: var(--ink-muted); font: 600 10px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; } .more { justify-self: start; padding: 0; border: 0; background: none; color: var(--sprout-ink); font: 600 13px/20px var(--sans); cursor: pointer; } .more:hover { text-decoration: underline; text-underline-offset: 3px; } /* nothing open yet, no folders yet, still loading */ .blank, .empty { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 100%; padding: 48px 24px; text-align: center; color: var(--ink-muted); } .blank p.muted { font-size: 13px; } .empty h2 { font: 650 22px/28px var(--display); letter-spacing: -.015em; color: var(--ink); } .empty p { max-width: 52ch; } .empty .addbar { width: 100%; max-width: 640px; margin-top: 12px; } .empty__tips { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; width: 100%; max-width: 820px; margin-top: 28px; text-align: left; font-size: 13.5px; line-height: 20px; } .empty__tips li { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-sunk); } .empty__tips li b { display: block; color: var(--ink); } .empty__tips li svg { color: var(--sprout-ink); margin-bottom: 4px; } /* confirm modal (src/Confirm.jsx) */ .modal { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-md); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); } .modal::backdrop { background: rgba(11, 20, 16, .45); } .modal > div { display: grid; gap: 10px; padding: 24px; } .modal h2 { font: 650 20px/26px var(--display); letter-spacing: -.01em; } .modal p { color: var(--ink-muted); overflow-wrap: anywhere; } .modal code { color: var(--ink); } .modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; } .modal--wide { width: min(560px, calc(100vw - 32px)); } .modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px -8px 0 0; } /* side sheet: the full list of scripts or dependencies, pinned to the right edge */ .modal--sheet { position: fixed; inset: 0 0 0 auto; width: min(480px, 100vw); height: 100dvh; max-height: none; max-width: 100vw; margin: 0; border-radius: var(--r-md) 0 0 var(--r-md); animation: slide .18s ease-out; } @keyframes slide { from { opacity: 0; transform: translateX(24px); } } .modal--sheet > div { align-content: start; height: 100%; overflow-y: auto; } .modal--sheet h2 small { display: block; font: 400 13px/18px var(--mono); color: var(--ink-muted); } /* metadata (src/Meta.jsx): your own fields, as tags in the list and inputs in the details pane */ .tags { display: flex; flex-wrap: wrap; gap: 6px; } .tag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); font: 500 12px/1 var(--sans); color: var(--ink-muted); white-space: nowrap; } .tag b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--ink); } .tag svg { color: var(--sprout-ink); } .field { width: 100%; height: 36px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 400 14px/20px var(--sans); outline: none; transition: border-color .12s, box-shadow .12s; } .field:hover { border-color: var(--line-strong); } .field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sprout-soft); } .field::placeholder { color: var(--ink-muted); } textarea.field { height: auto; min-height: 64px; padding: 7px 10px; resize: vertical; field-sizing: content; } /* grows with its text where supported */ .switch { appearance: none; position: relative; flex: none; width: 38px; height: 22px; margin: 0; border-radius: var(--r-pill); background: var(--line-strong); cursor: pointer; transition: background-color .15s; } .switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; } .switch:checked { background: var(--sprout); } .switch:checked::before { transform: translateX(16px); } .meta { padding-top: 18px; border-top: 1px solid var(--line); } .meta__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .meta__head .btn { height: 30px; padding: 0 10px; font-size: 13px; } .meta__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; } .mfield { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 10px 12px 12px; border-radius: var(--r-sm); background: var(--surface-sunk); } .mfield--text { grid-column: 1 / -1; } .mfield--boolean { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-bottom: 10px; cursor: pointer; } .mfield__text { display: grid; min-width: 0; } .mfield__text b { font: 600 13.5px/20px var(--sans); overflow-wrap: anywhere; } .scope { display: inline-block; margin-left: 7px; padding: 0 6px; border-radius: var(--r-pill); background: var(--sprout-soft); color: var(--sprout-ink); font: 600 10px/17px var(--sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; } .mfield__text small { font-size: 12.5px; line-height: 17px; color: var(--ink-muted); } .flist { list-style: none; padding: 0; display: grid; gap: 4px; margin: 0 0 6px; } .flist li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 4px 6px 12px; border-radius: var(--r-sm); background: var(--surface-sunk); } .flist li.is-open { box-shadow: inset 0 0 0 1.5px var(--sprout); } .flist li > svg { color: var(--ink-muted); } .flist span { flex: 1; display: grid; min-width: 0; } .flist b { font-weight: 600; overflow-wrap: anywhere; } .flist small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; line-height: 17px; color: var(--ink-muted); } .fform { display: grid; gap: 12px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); } .fform > label, .fform__type { display: grid; gap: 6px; font: 600 13px/18px var(--sans); } .fform i { font-style: normal; font-weight: 400; color: var(--ink-muted); } .fform .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); } /* 4 across, 2 by 2 on phones */ .fform .seg span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } /* "Only some-long-repo-name" */ .fdefault { display: flex; align-items: center; gap: 12px; min-height: 36px; } .fdefault .field { flex: 1; } .fdefault .field:disabled, .fdefault .switch:disabled { opacity: .45; cursor: not-allowed; } .fnull { display: inline-flex; align-items: center; gap: 6px; flex: none; font: 600 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-muted); cursor: pointer; } .fnull input { width: 16px; height: 16px; margin: 0; accent-color: var(--sprout-ink); cursor: pointer; } .fdefault:has(.switch) .fnull { margin-left: auto; } .modal p.hint { font-size: 13px; color: var(--sun-ink); } .fform .modal__actions { margin-top: 0; } /* watched folders and the add bar, folded under the list */ .watch { border-top: 1px solid var(--line); } .watch summary { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font: 600 12.5px/18px var(--sans); color: var(--ink-muted); list-style: none; cursor: pointer; user-select: none; } .watch summary::-webkit-details-marker { display: none; } .watch summary:hover { color: var(--ink); } .watch summary small { min-width: 0; margin-left: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 12.5px/18px var(--sans); } /* says what unfolding is for; pushes itself and the arrow right */ .watch summary svg:last-child { transition: transform .12s; } .watch[open] summary svg:last-child { transform: rotate(180deg); } .watch__body { display: grid; gap: 10px; padding: 0 10px 10px; } .watch .addbar .btn--outline span { display: none; } /* Browse goes icon-only in the narrow pane */ .addbar { display: flex; gap: 8px; } .addbar label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-muted); cursor: text; } .addbar label:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sprout-soft); } .addbar input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font: 400 13.5px var(--mono); } .addbar input::placeholder { color: var(--ink-muted); } .addbar .btn { height: 36px; padding: 0 12px; } .roots { display: flex; flex-wrap: wrap; gap: 6px; } .root { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 28px; padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: var(--r-pill); font: 400 12.5px var(--mono); color: var(--ink-muted); } .root code { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); } .root small { flex: none; font: inherit; white-space: nowrap; } .root small.bad { color: var(--beet); } .root button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-muted); cursor: pointer; } .root button:hover { background: var(--beet-soft); color: var(--beet); } /* fingers: the smallest controls get a taller target, so a tap on the fold count doesn't open the repo instead */ @media (pointer: coarse) { .row__fold { height: 28px; padding: 0 8px 0 10px; } .chip { height: 30px; } .root { height: 34px; } .root button { width: 28px; height: 28px; } } /* tablet and phone: one pane at a time, the page scrolls as a whole. Opening a repo shows it, the X goes back to the list. */ @media (max-width: 860px) { .app { height: auto; min-height: 100dvh; } .split { grid-template-columns: minmax(0, 1fr); } .side { overflow: visible; } .mf { grid-template-columns: minmax(0, 1fr) minmax(0, 200px); } .side__list, .main { overflow: visible; } .split.has-open .side, .split:not(.has-open):not(.split--bare) .main { display: none; } .blank, .empty { min-height: 0; } } @media (max-width: 640px) { .top__right > span, .top .btn span { display: none; } /* Refresh goes icon-only */ .search kbd { display: none; } .search input, .addbar input, .field { font-size: 16px; } /* iOS zooms into inputs under 16px */ .empty .addbar { flex-wrap: wrap; } .empty .addbar label { flex-basis: 100%; } .empty .addbar .btn { flex: 1; justify-content: center; } .details { padding: 16px; } .details__head h2 { font-size: 21px; line-height: 28px; } /* tapped tooltips sit along the bottom of the screen, so they never run off its edge */ .tip__bubble, .row .tip__bubble { position: fixed; top: auto; right: 16px; bottom: 16px; left: 16px; width: auto; max-width: none; padding: 12px 14px; font-size: 13.5px; line-height: 20px; transform: none; } } /* small phones: rearrange rather than squeeze. Pills drop under the name, branch and commit take a line each, filters go 2 by 2, the detail actions share the width with the remote on its own row. */ @media (max-width: 420px) { .app { padding: 0 8px; } .split { gap: 8px; margin-bottom: 8px; } .top { height: 50px; } .logo { font-size: 18px; } .notice { padding: 8px 12px; font-size: 14px; line-height: 22px; } .tools { padding: 8px; } .tools .seg { display: grid; grid-template-columns: 1fr 1fr; } .mf { grid-template-columns: minmax(0, 1fr); gap: 2px; } .mf .select { width: 100%; } .side__list { padding: 4px; } .row { padding: 8px 8px 8px 4px; } .row__top { flex-wrap: wrap; row-gap: 3px; } .row__ago { order: 1; } .row__top .pills { order: 2; flex: 1 1 100%; flex-wrap: wrap; } .row__sub { flex-wrap: wrap; row-gap: 0; } .row__branch { max-width: none; flex: 1 1 0; } .row__subject { flex: 1 1 100%; } .row__subject::before { content: none; } .tree__kids { margin-left: 12px; padding-left: 10px; } /* rail under the dot: row padding 4 + half the dot area 8.5 */ .tree__kids > li::before, .tree__kids > li::after { left: -10px; } .tree__kids > li::after { width: 8px; } .details { padding: 14px 12px 20px; gap: 14px; } .details__head h2 { font-size: 19px; line-height: 26px; } .details__head .actions { display: grid; grid-template-columns: 1fr 1fr; } .details__head .actions .btn { justify-content: center; } .actions__remote { grid-column: 1 / -1; margin-left: 0; } .details__status { padding: 10px 12px; } .files, .commits, .pkg { font-size: 12.5px; } .commits code { display: none; } /* the subject matters more than the hash at this width */ .modal > div { padding: 18px 16px; } .empty { padding: 32px 12px; } }