v0.21.0 ef38ad0

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    & th.cur, & td.cur { width: 3px; padding: 0; }
18    & tbody tr:hover { background: var(--bg-raised); }
19    & tbody tr[data-cursor] { background: var(--bg-raised); }
20    & tbody tr[data-cursor] .cur { background: var(--ink-hi); }
21    & tbody tr[hidden] { display: none; }
22    & td > a { text-decoration: none; }
23    & td > a:first-child { color: var(--ink-hi); }
24    & tr:hover td > a:first-child, & tr[data-cursor] td > a:first-child { text-decoration: underline; }
25    & .c-sha, & .c-ref, & .c-kind, & .c-size, & .c-n { font-family: var(--mono); font-size: var(--fs-s); }
26    & .c-sha a { color: var(--ink-dim); }
27    & .c-when, & .c-who { font-size: var(--fs-s); }
28    & .c-sub { color: var(--ink-dim); }
29  }
30
31  /* home: the repositories as cards in a grid (one column on a phone); the
32     page is a stack of sections, so others can sit beside or below */
33  .home {
34    display: flex; flex-direction: column; gap: var(--s5);
35    & .home-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); margin-bottom: var(--s4); }
36    & .home-bar .filter { flex: 1 1 260px; }
37    & .sort { display: flex; align-items: center; gap: var(--s1); font-size: var(--fs-s); }
38    & .sort > .mute { margin-right: var(--s1); }
39    & .sort a {
40      display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 var(--s2);
41      color: var(--ink-dim); text-decoration: none; border: 1px solid transparent; border-radius: var(--r-s);
42    }
43    & .sort a:hover { color: var(--ink-hi); background: var(--bg-raised); }
44    & .sort a[aria-current="true"] { color: var(--ink-hi); background: var(--bg-raised); border-color: var(--border-strong); }
45  }
46  .repos {
47    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: var(--s3);
48    margin: 0; padding: 0; list-style: none;
49    & .repo {
50      position: relative; display: flex; flex-direction: column; gap: var(--s2); min-width: 0;
51      padding: var(--s4); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r);
52    }
53    & .repo:hover { background: var(--bg-raised); border-color: var(--border-strong); }
54    & .repo[data-cursor] { background: var(--bg-raised); border-color: var(--ink-mute); box-shadow: inset 3px 0 0 var(--ink-hi); }
55    & .repo[hidden] { display: none; }
56    & .repo-name { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s2); font-size: 17px; line-height: 26px; overflow-wrap: anywhere; }
57    & .repo-name a { color: var(--ink-hi); text-decoration: none; }
58    /* the whole card is the target of the name link */
59    & .repo-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
60    & .repo-name a:focus-visible { outline: none; }
61    & .repo-name a:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 1px; }
62    & .repo:hover .repo-name a, & .repo[data-cursor] .repo-name a { text-decoration: underline; }
63    & .repo-name .pill { margin-left: 0; }
64    & .repo-desc {
65      flex: 1; color: var(--ink-dim);
66      display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
67    }
68    & .repo-desc.mute { color: var(--ink-mute); font-style: italic; }
69    & .repo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); font-size: var(--fs-s); color: var(--ink-mute); }
70    & .repo-meta time { color: var(--ink-dim); }
71    & .repo-branch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); color: var(--ink-dim); }
72  }
73  .list.passkeys {
74    & .c-name { width: auto; font-weight: 600; }
75    & .c-when { width: 120px; font-size: var(--fs-s); }
76    & .c-sync { width: 80px; font-size: var(--fs-s); }
77    & .c-act { width: 110px; text-align: right; }
78  }
79  .passkey-add {
80    display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s4);
81    & input {
82      flex: 1; min-width: 12ch; max-width: 320px; height: 32px; padding: 0 var(--s3);
83      background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--r-s);
84    }
85    & input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
86    & input::placeholder { color: var(--ink-mute); opacity: 1; }
87  }
88  .list.commits, .list.refs {
89    & .c-sha { width: 96px; }
90    & .c-who { width: 140px; }
91    & .c-when { width: 100px; }
92  }
93
94  /* filter: a search field above a list */
95  .filter {
96    position: relative; display: flex; max-width: 420px;
97    &::before {
98      content: ""; position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; pointer-events: none;
99      background: var(--ink-mute); mask: url(icons/search.svg) center / contain no-repeat;
100    }
101    &::after {
102      content: "/"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
103      font: 600 var(--fs-xs) / 18px var(--mono); color: var(--ink-mute); padding: 0 6px;
104      border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; pointer-events: none;
105    }
106    & input {
107      flex: 1; min-width: 0; height: 36px; padding: 0 36px 0 34px;
108      background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--r-s);
109    }
110    & input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
111    & input::placeholder { color: var(--ink-mute); opacity: 1; }
112    &:focus-within::after { display: none; }
113  }
114
115  /* file finder: the results replace the tree while the field has a query */
116  #finder {
117    & #finder-status { padding: var(--s3) var(--s4) var(--s2); font-size: var(--fs-s); }
118    & #finder-list { padding: 0 var(--s2) var(--s2); }
119  }
120
121  /* the Files view: the finder on top, the tree in a card under it */
122  .tree-find {
123    display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s3);
124    & .filter { flex: 1; max-width: none; }
125    & .filter::before { top: 14px; left: 14px; }
126    & .filter::after { right: 12px; }
127    & .filter input { height: 44px; padding-left: 42px; font-size: var(--fs); background: var(--bg-surface); }
128  }
129  .tree-keys { flex: none; color: var(--ink-mute); font-size: var(--fs-xs); white-space: nowrap; }
130  .tree-card {
131    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
132  }
133  .tree-head {
134    display: flex; align-items: center; gap: var(--s3); min-height: 40px; padding: 0 var(--s4);
135    background: var(--bg-raised); border-bottom: 1px solid var(--border); font-size: var(--fs-s);
136    & .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); }
137    & .tree-up { flex: none; font: 600 var(--fs-s) / 1 var(--mono); color: var(--ink-dim); text-decoration: none; }
138    & .tree-up:hover { color: var(--ink-hi); text-decoration: underline; }
139    & .tree-count { flex: none; color: var(--ink-mute); }
140  }
141  .tree-card > :is(.lede, .note) { margin: var(--s3) var(--s4); }
142
143  /* The tree: one flat list, a row per entry, each as deep as --depth says
144     (files.js sets it on the rows it opens in place). A row draws, from the
145     left: a vertical guide per level above it, the branch tick to its node,
146     the node, its name; then size, last commit and date, which are secondary. */
147  ul.tree {
148    --indent: 22px; --rowh: 32px; --guide: var(--border-strong);
149    & > li {
150      display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1.2fr) 96px; align-items: center;
151      min-height: var(--rowh); padding-right: var(--s4); font-size: var(--fs-s);
152    }
153    & > li:hover, & > li[data-cursor] { background: var(--bg-raised); }
154    & > li[data-cursor] { box-shadow: inset 3px 0 0 var(--ink-hi); }
155    & > li:focus-visible { outline-offset: -2px; border-radius: 0; }
156    & .t-main { display: flex; align-items: stretch; min-width: 0; min-height: var(--rowh); padding-left: var(--s3); }
157    & .t-twig {
158      flex: none; width: calc(var(--depth, 0) * var(--indent));
159      background: repeating-linear-gradient(90deg,
160        transparent 0 calc(var(--indent) / 2), var(--guide) calc(var(--indent) / 2) calc(var(--indent) / 2 + 1px),
161        transparent calc(var(--indent) / 2 + 1px) var(--indent));
162    }
163    & .t-node { position: relative; flex: none; width: var(--indent); }
164    & .t-node::before, & .t-node::after { content: ""; position: absolute; }
165    /* the branch tick, from the guide of the directory to this node */
166    & .t-node::before { top: 50%; left: calc(var(--indent) / -2); right: calc(50% + 6px); height: 1px; background: var(--guide); }
167    & > li[data-depth="0"] .t-node::before { display: none; }
168    /* an open directory continues its guide down, to its first entry */
169    & > li[aria-expanded="true"] .t-node {
170      background: linear-gradient(var(--guide), var(--guide)) center bottom / 1px calc(50% - 8px) no-repeat;
171    }
172    /* the node: a ring for a file, a chevron for a directory (it turns down
173       once open), a diamond for a link, a square for a submodule */
174    & .t-node::after {
175      top: 50%; left: 50%; width: 7px; height: 7px; margin: -4px 0 0 -4px;
176      background: var(--bg-surface); border: 1px solid var(--ink-mute); border-radius: 50%;
177    }
178    & > li:hover .t-node::after, & > li[data-cursor] .t-node::after { background: var(--bg-raised); border-color: var(--ink-hi); }
179    & > li[data-kind="dir"] .t-node::after {
180      width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 0; border-radius: 0; background: var(--ink-dim);
181      mask: url(icons/chevron.svg) center / contain no-repeat; transform: rotate(-90deg);
182    }
183    & > li[data-kind="dir"][aria-expanded="true"] .t-node::after { transform: none; background: var(--ink-hi); }
184    & > li[data-kind="link"] .t-node::after { border-radius: 1px; transform: rotate(45deg); }
185    & > li[data-kind="module"] .t-node::after { border-radius: 1px; }
186    & > li[aria-busy="true"] .t-node { opacity: .4; }
187    & .t-name {
188      align-self: center; min-width: 0; padding: 4px var(--s1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
189      font-family: var(--mono); font-size: var(--fs); color: var(--ink); text-decoration: none; cursor: pointer;
190    }
191    & > li[data-kind="dir"] .t-name { font-weight: 700; color: var(--ink-hi); }
192    & > li[data-kind="link"] .t-name, & > li[data-kind="module"] .t-name { color: var(--ink-dim); cursor: default; }
193    & > li:hover .t-name, & > li[data-cursor] .t-name { text-decoration: underline; }
194    & .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; }
195    & .t-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-dim); }
196    & .t-sub a { color: inherit; text-decoration: none; }
197    & .t-sub a:hover { color: var(--ink-hi); text-decoration: underline; }
198    & .t-when { text-align: right; white-space: nowrap; color: var(--ink-mute); font-size: var(--fs-xs); }
199    & > li.tree-more { grid-template-columns: minmax(0, 1fr); }
200    & > li.tree-more .t-name { font-size: var(--fs-s); font-weight: 400; color: var(--ink-dim); text-decoration: underline; }
201    & > li.tree-more .t-node::after { display: none; }
202  }
203  @media (max-width: 900px) {
204    ul.tree > li { grid-template-columns: minmax(0, 1fr) 64px 80px; }
205    ul.tree .t-sub { display: none; }
206  }
207  @media (max-width: 720px) {
208    .tree-keys { display: none; }
209    ul.tree { --indent: 18px; }
210    ul.tree > li { grid-template-columns: minmax(0, 1fr) 72px; }
211    ul.tree .t-size { display: none; }
212  }
213
214  /* section headings inside a page */
215  .rule-h {
216    display: flex; align-items: center; gap: var(--s2); margin-top: var(--s5);
217    font-size: var(--fs);
218    & > :first-child { color: var(--ink-hi); }
219  }
220  main > .rule-h:first-child { margin-top: 0; }
221
222  /* empty / 404 / error / sign in: one card in the middle */
223  .state {
224    max-width: 560px; margin: var(--s7) auto 0 !important; padding: var(--s6);
225    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r);
226    & .eyebrow { font: 700 var(--fs-s) / 1 var(--mono); color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s2); }
227    & h1 { margin-bottom: var(--s3); }
228    & p.dim { color: var(--ink-dim); }
229    & .state-act { margin-top: var(--s5); }
230    & .state-back { margin-top: var(--s5); display: flex; gap: var(--s4); font-size: var(--fs-s); }
231    & .clone { margin-top: var(--s4); }
232  }
233
234  /* copyable shell lines */
235  .clone {
236    display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); min-width: 0;
237    & .clone-line {
238      min-width: 0;
239      display: flex; gap: var(--s2); align-items: center; padding: var(--s1) var(--s1) var(--s1) var(--s3);
240      background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--r-s);
241      font-size: var(--fs-code);
242    }
243    & .clone-line > .mute { user-select: none; font-family: var(--mono); }
244    & code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; scrollbar-width: none; }
245    & .copy { height: 26px; padding: 0 var(--s2); font-size: var(--fs-xs); }
246  }
247}

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 2

Tags 45

↑↓ moveenter openesc close