internal/web/static/style.css
cmc web: redesign top nav bar with balanced zones, desktop labels, and dropdowns
727e977359 1 day ago2536 lines · 95542 bytes
1/* gitbay stylesheet. Tokens first, on :root and again in the dark media
2 query; components use tokens only. Two accents with separate jobs:
3 blue is what you can do (links, primary buttons, focus, pressed
4 toggles), orange is where you are and what wants you (current tab,
5 rail counts, pending state, unverified signatures). Orange is never a
6 button ground. internal/web/tokens_test.go measures every token;
7 internal/web/classes_test.go checks every template class has a rule.
8 No external requests: fonts are served from this origin. */
9
10@font-face {
11 font-family: "Atkinson Hyperlegible Next";
12 font-style: normal;
13 font-weight: 400 700;
14 font-display: swap;
15 src: url(/static/fonts/atkinson-next-roman.woff2) format("woff2");
16}
17@font-face {
18 font-family: "Atkinson Hyperlegible Next";
19 font-style: italic;
20 font-weight: 400 700;
21 font-display: swap;
22 src: url(/static/fonts/atkinson-next-italic.woff2) format("woff2");
23}
24@font-face {
25 font-family: "Atkinson Hyperlegible Mono";
26 font-style: normal;
27 font-weight: 400 600;
28 font-display: swap;
29 src: url(/static/fonts/atkinson-mono-roman.woff2) format("woff2");
30}
31
32:root {
33 /* declare native light+dark support: correct form controls and
34 scrollbars per scheme, and opt out of browser auto-darkening */
35 color-scheme: light dark;
36
37 /* grounds: canvas, surface and inset are three steps, not one */
38 --canvas: #ffffff;
39 --surface: #ebedf1;
40 --inset: #ffffff;
41 --hover: #e1e4ea;
42 --line: #8d939c; /* 3.09:1 on canvas — a border you can see */
43 --faint: #d8dce2;
44
45 /* ink */
46 --fg: #1c1f24;
47 --muted: #5a6270;
48 --neutral: var(--muted);
49
50 /* blue: what you can do. --link is text, --fill is a ground; one blue
51 cannot clear 4.5:1 as text and 3:1 as a ground in both schemes. */
52 --link: #0033d6;
53 --fill: #0000f0;
54 --fill-fg: #ffffff;
55 --focus: var(--link);
56
57 /* orange: where you are, what wants you. Two cuts because the floor
58 differs by size: --mark for bars, --warn at text size. */
59 --mark: #e4572e;
60 --warn: #b8400f;
61
62 /* state */
63 --ok: #0a7536;
64 --bad: #c62828;
65 --done: #6b21a8;
66
67 /* diff row tints: enough to scan, light enough that the syntax
68 palette stays legible on them (TestSyntaxPaletteContrast) */
69 --diff-add: #e4f6ea;
70 --diff-del: #fdeaea;
71
72 /* the rail is dark slate in both schemes: the one brand constant */
73 --shell-bg: #111318;
74 --shell-fg: #f2f2f2;
75 --shell-muted: #98a0ad;
76 --shell-line: #232730;
77 --shell-hover: #1c2029;
78 --shell-mark: #ff6b3d;
79
80 /* the languages' own colours; the same in both schemes */
81 --lang-go: #00add8;
82 --lang-rust: #dea584;
83 --lang-c: #555555;
84 --lang-python: #3572a5;
85 --lang-javascript: #f1e05a;
86 --lang-typescript: #3178c6;
87 --lang-shell: #89e051;
88 --lang-ruby: #701516;
89 --lang-java: #b07219;
90 --lang-swift: #f05138;
91 --lang-html: #e34c26;
92 --lang-css: #563d7c;
93 --lang-org: #77aa99;
94 --lang-markdown: #083fa1;
95 --lang-emacs-lisp: #c065db;
96 --lang-nix: #7e7eff;
97 --lang-sql: #e38c00;
98
99 --sans: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont,
100 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
101 --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono",
102 SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
103
104 /* 12, 13, 14, 16, 20, 24, 32 */
105 --fs-0: 0.75rem;
106 --fs-1: 0.8125rem;
107 --fs-2: 0.875rem;
108 --fs-3: 1rem;
109 --fs-4: 1.25rem;
110 --fs-5: 1.5rem;
111 --fs-6: 2rem;
112
113 /* 4, 8, 12, 16, 24, 32, 48 */
114 --sp-1: 4px;
115 --sp-2: 8px;
116 --sp-3: 12px;
117 --sp-4: 16px;
118 --sp-5: 24px;
119 --sp-6: 32px;
120 --sp-7: 48px;
121
122 /* the rail: a column the width of one hit target, a row one tall */
123 --rail-hit: 44px;
124 --rail-strip-h: 48px;
125 --rail-mark: 24px;
126 --rail-mark-box: 32px;
127
128 /* the one page container: header content, main and footer align on it */
129 --container: 100rem;
130
131 --r-ctl: 4px; /* controls and chips */
132 --r-card: 6px; /* cards, lists, code blocks */
133 --shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
134
135 /* the native select arrow cannot be restyled, so draw our own;
136 --chev carries the stroke colour per scheme */
137 --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='%235a6270' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
138}
139@media (prefers-color-scheme: dark) {
140 :root {
141 /* the scheme in force, not just the tokens: light-dark() reads it,
142 and themedCSS repeats this block for a page stamped dark */
143 color-scheme: dark;
144
145 --canvas: #101114;
146 --surface: #212429;
147 --inset: #0b0c0e;
148 --hover: #2b2f36;
149 --line: #61666f;
150 --faint: #2f333a;
151
152 --fg: #e9eaec;
153 --muted: #a3a9b3;
154 --neutral: var(--muted);
155
156 --link: #8b9bff;
157 --fill: #4d61f0;
158 --fill-fg: #ffffff;
159 --focus: var(--link);
160
161 --mark: #ff6b3d;
162 --warn: #ff8a63;
163
164 --ok: #3fce7a;
165 --bad: #ff6b6b;
166 --done: #c084fc;
167
168 --diff-add: #0d2a18;
169 --diff-del: #2c1113;
170
171 --shell-bg: #111318;
172 --shell-fg: #f2f2f2;
173 --shell-muted: #98a0ad;
174 --shell-line: #232730;
175 --shell-hover: #1c2029;
176 --shell-mark: #ff6b3d;
177
178 /* the languages' own colours; the same in both schemes */
179 --lang-go: #00add8;
180 --lang-rust: #dea584;
181 --lang-c: #555555;
182 --lang-python: #3572a5;
183 --lang-javascript: #f1e05a;
184 --lang-typescript: #3178c6;
185 --lang-shell: #89e051;
186 --lang-ruby: #701516;
187 --lang-java: #b07219;
188 --lang-swift: #f05138;
189 --lang-html: #e34c26;
190 --lang-css: #563d7c;
191 --lang-org: #77aa99;
192 --lang-markdown: #083fa1;
193 --lang-emacs-lisp: #c065db;
194 --lang-nix: #7e7eff;
195 --lang-sql: #e38c00;
196
197 --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
198 --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='%23a3a9b3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
199 }
200}
201
202/* a page stamped light keeps the light scheme under a dark OS: the token
203 block above is guarded for it, and this is the other half of that */
204:root[data-theme="light"] { color-scheme: light; }
205
206/* ---- base ---- */
207* { box-sizing: border-box; }
208html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
209body {
210 margin: 0;
211 background: var(--canvas);
212 color: var(--fg);
213 font: var(--fs-3)/1.5 var(--sans);
214 min-height: 100vh;
215}
216h1, h2, h3 { line-height: 1.25; font-weight: 600; }
217h1 { font-size: var(--fs-5); margin: 0 0 var(--sp-3); text-wrap: balance; }
218h2 { font-size: var(--fs-4); margin: var(--sp-6) 0 var(--sp-3); }
219h3 { font-size: var(--fs-3); margin: var(--sp-5) 0 var(--sp-2); }
220p { margin: 0 0 var(--sp-3); }
221a { color: var(--link); text-decoration: none; }
222a:hover { text-decoration: underline; }
223/* a link inside running text is told apart by its underline: link and
224 muted text are 1.07:1 apart in dark, and colour alone is not a cue
225 (#232). Navigation, chips and buttons keep position as their cue. */
226p a, .syscomment a { text-decoration: underline; }
227/* a title or a path is the whole line: position is the cue */
228p a.button, p a.btn, p a.chip, .repotitle a, p.title a, .pathbar a, .pager a { text-decoration: none; }
229/* where a link shares its line with other text the underline is the cue
230 again, path bar or not: a crumb beside the file name, a heading that
231 names an owner, an empty-state note (#226) */
232.crumbs a, h1 a, li.empty a { text-decoration: underline; }
233a.xref { color: var(--link); text-decoration: none; }
234
235code, pre, .mono, .code, td.mode, td.size {
236 font-family: var(--mono);
237 font-size: var(--fs-1);
238}
239.mono { overflow-wrap: anywhere; }
240
241/* ---- focus: one authored ring, so keyboard position is never the
242 browser's guess ---- */
243:focus-visible {
244 outline: 2px solid var(--focus);
245 outline-offset: 2px;
246 border-radius: 1px;
247}
248/* the rail is black in both schemes and --focus is a dark blue in the
249 light one — a ring nobody could see there */
250.rail :focus-visible { outline-color: var(--shell-mark); }
251
252/* visually hidden, still read aloud */
253.vh {
254 position: absolute;
255 width: 1px; height: 1px;
256 margin: -1px; padding: 0; border: 0;
257 clip-path: inset(50%);
258 overflow: hidden;
259 white-space: nowrap;
260}
261
262/* ---- skip link: the rail runs ahead of the content in source order ---- */
263a.skip {
264 position: absolute;
265 left: var(--sp-3); top: -3rem;
266 z-index: 50;
267 display: flex;
268 align-items: center;
269 min-height: var(--rail-hit);
270 background: var(--fill);
271 color: var(--fill-fg);
272 padding: var(--sp-2) var(--sp-4);
273 font-weight: 600;
274}
275a.skip:focus { top: var(--sp-3); text-decoration: none; }
276
277/* ---- rail: one row of glyphs across the top, no labels ----
278 One strip the height of a hit target, at every width: fixed squares,
279 no wrapping and no scrolling. Every item is a square link carrying an
280 inline svg, its name in an aria-label and in a visually hidden span, so
281 the nav reads the same to a screen reader as the old text list did. */
282.rail {
283 height: 48px;
284 background: var(--shell-bg);
285 color: var(--shell-fg);
286 border-bottom: 1px solid var(--shell-line);
287 display: flex;
288 flex-direction: row;
289 align-items: center;
290 gap: var(--sp-1);
291 padding: 0 var(--sp-3);
292}
293a.brand {
294 display: inline-flex;
295 align-items: center;
296 justify-content: center;
297 gap: var(--sp-2);
298 flex: none;
299 height: 32px;
300 padding: 0 var(--sp-2);
301 border-radius: var(--r-ctl);
302 color: var(--shell-fg);
303 font-size: var(--fs-2);
304 font-weight: 600;
305 letter-spacing: -0.01em;
306}
307a.brand:hover { background: var(--shell-hover); text-decoration: none; }
308a.brand[aria-current="page"] { background: var(--shell-hover); }
309a.brand svg.mark { display: block; flex: none; width: var(--rail-mark); height: var(--rail-mark); }
310.brandname { display: inline; }
311@media (max-width: 44rem) {
312 .brandname { display: none; }
313}
314
315ul.raillist {
316 list-style: none;
317 margin: 0;
318 padding: 0;
319 display: flex;
320 align-items: center;
321 gap: var(--sp-1);
322 min-width: 0;
323}
324.railgap { flex: 1; }
325.railicon {
326 position: relative;
327 display: inline-flex;
328 align-items: center;
329 justify-content: center;
330 gap: 6px;
331 flex: none;
332 min-width: 32px;
333 height: 32px;
334 padding: 0 var(--sp-2);
335 border: 0;
336 border-radius: var(--r-ctl);
337 background: none;
338 color: var(--shell-fg);
339 font-size: var(--fs-2);
340 font-weight: 500;
341 cursor: pointer;
342}
343.railicon:hover { background: var(--shell-hover); text-decoration: none; }
344/* orange marks position along the bottom edge — the rail's only accent */
345.railicon[aria-current] {
346 background: var(--shell-hover);
347 box-shadow: inset 0 -2px 0 var(--shell-mark);
348}
349.raillabel { display: none; }
350@media (min-width: 64rem) {
351 .raillabel { display: inline; }
352}
353.railcaret {
354 font-size: 10px;
355 color: var(--shell-muted);
356 line-height: 1;
357}
358.raildrop-trigger { list-style: none; }
359.railpins-item { display: list-item; }
360@media (max-width: 44rem) {
361 .railpins-item { display: none; }
362}
363.count {
364 font-size: var(--fs-0);
365 font-weight: 600;
366 letter-spacing: 0;
367 background: var(--shell-mark);
368 color: var(--shell-bg);
369 padding: 0 5px;
370 border-radius: var(--r-ctl);
371 margin-left: auto;
372}
373/* the unread count is a badge on the bell's corner, not a trailing number */
374.railicon .count {
375 position: absolute;
376 top: 0;
377 right: 0;
378 margin: 0;
379 padding: 0 4px;
380 line-height: 1.35;
381}
382.railfoot {
383 flex: none;
384 display: flex;
385 align-items: center;
386 gap: var(--sp-1);
387 min-width: 0;
388}
389.railfoot a { color: var(--shell-fg); }
390.railfoot form { margin: 0; }
391a.railuser {
392 display: flex;
393 align-items: center;
394 justify-content: center;
395 flex: none;
396 width: var(--rail-hit);
397 height: var(--rail-strip-h);
398}
399a.railuser:hover { text-decoration: none; }
400/* the phone rail's overflow: every square .railopt hides, and log out,
401 as a labelled list under the rail. Shown only below 34rem. */
402.railmore { display: none; position: relative; }
403.railmore > summary { list-style: none; cursor: pointer; }
404.railmore > summary::-webkit-details-marker { display: none; }
405.railmore[open] > summary { background: var(--shell-hover); }
406.raildrop {
407 position: absolute;
408 top: 100%;
409 right: 0;
410 z-index: 20;
411 min-width: 12rem;
412 padding: var(--sp-1) 0;
413 background: var(--shell-bg);
414 border: 1px solid var(--shell-line);
415 border-radius: var(--r-card);
416 box-shadow: 0 6px 24px rgb(0 0 0 / 0.35);
417}
418.raildrop a, .raildrop button {
419 display: flex;
420 align-items: center;
421 /* a button's own default is centred; the rows read as one list */
422 justify-content: flex-start;
423 gap: var(--sp-3);
424 width: 100%;
425 min-height: var(--rail-hit);
426 padding: 0 var(--sp-4);
427 border: 0;
428 background: none;
429 font: inherit;
430 font-size: var(--fs-2);
431 text-align: left;
432 color: var(--shell-fg);
433 cursor: pointer;
434}
435.raildrop a:hover, .raildrop button:hover { background: var(--shell-hover); text-decoration: none; }
436.raildrop form { margin: 0; }
437.raildrop svg { flex: none; }
438a.railuser .avatar { width: var(--rail-mark); height: var(--rail-mark); }
439.avatar {
440 display: inline-grid;
441 place-items: center;
442 width: 22px; height: 22px;
443 flex: none;
444 border-radius: 50%;
445 background: var(--fill);
446 color: var(--fill-fg);
447 font-size: var(--fs-0);
448 font-weight: 600;
449}
450
451/* ---- shell: the rail above, then the pane, which fills the rest of the
452 viewport so the footer sits at the bottom of a short page ---- */
453.shell { display: flex; flex-direction: column; min-height: 100vh; }
454.pane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
455main.content {
456 flex: 1;
457 width: 100%;
458 padding: var(--sp-5) var(--sp-6) var(--sp-7);
459}
460/* the container is the default width and what `wide` names; reading and
461 bounded follow, so equal specificity gives them the cascade */
462main.content, main.wide, footer { max-width: calc(var(--container) + 2 * var(--sp-6)); margin: 0 auto; }
463main.reading { max-width: calc(72rem + 2 * var(--sp-6)); margin: 0 auto; }
464main.bounded { max-width: calc(48rem + 2 * var(--sp-6)); margin: 0 auto; }
465footer {
466 width: 100%;
467 padding: var(--sp-4) var(--sp-6);
468 border-top: 1px solid var(--faint);
469 color: var(--muted);
470 font-size: var(--fs-1);
471}
472footer p { margin: 0; }
473footer a { color: var(--muted); text-decoration: underline; }
474footer a:hover { color: var(--link); }
475
476/* ---- repository header ---- */
477.repohead {
478 padding: var(--sp-5) 0 0;
479 border-bottom: 1px solid var(--faint);
480 background: var(--canvas);
481}
482.repohead .wrap { max-width: calc(var(--container) + 2 * var(--sp-6)); margin: 0 auto; padding: 0 var(--sp-6); }
483.identity { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
484.grow { flex: 1; }
485/* h1 on the repo home, p elsewhere so each page keeps its own h1 — but
486 identical in size, because the tabs sit below and navigation must not
487 move when you use it */
488.repotitle {
489 margin: 0;
490 font-size: var(--fs-4);
491 font-weight: 600;
492 line-height: 1.25;
493}
494.repotitle a { color: var(--fg); }
495.repotitle a.owner { color: var(--muted); font-weight: 400; }
496.repotitle a:hover { color: var(--link); text-decoration: none; }
497.repotitle .sep { color: var(--muted); margin: 0 2px; font-weight: 400; }
498.repodesc {
499 margin: 0 0 0 var(--sp-2);
500 color: var(--muted);
501 font-size: var(--fs-2);
502 display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
503 min-width: 0;
504}
505.repodesc a.site { color: var(--muted); }
506.repodesc a.site:hover { color: var(--link); }
507.repometa { margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--fs-1); }
508
509nav.tabs {
510 display: flex;
511 gap: var(--sp-1);
512 margin-top: var(--sp-3);
513 margin-bottom: var(--sp-4);
514 overflow-x: auto;
515 /* with overflow-y left visible the browser computes it to auto, which
516 is a vertical drag on touch; the strip scrolls sideways only */
517 overflow-y: hidden;
518 scrollbar-width: none;
519}
520nav.tabs::-webkit-scrollbar { display: none; }
521nav.tabs a {
522 display: inline-flex;
523 align-items: center;
524 gap: var(--sp-1);
525 padding: var(--sp-2) var(--sp-3) 10px;
526 color: var(--muted);
527 font-size: var(--fs-2);
528 white-space: nowrap;
529 border-bottom: 2px solid transparent;
530 margin-bottom: -1px;
531}
532nav.tabs a:hover { color: var(--fg); text-decoration: none; }
533nav.tabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--mark); }
534/* the profile strip draws its unlit tabs, so the underline reads as the
535 control rather than appearing only on the one you are already on.
536 --line, not --faint: the track has to be visible to be a track, and
537 at 2px --faint disappears into the canvas in both schemes. */
538nav.tabs.profiletabs a { border-bottom-color: var(--line); }
539nav.tabs.profiletabs a[aria-current] { border-bottom-color: var(--mark); }
540/* a count in a tab is plain metadata, not a badge */
541nav.tabs a i { font-style: normal; color: var(--muted); margin-left: 4px; }
542
543/* ---- page heads ---- */
544.pagehead, .listhead, .headrow {
545 display: flex;
546 align-items: center;
547 gap: var(--sp-3);
548 flex-wrap: wrap;
549 margin-bottom: var(--sp-5);
550}
551/* every child sheds its block margins, or a p.meta beside an h1 centres
552 its text inside a box the margins made taller than the heading's */
553.pagehead h1, .listhead h1, .headrow h1, .listhead h2, .headrow h2 { margin: 0; }
554.pagehead > p, .listhead > p, .headrow > p { margin: 0; }
555.pagehead .grow, .listhead .spacer, .headrow .spacer { flex: 1; }
556.issuetitle { margin: 0 0 var(--sp-2); font-size: var(--fs-5); text-wrap: balance; }
557.issuenumber { color: var(--muted); font-weight: 400; }
558.issuemeta { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-4); }
559.commithead p { margin: var(--sp-1) 0; }
560.commithead h2 { margin-top: 0; margin-bottom: var(--sp-1); }
561
562nav.filters { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }
563nav.filters a {
564 display: inline-flex;
565 align-items: center;
566 height: 32px;
567 padding: 0 var(--sp-3);
568 background: var(--canvas);
569 border: 1px solid var(--line);
570 border-radius: var(--r-ctl);
571 color: var(--fg);
572 font-size: var(--fs-2);
573 font-weight: 500;
574}
575nav.filters a:hover { background: var(--hover); text-decoration: none; }
576nav.filters a.active { background: var(--surface); border-color: var(--link); color: var(--link); }
577
578form.searchform, form.logfilter, form.compareform {
579 display: flex;
580 align-items: center;
581 gap: var(--sp-2);
582 flex-wrap: wrap;
583 margin: 0 0 var(--sp-4);
584}
585form.searchform input[type="search"], form.searchform input[type="text"], form.logfilter input { flex: 1; min-width: 12rem; max-width: 32rem; }
586form.searchform.compact { margin: 0; }
587form.searchform.compact input[type="search"], form.searchform.compact input[type="text"] { min-width: 18rem; }
588form.compareform label { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; }
589
590/* ---- buttons: one family, 32px tall, so a row of them lines up ---- */
591button, .button {
592 display: inline-flex;
593 align-items: center;
594 justify-content: center;
595 gap: 6px;
596 height: 32px;
597 padding: 0 var(--sp-3);
598 font: inherit;
599 font-size: var(--fs-2);
600 font-weight: 500;
601 border: 1px solid transparent;
602 border-radius: var(--r-ctl);
603 cursor: pointer;
604 text-decoration: none;
605 white-space: nowrap;
606 /* a bare <button> is the primary action of its form group */
607 background: var(--fill);
608 color: var(--fill-fg);
609}
610button:hover, .button.primary:hover { filter: brightness(1.12); text-decoration: none; }
611button.btn, .button.btn {
612 background: var(--canvas);
613 color: var(--fg);
614 border-color: var(--line);
615 filter: none;
616}
617button.btn:hover, .button.btn:hover { background: var(--hover); filter: none; text-decoration: none; }
618button.btn[aria-pressed="true"] { background: var(--surface); color: var(--link); border-color: var(--link); }
619button.linklike {
620 background: none;
621 border: 0;
622 padding: 0;
623 height: auto;
624 color: var(--link);
625 font-weight: 400;
626 filter: none;
627}
628button.linklike:hover { text-decoration: underline; filter: none; }
629button.danger, .button.danger {
630 background: var(--canvas);
631 color: var(--bad);
632 border-color: var(--bad);
633 filter: none;
634}
635/* --canvas, not --fill-fg: white on the dark scheme's --bad is 2.3:1 */
636button.danger:hover, .button.danger:hover { background: var(--bad); color: var(--canvas); filter: none; }
637button:disabled { opacity: 0.55; cursor: default; filter: none; }
638.btngroup { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }
639/* a destructive button holds the way out at arm's length: 8px puts the
640 cancel's underline against the button's border */
641.btngroup:has(> button.danger) { gap: var(--sp-4); }
642form.inline { display: inline; }
643.act { text-align: right; }
644
645/* ---- forms ---- */
646/* not button: it sets its own colour above, and this rule comes later at
647 the same specificity */
648input, textarea, select { font: inherit; color: inherit; }
649input[type="text"], input[type="search"], input[type="email"],
650input[type="password"], input[type="number"], input:not([type]), textarea, select {
651 background: var(--inset);
652 color: var(--fg);
653 border: 1px solid var(--line);
654 border-radius: var(--r-ctl);
655 padding: 0 10px;
656 height: 32px;
657 font-size: var(--fs-2);
658 line-height: 1.4;
659}
660textarea {
661 width: 100%;
662 height: auto;
663 padding: 8px 10px;
664 resize: vertical;
665 line-height: 1.5;
666}
667textarea[name="content"] { font-family: var(--mono); font-size: var(--fs-1); }
668select {
669 appearance: none;
670 padding-right: 1.9rem;
671 background-image: var(--chev);
672 background-repeat: no-repeat;
673 background-position: right 0.6rem center;
674 background-size: 0.62rem;
675 cursor: pointer;
676}
677input:hover, textarea:hover, select:hover { border-color: var(--muted); }
678input[type="radio"] { accent-color: var(--fill); }
679label { display: block; font-weight: 500; font-size: var(--fs-2); margin-bottom: 4px; }
680label:has(> input[type="radio"]), label:has(> input[type="checkbox"]),
681label:has(> select) { display: inline-flex; align-items: center; gap: var(--sp-2); }
682.fieldname { display: block; font-size: var(--fs-2); font-weight: 500; }
683.hint { display: block; color: var(--muted); font-size: var(--fs-1); font-weight: 400; margin: 0 0 6px; }
684.field { margin-bottom: var(--sp-4); }
685.field input[type="text"], .field input[type="email"], .field select { width: 100%; }
686.check { display: flex; align-items: center; gap: var(--sp-2); font-weight: 400; }
687::placeholder { color: var(--muted); opacity: 1; }
688::selection { background: var(--fill); color: var(--fill-fg); }
689/* :user-invalid, not :invalid — a required field is invalid the moment
690 the page loads, and colouring it red before anyone has typed is a
691 scolding, not a hint */
692input:user-invalid, textarea:user-invalid { border-color: var(--bad); }
693input[name="confirm"] { width: auto; margin-right: var(--sp-2); }
694
695/* A radio keeps the native control: a circle takes one answer, a square
696 takes any number, and that shape survives greyscale and colour
697 blindness. The checkbox is drawn so it matches the rest of the family. */
698input[type="checkbox"] {
699 appearance: none;
700 flex: none;
701 width: 16px;
702 height: 16px;
703 margin: 0;
704 /* an empty box has nothing but its border to announce it */
705 border: 1px solid var(--muted);
706 border-radius: var(--r-ctl);
707 background: var(--inset);
708 cursor: pointer;
709}
710input[type="checkbox"]:not(:checked):hover { border-color: var(--fg); }
711input[type="checkbox"]:checked {
712 background: var(--fill);
713 border-color: var(--fill);
714 /* the mark sits on the blue ground, so it is white in both schemes */
715 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");
716 background-repeat: no-repeat;
717 background-position: center;
718 background-size: 11px;
719}
720
721/* a segmented control for a small, mutually exclusive set: real radios
722 underneath, so arrow keys and screen readers behave as they always did */
723fieldset.segmented { border: 0; margin: 0 0 var(--sp-4); padding: 0; }
724fieldset.segmented legend { padding: 0; margin-bottom: var(--sp-2); color: var(--muted); font-size: var(--fs-2); }
725fieldset.segmented .options { display: inline-flex; }
726fieldset.segmented label { gap: 0; margin: 0; }
727fieldset.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
728fieldset.segmented span {
729 display: flex;
730 align-items: center;
731 height: 32px;
732 padding: 0 var(--sp-4);
733 border: 1px solid var(--line);
734 font-size: var(--fs-2);
735 cursor: pointer;
736}
737fieldset.segmented label + label span { border-left: 0; }
738fieldset.segmented label:first-child span { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
739fieldset.segmented label:last-child span { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
740fieldset.segmented span:hover { border-color: var(--muted); }
741fieldset.segmented input:checked + span {
742 background: var(--fill);
743 border-color: var(--fill);
744 color: var(--fill-fg);
745 font-weight: 600;
746}
747fieldset.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
748
749p.branchpick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
750p.branchpick label { color: var(--muted); font-size: var(--fs-2); margin: 0; }
751p.branchpick select { flex: 1 1 12rem; }
752
753form.signupform, form.editform { max-width: 40rem; }
754form.signupform label, form.editform label { margin-bottom: 4px; }
755.editform textarea { width: 100%; }
756.editform input[name="message"] { width: 100%; }
757
758/* A previewed draft, above the textarea it came from. The orange edge is
759 "where you are and what wants you": this is not saved yet. */
760.preview {
761 margin: var(--sp-4) 0;
762 max-width: 48rem;
763 background: var(--surface);
764 border: 1px solid var(--line);
765 border-left: 3px solid var(--mark);
766 border-radius: var(--r-card);
767}
768.preview > .previewmark {
769 margin: 0;
770 padding: var(--sp-2) var(--sp-4);
771 border-bottom: 1px solid var(--line);
772 color: var(--warn);
773 font-size: var(--fs-1);
774}
775.preview > .rendered { padding: var(--sp-3) var(--sp-4); }
776.preview > .rendered > :first-child { margin-top: 0; }
777.preview > .rendered > :last-child { margin-bottom: 0; }
778.preview > .rendered:empty::before { content: "nothing to preview"; color: var(--muted); }
779
780form.commentform { margin: var(--sp-4) 0; max-width: 48rem; }
781form.commentform p:last-child { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: 0; }
782
783details.editbox { margin: var(--sp-2) 0; max-width: 48rem; }
784details.editbox > summary {
785 display: inline-flex;
786 align-items: center;
787 height: 32px;
788 padding: 0 var(--sp-3);
789 background: var(--canvas);
790 border: 1px solid var(--line);
791 border-radius: var(--r-ctl);
792 color: var(--fg);
793 font-size: var(--fs-2);
794 font-weight: 500;
795 cursor: pointer;
796 list-style: none;
797}
798details.editbox > summary::-webkit-details-marker { display: none; }
799details.editbox > summary:hover { background: var(--hover); }
800details.editbox[open] > summary { margin-bottom: var(--sp-2); }
801details.editbox input[type="text"] { width: 100%; }
802
803/* ---- settings: one row per control, label then input then its own
804 button. The name stays setform because the templates carry it.
805 The label column takes the slack, so the control and the button ride
806 the right edge: a checkbox, a number and a full-width text input all
807 end on the same rule instead of the narrow ones stranding left. Its
808 14rem floor is what keeps a hint from wrapping a word to a line once
809 the control column claims its 28rem. ---- */
810form.setform {
811 display: grid;
812 grid-template-columns: minmax(14rem, 1fr) minmax(0, 28rem) auto;
813 gap: var(--sp-4);
814 align-items: start;
815 padding: var(--sp-3) 0;
816 border-bottom: 1px solid var(--faint);
817}
818form.setform label { margin-top: 6px; }
819form.setform .hint { margin: 2px 0 0; }
820form.setform input[type="text"], form.setform input[type="password"], form.setform select { width: 100%; }
821/* a control narrower than its column is pushed to the column's end,
822 which is where a full-width input's own right edge lands */
823form.setform .check { justify-content: flex-end; }
824form.setform .num { text-align: right; }
825form.setform .num input[type="number"] { width: auto; }
826/* the third column takes the leftover width; the button keeps its own */
827form.setform > button, form.setform > .btngroup { justify-self: start; }
828form.setform.stack { grid-template-columns: 1fr; }
829form.setform.stack textarea, form.setform.stack select, form.setform.stack input[type="text"], form.setform.stack input[type="password"] { width: 100%; max-width: 48rem; }
830ul.protlist { list-style: none; margin: var(--sp-2) 0; padding: 0; }
831ul.protlist li {
832 display: flex;
833 align-items: center;
834 gap: var(--sp-3);
835 padding: var(--sp-2) 0;
836 border-bottom: 1px solid var(--faint);
837}
838ul.protlist li:last-child { border-bottom: 0; }
839ul.protlist form { margin-left: auto; }
840ul.plain { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
841ul.plain li { padding: var(--sp-1) 0; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
842/* the email list: address and badges read left, the controls sit right,
843 so the buttons line up down the list however long an address is */
844ul.plain li > form:first-of-type { margin-left: auto; }
845
846/* ---- messages: .error and .notice are one family. The names stay
847 because e2e tests match class="error". ---- */
848.error, .notice {
849 border-left: 3px solid var(--bad);
850 background: color-mix(in srgb, var(--bad) 6%, transparent);
851 color: var(--fg);
852 border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
853 padding: var(--sp-2) var(--sp-3);
854 margin: 0 0 var(--sp-4);
855 font-size: var(--fs-2);
856}
857.notice { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 6%, transparent); }
858.empty-note, .none, .empty, li.empty, td.empty { color: var(--muted); }
859
860/* ---- containers: calm hairline borders and clean surfaces ---- */
861.card, ul.list, ul.loglist, ul.repolist, ul.issuelist,
862ul.milestonelist, .readme, .code, article.release, .blame, .teambody {
863 background: var(--canvas);
864 border: 1px solid var(--faint);
865 border-radius: var(--r-card);
866 overflow: hidden;
867}
868.cardhead {
869 display: flex;
870 align-items: center;
871 gap: var(--sp-3);
872 padding: var(--sp-2) var(--sp-4);
873 background: var(--surface);
874 border-bottom: 1px solid var(--faint);
875 font-size: var(--fs-1);
876 color: var(--muted);
877}
878.cardhead b { color: var(--fg); font-weight: 500; }
879.cardbody { padding: var(--sp-4) var(--sp-5); }
880ul.list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
881ul.list li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
882ul.list li:last-child { border-bottom: 0; }
883ul.list li:hover { background: var(--hover); }
884
885table { border-collapse: collapse; width: 100%; font-size: var(--fs-2); }
886th {
887 text-align: left;
888 font-weight: 500;
889 font-size: var(--fs-1);
890 color: var(--muted);
891 padding: 6px var(--sp-4);
892 border-bottom: 1px solid var(--line);
893}
894td { padding: 7px var(--sp-4); border-bottom: 1px solid var(--faint); vertical-align: top; }
895tr:last-child td { border-bottom: 0; }
896tbody tr:hover td { background: var(--hover); }
897/* every header row a template writes, by the class it or its table
898 carries: TestHeaderRowsAreLeftAligned reads these selectors */
899tr.cols th, table.tree th, table.refs th, table.keys th, table.assets th { text-align: left; }
900tr.cols th { background: var(--canvas); }
901/* right-aligned columns keep their header with their values */
902tr.cols th.age, tr.cols th.size { text-align: right; }
903/* wide listings scroll inside their own box; the page never does. The
904 wrapper is the scroller only — the table inside carries the card. */
905.tablewrap { overflow-x: auto; max-width: 100%; }
906
907table.tree, table.refs {
908 background: var(--canvas);
909 border: 1px solid var(--faint);
910 border-radius: var(--r-card);
911 /* collapsed borders defeat a radius on the table itself */
912 border-collapse: separate;
913 border-spacing: 0;
914 overflow: hidden;
915 margin-bottom: var(--sp-4);
916}
917table.tree tr:last-child td, table.refs tr:last-child td { border-bottom: 0; }
918table.tree tr:hover td, table.refs tr:hover td { background: var(--hover); }
919td.name a { color: var(--fg); }
920td.name a:hover { color: var(--link); }
921table.tree td.name { width: 25%; white-space: nowrap; }
922table.tree td.name.dir a { color: var(--link); }
923/* the glyph stays muted in both rows: it is a shape cue, and colour here
924 goes on carrying what it already carries */
925table.tree td.name svg { color: var(--muted); vertical-align: -0.125em; margin-right: var(--sp-2); }
926table.tree th.lastcommit, table.tree td.lastcommit { width: 55%; }
927table.tree td.lastcommit {
928 max-width: 0;
929 overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
930}
931table.tree td.lastcommit a {
932 color: var(--muted);
933 display: block;
934 overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
935}
936table.tree td.lastcommit a:hover { color: var(--link); }
937table.tree th.age, table.tree td.age { width: 20%; }
938td.age, th.age { text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
939td.size, td.mode { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
940table.tree th.size, table.tree td.size { text-align: right; }
941table.refs td.name { width: 100%; }
942table.refs td.sha, td.sha { color: var(--muted); }
943
944/* these tables sit flush with the page text: no outer border, and the
945 header row drops the ground and the left padding */
946table.keys, table.assets { background: none; border: 0; border-radius: 0; }
947table.keys th, table.assets th, table.keys tr.cols th { background: transparent; padding-left: 0; }
948table.keys td { padding-left: 0; }
949table.keys td.act, table.assets td.size { text-align: right; }
950/* a fingerprint or an account row is read across, not down: the cells
951 keep one line each and .tablewrap scrolls what does not fit */
952table.keys.nowrap th, table.keys.nowrap td { white-space: nowrap; }
953/* The account list types a username to confirm, which is longer than
954 the key prefixes the confirm field is sized for elsewhere. 14rem, not
955 11rem, because "type <name> to confirm" was cut mid-word for a name of
956 ordinary length; a long enough name still truncates and the field's
957 aria-label carries the instruction in full either way.
958
959 The cell is two fixed slots, each right-aligned. A form cannot span
960 table cells, so one column per control — which would let the table
961 align them — is out without form="" plumbing, and the forms hold
962 different numbers of controls: the enable form and the disabled
963 row's Promote have no confirm field. Sizing the slot instead
964 of the form is what puts every button in one column and every field
965 in another; right-aligning the cell alone left the disabled row's
966 Promote where other rows keep their field. A slot is a field, a gap
967 and a button wide, so a form that is only a button still ends on the
968 same rule. No element stands in for the controls a row lacks. */
969table.accounts { --acct-field: 14rem; --acct-btn: 6rem; }
970table.accounts td.acts { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-2); }
971table.accounts input[name="confirm"] { width: var(--acct-field); }
972table.accounts form.actions {
973 flex: none;
974 display: inline-flex;
975 /* the generic form.actions wraps and grows its button to fill; both
976 have to go, or the slot takes the button to a second line and the
977 field sits above it */
978 flex-wrap: nowrap;
979 justify-content: flex-end;
980 align-items: center;
981 gap: var(--sp-2);
982 width: calc(var(--acct-field) + var(--acct-btn) + var(--sp-2));
983 margin: 0;
984}
985/* a set width, not a minimum: it makes the slot's arithmetic exact, and
986 6rem clears the widest of Promote, Demote, Disable and Enable */
987table.accounts form.actions button { flex: none; width: var(--acct-btn); justify-content: center; }
988table.assets td.name { width: 100%; font-family: var(--mono); font-size: var(--fs-1); }
989table.assets { margin-top: var(--sp-2); }
990table.assets td.size, table.assets td.sha, table.assets td.act { white-space: nowrap; }
991table.assets td.act form { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
992
993/* the tip commit is the first row of the file table */
994tr.tipbar td {
995 background: var(--surface);
996 padding: var(--sp-3) var(--sp-4);
997 border-bottom: 1px solid var(--line);
998 max-width: 0;
999}
1000.tipbar .tip {
1001 display: flex;
1002 align-items: center;
1003 gap: var(--sp-2);
1004 flex-wrap: wrap;
1005 min-width: 0;
1006 font-size: var(--fs-2);
1007}
1008.tipbar .who { font-weight: 600; }
1009.tipbar .subject { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1010.tipbar .subject:hover { color: var(--link); }
1011.tipbar .spacer { flex: 1; }
1012.tipbar .age { color: var(--muted); white-space: nowrap; }
1013
1014.readme { margin: var(--sp-5) 0; }
1015.readme .cardbody { max-width: 78ch; }
1016/* the overview README caps as a card, so prose and code share an edge */
1017.overview .readme { max-width: 88ch; }
1018/* until every card wraps its body in .cardbody, the rendered block is
1019 the body */
1020.readme > .rendered { padding: var(--sp-4) var(--sp-5); }
1021.code { background: var(--inset); padding: var(--sp-3) var(--sp-4); overflow-x: auto; }
1022.code pre { margin: 0; background: transparent !important; border: 0; padding: 0; }
1023pre.bigcode, .bigcode {
1024 font-family: var(--mono);
1025 /* the 404 numeral is a picture of a number, not body type */
1026 font-size: 4rem;
1027 color: var(--faint);
1028 -webkit-text-stroke: 1px var(--line);
1029 margin: 0;
1030 line-height: 1;
1031}
1032.notfound { text-align: center; padding: var(--sp-6) 0; }
1033.notfound h1 { margin-top: var(--sp-3); }
1034
1035ul.loglist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1036ul.loglist li {
1037 display: flex;
1038 align-items: baseline;
1039 gap: var(--sp-3);
1040 padding: var(--sp-3) var(--sp-4);
1041 border-bottom: 1px solid var(--faint);
1042}
1043ul.loglist li:last-child { border-bottom: 0; }
1044ul.loglist li:hover { background: var(--hover); }
1045ul.loglist p { margin: 0; }
1046ul.loglist .commitmain { flex: 1 1 auto; min-width: 0; }
1047ul.loglist .subject a { color: var(--fg); font-weight: 500; }
1048ul.loglist .subject a:hover { color: var(--link); }
1049ul.loglist .commitside { flex: none; display: flex; gap: var(--sp-2); align-items: center; white-space: nowrap; }
1050
1051ul.loglist.rows li { align-items: center; padding: var(--sp-2) var(--sp-4); }
1052ul.loglist.rows .commitmain { display: flex; align-items: baseline; gap: var(--sp-3); min-width: 0; }
1053ul.loglist.rows .meta { flex: none; color: var(--muted); font-size: var(--fs-1); white-space: nowrap; }
1054
1055ul.repolist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; }
1056ul.repolist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
1057ul.repolist li:last-child { border-bottom: 0; }
1058ul.repolist li:hover { background: var(--hover); }
1059ul.repolist p { margin: 0; }
1060ul.repolist .reponame { font-size: var(--fs-3); }
1061ul.repolist .reponame a { color: var(--fg); }
1062ul.repolist .reponame a strong { color: var(--link); font-weight: 600; }
1063ul.repolist .reponame .sep { color: var(--muted); margin: 0 2px; }
1064ul.repolist .desc { margin-top: 2px; }
1065ul.repolist .topics, ul.repolist .meta { margin-top: var(--sp-1); }
1066
1067/* two-row repo list layout: name + chips left and branch/license/updated
1068 right on row 1; full readable description and wrapping topic pills on
1069 row 2 so descriptions are never crushed by long tag lists. */
1070ul.repolist.rows li {
1071 display: grid;
1072 grid-template-columns: minmax(0, 1fr) auto;
1073 gap: var(--sp-1) var(--sp-4);
1074 align-items: baseline;
1075 padding: var(--sp-3) var(--sp-4);
1076}
1077ul.repolist.rows .reponame {
1078 grid-column: 1;
1079 grid-row: 1;
1080 display: flex;
1081 align-items: center;
1082 gap: var(--sp-2);
1083 flex-wrap: wrap;
1084 font-size: var(--fs-3);
1085}
1086ul.repolist.rows .reponame .name { font-size: var(--fs-3); }
1087ul.repolist.rows .labels { display: inline-flex; gap: var(--sp-1); }
1088ul.repolist.rows .meta {
1089 grid-column: 2;
1090 grid-row: 1;
1091 display: inline-flex;
1092 align-items: center;
1093 gap: var(--sp-3);
1094 white-space: nowrap;
1095 font-size: var(--fs-1);
1096 color: var(--muted);
1097 margin: 0;
1098}
1099ul.repolist.rows .desc {
1100 grid-column: 1 / -1;
1101 color: var(--muted);
1102 font-size: var(--fs-2);
1103 margin: 2px 0 0;
1104 line-height: 1.45;
1105}
1106ul.repolist.rows .topics {
1107 grid-column: 1 / -1;
1108 display: flex;
1109 flex-wrap: wrap;
1110 gap: var(--sp-1);
1111 margin: var(--sp-1) 0 0;
1112}
1113ul.repolist.rows .branch { display: inline-flex; align-items: center; gap: 4px; }
1114ul.repolist.rows .license { font-family: var(--mono); font-size: var(--fs-0); }
1115ul.repolist.rows .updated { font-variant-numeric: tabular-nums; }
1116@media (max-width: 44rem) {
1117 ul.repolist.rows li { grid-template-columns: 1fr; }
1118 ul.repolist.rows .meta { grid-column: 1; grid-row: auto; flex-wrap: wrap; margin-top: var(--sp-1); }
1119}
1120ul.repolist.rows li.empty { display: block; }
1121
1122/* pinned repos: a compact wrap of names, no description or meta */
1123ul.pinlist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
1124ul.pinlist li {
1125 background: var(--surface);
1126 border: 1px solid var(--line);
1127 border-radius: var(--r-ctl);
1128 padding: var(--sp-1) var(--sp-3);
1129}
1130ul.pinlist li:hover { background: var(--hover); }
1131ul.pinlist li a { color: var(--fg); }
1132ul.pinlist li a:hover { color: var(--link); text-decoration: none; }
1133ul.pinlist .sep { color: var(--muted); margin: 0 2px; }
1134
1135ul.issuelist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1136ul.issuelist li {
1137 display: flex;
1138 align-items: baseline;
1139 gap: var(--sp-3);
1140 padding: var(--sp-3) var(--sp-4);
1141 border-bottom: 1px solid var(--faint);
1142}
1143ul.issuelist li:last-child { border-bottom: 0; }
1144ul.issuelist li:hover { background: var(--hover); }
1145ul.issuelist li.empty { display: block; }
1146ul.issuelist p { margin: 0; }
1147ul.issuelist .issuemain { flex: 1 1 auto; min-width: 0; }
1148ul.issuelist .issueside { display: flex; gap: var(--sp-2); align-items: center; flex: none; }
1149ul.issuelist .title a { color: var(--fg); font-weight: 500; }
1150ul.issuelist .title a:hover { color: var(--link); }
1151
1152/* one-line rows: title, labels, then the meta pushed right. Above 64rem
1153 a list is a table, not prose (desktop layout spec). */
1154ul.issuelist.rows li { align-items: center; padding: var(--sp-2) var(--sp-4); }
1155ul.issuelist.rows .issuemain { display: flex; align-items: baseline; gap: var(--sp-3); min-width: 0; }
1156ul.issuelist.rows .title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1157ul.issuelist.rows .title .chip { margin-left: var(--sp-1); }
1158ul.issuelist.rows .meta { flex: none; color: var(--muted); font-size: var(--fs-1); white-space: nowrap; }
1159ul.issuelist.rows .meta .repo { color: var(--fg); }
1160
1161ul.milestonelist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1162ul.milestonelist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
1163ul.milestonelist li:last-child { border-bottom: 0; }
1164ul.milestonelist li:hover { background: var(--hover); }
1165ul.milestonelist p { margin: 0; }
1166ul.milestonelist .msmain { min-width: 0; }
1167ul.milestonelist .title { font-weight: 500; }
1168.progress {
1169 height: 6px;
1170 max-width: 24rem;
1171 margin-top: var(--sp-2);
1172 background: var(--faint);
1173 border-radius: var(--r-ctl);
1174 overflow: hidden;
1175}
1176.progress .bar { height: 100%; background: var(--ok); }
1177
1178article.release { padding: var(--sp-4); margin: var(--sp-4) 0; }
1179.releasehead { background: none; border: 0; padding: 0; }
1180.releasehead h2 { margin: 0 0 var(--sp-1); font-size: var(--fs-3); }
1181.releasehead .meta { margin: 0 0 var(--sp-2); }
1182
1183ul.matchlist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1184ul.matchlist li { margin-bottom: var(--sp-3); }
1185.matchpath { font-family: var(--mono); font-size: var(--fs-1); }
1186/* a name in highlighted source that links to its definition keeps its
1187 token colour; the dotted underline is what marks it as a link */
1188.chroma a.sym { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
1189.chroma a.sym:hover { text-decoration-style: solid; }
1190details.symlist { margin: 0 0 var(--sp-3); font-size: var(--fs-1); }
1191details.symlist summary { cursor: pointer; color: var(--muted); }
1192details.symlist ul { list-style: none; margin: var(--sp-2) 0 0; padding: 0; columns: 16rem; }
1193details.symlist li { break-inside: avoid; padding: 2px 0; }
1194pre.matchline {
1195 background: var(--inset);
1196 border: 1px solid var(--line);
1197 border-radius: var(--r-card);
1198 padding: var(--sp-1) var(--sp-3);
1199 margin: var(--sp-1) 0 0;
1200 overflow-x: auto;
1201}
1202pre.matchline mark { background: color-mix(in srgb, var(--mark) 25%, transparent); color: inherit; border-radius: 2px; }
1203p.pager { margin-top: var(--sp-4); }
1204.snippetfile { margin-bottom: var(--sp-5); }
1205p.filefacts { color: var(--muted); font-size: var(--fs-1); margin: 0 0 var(--sp-3); }
1206pre.buildlog { max-height: 40rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
1207details.buildstep pre.buildlog { margin: 0; border: 0; border-radius: 0; }
1208details.buildstep summary code { overflow-wrap: anywhere; }
1209
1210/* ---- rendered prose ---- */
1211pre {
1212 background: var(--inset);
1213 border: 1px solid var(--line);
1214 border-radius: var(--r-card);
1215 padding: var(--sp-3) var(--sp-4);
1216 margin: 0 0 var(--sp-4);
1217 overflow-x: auto;
1218 font-size: var(--fs-2);
1219 line-height: 1.6;
1220}
1221code {
1222 background: var(--inset);
1223 border: 1px solid var(--faint);
1224 border-radius: var(--r-ctl);
1225 padding: 0 0.3em;
1226}
1227pre code { background: none; border: 0; padding: 0; font-size: inherit; }
1228code.fullsha { color: var(--muted); overflow-wrap: anywhere; }
1229pre.message {
1230 white-space: pre-wrap;
1231 overflow-wrap: anywhere;
1232}
1233.rendered { max-width: 100%; overflow-wrap: anywhere; }
1234.rendered a { text-decoration: underline; }
1235.prose, .rendered > p, .rendered > ul, .rendered > ol, .rendered > blockquote { max-width: 78ch; }
1236.rendered blockquote { border-left: 3px solid var(--line); margin-left: 0; padding-left: var(--sp-4); color: var(--muted); }
1237.rendered img { max-width: 100%; }
1238.rendered h1, .rendered h2 { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-1); }
1239.rendered table { border-collapse: collapse; margin: var(--sp-3) 0; display: block; max-width: 100%; overflow-x: auto; }
1240.rendered th, .rendered td {
1241 border: 1px solid var(--line);
1242 padding: var(--sp-1) var(--sp-3);
1243 text-align: left;
1244 overflow-wrap: normal; /* scroll the table, don't shatter words */
1245}
1246.rendered th { background: var(--surface); font-weight: 600; }
1247.rendered tr:last-child td { border-bottom: 1px solid var(--line); }
1248/* GFM task lists: the box sits in the line, sized to the prose */
1249.rendered li input[type="checkbox"] { width: 0.9em; height: 0.9em; margin: 0 0.35em 0 0; vertical-align: -0.05em; background-size: 0.7em; }
1250.rendered li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.2em; }
1251.blobimage { text-align: center; }
1252.blobimage img { max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
1253
1254/* ---- dashboard: pinned column, tiles and queues, feed ---- */
1255.dashgrid { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1256.dashgrid h1 { margin-top: 0; }
1257.dashgrid > aside { position: sticky; top: var(--sp-5); }
1258.dashgrid .dashmain h2 { margin-top: var(--sp-5); }
1259.dashgrid .dashmain .tiles + h2 { margin-top: 0; }
1260.colhead {
1261 margin: 0 0 var(--sp-2);
1262 font-size: var(--fs-0);
1263 font-weight: 500;
1264 letter-spacing: 0.08em;
1265 text-transform: uppercase;
1266 color: var(--muted);
1267}
1268.pins { list-style: none; margin: 0; padding: 0; font-size: var(--fs-2); }
1269.pins li { display: flex; align-items: center; gap: var(--sp-2); padding: 6px 0; border-bottom: 1px solid var(--faint); }
1270.pins li:last-child { border-bottom: 0; }
1271.pins a { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1272.pins a:hover { color: var(--link); }
1273.pins .owner { color: var(--muted); }
1274.pins .n { margin-left: auto; flex: none; display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-1); color: var(--muted); font-variant-numeric: tabular-nums; }
1275.pins .n b { font-weight: 600; color: var(--fg); }
1276.pins .n b.wants { color: var(--warn); }
1277.pins .dot { margin: 0; }
1278/* count tiles: the queues' sizes in one strip; a non-zero count is orange,
1279 what wants you */
1280.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); }
1281.tile {
1282 display: block;
1283 background: var(--surface);
1284 border: 1px solid var(--line);
1285 border-radius: var(--r-card);
1286 padding: var(--sp-3) var(--sp-4);
1287 color: var(--fg);
1288}
1289a.tile:hover { background: var(--hover); text-decoration: none; }
1290.tile b { display: block; font-size: var(--fs-5); font-weight: 600; line-height: 1.2; }
1291.tile.wants b { color: var(--warn); }
1292.tile span { font-size: var(--fs-1); color: var(--muted); }
1293.feedcol .feedline { font-size: var(--fs-2); margin-bottom: var(--sp-2); }
1294.feedcol .feedline .none { font-size: var(--fs-1); }
1295
1296/* ---- two-column: conversation and aside ---- */
1297.withaside { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1298.withaside .mainside { min-width: 0; }
1299aside.aside { font-size: var(--fs-2); }
1300.aside .grp { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }
1301.aside .grp:first-child { border-top: 0; padding-top: 0; }
1302.aside h2 {
1303 margin: 0 0 var(--sp-2);
1304 font-size: var(--fs-0);
1305 font-weight: 500;
1306 letter-spacing: 0.08em;
1307 text-transform: uppercase;
1308 color: var(--muted);
1309}
1310.aside .row { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--sp-1); flex-wrap: wrap; }
1311.aside .row:last-child { margin-bottom: 0; }
1312/* a row's second line: when it happened, under what it happened to */
1313.aside .row .sub { flex-basis: 100%; padding-left: 14px; color: var(--muted); font-size: var(--fs-1); }
1314.aside .row:has(.sub) { margin-bottom: var(--sp-2); }
1315.aside .none { color: var(--muted); }
1316.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--neutral); margin-right: 2px; vertical-align: middle; }
1317.dot.ok { background: var(--ok); }
1318.dot.bad { background: var(--bad); }
1319.dot.pend { background: var(--mark); }
1320.ok { color: var(--ok); }
1321.bad { color: var(--bad); }
1322form.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
1323form.actions button { flex: 1 1 auto; }
1324form.actions select, form.actions textarea { width: 100%; }
1325.feedline { margin-bottom: var(--sp-2); }
1326
1327/* ---- comments and threads ---- */
1328article.comment {
1329 max-width: 48rem;
1330 border: 1px solid var(--line);
1331 border-radius: var(--r-card);
1332 margin: var(--sp-4) 0;
1333 overflow: hidden;
1334}
1335article.comment .commenthead {
1336 display: flex;
1337 gap: var(--sp-2);
1338 flex-wrap: wrap;
1339 background: var(--surface);
1340 border-bottom: 1px solid var(--line);
1341 padding: var(--sp-2) var(--sp-4);
1342 margin: 0;
1343 font-size: var(--fs-1);
1344 color: var(--muted);
1345}
1346article.comment .commenthead b { color: var(--fg); font-weight: 500; }
1347article.comment .commenthead .when { color: var(--muted); }
1348article.comment .rendered { padding: var(--sp-3) var(--sp-4); }
1349article.comment .rendered > :first-child { margin-top: 0; }
1350article.comment .rendered > :last-child { margin-bottom: 0; }
1351a.authorlink { color: var(--fg); font-weight: 500; }
1352a.authorlink:hover { color: var(--link); }
1353
1354.syscomment {
1355 max-width: 48rem;
1356 color: var(--muted);
1357 font-size: var(--fs-1);
1358 margin: 0 0 var(--sp-4) var(--sp-3);
1359 padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
1360 border-left: 2px solid var(--faint);
1361}
1362.syscomment p { display: inline; margin: 0; }
1363
1364.thread {
1365 border: 1px solid var(--faint);
1366 border-left: 3px solid var(--link);
1367 border-radius: var(--r-ctl);
1368 padding: var(--sp-2) var(--sp-4);
1369 margin: var(--sp-2) 0 var(--sp-2) var(--sp-6);
1370}
1371.thread.resolved { border-left-color: var(--ok); opacity: 0.75; }
1372/* an unsubmitted comment is the viewer's own note, not the conversation */
1373.thread.pending { border-left-color: var(--neutral); border-left-style: dashed; }
1374.thread.stale { border-left-color: var(--warn); }
1375.thread.composing { border-left-color: var(--mark); }
1376.thread:target { outline: 2px solid var(--mark); outline-offset: 2px; }
1377.thread p.commenthead { font-size: var(--fs-2); margin: var(--sp-2) 0 0; }
1378.thread .when { color: var(--muted); }
1379.thread .rendered p { margin: var(--sp-1) 0; }
1380.thread .threadstate { color: var(--muted); font-size: var(--fs-1); margin: var(--sp-1) 0 0; }
1381.thread details.threadreply { margin: var(--sp-2) 0 0; }
1382.thread details.threadreply > summary { color: var(--link); font-size: var(--fs-1); cursor: pointer; }
1383.thread textarea { width: 100%; }
1384.thread.composing p, .thread details.threadreply p { margin: var(--sp-2) 0 0; }
1385form.threadact { margin: var(--sp-1) 0 0; padding: 0 var(--sp-3) var(--sp-2); }
1386.thread .suggestion { margin: var(--sp-2) 0 0; }
1387.thread .suggestion table.difftable { margin: var(--sp-1) 0 0; }
1388.thread .suggestion table.difftable tr.add td,
1389.thread .suggestion table.difftable tr.del td { display: table-cell; }
1390
1391nav.subtabs {
1392 display: flex;
1393 gap: var(--sp-4);
1394 border-bottom: 1px solid var(--line);
1395 margin: 0 0 var(--sp-4);
1396}
1397nav.subtabs a {
1398 display: inline-flex;
1399 align-items: center;
1400 gap: var(--sp-1);
1401 padding: var(--sp-2) 0 10px;
1402 color: var(--muted);
1403 font-size: var(--fs-2);
1404 border-bottom: 2px solid transparent;
1405 margin-bottom: -1px;
1406}
1407nav.subtabs a:hover { color: var(--fg); text-decoration: none; }
1408nav.subtabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--mark); }
1409nav.subtabs a i { font-style: normal; color: var(--muted); margin-left: 4px; }
1410
1411/* ---- diffs and code ---- */
1412p.diffstat { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); }
1413p.diffstat .add { color: var(--ok); }
1414p.diffstat .del { color: var(--bad); }
1415
1416details.difffold {
1417 border: 1px solid var(--line);
1418 border-radius: var(--r-card);
1419 margin: 0 0 var(--sp-3);
1420 background: var(--inset);
1421 overflow: hidden;
1422}
1423details.difffold summary {
1424 display: flex;
1425 align-items: baseline;
1426 gap: var(--sp-3);
1427 padding: var(--sp-2) var(--sp-3);
1428 background: var(--surface);
1429 font-size: var(--fs-2);
1430 cursor: pointer;
1431 list-style: none;
1432}
1433details.difffold[open] summary { border-bottom: 1px solid var(--line); }
1434details.difffold summary::-webkit-details-marker { display: none; }
1435/* flex summaries lose the native disclosure marker; draw our own */
1436details.difffold summary::before { content: "\25b8"; color: var(--muted); }
1437details.difffold[open] summary::before { content: "\25be"; }
1438details.difffold summary:hover { background: var(--hover); }
1439details.difffold summary .fpath { font-family: var(--mono); overflow-wrap: anywhere; }
1440details.difffold summary .fpath .was { color: var(--muted); }
1441details.difffold summary .fstat { margin-left: auto; font-family: var(--mono); white-space: nowrap; }
1442details.difffold summary .add { color: var(--ok); }
1443details.difffold summary .del { color: var(--bad); }
1444details.difffold > .none { padding: var(--sp-3); margin: 0; }
1445details.difffold .tablewrap { background: none; border: 0; border-radius: 0; }
1446
1447table.difftable {
1448 border-collapse: collapse;
1449 width: 100%;
1450 font-family: var(--mono);
1451 font-size: var(--fs-1);
1452 line-height: 1.5;
1453}
1454table.difftable td { border: 0; padding: 0; vertical-align: top; font-size: inherit; }
1455table.difftable tbody tr:hover td { background: none; }
1456table.difftable td.ln {
1457 width: 1%;
1458 min-width: 2.5rem;
1459 padding: 0 var(--sp-2);
1460 text-align: right;
1461 color: var(--muted);
1462 user-select: none;
1463 border-right: 1px solid var(--line);
1464 white-space: nowrap;
1465}
1466/* not .code: that class carries its own ground, which painted over the
1467 row tints */
1468table.difftable td.src { padding: 0 var(--sp-3); white-space: pre-wrap; overflow-wrap: anywhere; }
1469/* the marker is decoration, so it lives in CSS and stays out of a copied
1470 selection */
1471table.difftable tr.add td.src::before { content: "+"; color: var(--ok); }
1472table.difftable tr.del td.src::before { content: "\2212"; color: var(--bad); }
1473table.difftable tr.ctx td.src::before { content: " "; }
1474table.difftable tr.add { background: var(--diff-add); }
1475table.difftable tr.del { background: var(--diff-del); }
1476table.difftable tr.hunk td, table.difftable tr.dmeta td {
1477 color: var(--muted);
1478 padding: var(--sp-1) var(--sp-3);
1479 background: var(--surface);
1480 border-top: 1px solid var(--line);
1481 border-bottom: 1px solid var(--line);
1482}
1483table.difftable tr.hunk td.src { color: var(--link); }
1484table.difftable tr.threadrow td { padding: var(--sp-2) var(--sp-3); background: var(--canvas); }
1485/* a line number is the handle for commenting on that line; it stays a
1486 plain number until pointed at, so the gutter is not a wall of links */
1487table.difftable td.ln a.cmt { color: inherit; text-decoration: none; }
1488table.difftable td.ln a.cmt:hover,
1489table.difftable td.ln a.cmt:focus { color: var(--link); text-decoration: underline; }
1490/* split layout: old and new side by side in one table. Where two
1491 columns of code do not fit, each row becomes a two-column grid and the
1492 old cells stack over the new, which reads as a unified diff. */
1493table.difftable.split { table-layout: fixed; }
1494table.difftable.split col.cln { width: 3.5rem; }
1495table.difftable.split td.ln.ctx, table.difftable.split td.ln.none { border-right: 1px solid var(--line); }
1496table.difftable.split td.ln + td.src + td.ln { border-left: 1px solid var(--line); }
1497table.difftable.split td.ln { width: auto; }
1498table.difftable.split td.del { background: var(--diff-del); }
1499table.difftable.split td.add { background: var(--diff-add); }
1500table.difftable.split td.none { background: var(--surface); }
1501table.difftable.split td.src.add::before { content: "+"; color: var(--ok); }
1502table.difftable.split td.src.del::before { content: "\2212"; color: var(--bad); }
1503table.difftable.split td.src.ctx::before { content: " "; }
1504table.difftable.split tr.threadrow td { overflow-wrap: anywhere; }
1505table.difftable.split td.ln:target,
1506table.difftable.split td.ln:target + td { background: color-mix(in srgb, var(--mark) 18%, transparent); }
1507table.difftable.split td.ln:target { border-left: 3px solid var(--mark); }
1508table.difftable.split .nonl { display: block; color: var(--muted); font-style: italic; }
1509p.layoutpick { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); }
1510p.layoutpick strong { color: var(--fg); font-weight: 600; }
1511@media (max-width: 64rem) {
1512 p.layoutpick { display: none; }
1513 table.difftable.split, table.difftable.split tbody { display: block; }
1514 table.difftable.split colgroup { display: none; }
1515 table.difftable.split tr.pair { display: grid; grid-template-columns: auto 1fr; }
1516 table.difftable.split tr.pair td.none, table.difftable.split tr.pair td.ctx.old { display: none; }
1517 table.difftable.split td.ln + td.src + td.ln { border-left: 0; }
1518 table.difftable.split tr.pair td.ln { min-width: 3rem; }
1519 table.difftable.split tr.hunk, table.difftable.split tr.dmeta,
1520 table.difftable.split tr.threadrow { display: block; }
1521 table.difftable.split tr.hunk td.ln, table.difftable.split tr.dmeta td.ln { display: none; }
1522 table.difftable.split tr.hunk td, table.difftable.split tr.dmeta td,
1523 table.difftable.split tr.threadrow td { display: block; }
1524}
1525/* A linked line: f2-n17 on a diff, L17 on a file (see issue 118). */
1526.difftable tr:target td, .code .line:has(a:target) { background: color-mix(in srgb, var(--mark) 18%, transparent); }
1527.difftable tr:target td.ln, .code .line:has(a:target) .ln { border-left: 3px solid var(--mark); }
1528/* chroma writes the highlighted spans; the container only supplies the
1529 ground and the face */
1530.chroma { font-family: var(--mono); background: none; }
1531/* chroma's own LineLink rule is dropped from the served palette: it set
1532 outline: none and hid the focus ring. This is that rule without it, on
1533 a 24px box so a line number is a target and not a glyph (#232) */
1534.chroma .lnlinks { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-decoration: none; color: inherit; }
1535.chroma .line { line-height: 24px; }
1536
1537.blamehunk { display: flex; gap: var(--sp-3); border-top: 1px solid var(--line); align-items: flex-start; }
1538.blamehunk:first-child { border-top: 0; }
1539.blameinfo { flex: none; width: 17rem; min-width: 0; padding: var(--sp-2) var(--sp-3); }
1540.blameinfo .subject { margin: 0; font-size: var(--fs-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1541.blameinfo .meta { margin: 0; font-size: var(--fs-1); color: var(--muted); }
1542.blamecode {
1543 flex: 1;
1544 margin: 0;
1545 padding: var(--sp-2) var(--sp-3) var(--sp-2) 0;
1546 background: var(--inset);
1547 border: 0;
1548 border-left: 1px solid var(--line);
1549 border-radius: 0;
1550 overflow-x: auto;
1551 align-self: stretch;
1552}
1553.lineno {
1554 display: inline-block;
1555 min-width: 3.5em;
1556 padding-right: 1em;
1557 text-align: right;
1558 color: var(--muted);
1559 user-select: none;
1560}
1561
1562/* ---- chips and badges ---- */
1563.chip, .badge {
1564 --chip: var(--neutral);
1565 display: inline-block;
1566 padding: 1px 8px;
1567 border-radius: var(--r-ctl);
1568 font-size: var(--fs-0);
1569 font-weight: 500;
1570 line-height: 1.5;
1571 color: var(--chip);
1572 border: 1px solid color-mix(in srgb, var(--chip) 40%, transparent);
1573 background: color-mix(in srgb, var(--chip) 10%, var(--canvas));
1574 white-space: nowrap;
1575 vertical-align: middle;
1576}
1577.chip-open { --chip: var(--ok); }
1578.chip-closed { --chip: var(--bad); }
1579.chip-merged, .chip-done { --chip: var(--done); }
1580.chip-neutral, .chip-source_gone { --chip: var(--neutral); }
1581.chip-stale { --chip: var(--warn); }
1582.chip.topic { --chip: var(--link); }
1583.chip.topic:hover { text-decoration: none; background: color-mix(in srgb, var(--chip) 18%, transparent); }
1584/* A label carries its own colour inline, from the label's hex, as one
1585 tone per scheme: chip text is 12px, so it needs 4.5:1 against its own
1586 ground, and no single colour clears that on both canvases (#226). An
1587 old browser without light-dark() drops the declaration and the chip
1588 falls back to the neutral above. */
1589.chip.label {
1590 --chip: light-dark(var(--chip-l, var(--neutral)), var(--chip-d, var(--neutral)));
1591 font-weight: 500;
1592}
1593.badge-verified { --chip: var(--ok); }
1594.badge-unsigned { --chip: var(--neutral); }
1595.badge-signed_unknown_key, .badge-signed_key_expired { --chip: var(--warn); }
1596.badge-signed_email_mismatch, .badge-signed_key_revoked, .badge-bad_signature { --chip: var(--bad); }
1597.badge.check-success, .chip.check-success { --chip: var(--ok); }
1598.badge.check-pending, .chip.check-pending,
1599.badge.check-running, .chip.check-running { --chip: var(--warn); }
1600.badge.check-failure, .chip.check-failure,
1601.badge.check-error, .chip.check-error { --chip: var(--bad); }
1602.badge.check-cancelled, .chip.check-cancelled,
1603.badge.check-skipped, .chip.check-skipped { --chip: var(--neutral); }
1604span.check-success { color: var(--ok); }
1605span.check-pending, span.check-running { color: var(--warn); }
1606span.check-failure, span.check-error { color: var(--bad); }
1607
1608a.memberchip {
1609 display: inline-block;
1610 border: 1px solid var(--line);
1611 border-radius: var(--r-ctl);
1612 padding: 1px 8px;
1613 margin: 0 2px 2px 0;
1614 color: var(--fg);
1615 font-size: var(--fs-1);
1616}
1617a.memberchip:hover { text-decoration: none; border-color: var(--link); color: var(--link); }
1618a.memberchip .role { color: var(--muted); }
1619
1620.pathbar { display: flex; align-items: center; gap: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-3); flex-wrap: wrap; font-size: var(--fs-2); overflow-wrap: anywhere; }
1621.pathbar .spacer { flex: 1; }
1622.pathbar .actions { display: flex; align-items: center; gap: var(--sp-2); }
1623/* history · blame · raw were 21px tall and "raw" 22px wide (#232) */
1624.pathbar .actions a { display: inline-block; padding: 6px 4px; }
1625.pathbar .acts { display: flex; gap: var(--sp-2); }
1626.crumbs { color: var(--muted); }
1627.crumbs a { color: var(--link); }
1628.crumbs strong { color: var(--fg); }
1629
1630/* ---- file navigator: the directory beside a file ---- */
1631.blobgrid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
1632.blobmain { min-width: 0; }
1633.filenav { position: sticky; top: var(--sp-4); font-size: var(--fs-2); }
1634.filenav ul { list-style: none; margin: 0; padding: 0; }
1635.filenav li a {
1636 display: block;
1637 padding: 3px var(--sp-2);
1638 border-radius: var(--r-ctl);
1639 color: var(--fg);
1640 font-family: var(--mono);
1641 font-size: var(--fs-1);
1642 overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
1643}
1644.filenav li a:hover { background: var(--hover); text-decoration: none; }
1645.filenav li a[aria-current] { background: var(--surface); box-shadow: inset 2px 0 0 var(--mark); font-weight: 600; }
1646.filenav li a.dir { color: var(--link); }
1647.filenav li a.up { color: var(--muted); }
1648
1649/* ---- side column: facets or sections beside a list or a form ---- */
1650.withcol { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
1651.withcol.narrow { grid-template-columns: 15rem minmax(0, 56rem); }
1652.colmain { min-width: 0; }
1653.sidecol { position: sticky; top: var(--sp-4); font-size: var(--fs-2); }
1654.sidecol .grp { margin-bottom: var(--sp-4); }
1655.sidecol ul { list-style: none; margin: 0; padding: 0; }
1656.sidecol li a {
1657 display: flex; align-items: baseline; gap: var(--sp-2);
1658 padding: 4px var(--sp-2);
1659 border-radius: var(--r-ctl);
1660 color: var(--fg);
1661}
1662.sidecol li a:hover { background: var(--hover); text-decoration: none; }
1663.sidecol li a[aria-current] { background: var(--surface); box-shadow: inset 2px 0 0 var(--mark); font-weight: 500; }
1664.sidecol li a i { margin-left: auto; font-style: normal; color: var(--muted); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
1665.sidecol form.searchform { margin-top: var(--sp-2); }
1666.sidecol form.searchform input[type="text"] { min-width: 0; width: 100%; }
1667
1668/* The column's groups sit in a disclosure. Below 62rem that is all the
1669 reader sees of the column: one closed line before the list, because a
1670 repository with two dozen labels stacked the whole vocabulary under
1671 the content it filters. Above 62rem the summary is hidden and the
1672 content shown whatever the open state, so the column is what it
1673 always was. The @supports guard is the fail-safe: an engine without
1674 ::details-content keeps a working toggle at every width instead of
1675 losing the column (#237). */
1676.sidedrop > summary {
1677 display: inline-flex;
1678 align-items: center;
1679 gap: var(--sp-2);
1680 height: 32px;
1681 padding: 0 var(--sp-3);
1682 background: var(--canvas);
1683 border: 1px solid var(--line);
1684 border-radius: var(--r-ctl);
1685 color: var(--fg);
1686 font-size: var(--fs-2);
1687 cursor: pointer;
1688 list-style: none;
1689}
1690.sidedrop[open] > summary { margin-bottom: var(--sp-3); }
1691.sidedrop > summary::-webkit-details-marker { display: none; }
1692.sidedrop > summary:hover { background: var(--hover); }
1693.sidedrop > summary::after { content: "\25be"; color: var(--muted); }
1694.sidedrop[open] > summary::after { content: "\25b4"; }
1695.sideword { font-weight: 600; }
1696/* the filters in force: where you are */
1697.sideon { color: var(--warn); }
1698/* every group came out empty, so there is nothing to open */
1699.sidedrop:not(:has(.grp)) { display: none; }
1700
1701@media (min-width: 62.01rem) {
1702 @supports selector(::details-content) {
1703 .sidedrop > summary { display: none; }
1704 .sidedrop::details-content { content-visibility: visible; }
1705 }
1706}
1707
1708/* a sticky column taller than the viewport scrolls inside itself, or its
1709 tail is unreachable once the page scrolls. Above 62rem only: below it
1710 .filenav is hidden and the other two are static. .dashpins stops being
1711 a column at 80rem and resets both properties there. */
1712@media (min-width: 62.01rem) {
1713 .filenav, .sidecol, .dashgrid > aside { max-height: calc(100vh - 2 * var(--sp-4)); overflow-y: auto; }
1714}
1715
1716.refchip {
1717 display: inline-flex;
1718 align-items: center;
1719 gap: 6px;
1720 height: 32px;
1721 padding: 0 10px;
1722 background: var(--canvas);
1723 border: 1px solid var(--line);
1724 border-radius: var(--r-ctl);
1725 font-family: var(--mono);
1726 font-size: var(--fs-2);
1727 font-weight: 500;
1728 color: var(--fg);
1729}
1730details.refmenu { position: relative; }
1731details.refmenu summary { cursor: pointer; list-style: none; }
1732details.refmenu summary::-webkit-details-marker { display: none; }
1733details.refmenu summary::after { content: " \25be"; color: var(--muted); }
1734details.refmenu .refdrop {
1735 position: absolute;
1736 z-index: 10;
1737 top: calc(100% + 4px);
1738 left: 0;
1739 min-width: 12rem;
1740 max-height: 20rem;
1741 overflow-y: auto;
1742 overscroll-behavior: contain;
1743 background: var(--canvas);
1744 border: 1px solid var(--line);
1745 border-radius: var(--r-card);
1746 box-shadow: var(--shadow);
1747 padding: var(--sp-1) 0;
1748}
1749details.refmenu .refdrop a {
1750 display: block;
1751 padding: var(--sp-1) var(--sp-3);
1752 color: var(--fg);
1753 font-family: var(--mono);
1754 font-size: var(--fs-1);
1755}
1756details.refmenu .refdrop a:hover { background: var(--hover); text-decoration: none; }
1757details.refmenu .refdrop a.allrefs {
1758 color: var(--link);
1759 font-family: var(--sans);
1760 border-top: 1px solid var(--faint);
1761 margin-top: var(--sp-1);
1762}
1763
1764/* ---- repository overview layout ---- */
1765.overview { display: block; }
1766.overviewmain { min-width: 0; }
1767/* the side column exists only above 62rem; below it .facts keeps its
1768 own two-up layout and the 40rem factgrid rule applies untouched */
1769@media (min-width: 62.01rem) {
1770 .overview.withfacts { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1771 .overview.withfacts .facts { display: block; margin-top: 0; max-width: none; }
1772 .overview.withfacts .facts .factgrid { grid-template-columns: repeat(2, auto); }
1773 .overview.withfacts .clone pre { white-space: pre-wrap; word-break: break-all; }
1774}
1775
1776/* ---- repository facts ---- */
1777.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin: var(--sp-5) 0 var(--sp-4); max-width: 72rem; }
1778.facts h2 {
1779 margin: 0 0 var(--sp-2);
1780 font-size: var(--fs-1);
1781 font-weight: 500;
1782 letter-spacing: 0.08em;
1783 text-transform: uppercase;
1784 color: var(--muted);
1785}
1786.clone { margin: 0 0 var(--sp-3); }
1787.facts .about { min-width: 0; margin-bottom: var(--sp-5); }
1788.clone .fieldname { font-size: var(--fs-1); color: var(--muted); font-weight: 500; margin-bottom: 2px; }
1789.clone pre { margin-bottom: var(--sp-3); user-select: all; }
1790.factgrid { display: grid; grid-template-columns: repeat(4, auto); gap: var(--sp-2) var(--sp-4); font-size: var(--fs-2); margin-bottom: var(--sp-3); }
1791.factgrid b { font-weight: 600; }
1792.factgrid a { color: var(--fg); }
1793.factgrid a:hover { color: var(--link); }
1794.counts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin: 0 0 var(--sp-3); font-size: var(--fs-2); }
1795.counts a { color: var(--fg); }
1796.counts a:hover { color: var(--link); }
1797.counts strong { font-weight: 600; }
1798.fact { color: var(--muted); }
1799.langbar { display: flex; height: 8px; margin: 0 0 var(--sp-2); border-radius: var(--r-ctl); overflow: hidden; gap: 1px; background: var(--faint); }
1800.langbar .lang { display: block; height: 100%; min-width: 2px; }
1801.langs { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin: 0 0 var(--sp-3); font-size: var(--fs-1); color: var(--muted); }
1802.langs .lang-name { display: inline-flex; align-items: center; gap: var(--sp-1); }
1803.langs .dot { width: 8px; height: 8px; }
1804/* named where it reads as the language's own colour, neutral otherwise */
1805.lang { background: var(--neutral); }
1806.lang-go { background: var(--lang-go); }
1807.lang-rust { background: var(--lang-rust); }
1808.lang-c, .lang-c- { background: var(--lang-c); }
1809.lang-python { background: var(--lang-python); }
1810.lang-javascript { background: var(--lang-javascript); }
1811.lang-typescript { background: var(--lang-typescript); }
1812.lang-shell { background: var(--lang-shell); }
1813.lang-ruby { background: var(--lang-ruby); }
1814.lang-java { background: var(--lang-java); }
1815.lang-swift { background: var(--lang-swift); }
1816.lang-html { background: var(--lang-html); }
1817.lang-css { background: var(--lang-css); }
1818.lang-org { background: var(--lang-org); }
1819.lang-markdown { background: var(--lang-markdown); }
1820.lang-emacs-lisp { background: var(--lang-emacs-lisp); }
1821.lang-nix { background: var(--lang-nix); }
1822.lang-sql { background: var(--lang-sql); }
1823.contribs { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); margin: 0; font-size: var(--fs-1); }
1824.contribs .label { color: var(--muted); }
1825.teambody { padding: var(--sp-3); }
1826.teambody .memberchip { margin-right: var(--sp-2); }
1827
1828/* ---- landing ---- */
1829/* the width class on main carries this too; the cap here keeps the page
1830 readable on the templates that do not set one yet */
1831.landing { max-width: 48rem; padding: var(--sp-6) 0; }
1832.landing h1 { font-size: var(--fs-6); display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
1833.landing h1 .mark { width: 32px; height: 32px; }
1834.lede { font-size: var(--fs-4); color: var(--muted); line-height: 1.5; max-width: 40rem; margin: 0 0 var(--sp-5); }
1835pre.quickstart { margin: 0 0 var(--sp-4); }
1836.shot { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin: var(--sp-5) 0; }
1837.shot video { display: block; width: 100%; height: auto; }
1838.shot figcaption {
1839 border-top: 1px solid var(--line);
1840 background: var(--surface);
1841 padding: var(--sp-2) var(--sp-3);
1842 color: var(--muted);
1843 font-size: var(--fs-1);
1844}
1845.facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin: var(--sp-5) 0; }
1846.facets h2 { font-size: var(--fs-3); margin: 0 0 var(--sp-1); }
1847.facets p { color: var(--muted); font-size: var(--fs-2); margin: 0; }
1848.routes { display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-4) 0 0; }
1849
1850/* ---- profile ---- */
1851.profilehead { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); }
1852.profilehead h1 { margin: 0 0 var(--sp-1); }
1853.profilehead .lede { font-size: var(--fs-3); margin: 0 0 var(--sp-1); }
1854.profilehead .meta { margin: var(--sp-1) 0 0; }
1855.activity { margin-bottom: var(--sp-5); }
1856h2 .count { background: none; color: var(--muted); font-weight: 400; font-size: var(--fs-2); margin-left: var(--sp-2); padding: 0; }
1857/* 53 week columns x 7 day rows, tinted with the link blue */
1858.actgraph-scroll { overflow-x: auto; padding-bottom: var(--sp-1); }
1859.actgraph { display: flex; gap: 3px; width: max-content; padding-top: 18px; }
1860.actweek { display: flex; flex-direction: column; gap: 3px; position: relative; }
1861.actmonth { position: absolute; top: -16px; left: 0; font-size: var(--fs-0); color: var(--muted); }
1862.actday { width: 11px; height: 11px; border-radius: 2px; background: var(--faint); }
1863.actday.pad { background: transparent; }
1864.actday.l0 { background: var(--faint); }
1865.actday.l1 { background: color-mix(in srgb, var(--link) 25%, var(--canvas)); }
1866.actday.l2 { background: color-mix(in srgb, var(--link) 50%, var(--canvas)); }
1867.actday.l3 { background: color-mix(in srgb, var(--link) 75%, var(--canvas)); }
1868.actday.l4 { background: var(--link); }
1869.actlegend { display: flex; align-items: center; gap: 3px; margin-top: var(--sp-2); font-size: var(--fs-0); color: var(--muted); }
1870.actlegend span:first-child { margin-right: var(--sp-1); }
1871.actlegend span:last-child { margin-left: var(--sp-1); }
1872/* the activity log under the graph: the newest events, not the year */
1873.logsub { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
1874.ownerlog .feedline { font-size: var(--fs-2); }
1875.ownerlog .feedline .none { font-size: var(--fs-1); }
1876
1877/* ---- wiki ---- */
1878.wikilayout { display: flex; gap: var(--sp-5); align-items: flex-start; }
1879.wikipage { flex: 1; min-width: 0; }
1880.wikinav { flex: none; width: 15rem; }
1881.wikinav ul { list-style: none; margin: var(--sp-1) 0 var(--sp-4); padding: 0; }
1882.wikinav .wikidir { margin-bottom: 0; }
1883.wikinav li a {
1884 display: block;
1885 padding: 5px var(--sp-2);
1886 border-radius: var(--r-ctl);
1887 color: var(--fg);
1888 font-size: var(--fs-2);
1889}
1890.wikinav li a:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
1891.wikinav li a.active { background: var(--surface); color: var(--link); font-weight: 500; }
1892
1893/* ---- misc ---- */
1894.meta { color: var(--muted); font-size: var(--fs-1); }
1895.muted { color: var(--muted); }
1896.desc, td.desc { color: var(--muted); }
1897.spacer { flex: 1; }
1898.compact { margin: 0; }
1899.name { min-width: 0; }
1900svg.icon { vertical-align: -0.125em; }
1901.sep { color: var(--muted); }
1902.owner { color: var(--muted); }
1903.title { margin: 0; }
1904.subject { min-width: 0; }
1905.sha { font-family: var(--mono); }
1906.when { color: var(--muted); }
1907.who { font-weight: 500; }
1908.was { color: var(--muted); }
1909.role { color: var(--muted); }
1910.age { color: var(--muted); }
1911.size { color: var(--muted); }
1912.review { font-size: var(--fs-2); }
1913
1914/* ---- breakpoints ---- */
1915@media (max-width: 80rem) {
1916 .dashgrid { grid-template-columns: minmax(0, 1fr) 20rem; }
1917 /* not a column any more, so it neither sticks nor scrolls in itself */
1918 .dashgrid > .dashpins { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; }
1919 /* a pinned block that is not a column is the chip row (spec rule 7) */
1920 .pins { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
1921 /* the shorthand loses to .pins li:last-child, which drops the bottom
1922 border of the last chip -- and so of the second row */
1923 .pins li, .pins li:last-child { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--sp-1) var(--sp-3); }
1924 .pins .n, .dashpins .meta { display: none; }
1925}
1926
1927@media (max-width: 62rem) {
1928 /* one column, the aside after the thread: a phone shows the
1929 description first, checks and reviewers after it (#232) */
1930 .withaside { grid-template-columns: 1fr; }
1931
1932 /* rows go back to two lines where one does not fit */
1933 ul.issuelist.rows .issuemain, ul.repolist.rows, ul.repolist.rows li, ul.loglist.rows .commitmain { display: block; }
1934 ul.issuelist.rows .title, ul.repolist.rows .desc { white-space: normal; }
1935 ul.repolist.rows .reponame, ul.repolist.rows .meta { display: block; }
1936 ul.repolist.rows li > *, ul.repolist.rows .reponame > *, ul.repolist.rows .meta > * { padding-left: 0; white-space: normal; }
1937 ul.repolist.rows .license::before, ul.repolist.rows .updated::before { content: " · "; }
1938 /* a nowrap meta or topic line on one of these rows forces horizontal
1939 page scroll on a phone: a long branch name, a long owner/repo#N */
1940 ul.issuelist.rows .meta, ul.loglist.rows .meta,
1941 ul.repolist.rows .meta, ul.repolist.rows .topics { white-space: normal; }
1942
1943 .dashgrid { grid-template-columns: 1fr; }
1944 .dashgrid > aside { position: static; }
1945 .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1946
1947 /* the tree page is the navigator on a phone */
1948 .blobgrid { grid-template-columns: 1fr; }
1949 .filenav { display: none; }
1950
1951 /* the column is a closed disclosure before the content: a filter you
1952 reach without scrolling the list, and nothing to scroll past when
1953 you do not want it. It leads rather than follows because it is what
1954 the list is narrowed by, not a note on one row (#237) */
1955 .withcol, .withcol.narrow { grid-template-columns: 1fr; }
1956 .sidecol { position: static; margin-bottom: var(--sp-3); }
1957 .sidecol .grp { display: inline-block; vertical-align: top; margin-right: var(--sp-5); }
1958}
1959
1960@media (max-width: 52rem) {
1961 main.content { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
1962 footer { padding: var(--sp-4); }
1963 .repohead { padding: var(--sp-3) 0 0; }
1964 .repohead .wrap { padding: 0 var(--sp-4); }
1965 /* seven tabs do not fit a phone in one row; a hidden scrollbar made the
1966 ones past the edge look absent. Two rows show all of them. */
1967 nav.tabs { flex-wrap: wrap; overflow: visible; }
1968 .facts { grid-template-columns: 1fr; }
1969 /* a phone shows the description under the name, not beside it */
1970 .repodesc { flex-basis: 100%; margin-left: 0; }
1971}
1972
1973@media (max-width: 40rem) {
1974 .facets { grid-template-columns: 1fr; gap: var(--sp-4); }
1975 .wikilayout { flex-direction: column; align-items: stretch; }
1976 .wikinav { width: auto; }
1977 form.setform { grid-template-columns: 1fr; gap: var(--sp-2); }
1978 form.setform label { margin-top: 0; }
1979 /* the commit subject is the widest thing in a file table and the one
1980 column a phone can do without: the tipbar above already names the
1981 latest commit */
1982 table.tree td.lastcommit, table.tree th.lastcommit { display: none; }
1983 table.tree td.mode, table.tree th.mode { display: none; }
1984 /* at 320px a nowrap name plus the age column overran the card by the
1985 cell padding and the card clipped the age; a long name wraps (#232) */
1986 table.tree td.name { white-space: normal; overflow-wrap: anywhere; }
1987 .clone pre { white-space: pre-wrap; word-break: break-all; }
1988 .readme .cardbody, .code { padding: var(--sp-3); }
1989 .thread { margin-left: var(--sp-3); }
1990 .blamehunk { flex-direction: column; gap: 0; }
1991 .blameinfo { width: auto; }
1992 .blamecode { border-left: 0; padding-left: var(--sp-3); width: 100%; }
1993 .factgrid { grid-template-columns: repeat(2, auto); }
1994 ul.loglist li { flex-wrap: wrap; }
1995 ul.loglist .commitside { width: 100%; justify-content: flex-start; }
1996}
1997
1998/* Nine 44px squares and the mark are 440px, so below 34rem the rail
1999 keeps six — dashboard, explore, search, notifications, More, your
2000 avatar — and the More menu holds the rest. Seven squares at 44px are
2001 308px, inside a 320px phone. Explore is one of the six because the
2002 More menu only exists for a signed-in viewer: dropping it left a
2003 signed-out phone with no route to the listing at all. Shrinking the
2004 squares instead is what this replaces: 32px was under the target
2005 every phone guideline asks for, and the count only grows. */
2006@media (max-width: 34rem) {
2007 .railopt { display: none; }
2008 .railmore { display: block; }
2009 .railicon svg { width: 20px; height: 20px; }
2010 /* the mark is a link home too, so it is a target like the rest */
2011 a.brand { width: var(--rail-hit); }
2012}
2013
2014/* ---- reactions ---- */
2015.reactions { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 0; padding: var(--sp-2) var(--sp-4); }
2016p.reactions { color: var(--muted); font-size: var(--fs-1); }
2017article.comment .reactions { border-top: 1px solid var(--faint); }
2018button.react, span.react {
2019 font: inherit;
2020 font-size: var(--fs-1);
2021 padding: 0 var(--sp-2);
2022 min-height: 24px;
2023 border: 1px solid var(--line);
2024 border-radius: var(--r-sm);
2025 background: transparent;
2026 color: var(--muted);
2027}
2028button.react { cursor: pointer; }
2029button.react:hover { background: var(--surface); }
2030button.react.mine { border-color: var(--accent); background: var(--surface); color: var(--fg); }
2031
2032/* ---- rail pinned switcher ---- */
2033.railusermenu, .railcreate { position: relative; }
2034.railusermenu > summary, .railcreate > summary { list-style: none; cursor: pointer; }
2035.railusermenu > summary::-webkit-details-marker, .railcreate > summary::-webkit-details-marker { display: none; }
2036.railcreate[open] > summary, .railpins[open] > summary { background: var(--shell-hover); }
2037.railavatar {
2038 display: inline-flex;
2039 align-items: center;
2040 justify-content: center;
2041 gap: 5px;
2042 height: 32px;
2043 padding: 0 var(--sp-2);
2044 border-radius: var(--r-ctl);
2045}
2046.railavatar:hover, .railusermenu[open] > .railavatar { background: var(--shell-hover); }
2047.railavatar .avatar { width: var(--rail-mark); height: var(--rail-mark); }
2048.raildrop { top: calc(100% + 6px); }
2049.raildrop a.railuser {
2050 width: 100%;
2051 height: auto;
2052 justify-content: flex-start;
2053}
2054.raildrop a[aria-current="page"] {
2055 box-shadow: inset 2px 0 0 var(--shell-mark);
2056 font-weight: 600;
2057}
2058.railsep {
2059 border: 0;
2060 border-top: 1px solid var(--shell-line);
2061 margin: var(--sp-1) 0;
2062}
2063.railpins { position: relative; }
2064.railpins > summary { list-style: none; }
2065.railpins > summary::-webkit-details-marker { display: none; }
2066.railpins .raildrop {
2067 left: 0;
2068 right: auto;
2069 top: calc(100% + 6px);
2070 bottom: auto;
2071 min-width: 14rem;
2072}
2073.railpins .raildrop .none { display: block; padding: var(--sp-2) var(--sp-3); color: var(--muted); font-size: var(--fs-1); }
2074
2075/* ---- diff file jump-list ---- */
2076.difftoc {
2077 margin: var(--sp-3) 0;
2078 border: 1px solid var(--faint);
2079 border-radius: var(--r-card);
2080 background: var(--surface);
2081}
2082.difftoc > summary {
2083 cursor: pointer;
2084 padding: var(--sp-2) var(--sp-3);
2085 font-size: var(--fs-1);
2086 font-weight: 600;
2087 color: var(--fg);
2088}
2089.difftoc-list {
2090 list-style: none;
2091 margin: 0;
2092 padding: 0 var(--sp-3) var(--sp-2);
2093 display: flex;
2094 flex-direction: column;
2095 gap: var(--sp-1);
2096 font-size: var(--fs-1);
2097 font-family: var(--mono);
2098}
2099.difftoc-list li {
2100 display: flex;
2101 align-items: baseline;
2102 gap: var(--sp-2);
2103}
2104.difftoc-list a { overflow-wrap: anywhere; }
2105.difftoc-list .fstat { margin-left: auto; white-space: nowrap; }
2106
2107/* ---- sidebar pickers & batched review ---- */
2108.review-pending {
2109 color: var(--warn);
2110 font-weight: 600;
2111 font-size: var(--fs-1);
2112}
2113.picker { margin: var(--sp-2) 0; }
2114.picker > summary {
2115 cursor: pointer;
2116 font-size: var(--fs-1);
2117 color: var(--link);
2118}
2119.picker-list {
2120 display: flex;
2121 flex-wrap: wrap;
2122 gap: var(--sp-1);
2123 margin-top: var(--sp-2);
2124}
2125.picker-btn {
2126 font: inherit;
2127 font-size: var(--fs-0);
2128 padding: 2px var(--sp-2);
2129 border: 1px solid var(--line);
2130 border-radius: var(--r-ctl);
2131 background: var(--canvas);
2132 color: var(--fg);
2133 cursor: pointer;
2134}
2135.picker-btn:hover { background: var(--hover); }
2136.picker-btn[aria-pressed="true"] {
2137 border-color: var(--link);
2138 background: var(--surface);
2139 font-weight: 600;
2140}
2141
2142/* ---- list quick state bar ---- */
2143.statebar {
2144 display: flex;
2145 flex-wrap: wrap;
2146 gap: var(--sp-2);
2147 margin: 0 0 var(--sp-3);
2148}
2149.statebar a {
2150 font-size: var(--fs-1);
2151 padding: var(--sp-1) var(--sp-3);
2152 border: 1px solid var(--faint);
2153 border-radius: var(--r-ctl);
2154 color: var(--muted);
2155 text-decoration: none;
2156}
2157.statebar a:hover { background: var(--hover); color: var(--fg); }
2158.statebar a[aria-current="page"] {
2159 border-color: var(--mark);
2160 color: var(--fg);
2161 font-weight: 600;
2162 background: var(--surface);
2163}
2164
2165/* ---- sidebar group headers & floating popovers ---- */
2166.grp-head {
2167 display: flex;
2168 align-items: center;
2169 justify-content: space-between;
2170 gap: var(--sp-2);
2171 margin-bottom: var(--sp-2);
2172}
2173.grp-head h2 { margin: 0; }
2174.popover { position: relative; }
2175.popover > summary { list-style: none; }
2176.popover > summary::-webkit-details-marker { display: none; }
2177.popbtn {
2178 display: inline-flex;
2179 align-items: center;
2180 padding: 2px var(--sp-2);
2181 border-radius: var(--r-ctl);
2182 font-size: var(--fs-0);
2183 font-weight: 500;
2184 color: var(--muted);
2185 cursor: pointer;
2186}
2187.popbtn:hover, .popover[open] > .popbtn { background: var(--hover); color: var(--fg); }
2188.popmenu {
2189 position: absolute;
2190 right: 0;
2191 top: calc(100% + var(--sp-1));
2192 z-index: 30;
2193 width: 16rem;
2194 max-width: 85vw;
2195 padding: var(--sp-3);
2196 background: var(--canvas);
2197 border: 1px solid var(--faint);
2198 border-radius: var(--r-card);
2199 box-shadow: var(--shadow);
2200 display: flex;
2201 flex-direction: column;
2202 gap: var(--sp-2);
2203}
2204.popform {
2205 display: flex;
2206 gap: var(--sp-2);
2207 align-items: center;
2208 margin: 0;
2209}
2210.popform input[type="text"], .popform select { flex: 1; min-width: 0; }
2211
2212/* ---- nav search bar & Cmd+K command palette ---- */
2213.railsearch-mob { display: none; }
2214.railsearch {
2215 display: flex;
2216 align-items: center;
2217 flex: 1 1 18rem;
2218 max-width: 28rem;
2219 margin: 0 var(--sp-3);
2220 height: 32px;
2221 padding: 0 var(--sp-1) 0 var(--sp-3);
2222 border: 1px solid var(--shell-line);
2223 border-radius: var(--r-ctl);
2224 background: var(--shell-hover);
2225}
2226.railsearch:focus-within { border-color: var(--shell-mark); }
2227.railsearch input[type="search"] {
2228 flex: 1;
2229 min-width: 0;
2230 height: 100%;
2231 padding: 0;
2232 border: 0;
2233 background: transparent;
2234 color: var(--shell-fg);
2235 font-size: var(--fs-1);
2236}
2237.railsearch input[type="search"]::placeholder { color: var(--shell-muted); }
2238.railsearch input[type="search"]:focus { outline: none; }
2239.cmdk-trigger {
2240 display: inline-flex;
2241 align-items: center;
2242 height: 24px;
2243 padding: 0 var(--sp-2);
2244 border: 1px solid var(--shell-line);
2245 border-radius: var(--r-ctl);
2246 background: var(--shell-bg);
2247 color: var(--shell-muted);
2248 font-size: var(--fs-0);
2249 font-weight: 400;
2250 cursor: pointer;
2251}
2252.cmdk-trigger:hover { color: var(--shell-fg); border-color: var(--shell-muted); filter: none; }
2253.cmdk-trigger kbd { font-family: var(--mono); font-size: var(--fs-0); color: inherit; }
2254dialog.cmdk {
2255 padding: 0;
2256 border: 1px solid var(--faint);
2257 border-radius: var(--r-card);
2258 background: var(--canvas);
2259 color: var(--fg);
2260 box-shadow: var(--shadow);
2261 width: min(42rem, 92vw);
2262 margin: 12vh auto auto;
2263}
2264dialog.cmdk::backdrop { background: rgb(0 0 0 / 0.45); }
2265.cmdk-box { display: flex; flex-direction: column; }
2266.cmdk-box input[type="search"] {
2267 width: 100%;
2268 height: 44px;
2269 padding: 0 var(--sp-4);
2270 border: 0;
2271 border-bottom: 1px solid var(--faint);
2272 border-radius: 0;
2273 background: transparent;
2274 font-size: var(--fs-3);
2275}
2276.cmdk-box input[type="search"]:focus { outline: none; }
2277.cmdk-list {
2278 list-style: none;
2279 margin: 0;
2280 padding: var(--sp-2);
2281 max-height: 22rem;
2282 overflow-y: auto;
2283}
2284.cmdk-list a {
2285 display: flex;
2286 align-items: center;
2287 gap: var(--sp-3);
2288 padding: var(--sp-2) var(--sp-3);
2289 border-radius: var(--r-ctl);
2290 color: var(--fg);
2291 text-decoration: none;
2292 font-size: var(--fs-2);
2293}
2294.cmdk-list a:hover, .cmdk-list a[aria-selected="true"] { background: var(--hover); }
2295.cmdk-grp {
2296 font-size: var(--fs-0);
2297 color: var(--muted);
2298 min-width: 5.5rem;
2299}
2300.cmdk-empty { padding: var(--sp-4); color: var(--muted); text-align: center; font-size: var(--fs-2); }
2301
2302/* ---- copy button on clone blocks ---- */
2303.copywrap { position: relative; }
2304.copywrap pre { padding-right: 4.5rem; }
2305.copybtn {
2306 position: absolute;
2307 top: 50%;
2308 right: var(--sp-2);
2309 transform: translateY(-50%);
2310 height: 24px;
2311 padding: 0 var(--sp-2);
2312 font-size: var(--fs-0);
2313 background: var(--surface);
2314 color: var(--fg);
2315 border: 1px solid var(--faint);
2316 border-radius: var(--r-ctl);
2317}
2318.copybtn:hover { background: var(--hover); filter: none; }
2319
2320@media (max-width: 44rem) {
2321 .railsearch { display: none; }
2322 .railsearch-mob { display: list-item; }
2323}
2324
2325/* ---- account & admin redesign ---- */
2326.setcard, section.activity {
2327 background: var(--canvas);
2328 border: 1px solid var(--faint);
2329 border-radius: var(--r-card);
2330 padding: var(--sp-5);
2331 margin: 0 0 var(--sp-5);
2332}
2333.setcard > h2:first-child, section.activity > h2:first-child { margin-top: 0; }
2334.setcard > h2, section.activity > h2 { display: flex; align-items: center; gap: var(--sp-2); }
2335.setcard-danger { border-color: color-mix(in srgb, var(--bad) 40%, var(--faint)); }
2336.setcard .tablewrap { overflow: visible; }
2337@media (max-width: 52rem) {
2338 .setcard .tablewrap { overflow-x: auto; }
2339}
2340.adminhead {
2341 display: flex;
2342 align-items: center;
2343 gap: var(--sp-3);
2344 flex-wrap: wrap;
2345 margin-bottom: var(--sp-3);
2346}
2347.adminhead h1 { margin: 0 0 var(--sp-1); }
2348.adminhead p.meta { margin: 0; }
2349nav.admintabs {
2350 border-bottom: 1px solid var(--faint);
2351 margin-top: 0;
2352 margin-bottom: var(--sp-5);
2353}
2354.sidecol.sticky {
2355 position: sticky;
2356 top: var(--sp-4);
2357 align-self: start;
2358}
2359.popbtn-danger { color: var(--bad); }
2360.popbtn-danger:hover, .popover[open] > .popbtn-danger {
2361 background: color-mix(in srgb, var(--bad) 10%, transparent);
2362 color: var(--bad);
2363}
2364.tablefilter { min-width: 14rem; }
2365pre.copyable { margin: var(--sp-2) 0 0; }
2366html.js form[data-autosave] button[type="submit"] { display: none; }
2367.toast {
2368 position: fixed;
2369 right: var(--sp-5);
2370 bottom: var(--sp-5);
2371 z-index: 60;
2372 padding: var(--sp-2) var(--sp-4);
2373 border-radius: var(--r-ctl);
2374 background: var(--shell-bg);
2375 color: var(--shell-fg);
2376 font-size: var(--fs-2);
2377 box-shadow: var(--shadow);
2378 opacity: 0;
2379 transform: translateY(6px);
2380 pointer-events: none;
2381 transition: opacity 0.16s ease, transform 0.16s ease;
2382}
2383.toast-show { opacity: 1; transform: translateY(0); }
2384.toast-err { background: var(--bad); color: var(--canvas); }
2385
2386/* ---- dashboard & profile polish ---- */
2387.dashpins, .feedcol {
2388 background: var(--canvas);
2389 border: 1px solid var(--faint);
2390 border-radius: var(--r-card);
2391 padding: var(--sp-4);
2392}
2393.dashcard-head {
2394 display: flex;
2395 align-items: baseline;
2396 justify-content: space-between;
2397 gap: var(--sp-2);
2398 margin-bottom: var(--sp-2);
2399}
2400.dashcard-head h2 { margin: 0; }
2401.dashfilter {
2402 width: 100%;
2403 margin: 0 0 var(--sp-2);
2404}
2405.dashsec { margin-bottom: var(--sp-5); }
2406.dashsec h2 {
2407 display: flex;
2408 align-items: center;
2409 gap: var(--sp-2);
2410 margin: 0 0 var(--sp-2);
2411}
2412.profilecard {
2413 background: var(--canvas);
2414 border: 1px solid var(--faint);
2415 border-radius: var(--r-card);
2416 padding: var(--sp-5);
2417 margin-bottom: var(--sp-4);
2418}
2419.profiletop {
2420 display: flex;
2421 align-items: flex-start;
2422 gap: var(--sp-4);
2423 flex-wrap: wrap;
2424}
2425.avatar-lg {
2426 width: 52px;
2427 height: 52px;
2428 font-size: var(--fs-5);
2429}
2430.profileid { flex: 1; min-width: 14rem; }
2431.profileid h1 { margin: 0 0 var(--sp-1); display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
2432.profilemeta {
2433 display: flex;
2434 flex-wrap: wrap;
2435 gap: var(--sp-2) var(--sp-4);
2436 font-size: var(--fs-1);
2437 color: var(--muted);
2438 margin-top: var(--sp-2);
2439}
2440.profilemeta a { color: var(--muted); }
2441.profilemeta a:hover { color: var(--link); }
2442
2443/* ---- /new & /notifications polish ---- */
2444nav.newtabs {
2445 border-bottom: 1px solid var(--faint);
2446 margin-top: 0;
2447 margin-bottom: var(--sp-5);
2448}
2449.ownername {
2450 display: flex;
2451 align-items: flex-end;
2452 gap: var(--sp-2);
2453 flex-wrap: wrap;
2454}
2455.ownerpick { flex: 0 0 auto; min-width: 9rem; }
2456.namepick { flex: 1 1 14rem; min-width: 0; }
2457.ownername .slash {
2458 color: var(--muted);
2459 font-size: var(--fs-4);
2460 line-height: 32px;
2461 padding: 0 2px;
2462}
2463ul.issuelist li.unread {
2464 box-shadow: inset 3px 0 0 var(--mark);
2465}
2466
2467/* ---- repo-level tabs polish ---- */
2468.treefilter {
2469 width: 11rem;
2470 min-width: 8rem;
2471 height: 32px;
2472}
2473.reffilter {
2474 display: block;
2475 width: calc(100% - var(--sp-4));
2476 margin: var(--sp-1) var(--sp-2) var(--sp-2);
2477 height: 28px;
2478 font-size: var(--fs-1);
2479}
2480.facts .about, .facts .clone {
2481 background: var(--canvas);
2482 border: 1px solid var(--faint);
2483 border-radius: var(--r-card);
2484 padding: var(--sp-4);
2485}
2486.popform-stack {
2487 flex-direction: column;
2488 align-items: stretch;
2489}
2490.popform-stack input, .popform-stack select, .popform-stack button {
2491 width: 100%;
2492}
2493.releasehead-top {
2494 display: flex;
2495 align-items: center;
2496 gap: var(--sp-2);
2497 flex-wrap: wrap;
2498}
2499.releasehead-top h2 {
2500 margin: 0;
2501 display: inline-flex;
2502 align-items: center;
2503 gap: var(--sp-2);
2504 flex-wrap: wrap;
2505}
2506article.release.setcard {
2507 border-top: 1px solid var(--faint);
2508 padding: var(--sp-5);
2509}
2510
2511/* ---- authoring forms polish ---- */
2512.meta-fields {
2513 display: grid;
2514 grid-template-columns: repeat(3, minmax(0, 1fr));
2515 gap: var(--sp-3);
2516 margin: var(--sp-3) 0;
2517}
2518@media (max-width: 44rem) {
2519 .meta-fields { grid-template-columns: 1fr; }
2520}
2521.commitbar {
2522 display: flex;
2523 align-items: center;
2524 gap: var(--sp-2);
2525 flex-wrap: wrap;
2526 margin: var(--sp-3) 0 var(--sp-2);
2527}
2528.commitbar input { flex: 1 1 16rem; min-width: 0; }
2529.rendered .copywrap .copybtn { top: var(--sp-2); transform: none; }
2530.btngroup a.btn[aria-current="page"] {
2531 border-color: var(--mark);
2532 background: var(--surface);
2533 color: var(--fg);
2534 font-weight: 600;
2535}
2536.commithead.setcard pre.message { margin: var(--sp-3) 0 0; }