internal/web/static/style.css
1553 lines · 54187 bytes
1/* gitbay stylesheet — Harbor: black and white ground, two accents with
2 separate jobs. Blue is what you can do (links, buttons, focus); orange
3 is where you are and what wants you (active nav, counts, pending state,
4 unverified signatures). Orange is never a button, so the two never
5 compete. One file, light and dark via prefers-color-scheme. Tokens
6 first; components use tokens only. No external requests: Atkinson
7 Hyperlegible is served from this origin. */
8
9@font-face {
10 font-family: "Atkinson Hyperlegible Next";
11 font-style: normal;
12 font-weight: 400 700;
13 font-display: swap;
14 src: url(/static/fonts/atkinson-next-roman.woff2) format("woff2");
15}
16@font-face {
17 font-family: "Atkinson Hyperlegible Next";
18 font-style: italic;
19 font-weight: 400 700;
20 font-display: swap;
21 src: url(/static/fonts/atkinson-next-italic.woff2) format("woff2");
22}
23@font-face {
24 font-family: "Atkinson Hyperlegible Mono";
25 font-style: normal;
26 font-weight: 400 600;
27 font-display: swap;
28 src: url(/static/fonts/atkinson-mono-roman.woff2) format("woff2");
29}
30
31:root {
32 /* declare native light+dark support: correct form controls and
33 scrollbars per scheme, and opt out of browser auto-darkening */
34 color-scheme: light dark;
35
36 /* ground and ink */
37 --bg: #ffffff;
38 --fg: #0d0d0d;
39 --muted: #595959; /* 7.00:1 on white */
40 --faint: #eaeaea; /* hairlines, row separators */
41 --line: #d4d4d4; /* control borders, table edges */
42 --surface: #ffffff;
43 --hover: #f5f5f5;
44 --code-bg: #f5f5f5;
45 --fill-subtle: #ececec; /* hunk headers, summary hover */
46 --diff-add: #e4f6ea; /* row grounds: tinted enough to scan, light
47 enough that syntax colors stay legible */
48 --diff-del: #fdeaea;
49
50 /* blue: what you can do */
51 --accent: #0000f0; /* links, focus — 9.30:1 on white */
52 --accent-fg: #ffffff;
53 --fill: #0000f0; /* button grounds; white on it is 9.30:1 */
54 --fill-edge: transparent; /* light: the fill is its own boundary */
55
56 /* orange: where you are, what wants you */
57 --mark: #e4572e; /* bars and underlines — non-text, 3.0 bar */
58 --warn: #c2410c; /* the same orange at text size — 5.18:1 */
59
60 /* semantic */
61 --ok: #0a7d3c;
62 --bad: #c62828;
63 --done: #6b21a8; /* merged */
64 --neutral: #595959;
65
66 /* the rail is black in both schemes: the one brand constant */
67 --shell-bg: #000000;
68 --shell-fg: #f2f2f2;
69 --shell-muted: #8f8f8f;
70 --shell-line: #1c1c1c;
71 --shell-hover: #141414;
72 --shell-mark: #ff6b3d; /* 7.42:1 on black, both schemes */
73
74 /* type */
75 --sans: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont,
76 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
77 --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono",
78 SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
79 --fs-0: 0.78rem;
80 --fs-1: 0.85rem;
81 --fs-2: 0.92rem;
82 --fs-3: 1rem;
83 --fs-4: 1.2rem;
84 --fs-5: 1.6rem;
85 --fs-6: 1.8rem; /* landing headline */
86 --fs-7: 4rem; /* the 404 code */
87
88 /* spacing */
89 --sp-1: 0.25rem;
90 --sp-2: 0.5rem;
91 --sp-3: 0.75rem;
92 --sp-4: 1rem;
93 --sp-5: 1.5rem;
94 --sp-6: 2.5rem;
95
96 --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23595959' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
97
98 /* radii: 2px everywhere — chart plates, not pills */
99 --r-sm: 2px;
100 --r-md: 2px;
101 --r-lg: 2px;
102 --r-pill: 2px;
103 --shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
104}
105@media (prefers-color-scheme: dark) {
106 :root {
107 --bg: #0a0a0a;
108 --fg: #f2f2f2;
109 --muted: #a1a1a1; /* 7.66:1 on #0a0a0a */
110 --faint: #1c1c1c;
111 --line: #2e2e2e;
112 --surface: #0f0f0f;
113 --hover: #161616;
114 --code-bg: #050505;
115 --fill-subtle: #161616;
116 --diff-add: #0d2a18;
117 --diff-del: #2c1113;
118 --accent: #6272ff; /* pure #0000f0 is 2.13:1 here. Picked against
119 the lightest ground it lands on, not the page:
120 a link wrapping inline code sits on #161616,
121 where the old #5b6bff was 4.30:1. Now 4.63:1
122 there and 5.06:1 on the page. */
123 --accent-fg: #ffffff;
124 --fill: #0000f0; /* fills stay pure; white on it clears 9:1 */
125 --fill-edge: #7d8cff; /* a button's boundary: #0000f0 on #0a0a0a is 1.3:1 (#120) */
126 --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
127 --mark: #ff6b3d;
128 --warn: #ff6b3d;
129 --ok: #3fce7a;
130 --bad: #ff6b6b;
131 --done: #c084fc;
132 --neutral: #a1a1a1;
133 --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a1a1a1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
134 }
135}
136
137* { box-sizing: border-box; }
138html { font-size: 15px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
139body {
140 margin: 0;
141 background: var(--bg);
142 color: var(--fg);
143 font: var(--fs-3)/1.6 var(--sans);
144 min-height: 100vh;
145}
146
147a { color: var(--accent); text-decoration: none; }
148a:hover { text-decoration: underline; }
149
150/* one authored focus ring, so keyboard position is never the browser's
151 guess. Blue, because focus is an interactive state. */
152:focus-visible {
153 outline: 2px solid var(--accent);
154 outline-offset: 2px;
155 border-radius: 1px;
156}
157/* the shell is black in both schemes, and --accent is a dark blue in the
158 light one — a ring nobody could see. The shell's own mark clears 7:1 on
159 black either way. */
160.rail :focus-visible { outline-color: var(--shell-mark); }
161
162/* visually hidden, still read aloud: for headings a sighted reader gets
163 from the layout but a screen reader would otherwise miss */
164.vh {
165 position: absolute;
166 width: 1px; height: 1px;
167 margin: -1px; padding: 0; border: 0;
168 clip-path: inset(50%);
169 overflow: hidden;
170 white-space: nowrap;
171}
172/* the rail runs ahead of the content in source order, so give keyboard
173 and screen-reader users a way past it */
174a.skip {
175 position: absolute;
176 left: var(--sp-3); top: -3rem;
177 z-index: 50;
178 background: var(--fill);
179 color: #ffffff;
180 padding: var(--sp-2) var(--sp-4);
181 font-weight: 600;
182}
183a.skip:focus { top: var(--sp-3); text-decoration: none; }
184
185h1 { font-size: var(--fs-5); font-weight: 700; line-height: 1.18;
186 margin: 0 0 var(--sp-3); letter-spacing: -0.025em; text-wrap: balance; }
187h2 { font-size: var(--fs-4); font-weight: 700; line-height: 1.3;
188 margin: var(--sp-5) 0 var(--sp-3); letter-spacing: -0.015em; }
189h3 { font-size: var(--fs-3); font-weight: 600; margin: var(--sp-5) 0 var(--sp-2); }
190
191code, pre, .code, td.mode, td.size {
192 font-family: var(--mono);
193 font-size: var(--fs-1);
194}
195
196/* ---- shell: black rail, content pane ---- */
197.shell { display: flex; align-items: stretch; min-height: 100vh; }
198
199.rail {
200 flex: none;
201 width: 13rem;
202 background: var(--shell-bg);
203 color: var(--shell-fg);
204 border-right: 1px solid var(--shell-line);
205 position: sticky;
206 top: 0;
207 height: 100vh;
208 display: flex;
209 flex-direction: column;
210}
211a.brand {
212 display: flex;
213 align-items: center;
214 gap: var(--sp-2);
215 padding: var(--sp-3) var(--sp-4);
216 color: var(--shell-fg);
217 font-weight: 700;
218 font-size: var(--fs-3);
219 letter-spacing: -0.02em;
220 border-bottom: 1px solid var(--shell-line);
221}
222a.brand:hover { text-decoration: none; color: #ffffff; }
223a.brand svg.mark { display: block; flex: none; }
224a.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
225
226.railbody { flex: 1; overflow-y: auto; padding: var(--sp-3) 0; }
227ul.raillist { list-style: none; margin: 0; padding: 0; }
228ul.raillist a {
229 display: block;
230 padding: var(--sp-1) var(--sp-4);
231 color: var(--shell-fg);
232 font-size: var(--fs-2);
233 border-left: 3px solid transparent;
234 overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
235}
236ul.raillist a:hover { background: var(--shell-hover); text-decoration: none; }
237/* orange marks position — the rail's only accent */
238ul.raillist a[aria-current] {
239 border-left-color: var(--shell-mark);
240 background: var(--shell-hover);
241 font-weight: 600;
242}
243ul.raillist .owner { color: var(--shell-muted); }
244ul.raillist.wide a { white-space: normal; padding-top: var(--sp-1); padding-bottom: var(--sp-1); }
245ul.raillist.wide b { display: block; font-weight: 500; font-size: var(--fs-1); }
246ul.raillist.wide .owner { font-size: var(--fs-0); }
247
248.raillabel {
249 display: flex;
250 align-items: center;
251 gap: var(--sp-2);
252 margin: var(--sp-4) 0 var(--sp-1);
253 padding: 0 var(--sp-4);
254 font-family: var(--mono);
255 font-size: var(--fs-0);
256 font-weight: 500;
257 letter-spacing: 0.1em;
258 text-transform: uppercase;
259 color: var(--shell-muted);
260}
261.raillabel .count {
262 font-family: var(--sans);
263 font-size: var(--fs-0);
264 font-weight: 700;
265 letter-spacing: 0;
266 background: var(--shell-mark);
267 color: #000000;
268 padding: 0 0.35rem;
269 border-radius: var(--r-sm);
270}
271/* pinned above the account cell: always reachable, never scrolled away */
272.railpinned {
273 flex: none;
274 padding: var(--sp-2) 0;
275 border-top: 1px solid var(--shell-line);
276}
277.railfoot {
278 flex: none;
279 border-top: 1px solid var(--shell-line);
280 /* same vertical rhythm as the page footer, so the two rules line up
281 when the page is scrolled to the bottom; horizontal padding stays on
282 the rail's own grid so the avatar aligns with the nav items above */
283 padding: var(--sp-4) var(--sp-4) var(--sp-5);
284 display: flex;
285 align-items: center;
286 gap: var(--sp-3);
287 font-size: var(--fs-2);
288 line-height: 1.4;
289}
290.railfoot a { color: var(--shell-fg); }
291a.railuser { display: inline-flex; align-items: center; gap: var(--sp-2); }
292/* a descendant cannot cancel an ancestor's underline, so the link carries
293 none and the name draws its own — the avatar square stays undecorated */
294a.railuser:hover { text-decoration: none; }
295a.railuser:hover .uname { text-decoration: underline; }
296.railfoot form { margin-left: auto; }
297.railfoot .linklike {
298 background: none; border: 0; padding: 0; cursor: pointer;
299 color: var(--shell-muted); font: inherit; text-decoration: underline;
300}
301.railfoot .linklike:hover { color: var(--shell-fg); }
302.avatar {
303 width: 1.4rem; height: 1.4rem; flex: none;
304 display: inline-grid; place-items: center;
305 background: var(--fill);
306 color: #ffffff;
307 font-size: var(--fs-0);
308 font-weight: 700;
309 border-radius: var(--r-sm);
310}
311
312.pane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
313.content {
314 flex: 1;
315 padding: var(--sp-5) var(--sp-5) var(--sp-6);
316 width: 100%;
317}
318
319/* ---- repo header: identity and tabs on every page, the rest once ---- */
320.repohead {
321 padding: var(--sp-4) var(--sp-5) 0;
322 border-bottom: 1px solid var(--line);
323}
324.repohead .identity { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
325.repohead .identity .grow { flex: 1; }
326/* h1 on the repo home, p elsewhere so each page keeps its own h1 — but
327 identical in size, because the tabs sit below this and navigation must
328 not move when you use it */
329.repotitle {
330 margin: 0;
331 font-size: var(--fs-4);
332 font-weight: 700;
333 letter-spacing: -0.02em;
334 line-height: 1.3;
335}
336.repotitle a { color: var(--fg); }
337.repotitle a.owner { color: var(--muted); font-weight: 400; }
338.repotitle a:hover { color: var(--accent); text-decoration: none; }
339.repotitle .sep { color: var(--muted); margin: 0 0.12em; font-weight: 400; }
340.repodesc { margin: var(--sp-2) 0 0; color: var(--muted); font-size: var(--fs-2); max-width: 62ch; }
341.repometa { margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--fs-1); }
342
343button.btn {
344 font: inherit;
345 font-size: var(--fs-1);
346 font-weight: 600;
347 padding: 0.15rem 0.7rem;
348 border: 1px solid var(--line);
349 border-radius: var(--r-sm);
350 background: var(--bg);
351 color: var(--fg);
352 cursor: pointer;
353}
354button.btn:hover { border-color: var(--accent); color: var(--accent); }
355button.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
356form.inline { display: inline; }
357
358nav.tabs {
359 display: flex;
360 gap: var(--sp-1);
361 margin-top: var(--sp-4);
362 overflow-x: auto;
363 /* with overflow-y left visible the browser computes it to auto, which
364 is a vertical drag on touch; the strip scrolls sideways only. */
365 overflow-y: hidden;
366 scrollbar-width: none;
367}
368nav.tabs::-webkit-scrollbar { display: none; }
369nav.tabs a {
370 display: inline-flex;
371 align-items: center;
372 gap: var(--sp-2);
373 padding: var(--sp-2) var(--sp-3) 0.6rem;
374 color: var(--muted);
375 font-size: var(--fs-2);
376 white-space: nowrap;
377 border-bottom: 2px solid transparent;
378 margin-bottom: -1px;
379}
380nav.tabs a:hover { color: var(--fg); text-decoration: none; }
381/* orange marks position here too */
382nav.tabs a[aria-current] {
383 color: var(--fg);
384 font-weight: 700;
385 border-bottom-color: var(--mark);
386}
387nav.tabs a i {
388 font-style: normal;
389 font-family: var(--mono);
390 font-size: var(--fs-0);
391 background: var(--hover);
392 border-radius: var(--r-sm);
393 padding: 0 0.35rem;
394}
395
396/* ---- mobile: the rail becomes a single strip, not a wall of links ---- */
397@media (max-width: 52rem) {
398 .shell { display: block; }
399 .rail {
400 width: auto;
401 height: auto;
402 position: static;
403 flex-direction: row;
404 align-items: center;
405 gap: var(--sp-2);
406 border-right: 0;
407 border-bottom: 1px solid var(--shell-line);
408 overflow-x: auto;
409 }
410 a.brand { border-bottom: 0; padding-right: var(--sp-2); }
411 .railbody { flex: 1; overflow: visible; padding: 0; display: flex; align-items: center; }
412 /* pinned repos and the review queue both live on the dashboard, so the
413 strip keeps only what has nowhere else to go */
414 .railgroup { display: none; }
415 ul.raillist { display: flex; }
416 ul.raillist a { border-left: 0; border-bottom: 2px solid transparent; padding: var(--sp-2) var(--sp-3); }
417 ul.raillist a[aria-current] { border-left: 0; border-bottom-color: var(--shell-mark); }
418 /* the rail is a horizontal strip here: keep the account cell compact */
419 .railfoot { border-top: 0; padding: var(--sp-2); }
420 .railpinned { border-top: 0; padding: 0; }
421 .content { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
422 .repohead { padding: var(--sp-3) var(--sp-4) 0; }
423 /* seven tabs do not fit a phone in one row; a hidden scrollbar made
424 the ones past the edge look absent. Two rows show all of them. */
425 nav.tabs { flex-wrap: wrap; overflow: visible; }
426}
427
428/* tables */
429table { border-collapse: collapse; width: 100%; }
430td {
431 padding: var(--sp-2) var(--sp-4) var(--sp-2) 0;
432 border-bottom: 1px solid var(--faint);
433 vertical-align: top;
434 font-size: var(--fs-2);
435}
436td:last-child { padding-right: 0; }
437td.size, td.mode { color: var(--muted); white-space: nowrap; }
438
439/* path bar on tree and blob pages */
440.pathbar {
441 display: flex;
442 flex-wrap: wrap;
443 align-items: center;
444 gap: var(--sp-2) var(--sp-3);
445 margin: var(--sp-3) 0;
446 font-size: var(--fs-2);
447}
448.pathbar .spacer { flex: 1; }
449.refchip {
450 display: inline-flex;
451 align-items: center;
452 gap: 0.3rem;
453 background: var(--surface);
454 border: 1px solid var(--faint);
455 border-radius: var(--r-md);
456 padding: 0.1rem 0.55rem;
457 font-family: var(--mono);
458 font-size: var(--fs-1);
459 color: var(--fg);
460}
461.pathbar .crumbs strong { color: var(--fg); }
462details.refmenu { position: relative; }
463details.refmenu summary { cursor: pointer; list-style: none; }
464details.refmenu summary::-webkit-details-marker { display: none; }
465details.refmenu summary::after { content: " ▾"; color: var(--muted); }
466details.refmenu .refdrop {
467 position: absolute;
468 z-index: 10;
469 top: calc(100% + 4px);
470 left: 0;
471 min-width: 12rem;
472 max-height: 20rem;
473 overflow-y: auto;
474 background: var(--bg);
475 border: 1px solid var(--line);
476 border-radius: var(--r-md);
477 box-shadow: var(--shadow);
478 padding: var(--sp-1) 0;
479}
480details.refmenu .refdrop a {
481 display: block;
482 padding: var(--sp-1) var(--sp-3);
483 color: var(--fg);
484 font-family: var(--mono);
485 font-size: var(--fs-1);
486}
487details.refmenu .refdrop a:hover { background: var(--hover); text-decoration: none; }
488details.refmenu .refdrop a.allrefs { color: var(--accent); font-family: var(--sans); border-top: 1px solid var(--faint); margin-top: var(--sp-1); }
489
490/* file and refs tables: bordered cards, rows inside */
491/* wide listings scroll inside their own box; the page never does */
492.tablewrap { overflow-x: auto; max-width: 100%; }
493
494table.tree, table.refs {
495 background: var(--surface);
496 border: 1px solid var(--line);
497 border-radius: var(--r-lg);
498 border-collapse: separate;
499 border-spacing: 0;
500 overflow: hidden;
501 margin-bottom: var(--sp-4);
502}
503table.tree td, table.refs td {
504 padding: var(--sp-2) var(--sp-4);
505 border-bottom: 1px solid var(--faint);
506}
507table.tree tr:last-child td, table.refs tr:last-child td { border-bottom: none; }
508table.tree tr:hover td, table.refs tr:hover td { background: var(--hover); }
509tr.cols th {
510 text-align: left;
511 font-weight: 500;
512 font-size: var(--fs-1);
513 color: var(--muted);
514 padding: var(--sp-1) var(--sp-4);
515 border-bottom: 1px solid var(--line);
516 background: var(--bg);
517}
518tr.cols:hover th { background: var(--bg); }
519/* right-aligned columns keep their header with their values; this needs to
520 outrank the tr.cols th rule above, which is why it names both */
521tr.cols th.age, tr.cols th.size { text-align: right; }
522table.tree th.size { text-align: right; }
523table.tree td.name { width: 100%; }
524table.tree td.name a { color: var(--fg); }
525table.tree td.name a:hover { color: var(--accent); }
526table.tree td.size { text-align: right; }
527table.tree td.empty, table.refs td.empty, li.empty, ul.loglist li.empty { color: var(--muted); }
528
529/* refs page */
530table.refs th, table.assets th {
531 text-align: left;
532 font-size: var(--fs-0);
533 font-weight: 500;
534 color: var(--muted);
535 padding: var(--sp-1) var(--sp-2);
536 border-bottom: 1px solid var(--line);
537}
538table.refs td.name { width: 100%; }
539table.refs td.sha { color: var(--muted); }
540
541/* card header (README) */
542.cardhead {
543 font-family: var(--mono);
544 font-size: var(--fs-1);
545 color: var(--muted);
546 border-bottom: 1px solid var(--faint);
547 margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-5)) var(--sp-4);
548 padding: var(--sp-2) var(--sp-5);
549 background: var(--bg);
550 border-radius: var(--r-lg) var(--r-lg) 0 0;
551}
552
553/* log */
554ul.loglist {
555 list-style: none;
556 margin: var(--sp-3) 0;
557 padding: 0;
558 background: var(--surface);
559 border: 1px solid var(--line);
560 border-radius: var(--r-lg);
561 overflow: hidden;
562}
563ul.loglist li {
564 display: flex;
565 align-items: baseline;
566 gap: var(--sp-3);
567 padding: var(--sp-2) var(--sp-4);
568 border-bottom: 1px solid var(--faint);
569}
570ul.loglist li:last-child { border-bottom: none; }
571ul.loglist li:hover { background: var(--hover); }
572ul.loglist .commitmain { flex: 1; min-width: 0; }
573ul.loglist p { margin: 0; }
574ul.loglist .subject a { color: var(--fg); font-weight: 550; }
575ul.loglist .subject a:hover { color: var(--accent); }
576ul.loglist .commitside {
577 display: flex;
578 align-items: baseline;
579 gap: var(--sp-2);
580 white-space: nowrap;
581}
582p.pager { margin-top: var(--sp-4); }
583
584/* commit page */
585.commithead p { margin: var(--sp-1) 0; }
586.commithead h2 { margin-bottom: var(--sp-1); }
587code.fullsha { color: var(--muted); overflow-wrap: anywhere; }
588.empty-note { color: var(--muted); }
589.crumbs { color: var(--muted); font-size: var(--fs-2); }
590.desc, td.desc { color: var(--muted); }
591.error {
592 color: var(--fg);
593 border: 1px solid var(--bad);
594 border-left-width: 3px;
595 border-radius: var(--r-sm);
596 padding: var(--sp-2) var(--sp-3);
597 margin-bottom: var(--sp-4);
598}
599/* settings: one row per control, label then input then its own button */
600form.setform {
601 display: flex;
602 flex-wrap: wrap;
603 align-items: center;
604 gap: var(--sp-3);
605 padding: var(--sp-2) 0;
606 border-bottom: 1px solid var(--faint);
607}
608/* the label absorbs the free space, so a row whose control does not
609 stretch — a checkbox, a number — still finishes at the same right edge
610 as the rows whose input fills the line */
611form.setform label { min-width: 12rem; margin-right: auto; color: var(--muted); font-size: var(--fs-2); }
612form.setform input[type="text"], form.setform select { flex: 1 1 16rem; }
613form.setform input[type="number"] { width: 5rem; }
614ul.protlist { list-style: none; padding: 0; margin: var(--sp-2) 0; }
615ul.protlist li { padding: var(--sp-1) 0; display: flex; gap: var(--sp-3); align-items: baseline; }
616
617/* branch picker on the new merge request form */
618p.branchpick {
619 display: flex;
620 flex-wrap: wrap;
621 align-items: center;
622 gap: var(--sp-2);
623}
624p.branchpick label { color: var(--muted); font-size: var(--fs-2); }
625p.branchpick select { flex: 1 1 12rem; }
626
627/* merge request actions in the aside: stacked controls, full width */
628.aside form.actions {
629 display: flex;
630 flex-wrap: wrap;
631 gap: var(--sp-2);
632 margin-top: var(--sp-2);
633}
634.aside form.actions button { flex: 1 1 auto; }
635.aside form.actions select { width: 100%; }
636form.threadact { margin: var(--sp-1) 0 0; padding: 0 var(--sp-3) var(--sp-2); }
637
638.meta { color: var(--muted); font-size: var(--fs-1); }
639svg.icon { vertical-align: -0.125em; }
640.lede { font-size: var(--fs-3); margin: var(--sp-2) 0; }
641
642/* repo listings (explore, owner pages, dashboard): one row per repo */
643ul.repolist {
644 list-style: none;
645 margin: var(--sp-3) 0 var(--sp-5);
646 padding: 0;
647 background: var(--surface);
648 border: 1px solid var(--line);
649 border-radius: var(--r-lg);
650 overflow: hidden;
651}
652ul.repolist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
653/* pinned repos: a compact wrap of name pills, no description or meta */
654ul.pinlist {
655 list-style: none;
656 margin: var(--sp-3) 0 var(--sp-5);
657 padding: 0;
658 display: flex;
659 flex-wrap: wrap;
660 gap: var(--sp-2);
661}
662ul.pinlist li {
663 background: var(--surface);
664 border: 1px solid var(--line);
665 border-radius: var(--r-md);
666 padding: var(--sp-1) var(--sp-3);
667}
668ul.pinlist li:hover { background: var(--hover); }
669ul.pinlist li a { color: var(--fg); }
670ul.pinlist li a:hover { color: var(--accent); text-decoration: none; }
671ul.pinlist .sep { color: var(--muted); margin: 0 0.15em; }
672ul.repolist li:last-child { border-bottom: none; }
673ul.repolist li:hover { background: var(--hover); }
674ul.repolist li.empty { color: var(--muted); }
675ul.repolist p { margin: 0; }
676ul.repolist .reponame { font-size: var(--fs-3); }
677ul.repolist .reponame a { color: var(--fg); }
678ul.repolist .reponame a strong { color: var(--accent); font-weight: 600; }
679ul.repolist .reponame .sep { color: var(--muted); margin: 0 0.1em; }
680ul.repolist .desc { margin-top: 0.1rem; }
681ul.repolist .topics { margin-top: var(--sp-1); }
682ul.repolist .meta { margin-top: var(--sp-1); }
683
684/* owner profile header */
685.profilehead {
686 border-bottom: 1px solid var(--faint);
687 padding-bottom: var(--sp-4);
688 margin-bottom: var(--sp-4);
689}
690.profilehead h1 { margin: var(--sp-4) 0 var(--sp-1); }
691.profilehead .lede { margin: 0 0 var(--sp-1); }
692.profilehead .meta { margin: var(--sp-1) 0 0; }
693h2 .count { color: var(--muted); font-weight: 400; font-size: var(--fs-2); }
694
695/* activity graph: 53 week columns x 7 day rows, accent-tinted levels */
696.actgraph-scroll { overflow-x: auto; padding-bottom: var(--sp-1); }
697.actgraph { display: flex; gap: 3px; width: max-content; }
698.actweek { display: flex; flex-direction: column; gap: 3px; }
699.actday {
700 width: 11px;
701 height: 11px;
702 border-radius: 2px;
703 background: var(--faint);
704}
705.actday.pad { background: transparent; }
706.actday.l1 { background: color-mix(in srgb, var(--accent) 25%, var(--bg)); }
707.actday.l2 { background: color-mix(in srgb, var(--accent) 50%, var(--bg)); }
708.actday.l3 { background: color-mix(in srgb, var(--accent) 75%, var(--bg)); }
709.actday.l4 { background: var(--accent); }
710
711/* heading row with actions on the right */
712.headrow {
713 display: flex;
714 align-items: baseline;
715 gap: var(--sp-4);
716 flex-wrap: wrap;
717}
718.headrow .spacer { flex: 1; }
719
720/* member and org chips on owner pages */
721a.memberchip {
722 display: inline-block;
723 border: 1px solid var(--line);
724 border-radius: var(--r-pill);
725 padding: 0.05rem 0.6rem;
726 color: var(--fg);
727 font-size: var(--fs-1);
728 margin: 0 0.15rem 0.15rem 0;
729}
730a.memberchip:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
731a.memberchip .role { color: var(--muted); }
732
733/* landing page */
734.landing { max-width: 44rem; padding: var(--sp-6) 0; }
735.landing h1 { font-size: var(--fs-6); margin-bottom: var(--sp-3); }
736.landing .lede { font-size: var(--fs-4); color: var(--muted); line-height: 1.7; margin: 0 0 var(--sp-4); }
737pre.quickstart {
738 background: var(--code-bg);
739 border: 1px solid var(--line);
740 border-radius: var(--r-md);
741 padding: var(--sp-3) var(--sp-4);
742 overflow-x: auto;
743 margin: 0 0 var(--sp-4);
744}
745.landing .explorelink { font-weight: 550; }
746.landing .facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin: var(--sp-5) 0; }
747.landing .facets h2 { font-size: var(--fs-3); margin: 0 0 var(--sp-1); }
748.landing .facets p { margin: 0; color: var(--muted); font-size: var(--fs-2); line-height: 1.6; }
749@media (max-width: 40rem) { .landing .facets { grid-template-columns: 1fr; gap: var(--sp-4); } }
750
751/* index toolbar */
752p.toolbar { color: var(--muted); font-size: var(--fs-2); margin-top: var(--sp-4); }
753button.linklike {
754 background: none;
755 border: none;
756 color: var(--accent);
757 padding: 0;
758 font: inherit;
759 font-size: var(--fs-2);
760 cursor: pointer;
761}
762button.linklike:hover { text-decoration: underline; filter: none; }
763
764/* cards: README, comments */
765.readme, .code {
766 background: var(--surface);
767 border: 1px solid var(--line);
768 border-radius: var(--r-lg);
769 padding: var(--sp-4) var(--sp-5);
770 margin-top: var(--sp-4);
771 overflow-x: auto;
772}
773/* Highlighting is class-based with a palette per scheme, so code blocks
774 follow the site's own colors. */
775.code { background: var(--code-bg); color: var(--fg); padding: var(--sp-3) var(--sp-4); border-color: var(--line); }
776.code pre { margin: 0; background: transparent !important; }
777/* rendered markdown / org / html */
778.rendered { max-width: 100%; overflow-wrap: anywhere; }
779/* A linked line: #f2-n17 on a diff, #L17 on a file (#118). */
780.difftable tr:target td, .code .line:has(a:target) { background: color-mix(in srgb, var(--mark) 18%, transparent); }
781.difftable tr:target td.ln, .code .line:has(a:target) .ln { border-left: 3px solid var(--mark); }
782.thread:target { outline: 2px solid var(--mark); outline-offset: 2px; }
783/* GFM task lists: the box sits in the line, sized to the prose. */
784.rendered li input[type="checkbox"] { width: 0.9em; height: 0.9em; margin: 0 0.35em 0 0; vertical-align: -0.05em; accent-color: var(--accent); }
785.rendered li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.2em; }
786/* line length is a reading constraint, so it applies to prose only —
787 tables, code blocks and images keep the full column */
788.rendered > p,
789.rendered > ul,
790.rendered > ol,
791.rendered > blockquote { max-width: 78ch; }
792.rendered pre {
793 background: var(--code-bg);
794 border: 1px solid var(--line);
795 padding: var(--sp-3) var(--sp-4);
796 border-radius: var(--r-md);
797 overflow-x: auto;
798}
799.rendered code {
800 background: var(--code-bg);
801 border: 1px solid var(--line);
802 padding: 0.05rem 0.3rem;
803 border-radius: var(--r-sm);
804}
805.rendered pre code { background: transparent; border: none; padding: 0; }
806.rendered blockquote {
807 border-left: 3px solid var(--line);
808 margin-left: 0;
809 padding-left: var(--sp-4);
810 color: var(--muted);
811}
812.rendered img { max-width: 100%; }
813.rendered h1, .rendered h2 { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-1); }
814.rendered table {
815 border-collapse: collapse;
816 margin: var(--sp-3) 0;
817 display: block;
818 max-width: 100%;
819 overflow-x: auto;
820}
821.rendered th, .rendered td {
822 border: 1px solid var(--line);
823 padding: var(--sp-1) var(--sp-3);
824 text-align: left;
825 overflow-wrap: normal; /* scroll the table, don't shatter words */
826}
827.rendered th { background: var(--surface); font-weight: 600; }
828.blobimage { text-align: center; }
829.blobimage img {
830 max-width: 100%;
831 border: 1px solid var(--faint);
832 border-radius: var(--r-md);
833 background: var(--surface);
834}
835
836pre.message {
837 background: var(--code-bg);
838 border: 1px solid var(--line);
839 padding: var(--sp-3) var(--sp-4);
840 border-radius: var(--r-md);
841 white-space: pre-wrap;
842 overflow-wrap: anywhere;
843}
844
845/* repo facts: the counts a visitor sizes a project up with */
846.teambody { padding: var(--sp-3); background: var(--bg); }
847.teambody .memberchip { margin-right: var(--sp-2); }
848
849form.logfilter {
850 display: flex; align-items: center; gap: var(--sp-2);
851 margin: 0 0 var(--sp-4); flex-wrap: wrap;
852}
853form.logfilter input { flex: 1; min-width: 12rem; max-width: 28rem; }
854
855/* account settings */
856table.keys td { padding: var(--sp-2) var(--sp-4) var(--sp-2) 0; }
857/* these tables sit flush with the page text, so the header row drops the
858 left padding the card-style listings use */
859table.keys tr.cols th { padding-left: 0; background: transparent; }
860table.keys td.mono, .mono { font-family: var(--mono); font-size: var(--fs-1); overflow-wrap: anywhere; }
861table.keys td.act { text-align: right; }
862ul.plain { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
863ul.plain li { padding: var(--sp-1) 0; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
864form.setform.stack { display: block; }
865form.setform.stack textarea, form.setform.stack select { width: 100%; max-width: 48rem; display: block; margin-bottom: var(--sp-2); }
866p.notice {
867 border-left: 3px solid var(--ok);
868 background: var(--hover);
869 padding: var(--sp-2) var(--sp-3);
870 margin: 0 0 var(--sp-4);
871}
872
873.facts { margin: 0 0 var(--sp-4); }
874.facts .counts {
875 display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4);
876 margin: 0 0 var(--sp-3); font-size: var(--fs-2);
877}
878.facts .counts a { color: var(--fg); text-decoration: none; }
879.facts .counts a:hover { color: var(--accent); text-decoration: underline; }
880.facts .counts .fact { color: var(--muted); }
881.facts .counts strong { font-weight: 600; }
882
883.langbar {
884 display: flex; height: 0.5rem; margin: 0 0 var(--sp-2);
885 border-radius: var(--r-sm); overflow: hidden; background: var(--faint);
886}
887.langbar .lang { display: block; min-width: 2px; }
888.langs {
889 display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4);
890 margin: 0 0 var(--sp-3); font-size: var(--fs-1);
891}
892.langs .lang-name { display: inline-flex; align-items: center; gap: var(--sp-1); }
893.langs .muted { color: var(--muted); }
894.langs .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; display: inline-block; }
895/* named where it reads as the language's own color, neutral otherwise */
896.lang { background: var(--neutral); }
897.lang-go { background: #00add8; }
898.lang-rust { background: #dea584; }
899.lang-c, .lang-c- { background: #555555; }
900.lang-python { background: #3572a5; }
901.lang-javascript { background: #f1e05a; }
902.lang-typescript { background: #3178c6; }
903.lang-shell { background: #89e051; }
904.lang-ruby { background: #701516; }
905.lang-java { background: #b07219; }
906.lang-swift { background: #f05138; }
907.lang-html { background: #e34c26; }
908.lang-css { background: #563d7c; }
909.lang-org { background: #77aa99; }
910.lang-markdown { background: #083fa1; }
911.lang-emacs-lisp { background: #c065db; }
912.lang-nix { background: #7e7eff; }
913.lang-sql { background: #e38c00; }
914
915.contribs {
916 display: flex; flex-wrap: wrap; align-items: baseline;
917 gap: var(--sp-1) var(--sp-3); margin: 0; font-size: var(--fs-1);
918}
919.contribs .label { color: var(--muted); }
920
921/* diffs: one foldable section per file, a table so the line-number
922 gutters stay put while the code scrolls */
923details.difffold {
924 border: 1px solid var(--line);
925 border-radius: var(--r-md);
926 margin: 0 0 var(--sp-3);
927 background: var(--code-bg);
928}
929details.difffold summary {
930 cursor: pointer;
931 display: flex;
932 align-items: baseline;
933 gap: var(--sp-3);
934 padding: var(--sp-2) var(--sp-3);
935 list-style: none;
936 font-size: var(--fs-2);
937}
938details.difffold[open] summary { border-bottom: 1px solid var(--line); }
939details.difffold summary::-webkit-details-marker { display: none; }
940/* flex summaries lose the native disclosure marker; draw our own */
941details.difffold summary::before { content: "\25b8"; color: var(--muted); }
942details.difffold[open] summary::before { content: "\25be"; }
943details.difffold summary:hover { background: var(--fill-subtle); }
944summary .fpath { font-family: var(--mono); overflow-wrap: anywhere; }
945summary .fpath .was { color: var(--muted); }
946summary .fstat { margin-left: auto; font-family: var(--mono); white-space: nowrap; }
947details.difffold summary .add { color: var(--ok); }
948details.difffold summary .del { color: var(--bad); }
949details.difffold > .none { padding: var(--sp-3); margin: 0; }
950details.difffold .tablewrap { border-radius: 0 0 var(--r-md) var(--r-md); }
951
952table.difftable {
953 border-collapse: collapse;
954 width: 100%;
955 font-family: var(--mono);
956 font-size: var(--fs-1);
957 line-height: 1.5;
958}
959table.difftable td {
960 border: 0;
961 padding: 0;
962 vertical-align: top;
963 font-size: inherit;
964}
965table.difftable td.ln {
966 width: 1%;
967 min-width: 2.5rem;
968 padding: 0 var(--sp-2);
969 text-align: right;
970 color: var(--muted);
971 user-select: none;
972 border-right: 1px solid var(--line);
973 white-space: nowrap;
974}
975/* not .code: that class is the blob/code-block style and carries its own
976 background, which painted over every row tint */
977table.difftable td.src {
978 padding: 0 var(--sp-3);
979 white-space: pre-wrap;
980 overflow-wrap: anywhere;
981}
982/* the marker is decoration, so it lives in CSS and stays out of a copied
983 selection */
984table.difftable tr.add td.src::before { content: "+"; color: var(--ok); }
985table.difftable tr.del td.src::before { content: "\2212"; color: var(--bad); }
986table.difftable tr.ctx td.src::before { content: " "; }
987table.difftable tr.add { background: var(--diff-add); }
988table.difftable tr.del { background: var(--diff-del); }
989table.difftable tr.hunk td, table.difftable tr.dmeta td {
990 color: var(--muted);
991 padding: var(--sp-1) var(--sp-3);
992 background: var(--fill-subtle);
993 border-top: 1px solid var(--line);
994 border-bottom: 1px solid var(--line);
995}
996table.difftable tr.hunk td.src { color: var(--accent); }
997table.difftable tr.threadrow td { padding: var(--sp-2) var(--sp-3); background: var(--bg); }
998/* a line number is the handle for commenting on that line; it stays a
999 plain number until pointed at, so the gutter does not read as a wall of
1000 links */
1001table.difftable td.ln a.cmt { color: inherit; text-decoration: none; }
1002table.difftable td.ln a.cmt:hover,
1003table.difftable td.ln a.cmt:focus { color: var(--accent); text-decoration: underline; }
1004
1005/* badges: signature and check states. Semantic colors stay distinct:
1006 green verified/success, amber pending/stale, red bad/failure, muted
1007 unsigned. */
1008.badge, .chip {
1009 --chip: var(--neutral);
1010 display: inline-block;
1011 padding: 0.05rem 0.55rem;
1012 border-radius: var(--r-pill);
1013 font-size: var(--fs-0);
1014 font-weight: 500;
1015 line-height: 1.5;
1016 color: var(--chip);
1017 border: 1px solid color-mix(in srgb, var(--chip) 35%, transparent);
1018 background: color-mix(in srgb, var(--chip) 7%, transparent);
1019 white-space: nowrap;
1020 vertical-align: middle;
1021}
1022.chip-open { --chip: var(--ok); }
1023.chip-closed { --chip: var(--bad); }
1024.chip-merged, .chip-done { --chip: var(--done); }
1025.chip-neutral, .chip-source_gone { --chip: var(--neutral); }
1026.chip-stale { --chip: var(--warn); }
1027.chip.label { font-weight: 500; }
1028.chip.topic { --chip: var(--accent); }
1029.repohead .topics { margin: 0 0 var(--sp-2); }
1030.badge-verified { --chip: var(--ok); }
1031.badge-unsigned { --chip: var(--neutral); }
1032.badge-signed_unknown_key { --chip: var(--warn); }
1033.badge-signed_email_mismatch { --chip: var(--bad); }
1034.badge-signed_key_expired { --chip: var(--warn); }
1035.badge-signed_key_revoked { --chip: var(--bad); }
1036.badge-bad_signature { --chip: var(--bad); }
1037.badge.check-success { --chip: var(--ok); }
1038.badge.check-pending { --chip: var(--warn); }
1039.badge.check-failure, .badge.check-error { --chip: var(--bad); }
1040.badge.check-cancelled, .chip.check-cancelled { --chip: var(--neutral); }
1041.badge.check-running, .chip.check-running { --chip: var(--warn); }
1042.chip.check-success { --chip: var(--ok); }
1043.chip.check-pending { --chip: var(--warn); }
1044.chip.check-failure { --chip: var(--bad); }
1045pre.buildlog { max-height: 40rem; overflow: auto; }
1046span.check-success { color: var(--ok); }
1047span.check-pending { color: var(--warn); }
1048span.check-failure, span.check-error { color: var(--bad); }
1049
1050/* issue and MR listings */
1051.listhead {
1052 display: flex;
1053 align-items: baseline;
1054 gap: var(--sp-4);
1055 flex-wrap: wrap;
1056}
1057.listhead h2 { margin-bottom: var(--sp-2); }
1058nav.filters { display: flex; gap: var(--sp-1); }
1059nav.filters a {
1060 color: var(--muted);
1061 font-size: var(--fs-2);
1062 padding: 0.05rem var(--sp-2);
1063 border-radius: var(--r-pill);
1064}
1065nav.filters a:hover { color: var(--fg); background: var(--hover); text-decoration: none; }
1066nav.filters a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
1067
1068ul.issuelist {
1069 list-style: none;
1070 margin: var(--sp-2) 0;
1071 padding: 0;
1072 background: var(--surface);
1073 border: 1px solid var(--line);
1074 border-radius: var(--r-lg);
1075 overflow: hidden;
1076}
1077ul.issuelist li {
1078 display: flex;
1079 align-items: baseline;
1080 gap: var(--sp-3);
1081 padding: var(--sp-3) var(--sp-4);
1082 border-bottom: 1px solid var(--faint);
1083}
1084ul.issuelist li:last-child { border-bottom: none; }
1085ul.issuelist li:hover { background: var(--hover); }
1086ul.issuelist li.empty { display: block; color: var(--muted); }
1087ul.issuelist .issuemain { flex: 1; min-width: 0; }
1088ul.issuelist p { margin: 0; }
1089ul.issuelist .title a { color: var(--fg); font-weight: 550; }
1090ul.issuelist .title a:hover { color: var(--accent); }
1091
1092/* releases */
1093article.release {
1094 background: var(--surface);
1095 border: 1px solid var(--line);
1096 border-radius: var(--r-lg);
1097 padding: var(--sp-3) var(--sp-4);
1098 margin: var(--sp-4) 0;
1099}
1100.releasehead { background: none; border: 0; padding: 0; }
1101.releasehead h3 { margin: 0 0 var(--sp-1); }
1102.releasehead .meta { margin: 0 0 var(--sp-2); }
1103table.assets { margin-top: var(--sp-2); }
1104table.assets td.size { color: var(--muted); white-space: nowrap; text-align: right; }
1105table.assets td.name { width: 100%; font-family: var(--mono); font-size: var(--fs-1); }
1106
1107/* milestones */
1108ul.milestonelist {
1109 list-style: none;
1110 margin: var(--sp-2) 0;
1111 padding: 0;
1112 border: 1px solid var(--line);
1113 border-radius: var(--r-lg);
1114 overflow: hidden;
1115}
1116ul.milestonelist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
1117ul.milestonelist li:last-child { border-bottom: none; }
1118ul.milestonelist li.empty { color: var(--muted); }
1119ul.milestonelist p { margin: 0; }
1120ul.milestonelist .title { font-weight: 550; }
1121.progress {
1122 height: 6px;
1123 background: var(--faint);
1124 border-radius: var(--r-pill);
1125 margin-top: var(--sp-2);
1126 overflow: hidden;
1127 max-width: 24rem;
1128}
1129.progress .bar { height: 100%; background: var(--ok); }
1130.listhead .spacer { flex: 1; }
1131
1132/* issue / MR detail */
1133h2.issuetitle { margin-bottom: var(--sp-1); font-size: var(--fs-5); }
1134.issuenumber { color: var(--muted); font-weight: 400; }
1135.issuemeta { color: var(--muted); font-size: var(--fs-2); margin-top: 0; }
1136.review { font-size: var(--fs-2); }
1137
1138/* comment cards; discussion stays at a readable measure */
1139article.comment, form.commentform {
1140 max-width: 48rem;
1141}
1142article.comment {
1143 border: 1px solid var(--faint);
1144 border-radius: var(--r-lg);
1145 margin: var(--sp-4) 0;
1146}
1147article.comment .commenthead {
1148 background: var(--surface);
1149 border-bottom: 1px solid var(--faint);
1150 border-radius: var(--r-lg) var(--r-lg) 0 0;
1151 padding: var(--sp-2) var(--sp-4);
1152 font-size: var(--fs-2);
1153}
1154article.comment .commenthead .when { color: var(--muted); }
1155article.comment .rendered { padding: 0 var(--sp-4); }
1156article.comment .rendered > :first-child { margin-top: var(--sp-3); }
1157article.comment .rendered > :last-child { margin-bottom: var(--sp-3); }
1158form.commentform { margin: var(--sp-4) 0; }
1159details.editbox { margin: var(--sp-2) 0; max-width: 48rem; }
1160details.editbox summary { cursor: pointer; color: var(--muted); font-size: var(--fs-2); }
1161details.editbox summary:hover { color: var(--accent); }
1162details.editbox input[type="text"] { width: 100%; }
1163.syscomment {
1164 max-width: 48rem;
1165 color: var(--muted);
1166 font-size: var(--fs-2);
1167 margin: var(--sp-3) 0;
1168 padding-left: var(--sp-4);
1169 border-left: 3px solid var(--faint);
1170}
1171.syscomment p { display: inline; margin: 0; }
1172
1173/* review threads under diff lines */
1174.thread {
1175 border: 1px solid var(--faint);
1176 border-left: 3px solid var(--accent);
1177 border-radius: var(--r-md);
1178 padding: var(--sp-2) var(--sp-4);
1179 margin: var(--sp-2) 0 var(--sp-2) var(--sp-6);
1180}
1181.thread.resolved { border-left-color: var(--ok); opacity: 0.75; }
1182.thread.stale { border-left-color: var(--warn); }
1183.thread p.commenthead { font-size: var(--fs-2); margin: var(--sp-2) 0 0; }
1184.thread .when { color: var(--muted); }
1185.thread .rendered p { margin: var(--sp-1) 0; }
1186.thread .threadstate { color: var(--muted); font-size: var(--fs-1); margin: var(--sp-1) 0 0; }
1187.thread.composing { border-left-color: var(--mark); }
1188.thread details.threadreply { margin: var(--sp-2) 0 0; }
1189.thread details.threadreply > summary { color: var(--accent); font-size: var(--fs-1); cursor: pointer; }
1190.thread textarea { width: 100%; }
1191.thread.composing p, .thread details.threadreply p { margin: var(--sp-2) 0 0; }
1192
1193/* forms: every control shares one shell, so a select reads as a sibling
1194 of the text inputs beside it rather than as an OS control dropped in */
1195input, textarea, button, select { font: inherit; color: inherit; }
1196input[type="text"], input[type="search"], input[type="email"],
1197input[type="password"], input:not([type]), textarea, select {
1198 background: var(--bg);
1199 color: var(--fg);
1200 border: 1px solid var(--line);
1201 border-radius: var(--r-md);
1202 padding: var(--sp-2) var(--sp-3);
1203 line-height: 1.4;
1204}
1205textarea { width: 100%; resize: vertical; }
1206textarea[name="content"] { font-family: var(--mono); font-size: var(--fs-1); }
1207/* the native arrow cannot be restyled, so draw our own and match the
1208 inputs exactly; --chev carries the stroke colour per scheme */
1209select {
1210 appearance: none;
1211 padding-right: 1.9rem;
1212 background-image: var(--chev);
1213 background-repeat: no-repeat;
1214 background-position: right 0.6rem center;
1215 background-size: 0.62rem;
1216 cursor: pointer;
1217}
1218input:hover, textarea:hover, select:hover { border-color: var(--muted); }
1219/* the global :focus-visible ring covers these; only the border moves */
1220input:focus, textarea:focus, select:focus { border-color: var(--accent); }
1221input[type="radio"] { accent-color: var(--fill); }
1222label:has(> input[type="radio"]), label:has(> input[type="checkbox"]),
1223label:has(> select) { display: inline-flex; align-items: center; gap: var(--sp-2); }
1224
1225/* A radio keeps the native control: a circle takes one answer, a square
1226 takes any number, and that shape is the cue that survives greyscale,
1227 high contrast and colour blindness. The checkbox is drawn instead,
1228 because at the size the OS renders it it reads as an afterthought
1229 beside the button it shares a row with. The square is kept square —
1230 the size changes, the cue does not. */
1231input[type="checkbox"] {
1232 appearance: none;
1233 flex: none;
1234 /* the height of a text input, a select and a button, so a settings row
1235 ends in one column of controls rather than a button and a speck */
1236 width: 2.5rem;
1237 height: 2.5rem;
1238 /* an empty box has nothing but its border to announce it, so the border
1239 is --muted rather than the --line the sized controls can afford */
1240 border: 1px solid var(--muted);
1241 border-radius: var(--r-sm);
1242 background: var(--bg);
1243 cursor: pointer;
1244}
1245input[type="checkbox"]:not(:checked):hover { border-color: var(--fg); }
1246input[type="checkbox"]:checked {
1247 background: var(--fill);
1248 border-color: var(--fill);
1249 /* the mark sits on the blue ground, so it is white in both schemes */
1250 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.4 3.4L11 1.4' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
1251 background-repeat: no-repeat;
1252 background-position: center;
1253 background-size: 1.2rem;
1254}
1255
1256/* a segmented control for a small, mutually exclusive set: real radios
1257 underneath, so arrow keys and screen readers behave as they always did */
1258fieldset.segmented { border: 0; margin: 0 0 var(--sp-4); padding: 0; }
1259fieldset.segmented legend {
1260 padding: 0;
1261 margin-bottom: var(--sp-2);
1262 color: var(--muted);
1263 font-size: var(--fs-2);
1264}
1265fieldset.segmented .options { display: inline-flex; }
1266fieldset.segmented label { gap: 0; }
1267fieldset.segmented input {
1268 position: absolute;
1269 width: 1px;
1270 height: 1px;
1271 opacity: 0;
1272 pointer-events: none;
1273}
1274fieldset.segmented span {
1275 display: block;
1276 padding: var(--sp-2) var(--sp-4);
1277 border: 1px solid var(--line);
1278 font-size: var(--fs-2);
1279 cursor: pointer;
1280}
1281fieldset.segmented label + label span { border-left: 0; }
1282fieldset.segmented label:first-child span { border-radius: var(--r-sm) 0 0 var(--r-sm); }
1283fieldset.segmented label:last-child span { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
1284fieldset.segmented span:hover { border-color: var(--muted); }
1285fieldset.segmented input:checked + span {
1286 background: var(--fill);
1287 border-color: var(--fill);
1288 color: #ffffff;
1289 font-weight: 600;
1290}
1291fieldset.segmented input:focus-visible + span {
1292 outline: 2px solid var(--accent);
1293 outline-offset: 2px;
1294}
1295
1296/* remaining input states */
1297::placeholder { color: var(--muted); opacity: 1; }
1298::selection { background: var(--fill); color: #ffffff; }
1299/* :user-invalid, not :invalid — a required field is invalid the moment
1300 the page loads, and colouring it red before anyone has typed is a
1301 scolding, not a hint */
1302input:user-invalid, textarea:user-invalid {
1303 border-color: var(--bad);
1304}
1305.hint { display: block; color: var(--muted); font-size: var(--fs-1); margin-top: var(--sp-1); }
1306button {
1307 background: var(--fill);
1308 color: #ffffff;
1309 border: 1px solid var(--fill-edge);
1310 border-radius: var(--r-md);
1311 padding: var(--sp-2) var(--sp-4);
1312 font-weight: 600;
1313 cursor: pointer;
1314}
1315button:hover { filter: brightness(1.15); }
1316
1317/* 404 */
1318.notfound { text-align: center; padding: var(--sp-6) 0; }
1319.notfound .bigcode {
1320 font-family: var(--mono);
1321 font-size: var(--fs-7);
1322 color: var(--faint);
1323 -webkit-text-stroke: 1px var(--line);
1324 margin: 0;
1325 line-height: 1;
1326}
1327.notfound h1 { margin-top: var(--sp-3); }
1328
1329/* footer */
1330footer {
1331 border-top: 1px solid var(--faint);
1332 padding: var(--sp-4) var(--sp-5) var(--sp-5);
1333 width: 100%;
1334 color: var(--muted);
1335 font-size: var(--fs-1);
1336}
1337footer p { margin: 0; }
1338footer a { color: var(--muted); text-decoration: underline; }
1339footer a:hover { color: var(--accent); }
1340
1341/* search */
1342form.searchform {
1343 display: flex;
1344 gap: var(--sp-2);
1345 margin: var(--sp-3) 0 var(--sp-4);
1346}
1347form.searchform input[type="search"] { flex: 1; max-width: 32rem; }
1348form.searchform.compact { margin: 0; }
1349form.searchform.compact input[type="search"] {
1350 padding: var(--sp-1) var(--sp-3);
1351 font-size: var(--fs-2);
1352 min-width: 18rem;
1353}
1354ul.matchlist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1355ul.matchlist li { margin-bottom: var(--sp-3); }
1356ul.matchlist .matchpath { font-family: var(--mono); font-size: var(--fs-1); }
1357pre.matchline {
1358 background: var(--code-bg);
1359 border: 1px solid var(--faint);
1360 border-radius: var(--r-md);
1361 padding: var(--sp-1) var(--sp-3);
1362 margin: var(--sp-1) 0 0;
1363 overflow-x: auto;
1364}
1365pre.matchline mark {
1366 background: color-mix(in srgb, var(--warn) 25%, transparent);
1367 color: inherit;
1368 border-radius: 2px;
1369}
1370
1371/* wiki */
1372.wikilayout { display: flex; gap: var(--sp-5); align-items: flex-start; }
1373.wikipage { flex: 1; min-width: 0; }
1374.wikinav { flex: none; width: 13rem; padding-top: var(--sp-4); }
1375.wikinav ul { list-style: none; margin: var(--sp-1) 0 var(--sp-4); padding: 0; }
1376.wikinav li a { display: block; padding: 0.15rem 0; color: var(--fg); }
1377.wikinav li a:hover { color: var(--accent); text-decoration: none; }
1378.wikinav li a.active { color: var(--accent); font-weight: 550; }
1379@media (max-width: 40rem) {
1380 /* Column direction + the desktop align-items:flex-start lets .wikipage
1381 take its content's intrinsic width, overflowing the viewport (and
1382 triggering iOS font inflation). Stretch pins it to the container. */
1383 .wikilayout { flex-direction: column; align-items: stretch; }
1384 .wikinav { width: auto; padding-top: 0; }
1385}
1386
1387/* blame */
1388.blame {
1389 border: 1px solid var(--line);
1390 border-radius: var(--r-md);
1391 overflow: hidden;
1392}
1393.blamehunk {
1394 display: flex;
1395 gap: var(--sp-3);
1396 border-top: 1px solid var(--line);
1397 align-items: flex-start;
1398}
1399.blamehunk:first-child { border-top: none; }
1400.blameinfo {
1401 flex: none;
1402 width: 17rem;
1403 padding: var(--sp-2) var(--sp-3);
1404 min-width: 0;
1405}
1406.blameinfo .subject {
1407 margin: 0;
1408 font-size: var(--fs-1);
1409 white-space: nowrap;
1410 overflow: hidden;
1411 text-overflow: ellipsis;
1412}
1413.blameinfo .meta { margin: 0; font-size: var(--fs-1); color: var(--muted); }
1414.blamecode {
1415 flex: 1;
1416 margin: 0;
1417 padding: var(--sp-2) var(--sp-3) var(--sp-2) 0;
1418 overflow-x: auto;
1419 border-left: 1px solid var(--line);
1420 align-self: stretch;
1421}
1422.lineno {
1423 display: inline-block;
1424 min-width: 3.5em;
1425 padding-right: 1em;
1426 text-align: right;
1427 color: var(--muted);
1428 user-select: none;
1429}
1430
1431/* mobile */
1432@media (max-width: 40rem) {
1433 .thread { margin-left: var(--sp-3); }
1434 /* the commit subject is the widest thing in the listing and the one
1435 column a phone can do without: the tipbar above already names the
1436 latest commit. */
1437 table.tree td.lastcommit, table.tree th.lastcommit { display: none; }
1438 table.tree td.mode, table.tree th.mode { display: none; }
1439 .clone, .pathbar { overflow-wrap: anywhere; }
1440 .readme, .code { padding: var(--sp-3); }
1441 .blamehunk { flex-direction: column; gap: 0; }
1442 .blameinfo { width: auto; }
1443 .blamecode { border-left: none; padding-left: var(--sp-3); width: 100%; }
1444 .cardhead {
1445 margin: calc(-1 * var(--sp-3)) calc(-1 * var(--sp-3)) var(--sp-3);
1446 padding: var(--sp-2) var(--sp-3);
1447 }
1448}
1449
1450/* tree listing: the last commit is what a file table is scanned for, so
1451 it leads. The file's own facts moved to the blob page. */
1452.tipbar {
1453 display: flex;
1454 align-items: center;
1455 gap: var(--sp-3);
1456 padding: var(--sp-2) var(--sp-4);
1457 background: var(--hover);
1458 border: 1px solid var(--line);
1459 border-bottom: 0;
1460 border-radius: var(--r-lg) var(--r-lg) 0 0;
1461 font-size: var(--fs-2);
1462}
1463.tipbar .who { font-weight: 600; }
1464.tipbar .subject { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1465.tipbar .subject:hover { color: var(--accent); }
1466.tipbar .spacer { flex: 1; }
1467.tipbar .age { color: var(--muted); white-space: nowrap; }
1468.tipbar + table.tree { border-radius: 0 0 var(--r-lg) var(--r-lg); }
1469table.tree th.lastcommit, table.tree td.lastcommit { width: 55%; }
1470table.tree td.lastcommit a { color: var(--muted); display: block; overflow: hidden;
1471 text-overflow: ellipsis; white-space: nowrap; }
1472table.tree td.lastcommit a:hover { color: var(--accent); }
1473table.tree th.age, table.tree td.age {
1474 text-align: right;
1475 white-space: nowrap;
1476 color: var(--muted);
1477 font-variant-numeric: tabular-nums;
1478}
1479table.tree td.name { width: 25%; white-space: nowrap; }
1480table.tree td.name.dir a { color: var(--accent); }
1481p.clone { margin: 0 0 var(--sp-3); }
1482p.filefacts { color: var(--muted); font-size: var(--fs-1); margin: 0 0 var(--sp-3); }
1483.pathbar .actions { font-size: var(--fs-1); color: var(--muted); }
1484
1485/* merge request: a two-column split, so state has somewhere to live that
1486 is not a run-on sentence under the title */
1487.withaside {
1488 display: grid;
1489 grid-template-columns: minmax(0, 1fr) 15rem;
1490 gap: var(--sp-5);
1491 align-items: start;
1492}
1493.withaside .mainside { min-width: 0; }
1494@media (max-width: 62rem) { .withaside { grid-template-columns: 1fr; } }
1495
1496.aside { font-size: var(--fs-2); }
1497.aside .grp { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }
1498.aside .grp:first-child { border-top: 0; padding-top: 0; }
1499.aside h2 {
1500 margin: 0 0 var(--sp-2);
1501 font-family: var(--mono);
1502 font-size: var(--fs-0);
1503 font-weight: 500;
1504 letter-spacing: 0.1em;
1505 text-transform: uppercase;
1506 color: var(--muted);
1507}
1508.aside .row { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-1); flex-wrap: wrap; }
1509.aside .row:last-child { margin-bottom: 0; }
1510.aside .none { color: var(--muted); }
1511/* a row's second line: when it happened, under what it happened to. The
1512 extra gap keeps the pair reading as one entry. */
1513.aside .row .sub { flex-basis: 100%; color: var(--muted); font-size: var(--fs-0); }
1514.aside .row:has(.sub) { margin-bottom: var(--sp-2); }
1515.aside .dot { width: 0.45rem; height: 0.45rem; flex: none; border-radius: 50%; background: var(--muted); }
1516.aside .dot.ok { background: var(--ok); }
1517.aside .dot.bad { background: var(--bad); }
1518.aside .dot.pend { background: var(--mark); }
1519
1520/* sub-navigation within an item; orange marks position as it does above */
1521nav.subtabs {
1522 display: flex;
1523 gap: var(--sp-4);
1524 border-bottom: 1px solid var(--line);
1525 margin: 0 0 var(--sp-4);
1526}
1527nav.subtabs a {
1528 display: inline-flex;
1529 align-items: center;
1530 gap: var(--sp-2);
1531 padding: 0 0 var(--sp-2);
1532 color: var(--muted);
1533 font-size: var(--fs-2);
1534 border-bottom: 2px solid transparent;
1535 margin-bottom: -1px;
1536}
1537nav.subtabs a:hover { color: var(--fg); text-decoration: none; }
1538nav.subtabs a[aria-current] { color: var(--fg); font-weight: 700; border-bottom-color: var(--mark); }
1539nav.subtabs a i {
1540 font-style: normal;
1541 font-family: var(--mono);
1542 font-size: var(--fs-0);
1543 background: var(--hover);
1544 border-radius: var(--r-sm);
1545 padding: 0 0.35rem;
1546}
1547p.diffstat { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); }
1548p.diffstat .add { color: var(--ok); }
1549p.diffstat .del { color: var(--bad); }
1550
1551/* file edit form */
1552.editform textarea { width: 100%; }
1553.editform input[name="message"] { width: 60%; }