v0.24.0 166837a

30-list.css RawHistoryFolder

1@layer components {
2  /* tables in a card, with a row cursor (j/k) */
3  .list {
4    width: 100%; table-layout: fixed;
5    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r);
6    border-collapse: separate; overflow: hidden;
7    & th {
8      height: 40px; padding: 0 var(--s3); white-space: nowrap;
9      font: 600 var(--fs-xs) / 1 var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute);
10      background: var(--bg-raised); border-bottom: 1px solid var(--border);
11    }
12    & th a { text-decoration: none; }
13    & th a:hover { color: var(--ink-hi); }
14    & th[aria-sort="ascending"], & th[aria-sort="descending"] { color: var(--ink-hi); }
15    & td { height: 40px; padding: 0 var(--s3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-top: 1px solid var(--border); }
16    & tbody tr:first-child td { border-top: 0; }
17    & tbody tr:hover { background: var(--bg-raised); }
18    /* the cursor: the row raised, framed by one even line */
19    & tbody tr[data-cursor] { background: var(--bg-raised); outline: 1px solid var(--ink-mute); outline-offset: -1px; }
20    & tbody tr[hidden] { display: none; }
21    & td > a { text-decoration: none; }
22    & td > a:first-child { color: var(--ink-hi); }
23    & tr:hover td > a:first-child, & tr[data-cursor] td > a:first-child { text-decoration: underline; }
24    & .c-sha, & .c-ref, & .c-kind, & .c-size, & .c-n { font-family: var(--mono); font-size: var(--fs-s); }
25    & .c-sha a { color: var(--ink-dim); }
26    & .c-when, & .c-who { font-size: var(--fs-s); }
27    & .c-sub { color: var(--ink-dim); }
28  }
29
30  /* home: the repositories as rows in a vertical list; the page is a stack of
31     sections, so others can sit beside or below */
32  .home {
33    display: flex; flex-direction: column; gap: var(--s5);
34    & .home-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); margin-bottom: var(--s4); }
35    & .home-bar .filter { flex: 1 1 260px; }
36    & .sort { display: flex; align-items: center; gap: var(--s1); font-size: var(--fs-s); }
37    & .sort > .mute { margin-right: var(--s1); }
38    & .sort a {
39      display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 var(--s2);
40      color: var(--ink-dim); text-decoration: none; border: 1px solid transparent; border-radius: var(--r-s);
41    }
42    & .sort a:hover { color: var(--ink-hi); background: var(--bg-raised); }
43    & .sort a[aria-current="true"] { color: var(--ink-hi); background: var(--bg-raised); border-color: var(--border-strong); }
44  }
45  /* a row: name, description and facts on the left; the state of the latest
46     run at the top right, the newest commits under it. Stacked on a phone. */
47  .repos {
48    display: flex; flex-direction: column; gap: var(--s3);
49    margin: 0; padding: 0; list-style: none;
50    & .repo {
51      display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "main head" "main recent";
52      grid-template-rows: auto 1fr; column-gap: var(--s6); row-gap: var(--s3); min-width: 0;
53      padding: var(--s4); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r);
54    }
55    & .repo:hover { background: var(--bg-raised); border-color: var(--border-strong); }
56    & .repo[data-cursor] { background: var(--bg-raised); border-color: var(--ink-mute); }
57    & .repo[hidden] { display: none; }
58    & .repo-main { grid-area: main; display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
59    & .repo-name { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s2); font-family: var(--mono); font-size: 17px; line-height: 26px; overflow-wrap: anywhere; }
60    & .repo-name a { color: var(--ink-hi); text-decoration: none; }
61    & .repo:hover .repo-name a, & .repo[data-cursor] .repo-name a { text-decoration: underline; }
62    & .repo-name .pill { margin-left: 0; }
63    & .repo-desc {
64      color: var(--ink-dim);
65      display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
66    }
67    & .repo-desc.mute { color: var(--ink-mute); font-style: italic; }
68    /* topics: small quiet chips, as on GitHub */
69    & .repo-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
70    & .repo-topics li {
71      padding: 1px 9px; border: 1px solid var(--border-strong); border-radius: 999px;
72      font-family: var(--mono); font-size: 12px; line-height: 18px; color: var(--teal); background: var(--bg-raised);
73    }
74    /* the pulse: the commits per day over 90 days, smoothed, under the text */
75    & .repo-pulse { position: relative; margin: auto 0 0; padding-top: var(--s2); }
76    & .repo-pulse svg { display: block; width: 100%; height: auto; overflow: visible; }
77    & .pulse-grid { fill: none; stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; }
78    & .pulse-stop-top { stop-color: var(--teal); stop-opacity: .32; }
79    & .pulse-stop-bottom { stop-color: var(--teal); stop-opacity: 0; }
80    & .pulse-line { fill: none; stroke: var(--teal); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
81    & .pulse-dot { fill: var(--teal); stroke: var(--bg-surface); stroke-width: 1.5; }
82    & .pulse-ring { fill: none; stroke: var(--teal); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
83    & .repo:hover .pulse-dot, & .repo[data-cursor] .pulse-dot { stroke: var(--bg-raised); }
84    & .pulse-cap { display: flex; justify-content: space-between; margin-top: 2px; font-size: 10px; line-height: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
85    & .repo-pulse:not([data-live]) .pulse-line { stroke: var(--ink-mute); }
86    & .repo-pulse:not([data-live]) .pulse-dot { fill: var(--ink-mute); }
87    & .repo-pulse:not([data-live]) .pulse-stop-top { stop-color: var(--ink-mute); stop-opacity: .18; }
88    @media (prefers-reduced-motion: no-preference) {
89      & .repo-pulse[data-live] .pulse-ring { animation: pulse-beat 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
90    }
91    /* the right column: figures, then the CI state, over the commits */
92    & .repo-head { grid-area: head; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3) var(--s5); min-width: 0; }
93    /* the figures: a small label over a mono value, side by side */
94    & .repo-stats { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0; min-width: 0; }
95    & .repo-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
96    & .repo-stats dt { font-size: 11px; line-height: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
97    & .repo-stats dd { margin: 0; font-family: var(--mono); font-size: 15px; line-height: 20px; color: var(--ink-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
98    & .repo-stats .rs-tag dd { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; }
99    & .repo-stats dd.mute { color: var(--ink-mute); }
100    & .repo-stats dd a { color: inherit; text-decoration: none; }
101    & .repo-stats dd a:hover { text-decoration: underline; }
102    & .repo-ci {
103      flex: none; display: inline-flex; align-items: center; gap: var(--s1); padding-top: 2px;
104      font-size: var(--fs-s); color: var(--ink-dim); text-decoration: none; white-space: nowrap;
105    }
106    & .repo-ci:hover { color: var(--ink-hi); text-decoration: underline; }
107    & .repo-ci .ck { margin: 0; }
108    & .repo-commits { grid-area: recent; min-width: 0; margin: 0; padding: 0; list-style: none; font-size: var(--fs-s); }
109    & p.repo-commits { font-style: italic; }
110    & .repo-commits li { display: flex; align-items: baseline; gap: var(--s2); min-width: 0; padding: 2px 0; }
111    & .rc-sha { flex: none; font-family: var(--mono); color: var(--ink-dim); text-decoration: none; }
112    & .rc-sha:hover { color: var(--ink-hi); text-decoration: underline; }
113    & .rc-subject { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-hi); }
114    & .repo-commits time { flex: none; white-space: nowrap; }
115    /* a full list goes on: its last commit fades */
116    & .repo-commits[data-full] li:last-child { opacity: .65; }
117    @media (max-width: 720px) {
118      & .repo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "head" "recent"; grid-template-rows: none; }
119      & .repo-head { flex-wrap: wrap; }
120    }
121  }
122  @keyframes pulse-beat {
123    0% { opacity: .9; transform: scale(1); }
124    70%, 100% { opacity: 0; transform: scale(3.2); }
125  }
126  .list.passkeys {
127    & .c-name { width: auto; font-weight: 600; }
128    & .c-when { width: 120px; font-size: var(--fs-s); }
129    & .c-sync { width: 80px; font-size: var(--fs-s); }
130    & .c-act { width: 110px; text-align: right; }
131  }
132  .passkey-add {
133    display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s4);
134    & input {
135      flex: 1; min-width: 12ch; max-width: 320px; height: 32px; padding: 0 var(--s3);
136      background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--r-s);
137    }
138    & input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
139    & input::placeholder { color: var(--ink-mute); opacity: 1; }
140  }
141  .list.commits, .list.refs {
142    & .c-sha { width: 96px; }
143    & .c-who { width: 140px; }
144    & .c-when { width: 100px; }
145  }
146
147  /* filter: a search field above a list */
148  .filter {
149    position: relative; display: flex; max-width: 420px;
150    &::before {
151      content: ""; position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; pointer-events: none;
152      background: var(--ink-mute); mask: url(icons/search.svg) center / contain no-repeat;
153    }
154    &::after {
155      content: "/"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
156      font: 600 var(--fs-xs) / 18px var(--mono); color: var(--ink-mute); padding: 0 6px;
157      border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; pointer-events: none;
158    }
159    & input {
160      flex: 1; min-width: 0; height: 36px; padding: 0 36px 0 34px;
161      background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--r-s);
162    }
163    & input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
164    & input::placeholder { color: var(--ink-mute); opacity: 1; }
165    &:focus-within::after { display: none; }
166  }
167
168  /* file finder: the results replace the tree while the field has a query */
169  #finder {
170    & #finder-status { padding: var(--s3) var(--s4) var(--s2); font-size: var(--fs-s); }
171    & #finder-list { padding: 0 var(--s2) var(--s2); }
172  }
173
174  /* the Files view: the finder on top, the tree in a card under it */
175  .tree-find {
176    display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s3);
177    & .filter { flex: 1; max-width: none; }
178    & .filter::before { top: 14px; left: 14px; }
179    & .filter::after { right: 12px; }
180    & .filter input { height: 44px; padding-left: 42px; font-size: var(--fs); background: var(--bg-surface); }
181  }
182  .tree-keys { flex: none; color: var(--ink-mute); font-size: var(--fs-xs); white-space: nowrap; }
183  .tree-card {
184    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
185  }
186  .tree-head {
187    display: flex; align-items: center; gap: var(--s3); min-height: 40px; padding: 0 var(--s4);
188    background: var(--bg-raised); border-bottom: 1px solid var(--border); font-size: var(--fs-s);
189    & .tree-path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 var(--fs-s) / 1 var(--mono); color: var(--ink-hi); }
190    & .tree-up { flex: none; font: 600 var(--fs-s) / 1 var(--mono); color: var(--ink-dim); text-decoration: none; }
191    & .tree-up:hover { color: var(--ink-hi); text-decoration: underline; }
192    & .tree-count { flex: none; color: var(--ink-mute); }
193  }
194  .tree-card > :is(.lede, .note) { margin: var(--s3) var(--s4); }
195
196  /* The tree: one flat list, a row per entry, each as deep as --depth says
197     (files.js sets it on the rows it opens in place). A row draws, from the
198     left: a vertical guide per level above it, the branch tick to its node,
199     the node, its name; then size, last commit and date, which are secondary. */
200  ul.tree {
201    --indent: 22px; --rowh: 32px; --guide: var(--border-strong);
202    & > li {
203      display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1.2fr) 96px; align-items: center;
204      min-height: var(--rowh); padding-right: var(--s4); font-size: var(--fs-s);
205    }
206    & > li:hover, & > li[data-cursor] { background: var(--bg-raised); }
207    & > li[data-cursor] { outline: 1px solid var(--ink-mute); outline-offset: -1px; }
208    & > li:focus-visible { outline-offset: -2px; border-radius: 0; }
209    & .t-main { display: flex; align-items: stretch; min-width: 0; min-height: var(--rowh); padding-left: var(--s3); }
210    & .t-twig {
211      flex: none; width: calc(var(--depth, 0) * var(--indent));
212      background: repeating-linear-gradient(90deg,
213        transparent 0 calc(var(--indent) / 2), var(--guide) calc(var(--indent) / 2) calc(var(--indent) / 2 + 1px),
214        transparent calc(var(--indent) / 2 + 1px) var(--indent));
215    }
216    & .t-node { position: relative; flex: none; width: var(--indent); }
217    & .t-node::before, & .t-node::after { content: ""; position: absolute; }
218    /* the branch tick, from the guide of the directory to this node */
219    & .t-node::before { top: 50%; left: calc(var(--indent) / -2); right: calc(50% + 6px); height: 1px; background: var(--guide); }
220    & > li[data-depth="0"] .t-node::before { display: none; }
221    /* an open directory continues its guide down, to its first entry */
222    & > li[aria-expanded="true"] .t-node {
223      background: linear-gradient(var(--guide), var(--guide)) center bottom / 1px calc(50% - 8px) no-repeat;
224    }
225    /* the node: a ring for a file, a chevron for a directory (it turns down
226       once open), a diamond for a link, a square for a submodule */
227    & .t-node::after {
228      top: 50%; left: 50%; width: 7px; height: 7px; margin: -4px 0 0 -4px;
229      background: var(--bg-surface); border: 1px solid var(--ink-mute); border-radius: 50%;
230    }
231    & > li:hover .t-node::after, & > li[data-cursor] .t-node::after { background: var(--bg-raised); border-color: var(--ink-hi); }
232    & > li[data-kind="dir"] .t-node::after {
233      width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 0; border-radius: 0; background: var(--ink-dim);
234      mask: url(icons/chevron.svg) center / contain no-repeat; transform: rotate(-90deg);
235    }
236    & > li[data-kind="dir"][aria-expanded="true"] .t-node::after { transform: none; background: var(--ink-hi); }
237    & > li[data-kind="link"] .t-node::after { border-radius: 1px; transform: rotate(45deg); }
238    & > li[data-kind="module"] .t-node::after { border-radius: 1px; }
239    & > li[aria-busy="true"] .t-node { opacity: .4; }
240    & .t-name {
241      align-self: center; min-width: 0; padding: 4px var(--s1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
242      font-family: var(--mono); font-size: var(--fs); color: var(--ink); text-decoration: none; cursor: pointer;
243    }
244    & > li[data-kind="dir"] .t-name { font-weight: 700; color: var(--ink-hi); }
245    & > li[data-kind="link"] .t-name, & > li[data-kind="module"] .t-name { color: var(--ink-dim); cursor: default; }
246    & > li:hover .t-name, & > li[data-cursor] .t-name { text-decoration: underline; }
247    & .t-size { padding-right: var(--s4); text-align: right; font: var(--fs-xs) / 1 var(--mono); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
248    & .t-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-dim); }
249    & .t-sub a { color: inherit; text-decoration: none; }
250    & .t-sub a:hover { color: var(--ink-hi); text-decoration: underline; }
251    & .t-when { text-align: right; white-space: nowrap; color: var(--ink-mute); font-size: var(--fs-xs); }
252    & > li.tree-more { grid-template-columns: minmax(0, 1fr); }
253    & > li.tree-more .t-name { font-size: var(--fs-s); font-weight: 400; color: var(--ink-dim); text-decoration: underline; }
254    & > li.tree-more .t-node::after { display: none; }
255  }
256  @media (max-width: 900px) {
257    ul.tree > li { grid-template-columns: minmax(0, 1fr) 64px 80px; }
258    ul.tree .t-sub { display: none; }
259  }
260  @media (max-width: 720px) {
261    .tree-keys { display: none; }
262    ul.tree { --indent: 18px; }
263    ul.tree > li { grid-template-columns: minmax(0, 1fr) 72px; }
264    ul.tree .t-size { display: none; }
265  }
266
267  /* section headings inside a page */
268  .rule-h {
269    display: flex; align-items: center; gap: var(--s2); margin-top: var(--s5);
270    font-size: var(--fs);
271    & > :first-child { color: var(--ink-hi); }
272  }
273  main > .rule-h:first-child { margin-top: 0; }
274
275  /* empty / 404 / error / sign in: one card in the middle */
276  .state {
277    max-width: 560px; margin: var(--s7) auto 0 !important; padding: var(--s6);
278    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r);
279    & .eyebrow { font: 700 var(--fs-s) / 1 var(--mono); color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s2); }
280    & h1 { margin-bottom: var(--s3); }
281    & p.dim { color: var(--ink-dim); }
282    & .state-act { margin-top: var(--s5); }
283    & .state-back { margin-top: var(--s5); display: flex; gap: var(--s4); font-size: var(--fs-s); }
284    & .clone { margin-top: var(--s4); }
285  }
286
287  /* copyable shell lines */
288  .clone {
289    display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); min-width: 0;
290    & .clone-line {
291      min-width: 0;
292      display: flex; gap: var(--s2); align-items: center; padding: var(--s1) var(--s1) var(--s1) var(--s3);
293      background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--r-s);
294      font-size: var(--fs-code);
295    }
296    & .clone-line > .mute { user-select: none; font-family: var(--mono); }
297    & code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; scrollbar-width: none; }
298    & .copy { height: 26px; padding: 0 var(--s2); font-size: var(--fs-xs); }
299  }
300}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 4

Tags 45

↑↓ moveenter openesc close