@layer components { /* tables in a card, with a row cursor (j/k) */ .list { width: 100%; table-layout: fixed; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); border-collapse: separate; overflow: hidden; & th { height: 40px; padding: 0 var(--s3); white-space: nowrap; font: 600 var(--fs-xs) / 1 var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); background: var(--bg-raised); border-bottom: 1px solid var(--border); } & th a { text-decoration: none; } & th a:hover { color: var(--ink-hi); } & th[aria-sort="ascending"], & th[aria-sort="descending"] { color: var(--ink-hi); } & td { height: 40px; padding: 0 var(--s3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-top: 1px solid var(--border); } & tbody tr:first-child td { border-top: 0; } & th.cur, & td.cur { width: 3px; padding: 0; } & tbody tr:hover { background: var(--bg-raised); } & tbody tr[data-cursor] { background: var(--bg-raised); } & tbody tr[data-cursor] .cur { background: var(--ink-hi); } & tbody tr[hidden] { display: none; } & td > a { text-decoration: none; } & td > a:first-child { color: var(--ink-hi); } & tr:hover td > a:first-child, & tr[data-cursor] td > a:first-child { text-decoration: underline; } & .c-sha, & .c-ref, & .c-kind, & .c-size, & .c-n { font-family: var(--mono); font-size: var(--fs-s); } & .c-sha a { color: var(--ink-dim); } & .c-when, & .c-who { font-size: var(--fs-s); } & .c-sub { color: var(--ink-dim); } } .home { & .c-name { width: 26%; font-family: var(--mono); font-weight: 700; } & th.c-name { font-family: var(--font); } & .c-desc { width: auto; } & .c-when { width: 130px; } & .c-ref { width: 120px; } & .c-lang { width: 120px; } } .list.tree { & .c-kind { width: 36px; color: var(--ink-mute); padding-right: 0; text-align: center; } /* --depth is set by files.js on the rows opened in place */ & .c-name { width: 32%; font-family: var(--mono); font-size: var(--fs-s); padding-inline-start: calc(var(--s3) + var(--depth, 0) * 1.25ch); } & tr[aria-busy=true] .c-kind { opacity: .4; } & .tree-more td { padding-inline-start: calc(var(--s3) + 36px + var(--depth, 0) * 1.25ch); color: var(--ink-dim); font-size: var(--fs-s); } & .c-size { width: 90px; text-align: right; } & .c-when { width: 100px; } & .c-sub { width: auto; } & .c-who { width: 130px; } } .list.passkeys { & .c-name { width: auto; font-weight: 600; } & .c-when { width: 120px; font-size: var(--fs-s); } & .c-sync { width: 80px; font-size: var(--fs-s); } & .c-act { width: 110px; text-align: right; } } .passkey-add { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s4); & input { flex: 1; min-width: 12ch; max-width: 320px; height: 32px; padding: 0 var(--s3); background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--r-s); } & input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; } & input::placeholder { color: var(--ink-mute); opacity: 1; } } .list.commits, .list.refs { & .c-sha { width: 96px; } & .c-who { width: 140px; } & .c-when { width: 100px; } } /* filter: a search field above a list */ .filter { position: relative; display: flex; max-width: 420px; &::before { content: ""; position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; pointer-events: none; background: var(--ink-mute); mask: url(icons/search.svg) center / contain no-repeat; } &::after { content: "/"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 var(--fs-xs) / 18px var(--mono); color: var(--ink-mute); padding: 0 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; pointer-events: none; } & input { flex: 1; min-width: 0; height: 36px; padding: 0 36px 0 34px; background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--r-s); } & input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; } & input::placeholder { color: var(--ink-mute); opacity: 1; } &:focus-within::after { display: none; } } /* file finder: the results replace the tree while the field has a query */ #finder { margin-top: var(--s3); & #finder-status { margin-bottom: var(--s2); font-size: var(--fs-s); } } /* section headings inside a page */ .rule-h { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s5); font-size: var(--fs); & > :first-child { color: var(--ink-hi); } } main > .rule-h:first-child { margin-top: 0; } /* empty / 404 / error / sign in: one card in the middle */ .state { max-width: 560px; margin: var(--s7) auto 0 !important; padding: var(--s6); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); & .eyebrow { font: 700 var(--fs-s) / 1 var(--mono); color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s2); } & h1 { margin-bottom: var(--s3); } & p.dim { color: var(--ink-dim); } & .state-act { margin-top: var(--s5); } & .state-back { margin-top: var(--s5); display: flex; gap: var(--s4); font-size: var(--fs-s); } & .clone { margin-top: var(--s4); } } /* copyable shell lines */ .clone { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); min-width: 0; & .clone-line { min-width: 0; display: flex; gap: var(--s2); align-items: center; padding: var(--s1) var(--s1) var(--s1) var(--s3); background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--r-s); font-size: var(--fs-code); } & .clone-line > .mute { user-select: none; font-family: var(--mono); } & code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; scrollbar-width: none; } & .copy { height: 26px; padding: 0 var(--s2); font-size: var(--fs-xs); } } }