forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

_one.scss3798 lines, 68.7 KiBHistoryRawDownload
1// The one look. Imported last. Every control, list, panel and page part gets its look here and
2// nowhere else, so moving between pages changes the content and nothing else. The rules are in
3// docs/ui-language.md.
4
5:root {
6 --radius-sm: 12px;
7 --radius-md: 12px;
8 --radius-lg: 20px;
9 --radius-sheet: 16px;
10 --control-h: 38px;
11 --control-sm: 32px;
12 --display: var(--font);
13 --topbar-h: 56px;
14 --gutter: 24px;
15 --add-bg: #e6effb;
16 --add-text: #1d3f6e;
17 --add-mark: #2d68b4;
18 --del-bg: #fbe8ea;
19 --del-text: #8a1f2d;
20 --del-mark: #b3202f;
21 --bad: #b3202f;
22 --danger: #b3202f;
23 --caution: #b3202f;
24 --danger-bg: #fbe8ea;
25 --alert-bg: #fbe8ea;
26 --alert-text: #8a1f2d;
27 --pop-shadow: 0 12px 36px rgba(20, 18, 15, 0.14);
28}
29
30@mixin one-dark {
31 --add-bg: #17304e;
32 --add-text: #b9d6f7;
33 --add-mark: #7fb3ef;
34 --del-bg: #3b1d20;
35 --del-text: #f7c2c6;
36 --del-mark: #f27d84;
37 --bad: #f27d84;
38 --danger: #f27d84;
39 --caution: #f27d84;
40 --danger-bg: #3b1d20;
41 --alert-bg: #3b1d20;
42 --alert-text: #f7c2c6;
43 --pop-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
44}
45
46:root[data-theme="dark"] {
47 @include one-dark;
48}
49
50@media (prefers-color-scheme: dark) {
51 :root:not([data-theme="light"]) {
52 @include one-dark;
53 }
54}
55
56// Type
57
58body {
59 background: var(--bg);
60 color: var(--text);
61 font-family: var(--font);
62 font-size: 15px;
63 line-height: 22px;
64}
65
66h1,
67.h1,
68.repo-title,
69.issue-heading {
70 font-family: var(--font);
71 font-size: 26px;
72 font-stretch: normal;
73 font-weight: 700;
74 letter-spacing: -0.02em;
75 line-height: 34px;
76}
77
78h2,
79.part-title,
80.sec > h2 {
81 color: var(--muted);
82 font-family: var(--font);
83 font-size: 13px;
84 font-stretch: normal;
85 font-weight: 600;
86 letter-spacing: 0;
87 line-height: 20px;
88 text-transform: none;
89}
90
91h3 {
92 font-family: var(--font);
93 font-size: 15px;
94 font-stretch: normal;
95 font-weight: 600;
96 letter-spacing: 0;
97}
98
99.markdown-body {
100 h1,
101 h2,
102 h3 {
103 padding: 0;
104 border: 0;
105 color: var(--text);
106 }
107
108 h1 {
109 margin: 0 0 10px;
110 font-size: 24px;
111 line-height: 32px;
112 }
113
114 h2 {
115 margin: 20px 0 8px;
116 font-size: 17px;
117 font-weight: 700;
118 line-height: 24px;
119 }
120
121 h3 {
122 margin: 16px 0 6px;
123 font-size: 15px;
124 font-weight: 700;
125 }
126
127 p {
128 margin: 0 0 10px;
129 }
130
131 ul,
132 ol {
133 margin: 0 0 10px;
134 padding-left: 20px;
135 }
136
137 li {
138 margin-bottom: 4px;
139 }
140
141 a {
142 color: var(--accent);
143 }
144
145 code {
146 padding: 1px 5px;
147 border: 0;
148 border-radius: 6px;
149 background: var(--surface-2);
150 font-family: var(--mono);
151 font-size: 13.5px;
152 }
153
154 pre {
155 margin: 0 0 10px;
156 padding: 10px 14px;
157 border: 0;
158 border-radius: 12px;
159 background: var(--surface-2);
160 }
161
162 pre code {
163 padding: 0;
164 background: none;
165 }
166
167 table {
168 margin: 0 0 10px;
169 border-collapse: collapse;
170 }
171
172 th,
173 td {
174 padding: 6px 12px 6px 0;
175 border: 0;
176 border-bottom: 1px solid var(--border);
177 background: none;
178 text-align: left;
179 }
180
181 th {
182 color: var(--muted);
183 font-size: 13px;
184 font-weight: 600;
185 }
186
187 blockquote {
188 margin: 0 0 10px;
189 padding: 0;
190 border: 0;
191 color: var(--muted);
192 }
193
194 > :last-child {
195 margin-bottom: 0;
196 }
197}
198
199.hint {
200 color: var(--muted);
201 font-size: 13px;
202 line-height: 20px;
203}
204
205// Buttons: one filled pill for the page's main action, one soft pill for the rest, one small size.
206
207button,
208.button,
209summary.button,
210input[type="submit"] {
211 display: inline-flex;
212 align-items: center;
213 justify-content: center;
214 gap: 8px;
215 box-sizing: border-box;
216 height: var(--control-h);
217 min-height: 0;
218 padding: 0 18px;
219 border: 0;
220 border-radius: 19px;
221 background: var(--surface-2);
222 box-shadow: none;
223 color: var(--text);
224 cursor: pointer;
225 font-family: var(--font);
226 font-size: 15px;
227 font-weight: 600;
228 line-height: 1;
229 text-decoration: none;
230 white-space: nowrap;
231 transition: none;
232
233 &:hover {
234 border: 0;
235 background: color-mix(in oklab, var(--surface-2) 88%, var(--text));
236 color: var(--text);
237 text-decoration: none;
238 }
239
240 &:disabled,
241 &[aria-disabled="true"] {
242 cursor: not-allowed;
243 opacity: 0.5;
244 }
245}
246
247button.primary,
248.button.primary,
249summary.button.primary {
250 background: var(--text);
251 color: var(--bg);
252
253 &:hover {
254 background: color-mix(in oklab, var(--text) 85%, var(--bg));
255 color: var(--bg);
256 }
257}
258
259button.danger,
260.button.danger,
261summary.button.danger {
262 background: var(--bad);
263 color: var(--bg);
264
265 &:hover {
266 background: color-mix(in oklab, var(--bad) 85%, var(--bg));
267 color: var(--bg);
268 }
269}
270
271button.small,
272.button.small,
273summary.button.small {
274 height: var(--control-sm);
275 padding: 0 14px;
276 border-radius: 15px;
277 font-size: 13px;
278}
279
280button.icon-btn,
281.icon-btn {
282 width: var(--control-sm);
283 height: var(--control-sm);
284 padding: 0;
285 border-radius: 50%;
286 background: none;
287 color: var(--muted);
288
289 &:hover {
290 background: var(--surface-2);
291 color: var(--text);
292 }
293}
294
295// An action inside content: a word in the accent's ink, so it never reads as a hint or a heading.
296
297a.act,
298span.act,
299button.act,
300summary.act,
301button.link-button,
302.link-button {
303 display: inline-flex;
304 align-items: center;
305 height: 30px;
306 min-height: 0;
307 padding: 0 10px;
308 border: 0;
309 border-radius: 12px;
310 background: none;
311 box-shadow: none;
312 color: var(--accent-ink);
313 cursor: pointer;
314 font-family: var(--font);
315 font-size: 14px;
316 font-weight: 600;
317 line-height: 1;
318 text-decoration: none;
319 white-space: nowrap;
320
321 &:hover {
322 border: 0;
323 background: var(--surface-2);
324 color: var(--accent-ink);
325 text-decoration: none;
326 }
327
328 &.quiet,
329 &.quiet:hover {
330 color: var(--muted);
331 }
332
333 &.danger,
334 &.danger:hover {
335 background: none;
336 color: var(--bad);
337 }
338
339 &.danger:hover {
340 background: var(--danger-bg);
341 }
342}
343
344.acts {
345 display: flex;
346 flex-wrap: wrap;
347 align-items: center;
348 gap: 4px;
349 margin-left: -10px;
350
351 // Every button is pinned to the top of a flex column by the old sheet; in a row of actions a
352 // short word action stands on the middle line of a tall submit instead.
353 > :is(button, .button) {
354 align-self: auto;
355 }
356}
357
358.sec > .acts {
359 margin-top: 4px;
360}
361
362// A lone action in a topic keeps its words on the topic's edge, as a row of them does.
363.sec > a.act,
364.sec > button.act,
365.sec > details > summary.act,
366.sec > form > button.act:only-of-type {
367 margin-left: -10px;
368}
369
370.act-form {
371 display: inline-flex;
372}
373
374// Controls: a soft filled shape with no line around it.
375
376input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"], [type="range"], [type="hidden"]),
377select,
378textarea {
379 box-sizing: border-box;
380 min-height: 0;
381 border: 0;
382 border-radius: 12px;
383 outline: 0;
384 background-color: var(--surface-2);
385 box-shadow: none;
386 color: var(--text);
387 font-family: var(--font);
388 font-size: 15px;
389}
390
391input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"], [type="range"], [type="hidden"]),
392select {
393 height: var(--control-h);
394 padding: 0 12px;
395}
396
397select:not([multiple], [size]:not([size="1"])) {
398 padding-right: 32px;
399 border-radius: 19px;
400 font-size: 14px;
401 font-weight: 600;
402}
403
404textarea {
405 padding: 10px 12px;
406 line-height: 22px;
407}
408
409input:focus,
410select:focus,
411textarea:focus {
412 border: 0;
413 outline: 2px solid var(--focus);
414 outline-offset: 1px;
415 box-shadow: none;
416}
417
418:focus-visible {
419 outline: 2px solid var(--focus);
420 outline-offset: 2px;
421}
422
423::placeholder {
424 color: var(--muted);
425 opacity: 1;
426}
427
428input[type="checkbox"] {
429 width: 18px;
430 height: 18px;
431 border: 0;
432 border-radius: 6px;
433 background: none;
434 box-shadow: inset 0 0 0 1.5px var(--border-strong);
435
436 &:checked {
437 background: var(--accent);
438 box-shadow: none;
439 }
440}
441
442input[type="radio"] {
443 flex: none;
444 appearance: none;
445 width: 18px;
446 height: 18px;
447 margin: 2px 0 0;
448 border: 0;
449 border-radius: 50%;
450 background: none;
451 box-shadow: inset 0 0 0 1.5px var(--border-strong);
452 cursor: pointer;
453
454 &:checked {
455 box-shadow: inset 0 0 0 5px var(--accent);
456 }
457}
458
459// A form: the label beside its control, the hint under the control, the submit on the same edge.
460
461.fields {
462 --label-w: 130px;
463 display: flex;
464 flex-direction: column;
465 gap: 6px;
466 max-width: 760px;
467}
468
469.field {
470 display: grid;
471 grid-template-columns: var(--label-w, 130px) minmax(0, max-content) minmax(0, 1fr);
472 gap: 4px 16px;
473 align-items: start;
474 min-width: 0;
475
476 > label,
477 > .field-label {
478 grid-column: 1;
479 padding-top: 8px;
480 font-size: 15px;
481 font-weight: 500;
482 line-height: 22px;
483 }
484
485 > *:not(label, .field-label) {
486 grid-column: 2;
487 min-width: 0;
488 }
489
490 > label.switch {
491 grid-column: 2 / -1;
492 padding-top: 0;
493 }
494
495 // The canvas's sizes: a line of text is 280 wide and so is a select, so every control in a form ends
496 // on one edge; a box of text is 560.
497 > input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"], [type="range"], [type="hidden"]) {
498 width: 280px;
499 max-width: 100%;
500 }
501
502 // A title or a summary is a sentence: as wide as a box of text.
503 > input:is([name="title"], [name="summary"], [name="description"]) {
504 width: 560px;
505 }
506
507 > select:not([multiple]) {
508 width: 280px;
509 max-width: 100%;
510 }
511
512 > textarea {
513 width: 560px;
514 max-width: 100%;
515 }
516
517 > .hint {
518 margin: 0;
519 }
520
521 // A hint sits beside one short control, and under anything taller. A phone stacks it all.
522 @media (min-width: 701px) {
523 > .hint {
524 grid-column: 3;
525 grid-row: 1;
526 align-self: center;
527 }
528
529 &:has(> textarea, > .choice, > div, > fieldset, > .hint ~ .hint, > :not(label, .field-label, .hint) ~ :not(label, .field-label, .hint)) > .hint {
530 grid-column: 2 / -1;
531 grid-row: auto;
532 align-self: start;
533 }
534 }
535}
536
537// A field of several boxes to tick: one under another in the control column, its text by its box.
538.field > .checks {
539 display: flex;
540 flex-direction: column;
541 gap: 6px;
542 padding-top: 9px;
543
544 > .switch {
545 align-items: center;
546 font-weight: 400;
547 }
548}
549
550.field-pair {
551 gap: 14px 24px;
552}
553
554.field-pair > .field {
555 --label-w: 110px;
556}
557
558.fields > button[type="submit"],
559.fields > .button,
560.fields > .switch,
561.fields > .hint,
562.fields > fieldset {
563 align-self: flex-start;
564 margin-left: calc(var(--label-w) + 16px);
565}
566
567// A topic of fields outside a .fields form lines its box and its submit up the same way.
568.sec:has(> .field) > .switch,
569.sec:has(> .field) > button[type="submit"],
570.sec:has(> .field) > .acts:has(> button[type="submit"]) {
571 align-self: flex-start;
572 margin-left: calc(var(--label-w, 130px) + 16px);
573}
574
575@media (max-width: 700px) {
576 .sec:has(> .field) > .switch,
577 .sec:has(> .field) > button[type="submit"],
578 .sec:has(> .field) > .acts:has(> button[type="submit"]) {
579 margin-left: 0;
580 }
581}
582
583.fields > .acts {
584 align-self: flex-start;
585 margin-left: calc(var(--label-w) + 16px);
586}
587
588// A form with no labelled field has no label column to clear: its controls start at the edge.
589.fields:not(:has(> .field, > .field-pair, > fieldset)) > :is(button[type="submit"], .button, .switch, .hint, .acts) {
590 margin-left: 0;
591}
592
593.field:has(> label.sr-only) {
594 grid-template-columns: minmax(0, 1fr);
595
596 > :not(label) {
597 grid-column: 1;
598 }
599}
600
601.fields:has(> .field > label.sr-only) > :is(button[type="submit"], .button, .acts) {
602 margin-left: 0;
603}
604
605// A quiet action leading the row keeps its words, not its padding, on the fields' edge.
606.fields > .acts > .act:first-child {
607 margin-left: -10px;
608}
609
610.switch {
611 display: flex;
612 align-items: flex-start;
613 gap: 10px;
614 font-weight: 500;
615}
616
617// Search bars are the same soft field with an icon inside.
618
619.plain-search {
620 height: var(--control-h);
621 margin: 0;
622 padding: 0 14px;
623 border: 0;
624 border-radius: 19px;
625 background: var(--surface-2);
626
627 input,
628 input:focus {
629 height: 100%;
630 outline: 0;
631 background: none;
632 }
633
634 &:focus-within {
635 outline: 2px solid var(--focus);
636 outline-offset: 1px;
637 }
638}
639
640// Sections and second-level links share one row of soft tabs.
641
642.tabs,
643.issue-tabs,
644.repo-tabs,
645.sub {
646 display: flex;
647 flex-wrap: nowrap;
648 gap: 2px;
649 overflow-x: auto;
650 margin: 8px 0 0 -14px;
651 padding: 2px;
652 border: 0;
653 border-radius: 0;
654 background: none;
655 box-shadow: none;
656 font-size: 14px;
657 scrollbar-width: none;
658}
659
660.tabs > a,
661.tabs .tab,
662.issue-tabs > *,
663.repo-tabs > a,
664.repo-tabs .tab,
665.sub > a:not(.act) {
666 display: inline-flex;
667 flex: none;
668 align-items: center;
669 gap: 6px;
670 height: 32px;
671 margin: 0;
672 padding: 0 12px;
673 border: 0;
674 border-radius: 15px;
675 background: none;
676 box-shadow: none;
677 color: var(--muted);
678 font-size: 14px;
679 font-weight: 500;
680 text-decoration: none;
681 white-space: nowrap;
682
683 &:hover {
684 background: var(--surface-2);
685 color: var(--text);
686 text-decoration: none;
687 }
688
689 &[aria-current="page"],
690 &.active,
691 &:has(:checked) {
692 background: var(--surface);
693 box-shadow: 0 0 0 1px var(--border);
694 color: var(--text);
695 font-weight: 500; // the same as its neighbours, so choosing never shifts the row
696 }
697}
698
699.tab-count {
700 position: relative;
701 top: -1px;
702 margin: 0;
703 padding: 0;
704 border: 0;
705 border-radius: 0;
706 background: none;
707 color: inherit;
708 font-family: var(--mono);
709 font-size: 12.5px;
710 font-weight: 400;
711}
712
713.tab-icon {
714 display: none;
715}
716
717// The top bar: profile, then the place you are in, which is also search.
718
719.topbar {
720 position: static;
721 display: flex;
722 align-items: center;
723 gap: 12px;
724 height: var(--topbar-h);
725 padding: 0 var(--gutter);
726 border: 0;
727 background: none;
728}
729
730.top-start {
731 display: flex;
732 flex: none;
733 align-items: center;
734 gap: 12px;
735 width: auto;
736 padding: 0;
737}
738
739.wordmark {
740 color: var(--text);
741 font-family: var(--font);
742 font-size: 17px;
743 font-weight: 800;
744 letter-spacing: -0.02em;
745 text-decoration: none;
746
747 &:hover {
748 color: var(--text);
749 text-decoration: none;
750 }
751}
752
753.pathbar,
754.pathbar:has(.pathbar-edit) {
755 flex: 0 1 auto;
756 display: flex;
757 align-items: center;
758 gap: 8px;
759 width: auto;
760 min-width: 0;
761 max-width: min(640px, 60vw);
762 height: 36px;
763 box-sizing: border-box;
764 padding: 0 8px 0 14px;
765 border: 0;
766 border-radius: 18px;
767 background: var(--surface-2);
768}
769
770.pathbar-segs {
771 font-family: var(--font);
772 font-size: 14px;
773}
774
775.pathbar-seg.last {
776 font-weight: 600;
777}
778
779.pathbar-segs {
780 display: flex;
781 flex: 0 1 auto;
782 align-items: center;
783 min-width: 0;
784 margin: 0;
785 padding: 0;
786 list-style: none;
787}
788
789.pathbar-edit,
790button.pathbar-edit {
791 flex: none;
792 align-self: center;
793 width: auto;
794 height: auto;
795 padding: 0;
796 background: none;
797 font-size: 12px;
798 font-weight: 400;
799
800 &:hover {
801 background: none;
802 }
803
804 .pathbar-hint {
805 display: none;
806 }
807
808 kbd {
809 padding: 2px 8px;
810 border: 0;
811 border-radius: 10px;
812 background: var(--surface);
813 box-shadow: none;
814 color: var(--muted);
815 font-family: var(--mono);
816 font-size: 12px;
817 }
818}
819
820.top-explore {
821 flex: none;
822 height: 32px;
823 padding: 0 12px;
824 border-radius: 15px;
825 color: var(--muted);
826 font-size: 14px;
827 font-weight: 500;
828
829 &:hover {
830 background: var(--surface-2);
831 color: var(--text);
832 text-decoration: none;
833 }
834}
835
836.live-strip {
837 margin-left: 0;
838}
839
840// The profile sits at the start of the bar; a dot says something waits for you.
841
842.corner-float {
843 position: relative;
844 inset: auto;
845 z-index: 40;
846 flex: none;
847 width: auto;
848 padding: 0;
849 border: 0;
850 border-radius: 0;
851 background: none;
852 box-shadow: none;
853 backdrop-filter: none;
854 transform: none;
855}
856
857.corner {
858 position: relative;
859 display: block;
860}
861
862.corner-btn,
863summary.corner-btn {
864 position: relative;
865 display: block;
866 width: 32px;
867 height: 32px;
868 padding: 0;
869 border: 0;
870 border-radius: 50%;
871 background: none;
872 box-shadow: none;
873 cursor: pointer;
874 list-style: none;
875
876 &::-webkit-details-marker {
877 display: none;
878 }
879
880 &:hover {
881 background: none;
882 box-shadow: none;
883 }
884
885 .corner-avatar {
886 display: block;
887 width: 32px;
888 height: 32px;
889 border: 0;
890 border-radius: 50%;
891 }
892}
893
894.bell-count {
895 color: var(--muted);
896 font-family: var(--mono);
897 font-size: 12.5px;
898}
899
900// Something waits for the viewer (an unread notification, a review request, a mention or a failed
901// run): a dot on the avatar. nav.js keeps the `waiting` class in step with the counts.
902details.corner.waiting > .corner-btn::after {
903 content: "";
904 position: absolute;
905 top: -1px;
906 right: -1px;
907 width: 10px;
908 height: 10px;
909 box-sizing: border-box;
910 border: 2px solid var(--bg);
911 border-radius: 50%;
912 background: var(--accent);
913}
914
915.corner-menu {
916 position: absolute;
917 top: 42px;
918 right: auto;
919 bottom: auto;
920 left: 0;
921 display: flex;
922 flex-direction: column;
923 gap: 2px;
924 width: 260px;
925 max-width: calc(100vw - 28px);
926 padding: 8px !important;
927}
928
929.corner-who {
930 margin: 0;
931 overflow: hidden;
932 padding: 6px 12px;
933 font-weight: 700;
934 text-overflow: ellipsis;
935 white-space: nowrap;
936}
937
938.corner-link,
939a.corner-link,
940button.corner-link {
941 display: flex;
942 align-items: center;
943 gap: 8px;
944 width: 100%;
945 color: var(--text);
946 text-decoration: none;
947
948 &:hover {
949 background: var(--surface-2);
950 color: var(--text);
951 text-decoration: none;
952 }
953
954 .val {
955 color: var(--muted);
956 font-family: var(--mono);
957 font-size: 12.5px;
958 }
959}
960
961// The avatar is the whole button: no inset, so it sits on the top bar's middle line.
962.corner-float summary.corner-btn {
963 padding: 0;
964}
965
966.corner-sep {
967 height: 1px;
968 margin: 6px 4px;
969 background: var(--border);
970}
971
972// Page parts
973
974.shell-body > main {
975 box-sizing: border-box;
976 width: 100%;
977 max-width: none;
978 padding: 12px var(--gutter) var(--gutter);
979}
980
981main[data-width] {
982 max-width: none;
983}
984
985// Above the section tabs: the shell writes the tabs, the page writes its head.
986.shell-body > main {
987 display: flex;
988 flex-direction: column;
989 min-width: 0;
990}
991
992main > .head {
993 order: -1;
994}
995
996main > .tabs {
997 margin-bottom: 12px;
998}
999
1000.head {
1001 display: flex;
1002 flex-direction: column;
1003 gap: 4px;
1004 min-width: 0;
1005 margin-bottom: 8px;
1006}
1007
1008.acts.asks {
1009 gap: 8px;
1010 margin-left: 0;
1011}
1012
1013.head-title {
1014 display: flex;
1015 flex-wrap: wrap;
1016 align-items: center;
1017 gap: 12px;
1018 min-width: 0;
1019
1020 > h1 {
1021 min-width: 0;
1022 margin: 0;
1023 overflow-wrap: anywhere;
1024 }
1025
1026 .num {
1027 color: var(--muted);
1028 font-weight: 500;
1029 }
1030
1031 > h1.bad {
1032 color: var(--bad);
1033 }
1034
1035 > h1.live {
1036 color: var(--accent);
1037 }
1038}
1039
1040.head-sub {
1041 display: flex;
1042 flex-wrap: wrap;
1043 align-items: center;
1044 gap: 2px 8px;
1045 margin: 0;
1046 color: var(--muted);
1047 font-size: 14px;
1048
1049 b {
1050 color: var(--text);
1051 font-weight: 600;
1052 }
1053}
1054
1055.head-sub {
1056 a {
1057 color: inherit;
1058 text-decoration: none;
1059 }
1060
1061 a:hover {
1062 color: var(--text);
1063 text-decoration: underline;
1064 }
1065
1066 .sep {
1067 color: var(--muted);
1068 }
1069
1070 .mono {
1071 font-family: var(--mono);
1072 font-size: 13px;
1073 }
1074
1075 .b {
1076 color: var(--text);
1077 font-weight: 600;
1078 }
1079}
1080
1081// Recent runs after the head line: a dot each, coloured by how it ended, the newest last.
1082.pips {
1083 display: inline-flex;
1084 align-items: center;
1085 gap: 4px;
1086 margin-left: 6px;
1087 vertical-align: middle;
1088}
1089
1090.pip {
1091 display: block;
1092 width: 8px;
1093 height: 8px;
1094 border-radius: 50%;
1095 box-shadow: inset 0 0 0 1.5px var(--border-strong);
1096
1097 &.ok {
1098 background: var(--ok);
1099 box-shadow: none;
1100 }
1101
1102 &.bad {
1103 background: var(--bad);
1104 box-shadow: none;
1105 }
1106
1107 &.live {
1108 background: var(--accent);
1109 box-shadow: none;
1110 }
1111
1112 // The newest run is a little larger.
1113 &.cur {
1114 width: 10px;
1115 height: 10px;
1116 }
1117}
1118
1119.work {
1120 display: grid;
1121 grid-template-columns: 288px minmax(0, 1fr);
1122 gap: 16px;
1123 align-items: start;
1124 min-width: 0;
1125}
1126
1127.work:not(:has(> .rail)) {
1128 grid-template-columns: minmax(0, 1fr);
1129}
1130
1131.rail {
1132 position: sticky;
1133 top: 12px;
1134 display: flex;
1135 flex-direction: column;
1136 gap: 2px;
1137 min-width: 0;
1138 max-height: calc(100vh - 24px);
1139 font-size: 14px;
1140
1141 > h2 {
1142 display: flex;
1143 gap: 8px;
1144 margin: 4px 12px 6px;
1145 }
1146
1147 > input,
1148 > .plain-search {
1149 flex: none;
1150 width: 100%;
1151 margin-bottom: 6px;
1152 }
1153}
1154
1155// The branch beside the Files heading: the small soft pill every other picker in a tools row is, 32px
1156// tall, that opens the one menu.
1157.rail-head .ref-select > summary {
1158 display: inline-flex;
1159 gap: 6px;
1160 align-items: center;
1161 height: 32px;
1162 min-height: 0;
1163 padding: 0 12px 0 14px;
1164 border: 0;
1165 border-radius: 16px;
1166 background: var(--surface-2);
1167 box-shadow: none;
1168 color: var(--text);
1169 cursor: pointer;
1170 font-size: 14px;
1171 font-weight: 500;
1172
1173 &:hover {
1174 background: color-mix(in oklab, var(--surface-2) 88%, var(--text));
1175 }
1176
1177 > svg:first-child {
1178 display: none;
1179 }
1180
1181 code,
1182 .ref-name {
1183 padding: 0;
1184 border: 0;
1185 border-radius: 0;
1186 background: none;
1187 box-shadow: none;
1188 color: inherit;
1189 font-family: var(--font);
1190 font-size: 14px;
1191 }
1192
1193 svg {
1194 width: 12px;
1195 height: 12px;
1196 }
1197}
1198
1199// The rail's head starts on the sheet's top edge, with no rule above it: the list's own rows draw the lines.
1200.rail-head.browse-bar {
1201 margin: 0 0 8px;
1202 padding: 0;
1203 border: 0;
1204}
1205
1206.rail-head {
1207 display: flex;
1208 flex-wrap: wrap;
1209 align-items: center;
1210 gap: 6px 8px;
1211 margin-bottom: 6px;
1212
1213 > h2 {
1214 margin: 0 0 0 12px;
1215 }
1216
1217 > .code-search-act {
1218 margin-left: auto;
1219 }
1220
1221 > .finder-open {
1222 flex: 1 0 100%;
1223 justify-content: space-between;
1224 height: var(--control-h);
1225 padding: 0 12px;
1226 background: var(--surface-2);
1227 font-size: 15px;
1228 font-weight: 400;
1229
1230 kbd {
1231 border: 0;
1232 background: none;
1233 box-shadow: none;
1234 color: var(--muted);
1235 font-family: var(--mono);
1236 font-size: 12px;
1237 }
1238 }
1239}
1240
1241.rail-list {
1242 flex: 1;
1243 display: flex;
1244 flex-direction: column;
1245 gap: 2px;
1246 min-height: 0;
1247 margin: -2px;
1248 padding: 2px;
1249 overflow-y: auto;
1250}
1251
1252.rail-item {
1253 flex: none;
1254 display: grid;
1255 grid-template-columns: minmax(0, 1fr) auto;
1256 gap: 8px;
1257 align-items: center;
1258 min-height: 34px;
1259 padding: 0 12px;
1260 border-radius: 12px;
1261 color: var(--text);
1262 font-weight: 500;
1263 text-decoration: none;
1264
1265 .nm {
1266 overflow: hidden;
1267 text-overflow: ellipsis;
1268 white-space: nowrap;
1269 }
1270
1271 .nm.dir {
1272 font-family: var(--mono);
1273 font-size: 13px;
1274 }
1275
1276 .val {
1277 color: var(--muted);
1278 font-family: var(--mono);
1279 font-size: 12.5px;
1280 white-space: nowrap;
1281 }
1282
1283 &:hover {
1284 background: var(--surface-2);
1285 color: var(--text);
1286 text-decoration: none;
1287 }
1288
1289 &[aria-current="page"],
1290 &[aria-current="true"],
1291 &.sel {
1292 background: var(--surface);
1293 box-shadow: 0 0 0 1px var(--border);
1294 font-weight: 500; // the same as its neighbours, so choosing never shifts the row
1295 }
1296}
1297
1298.sheet {
1299 min-width: 0;
1300 overflow: clip;
1301 border-radius: var(--radius-sheet);
1302 background: var(--surface);
1303 box-shadow: 0 0 0 1px var(--border);
1304}
1305
1306// A phone has no room for a box inside the page: the sheet runs to the screen's edges with a
1307// hairline above and below, so its rows get the width the gutter and ring took.
1308@media (max-width: 700px) {
1309 .sheet {
1310 margin-right: calc(-1 * var(--gutter));
1311 margin-left: calc(-1 * var(--gutter));
1312 border-radius: 0;
1313 box-shadow: 0 -1px 0 var(--border), 0 1px 0 var(--border);
1314 }
1315
1316 // A sheet that hugs its form on a wide screen takes the whole width here too, so no half band.
1317 main > .sheet.fit {
1318 align-self: stretch;
1319 }
1320}
1321
1322// A panel opened inside the sheet lies over the page, so the sheet stops cutting while it is open.
1323.sheet:has(details[open] > :is(.menu-list, .pop-panel, .status-list)) {
1324 overflow: visible;
1325}
1326
1327.sheet .readme,
1328.sheet .markdown-body {
1329 max-width: 796px;
1330}
1331
1332// A readme in a sheet: its text starts on the tools row's inset, the canvas's 22px under the row.
1333.sheet .readme {
1334 margin: 0;
1335 padding: 22px 18px 28px;
1336
1337 .markdown-body,
1338 .readme-text {
1339 padding: 0;
1340 }
1341 border-radius: 0;
1342 background: none;
1343 box-shadow: none;
1344}
1345
1346.sheet-tools {
1347 display: flex;
1348 flex-wrap: wrap;
1349 align-items: center;
1350 gap: 4px;
1351 min-height: 48px;
1352 box-sizing: border-box;
1353 padding: 6px 10px 6px 18px;
1354 border-bottom: 1px solid var(--border);
1355
1356 > strong {
1357 margin-right: 10px;
1358 font-weight: 700;
1359 overflow-wrap: anywhere;
1360 }
1361}
1362
1363.sheet.fit {
1364 align-self: start;
1365}
1366
1367.sheet-add {
1368 display: flex;
1369 flex-direction: column;
1370 gap: 10px;
1371 padding: 16px 18px;
1372 border-bottom: 1px solid var(--border);
1373}
1374
1375.sheet > .state {
1376 margin: 0;
1377 padding: 14px 18px;
1378}
1379
1380// Inside a sheet the topics carry the padding and the rows reach both edges.
1381
1382.sec {
1383 gap: 8px;
1384 padding: 14px 0;
1385 border: 0;
1386
1387 &:last-child {
1388 border: 0;
1389 }
1390}
1391
1392.sheet > .sec,
1393.sheet > form > .sec,
1394.sheet > .fields,
1395.sheet > .sheet-pad {
1396 padding: 14px 18px;
1397}
1398
1399.sheet > .sec + .sec {
1400 border-top: 1px solid var(--border);
1401}
1402
1403// A topic that opens with its own tools row: the row runs edge to edge, as a sheet's own does.
1404.sheet > .sec > .sheet-tools:first-child {
1405 margin: -14px -18px 0;
1406}
1407
1408.line,
1409div.line {
1410 gap: 10px;
1411 box-sizing: border-box;
1412 min-height: 46px;
1413 padding: 8px 18px;
1414 border-bottom: 1px solid var(--border);
1415
1416 &:last-child {
1417 border-bottom: 0;
1418 }
1419
1420 .name {
1421 font-weight: 600;
1422 }
1423
1424 .val {
1425 font-size: 14px;
1426 }
1427}
1428
1429a.line:hover,
1430summary.line:hover {
1431 background: color-mix(in oklab, var(--surface) 96%, var(--text));
1432}
1433
1434a.line:hover .name,
1435.row-open > summary.line:hover .name {
1436 color: var(--text);
1437}
1438
1439.line > :is(a.act, button.act, summary.act):first-child,
1440.line > .act-form:first-child > .act,
1441.line > details.reveal:first-child > summary.act {
1442 margin-left: -10px;
1443}
1444
1445.sheet > .sec > .line,
1446.sheet > .sec > div:not([class]) > .line,
1447.sheet > .sec > .commits-list > .line,
1448.sheet > .sec > .commits-list > .row-open > .line,
1449.sheet > .sec > .row-open > .line {
1450 margin: 0 -18px;
1451 padding-right: 18px;
1452 padding-left: 18px;
1453}
1454
1455.opened {
1456 gap: 10px;
1457 margin: 4px 0 6px;
1458 padding: 0;
1459 border: 0;
1460}
1461
1462.row-open[open] > summary.line {
1463 padding-bottom: 4px;
1464 border-bottom: 0;
1465}
1466
1467.row-open > .opened {
1468 margin: 0;
1469 padding: 0 18px 14px;
1470 border-bottom: 1px solid var(--border);
1471}
1472
1473.sheet > .sec > .row-open > .opened,
1474.sheet > .sec > .commits-list > .row-open > .opened {
1475 margin: 0 -18px;
1476 padding-right: 18px;
1477 padding-left: 18px;
1478}
1479
1480.row-open:last-child > .opened {
1481 border-bottom: 0;
1482}
1483
1484// Rows under a topic's heading are one list of that topic: their dividers stop at the text edges,
1485// so only the lines between topics run edge to edge.
1486.sheet > .sec:has(> h2) > .line,
1487.sheet > .sec:has(> h2) > .row-open > .line,
1488.sheet > .sec:has(> h2) > .row-open > .opened {
1489 margin: 0;
1490 padding-right: 0;
1491 padding-left: 0;
1492}
1493
1494// The last row of a list ends on its topic's edge, closed or open, as a plain line does.
1495.row-open:last-child:not([open]) > summary.line {
1496 border-bottom: 0;
1497}
1498
1499// Tags
1500
1501.badge,
1502.chip,
1503.tag,
1504.pill,
1505.count {
1506 display: inline-flex;
1507 align-items: center;
1508 height: 22px;
1509 padding: 0 8px;
1510 border: 0;
1511 border-radius: 11px;
1512 background: var(--surface-2);
1513 box-shadow: none;
1514 color: var(--muted);
1515 font-family: var(--font);
1516 font-size: 12.5px;
1517 font-weight: 500;
1518 letter-spacing: 0;
1519 text-transform: none;
1520 white-space: nowrap;
1521}
1522
1523// A label is a tag tinted with its own colour, readable in both themes.
1524.label-chip.label-chip {
1525 display: inline-flex;
1526 align-items: center;
1527 height: 22px;
1528 padding: 0 8px;
1529 border: 0;
1530 border-radius: 11px;
1531 background: color-mix(in oklab, var(--label, var(--muted)) 18%, var(--surface));
1532 box-shadow: none;
1533 color: color-mix(in oklab, var(--label, var(--muted)) 50%, var(--text));
1534 font-size: 12.5px;
1535 font-weight: 500;
1536 line-height: 1;
1537 text-decoration: none;
1538 white-space: nowrap;
1539}
1540
1541.badge.public,
1542.badge.private {
1543 background: var(--surface-2);
1544 color: var(--muted);
1545}
1546
1547// Every menu, dropdown and popover is this one panel.
1548
1549.menu-list,
1550.tab-more-list,
1551.strip-list,
1552.corner-menu,
1553.ref-menu,
1554.pop-panel,
1555.head-title > details.reveal:not(:has(.field)) > .opened,
1556.row-menu-panel,
1557.ci-tl-more > p,
1558.dock-expand > .dock-message,
1559details > .status-list,
1560.palette-box {
1561 border: 0 !important;
1562 border-radius: 20px !important;
1563 background: var(--surface) !important;
1564 box-shadow: var(--pop-shadow), 0 0 0 1px var(--border) !important;
1565}
1566
1567.tab-more-list > a,
1568.strip-list a,
1569.corner-menu > a,
1570.corner-link,
1571button.corner-link.link-button,
1572.menu-list > a,
1573.menu-list > form > button:not(.primary),
1574.row-menu-panel > form > button,
1575.row-menu-panel > button,
1576.row-menu-panel > a {
1577 height: 34px;
1578 padding: 0 12px;
1579 border-radius: 12px;
1580 font-size: 14px;
1581 font-weight: 500;
1582}
1583
1584// The repo tabs' more menu opens under its tab, over the page.
1585
1586.tab-more {
1587 position: relative;
1588}
1589
1590// The repo tabs scroll in their row, so the code pages panel is placed on the head instead.
1591.repo-head {
1592 position: relative;
1593}
1594
1595.tab-more > summary {
1596 list-style: none;
1597 cursor: pointer;
1598
1599 &::-webkit-details-marker {
1600 display: none;
1601 }
1602}
1603
1604.tab-more-list {
1605 position: absolute;
1606 z-index: 30;
1607 top: calc(100% + 6px);
1608 left: 0;
1609 display: flex;
1610 flex-direction: column;
1611 min-width: 200px;
1612 padding: 6px;
1613
1614 > a {
1615 display: flex;
1616 align-items: center;
1617 color: var(--text);
1618 text-decoration: none;
1619
1620 &:hover {
1621 background: var(--surface-2);
1622 }
1623 }
1624}
1625
1626// Boxes from older pages read as sheets.
1627
1628.card,
1629.fit-pane,
1630.rows-pane,
1631.table-wrap,
1632.readme,
1633.repo-readme,
1634.review-box,
1635.issue-list {
1636 border: 0;
1637 border-radius: var(--radius-sheet);
1638 background: var(--surface);
1639 box-shadow: 0 0 0 1px var(--border);
1640}
1641
1642.sheet .card,
1643.sheet .fit-pane,
1644.sheet .rows-pane,
1645.sheet .table-wrap,
1646.sheet .readme,
1647.sheet .issue-list {
1648 border-radius: 0;
1649 box-shadow: none;
1650}
1651
1652.table th,
1653.table td {
1654 border-bottom: 1px solid var(--border);
1655}
1656
1657.table tr:last-child td {
1658 border-bottom: 0;
1659}
1660
1661.alert {
1662 padding: 10px 14px;
1663 border: 0;
1664 border-radius: 12px;
1665 background: var(--alert-bg);
1666 color: var(--alert-text);
1667}
1668
1669// The strip: the whole thing, and how far along it is. Widths are classes, `fr1` to `fr40`,
1670// because the page may not set inline styles. Use `views::parts::seg_fr`.
1671
1672.strip {
1673 display: flex;
1674 gap: 6px;
1675 min-width: 0;
1676 margin-top: 14px;
1677}
1678
1679.strip.files {
1680 gap: 3px;
1681}
1682
1683@for $i from 1 through 40 {
1684 .fr#{$i} {
1685 flex: $i 1 0;
1686 }
1687}
1688
1689.seg {
1690 display: block;
1691 flex-basis: 0;
1692 min-width: 6px;
1693 padding: 0;
1694 color: var(--muted);
1695 text-decoration: none;
1696
1697 .bar {
1698 position: relative;
1699 display: block;
1700 height: 10px;
1701 overflow: hidden;
1702 border-radius: 5px;
1703 background: var(--border-strong);
1704
1705 b {
1706 position: absolute;
1707 inset: 0 auto 0 0;
1708 border-radius: 5px;
1709 background: var(--accent);
1710 }
1711 }
1712
1713 .lab {
1714 display: flex;
1715 align-items: baseline;
1716 gap: 8px;
1717 margin-top: 6px;
1718 overflow: hidden;
1719 color: var(--muted);
1720 font-size: 14px;
1721 font-weight: 500;
1722 white-space: nowrap;
1723
1724 em {
1725 font-family: var(--mono);
1726 font-size: 12.5px;
1727 font-style: normal;
1728 }
1729 }
1730
1731 &.ok .bar {
1732 background: var(--ok);
1733 }
1734
1735 &.bad .bar {
1736 background: var(--bad);
1737 }
1738
1739 &.skip .bar {
1740 background: none;
1741 box-shadow: inset 0 0 0 1.5px var(--border-strong);
1742 }
1743
1744 &.wait .bar {
1745 background: var(--surface-2);
1746 }
1747
1748 &.live .bar {
1749 background: var(--accent-soft);
1750 }
1751
1752 &.sel .lab {
1753 color: var(--text);
1754 font-weight: 700;
1755 }
1756
1757 &.bad .lab,
1758 &.bad .lab em {
1759 color: var(--bad);
1760 }
1761
1762 &.live .lab,
1763 &.live .lab em {
1764 color: var(--accent);
1765 }
1766}
1767
1768.jobs {
1769 display: flex;
1770 flex-direction: column;
1771 margin-top: 14px;
1772}
1773
1774.job-row {
1775 display: grid;
1776 gap: 12px;
1777 align-items: center;
1778 min-height: 30px;
1779 color: var(--muted);
1780 font-size: 14px;
1781 font-weight: 500;
1782 text-decoration: none;
1783
1784 .name {
1785 overflow: hidden;
1786 text-overflow: ellipsis;
1787 white-space: nowrap;
1788 }
1789
1790 .strip {
1791 margin: 0;
1792 }
1793
1794 .seg .lab {
1795 display: none;
1796 }
1797
1798 &.sel {
1799 color: var(--text);
1800 font-weight: 700;
1801 }
1802}
1803
1804// A tick: a ring, ticked when done or viewed.
1805
1806.tick {
1807 position: relative;
1808 display: block;
1809 flex: none;
1810 width: 16px;
1811 height: 16px;
1812 border-radius: 50%;
1813 box-shadow: inset 0 0 0 1.5px var(--border-strong);
1814
1815 &.done {
1816 box-shadow: inset 0 0 0 5px var(--border-strong);
1817 }
1818
1819 // CI: passed, failed and running each have their colour; waiting stays a ring, cancelled a dashed one.
1820 &.ok {
1821 box-shadow: inset 0 0 0 5px var(--ok);
1822 }
1823
1824 // Skipped or cancelled: the waiting ring, struck through.
1825 &.skip::after {
1826 content: "";
1827 position: absolute;
1828 top: 7.25px;
1829 left: 2px;
1830 width: 12px;
1831 height: 1.5px;
1832 background: var(--border-strong);
1833 transform: rotate(-45deg);
1834 }
1835
1836 &.bad {
1837 box-shadow: inset 0 0 0 5px var(--bad);
1838 }
1839
1840 &.live {
1841 box-shadow: inset 0 0 0 5px var(--accent);
1842 }
1843
1844 &.on {
1845 background: var(--surface-2);
1846 box-shadow: none;
1847
1848 &::after {
1849 content: "";
1850 position: absolute;
1851 top: 3px;
1852 left: 5.5px;
1853 width: 4px;
1854 height: 8px;
1855 border: solid var(--text);
1856 border-width: 0 1.6px 1.6px 0;
1857 transform: rotate(42deg);
1858 }
1859 }
1860
1861 &.cm {
1862 background: var(--accent);
1863 box-shadow: none;
1864 }
1865}
1866
1867.line > .tick {
1868 align-self: center;
1869}
1870
1871// Rows read as text: only their name stands out.
1872
1873.line a:not(.act, .button),
1874.line .name {
1875 color: var(--text);
1876 text-decoration: none;
1877}
1878
1879.line .val,
1880.line .val a {
1881 color: var(--muted);
1882}
1883
1884.line .val a:hover,
1885.line a.name:hover {
1886 color: var(--accent);
1887}
1888
1889// Tools sit on one line in their row: a form there is only its fields.
1890
1891.sheet-tools {
1892 > form,
1893 > .plain-search,
1894 > nav.sub,
1895 .ci-tl-tools {
1896 display: contents;
1897 }
1898
1899 // The class twice: these win over the page-wide field rules, which carry attribute selectors.
1900 &#{&} select {
1901 width: auto;
1902 max-width: 200px;
1903 height: 32px;
1904 min-height: 0;
1905 padding: 0 30px 0 14px;
1906 border-radius: 16px;
1907 font-size: 14px;
1908 }
1909
1910 // A live search needs no button: Enter still sends the form.
1911 .plain-search > button[type="submit"] {
1912 display: none;
1913 }
1914
1915 &#{&} input[type="search"],
1916 &#{&} input[type="text"] {
1917 flex: none;
1918 background: var(--surface-2);
1919 width: 240px;
1920 height: 32px;
1921 min-height: 0;
1922 padding: 0 14px;
1923 border-radius: 16px;
1924 font-size: 14px;
1925 }
1926
1927 > nav.sub a,
1928 .ci-tl-tab {
1929 padding: 4px 10px;
1930 border: 0;
1931 border-radius: 12px;
1932 background: none;
1933 box-shadow: none;
1934 color: var(--muted);
1935 font-size: 14px;
1936 font-weight: 500;
1937 cursor: pointer;
1938 }
1939
1940 > nav.sub a:hover,
1941 .ci-tl-tab:hover {
1942 color: var(--text);
1943 }
1944
1945 > nav.sub a.active,
1946 > nav.sub a[aria-current="page"],
1947 > nav.sub a[aria-current="true"] {
1948 background: var(--accent-soft);
1949 color: var(--accent);
1950 font-weight: 500; // the same as its neighbours, so choosing never shifts the row
1951 }
1952
1953 .switch {
1954 margin: 0 6px;
1955 font-size: 14px;
1956 }
1957
1958 > .mono {
1959 color: var(--muted);
1960 font-size: 13px;
1961 }
1962}
1963
1964// A conversation: entries and events in one sheet, each topic with its own edge.
1965
1966.issue-timeline {
1967 display: flex;
1968 flex-direction: column;
1969}
1970
1971.thread-entry {
1972 display: flex;
1973 flex-direction: column;
1974 gap: 8px;
1975 padding: 14px 18px;
1976 border: 0;
1977 border-bottom: 1px solid var(--border);
1978 background: none;
1979 box-shadow: none;
1980}
1981
1982.thread-head {
1983 display: flex;
1984 flex-wrap: wrap;
1985 align-items: center;
1986 gap: 8px;
1987 color: var(--muted);
1988 font-size: 14px;
1989
1990 a {
1991 color: inherit;
1992 }
1993
1994 strong a {
1995 color: var(--text);
1996 }
1997}
1998
1999.issue-item-body {
2000 padding: 0;
2001}
2002
2003.thread-event {
2004 margin: 0;
2005 padding: 8px 18px;
2006 border: 0;
2007 border-bottom: 1px solid var(--border);
2008 color: var(--muted);
2009 font-size: 14px;
2010
2011 strong {
2012 color: var(--text);
2013 font-weight: 600;
2014 }
2015}
2016
2017.issue-badge {
2018 height: 22px;
2019 padding: 0 8px;
2020 border: 0;
2021 border-radius: 11px;
2022 background: var(--surface-2);
2023 box-shadow: none;
2024 color: var(--muted);
2025 font-size: 12.5px;
2026 font-weight: 500;
2027}
2028
2029// Reactions and Add reaction keep their words on the text's edge, as every quiet action does.
2030.reactions {
2031 display: flex;
2032 flex-wrap: wrap;
2033 align-items: center;
2034 gap: 4px;
2035 margin: 4px 0 0 -10px;
2036 padding: 0;
2037}
2038
2039.reaction-picker > summary {
2040 height: auto;
2041 padding: 4px 10px;
2042 border: 0;
2043 border-radius: 12px;
2044 background: none;
2045 color: var(--muted);
2046 font-size: 14px;
2047 list-style: none;
2048}
2049
2050.reaction {
2051 width: auto;
2052 height: 28px;
2053 min-height: 0;
2054 padding: 0 8px;
2055 border: 0;
2056 border-radius: 14px;
2057 background: var(--surface-2);
2058 font-size: 14px;
2059}
2060
2061.reaction-emoji {
2062 font-size: 14px;
2063}
2064
2065// Review: files in the rail, one file in the sheet, the decision under it.
2066
2067.rail-item.file {
2068 display: grid;
2069 grid-template-columns: 18px minmax(0, 1fr) auto;
2070 gap: 8px;
2071
2072 .tick-toggle {
2073 display: block;
2074 cursor: pointer;
2075 }
2076
2077 .nm {
2078 overflow: hidden;
2079 color: inherit;
2080 text-align: left;
2081 text-overflow: ellipsis;
2082 white-space: nowrap;
2083 direction: rtl;
2084 }
2085
2086 .val {
2087 margin: 0;
2088 }
2089
2090 input:checked + .tick {
2091 background: var(--surface-2);
2092 box-shadow: none;
2093
2094 &::after {
2095 content: "";
2096 position: absolute;
2097 top: 3px;
2098 left: 5.5px;
2099 width: 4px;
2100 height: 8px;
2101 border: solid var(--text);
2102 border-width: 0 1.6px 1.6px 0;
2103 transform: rotate(42deg);
2104 }
2105 }
2106}
2107
2108main > .strip {
2109 margin: 0 0 12px;
2110}
2111
2112.diff-section {
2113 display: flex;
2114 flex-direction: column;
2115 gap: 12px;
2116 min-width: 0;
2117}
2118
2119main > .diff-section,
2120.work-main .diff-section {
2121 gap: 12px;
2122}
2123
2124// A file's diff is a sheet of its own on the commit and compare pages; inside a sheet it is plain.
2125.diff-file {
2126 min-width: 0;
2127 border: 0;
2128 overflow: clip;
2129 border-radius: var(--radius-sheet);
2130 background: var(--surface);
2131 box-shadow: 0 0 0 1px var(--border);
2132}
2133
2134.sheet .diff-file {
2135 border-radius: 0;
2136 box-shadow: none;
2137}
2138
2139.work-main .diff-file-header {
2140 display: none;
2141}
2142
2143.diff-file-header {
2144 background: none;
2145}
2146
2147.diff-index {
2148 display: none;
2149}
2150
2151.diff-file-body {
2152 overflow-x: auto;
2153 border: 0;
2154}
2155
2156.diff-table {
2157 width: 100%;
2158 border: 0;
2159 border-collapse: collapse;
2160 font-family: var(--mono);
2161 font-size: 13.5px;
2162 line-height: 22px;
2163
2164 td {
2165 padding: 0;
2166 border: 0;
2167 box-shadow: none;
2168 }
2169
2170 .diff-plus {
2171 width: 22px;
2172 min-width: 22px;
2173 background: none;
2174 text-align: center;
2175
2176 a {
2177 opacity: 0;
2178 color: var(--accent);
2179 text-decoration: none;
2180 }
2181 }
2182
2183 tr:hover .diff-plus a,
2184 .diff-plus a:focus-visible {
2185 opacity: 1;
2186 }
2187
2188 .diff-ln {
2189 position: static;
2190 width: 52px;
2191 min-width: 52px;
2192 padding-right: 12px;
2193 border: 0;
2194 background: none;
2195 color: var(--muted);
2196 text-align: right;
2197 user-select: none;
2198 }
2199
2200 .diff-code {
2201 padding-right: 18px;
2202 white-space: pre-wrap;
2203 overflow-wrap: anywhere;
2204 }
2205
2206 .diff-line.add td {
2207 background: var(--add-bg);
2208 }
2209
2210 .diff-line.del td {
2211 background: var(--del-bg);
2212 }
2213
2214 .diff-line.hunk td {
2215 background: var(--surface-2);
2216 color: var(--muted);
2217 }
2218}
2219
2220.diff-stats {
2221 font-family: var(--mono);
2222 font-size: 13px;
2223}
2224
2225.work-main .sheet {
2226 padding-bottom: 72px;
2227}
2228
2229.work-main .decide {
2230 margin: -72px 0 0 12px;
2231}
2232
2233// A run: the page fits the window and the log scrolls inside its sheet.
2234
2235.ci-split {
2236 display: contents;
2237}
2238
2239.shell-body > main:has(> .ci-run) {
2240 height: calc(100dvh - 66px);
2241 min-height: 560px;
2242}
2243
2244.ci-tl-log {
2245 display: flex;
2246 flex: 1 1 0;
2247 flex-direction: column;
2248 min-height: 0;
2249 margin-top: 14px;
2250}
2251
2252.ci-tl-radio {
2253 position: absolute;
2254 opacity: 0;
2255 pointer-events: none;
2256}
2257
2258.ci-tl-panel {
2259 display: none;
2260 flex: 1 1 0;
2261 flex-direction: column;
2262 min-height: 0;
2263 overflow: auto;
2264}
2265
2266#ci-view-log:checked ~ .ci-tl-panel-log,
2267#ci-view-timeline:checked ~ .ci-tl-panel-timeline {
2268 display: flex;
2269}
2270
2271.ci-tl-panel-log {
2272 overflow: hidden;
2273}
2274
2275.ci-tl-tabs {
2276 display: contents;
2277}
2278
2279// Log or Timeline: the current one held like a pressed tool inside the sheet, as a sort choice is,
2280// with no underline or accent of its own.
2281#ci-view-log:checked ~ .ci-logbar .ci-tl-tab-log,
2282#ci-view-timeline:checked ~ .ci-logbar .ci-tl-tab-timeline {
2283 background: var(--surface-2);
2284 color: var(--text);
2285 box-shadow: none;
2286 font-weight: 500; // the same as its neighbours, so choosing never shifts the row
2287}
2288
2289.ci-log {
2290 flex: 1 1 0;
2291 min-height: 0;
2292 margin: 0;
2293 padding: 10px 0;
2294 overflow: auto;
2295 border: 0;
2296 border-radius: 0;
2297 background: none;
2298 color: var(--text);
2299 font-family: var(--mono);
2300 font-size: 13.5px;
2301 line-height: 22px;
2302}
2303
2304// A job with no output yet says so in the sheet's quiet hint, instead of an empty pane.
2305.ci-log[data-empty]:empty::before {
2306 content: attr(data-empty);
2307 display: block;
2308 padding: 4px 18px;
2309 color: var(--muted);
2310 font-family: var(--sans, inherit);
2311 font-size: 13px;
2312}
2313
2314.ci-log .ll {
2315 display: grid;
2316 grid-template-columns: 72px minmax(0, 1fr);
2317 white-space: pre-wrap;
2318 overflow-wrap: anywhere;
2319}
2320
2321.ci-log .ln {
2322 padding-right: 18px;
2323 color: var(--muted);
2324 text-align: right;
2325 text-decoration: none;
2326 user-select: none;
2327}
2328
2329.ci-log .ll.bad {
2330 background: var(--danger-bg);
2331 color: var(--bad);
2332 font-weight: 500;
2333
2334 .ln {
2335 color: var(--bad);
2336 }
2337}
2338
2339// The time column fits a long Turkish time ("122 dk 15 sn") on one line, the same width on every row.
2340.job-row {
2341 grid-template-columns: 18px 150px 88px minmax(0, 1fr);
2342
2343 // A phone gives the name what is left and keeps a short bar.
2344 @media (max-width: 700px) {
2345 grid-template-columns: 18px minmax(0, 1fr) 88px 72px;
2346 }
2347
2348 .hint:not(.ci-tl-dur) {
2349 display: none;
2350 }
2351
2352 .ci-tl-dur {
2353 font-family: var(--mono);
2354 font-size: 12.5px;
2355 white-space: nowrap;
2356 }
2357}
2358
2359.seg .bar progress {
2360 display: none;
2361}
2362
2363.seg.live .bar progress {
2364 position: absolute;
2365 inset: 0;
2366 display: block;
2367 width: 100%;
2368 height: 100%;
2369 border: 0;
2370 appearance: none;
2371 background: none;
2372 accent-color: var(--accent);
2373}
2374
2375.seg.live .bar progress::-webkit-progress-bar {
2376 background: none;
2377}
2378
2379.seg.live .bar progress::-webkit-progress-value {
2380 border-radius: 5px;
2381 background: var(--accent);
2382}
2383
2384.seg.live .bar progress::-moz-progress-bar {
2385 border-radius: 5px;
2386 background: var(--accent);
2387}
2388
2389// What the script builds is the same panel and the same rows.
2390
2391.select-search,
2392.md-suggest,
2393.kb-help,
2394dialog[data-finder] {
2395 border: 0 !important;
2396 border-radius: 20px !important;
2397 background: var(--surface) !important;
2398 box-shadow: var(--pop-shadow), 0 0 0 1px var(--border) !important;
2399 color: var(--text);
2400}
2401
2402.select-search {
2403 padding: 8px;
2404}
2405
2406.select-search-input {
2407 width: 100%;
2408 margin-bottom: 6px;
2409}
2410
2411.select-search-list,
2412.md-suggest {
2413 margin: 0;
2414 padding: 0;
2415 list-style: none;
2416}
2417
2418.md-suggest {
2419 padding: 8px;
2420}
2421
2422.select-search-list > li:not(.select-search-group, .select-search-none),
2423.md-suggest-item {
2424 display: flex;
2425 align-items: center;
2426 gap: 8px;
2427 min-height: 34px;
2428 padding: 0 12px;
2429 border-radius: 12px;
2430 font-size: 14px;
2431 font-weight: 500;
2432 cursor: pointer;
2433
2434 &:hover,
2435 &.is-active,
2436 &.active {
2437 background: var(--surface-2);
2438 }
2439}
2440
2441.select-search-group {
2442 margin: 8px 12px 4px;
2443 color: var(--muted);
2444 font-size: 13px;
2445 font-weight: 600;
2446 letter-spacing: 0;
2447 text-transform: none;
2448}
2449
2450.select-search-none {
2451 padding: 8px 12px;
2452 color: var(--muted);
2453 font-size: 14px;
2454}
2455
2456.kb-help {
2457 max-width: min(460px, calc(100vw - 16px));
2458 padding: 18px;
2459
2460 h2 {
2461 margin: 0 0 10px;
2462 color: var(--text);
2463 font-size: 17px;
2464 font-weight: 700;
2465 }
2466}
2467
2468.notice,
2469.draft-note {
2470 margin: 0 0 8px;
2471 padding: 10px 14px;
2472 border: 0;
2473 border-radius: 12px;
2474 background: var(--surface-2);
2475 color: var(--text);
2476 font-size: 14px;
2477}
2478
2479.done-tick {
2480 color: var(--muted);
2481 font-size: 13px;
2482}
2483
2484.scrub-note,
2485.scrub-when,
2486.scrub-marker {
2487 color: var(--muted);
2488 font-family: var(--font);
2489 font-size: 13px;
2490 letter-spacing: 0;
2491 text-transform: none;
2492}
2493
2494// Why a job failed: pinned above its log.
2495
2496// The note over a log that starts part way: one quiet line on the sheet's text edge.
2497.log-cut {
2498 flex: none;
2499 margin: 0;
2500 padding: 8px 18px;
2501 border-bottom: 1px solid var(--border);
2502 color: var(--muted);
2503 font-size: 13px;
2504
2505 > .num {
2506 color: var(--text);
2507 font-variant-numeric: tabular-nums;
2508 }
2509
2510 > a.act {
2511 margin-left: 0;
2512 padding: 0;
2513 }
2514}
2515
2516.why {
2517 display: flex;
2518 flex: none;
2519 flex-wrap: wrap;
2520 align-items: baseline;
2521 gap: 2px 14px;
2522 padding: 12px 18px;
2523 background: var(--danger-bg);
2524 color: var(--bad);
2525 font-weight: 600;
2526
2527 code {
2528 background: none;
2529 color: inherit;
2530 font-family: var(--mono);
2531 font-size: 13.5px;
2532 font-weight: 500;
2533 }
2534}
2535
2536// A review thread, under its line.
2537
2538.thread {
2539 display: flex;
2540 flex-direction: column;
2541 gap: 10px;
2542 max-width: 640px;
2543 margin: 8px 18px 8px 126px;
2544 padding: 12px 14px;
2545 border-radius: 14px;
2546 background: var(--surface-2);
2547 font-family: var(--font);
2548 font-size: 15px;
2549 line-height: 22px;
2550
2551 p {
2552 margin: 0;
2553 }
2554
2555 .who {
2556 font-weight: 600;
2557
2558 span {
2559 margin-left: 6px;
2560 color: var(--muted);
2561 font-size: 13px;
2562 font-weight: 400;
2563 }
2564 }
2565}
2566
2567// Deciding on a review: one pill under the reading, one panel above it.
2568
2569.work-main {
2570 position: relative;
2571 min-width: 0;
2572}
2573
2574.decide {
2575 position: sticky;
2576 z-index: 5;
2577 bottom: 12px;
2578 display: inline-flex;
2579 flex-wrap: wrap;
2580 align-items: center;
2581 gap: 14px;
2582 width: fit-content;
2583 max-width: calc(100% - 24px);
2584 min-height: 60px;
2585 margin: 12px;
2586 padding: 10px 12px 10px 18px;
2587 border-radius: 30px;
2588 background: var(--surface);
2589 box-shadow: var(--pop-shadow), 0 0 0 1px var(--border);
2590
2591 .stat {
2592 display: flex;
2593 align-items: baseline;
2594 gap: 6px;
2595 color: var(--muted);
2596 font-size: 14px;
2597 white-space: nowrap;
2598
2599 b {
2600 color: var(--text);
2601 }
2602 }
2603}
2604
2605.decide-panel {
2606 position: absolute;
2607 z-index: 6;
2608 bottom: calc(100% + 12px);
2609 left: 0;
2610 display: flex;
2611 flex-direction: column;
2612 gap: 14px;
2613 width: min(460px, calc(100vw - 16px));
2614 padding: 18px;
2615 border-radius: 20px;
2616 background: var(--surface);
2617 box-shadow: var(--pop-shadow), 0 0 0 1px var(--border);
2618
2619 h3 {
2620 margin: 0;
2621 font-size: 17px;
2622 font-weight: 700;
2623 }
2624
2625 textarea {
2626 width: 100%;
2627 height: 84px;
2628 resize: none;
2629 }
2630}
2631
2632.opt {
2633 display: grid;
2634 grid-template-columns: 20px 1fr;
2635 gap: 10px;
2636 align-items: start;
2637 padding: 8px 10px;
2638 border-radius: 12px;
2639 font-size: 14px;
2640 font-weight: 600;
2641
2642 small {
2643 display: block;
2644 color: var(--muted);
2645 font-size: 13px;
2646 font-weight: 400;
2647 }
2648
2649 input {
2650 width: 18px;
2651 height: 18px;
2652 margin: 2px 0 0;
2653 accent-color: var(--accent);
2654 }
2655
2656 &:has(input:checked) {
2657 background: var(--accent-soft);
2658 }
2659}
2660
2661@media (max-width: 899px) {
2662 :root {
2663 --gutter: 14px;
2664 }
2665
2666 .wordmark {
2667 display: none;
2668 }
2669
2670 .pathbar,
2671 .pathbar:has(.pathbar-edit) {
2672 flex: 1 1 auto;
2673 max-width: none;
2674 }
2675
2676 .pathbar-edit,
2677 .top-explore {
2678 display: none;
2679 }
2680
2681 .work {
2682 grid-template-columns: minmax(0, 1fr);
2683 }
2684
2685 .rail {
2686 position: static;
2687 max-height: none;
2688 }
2689
2690 // A phone keeps the rail a column: a short list reads whole, a long one scrolls inside its own height.
2691 .rail-list {
2692 max-height: 296px;
2693 }
2694
2695 // Under review the strip moves through the files, so the rail shows only the file that is open.
2696 main:has(> .strip) .rail .rail-item:not([aria-current]) {
2697 display: none;
2698 }
2699}
2700
2701@media (max-width: 700px) {
2702 .field {
2703 grid-template-columns: minmax(0, 1fr);
2704
2705 > label,
2706 > label.switch,
2707 > .field-label,
2708 > *:not(label, .field-label) {
2709 grid-column: 1;
2710 padding-top: 0;
2711 }
2712 }
2713
2714 // On a phone the label sits above its box and every typed box takes the column's width.
2715 .field.field > :is(input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"], [type="hidden"]), textarea) {
2716 width: 100%;
2717 max-width: none;
2718 }
2719
2720 .fields > button[type="submit"],
2721 .fields > .acts,
2722 .fields > .button,
2723 .fields > .switch,
2724 .fields > .hint,
2725 .fields > fieldset {
2726 margin-left: 0;
2727 }
2728}
2729
2730// A few fixed choices: one soft trough with the chosen one lifted out of it.
2731
2732.field > .choice,
2733.choice {
2734 display: inline-flex;
2735 flex: none;
2736 justify-self: start;
2737 width: fit-content;
2738 padding: 3px;
2739 border-radius: 19px;
2740 background: var(--surface-2);
2741
2742 // The class twice: the page-wide rule for labels around a radio is more specific than one class.
2743 @at-root .choice.choice label {
2744 position: relative;
2745 display: inline-flex;
2746 align-items: center;
2747 height: 32px;
2748 margin: 0;
2749 padding: 0 16px;
2750 line-height: 1;
2751 border-radius: 16px;
2752 color: var(--muted);
2753 cursor: pointer;
2754 font-size: 14px;
2755 font-weight: 500;
2756 white-space: nowrap;
2757 flex: none;
2758 }
2759
2760 input {
2761 position: absolute;
2762 width: 0;
2763 height: 0;
2764 margin: 0;
2765 opacity: 0;
2766 }
2767
2768 @at-root .choice.choice label:has(:checked) {
2769 background: var(--surface);
2770 box-shadow: 0 0 0 1px var(--border);
2771 color: var(--text);
2772 font-weight: 500; // the same as its neighbours, so choosing never shifts the row
2773 }
2774
2775 label:has(:focus-visible) {
2776 outline: 2px solid var(--focus);
2777 outline-offset: 1px;
2778 }
2779}
2780
2781// Appearance
2782
2783.sheet > form.appearance > .sec {
2784 padding: 0 18px;
2785}
2786
2787.sheet > form.appearance > .sec + .sec {
2788 border-top: 0;
2789}
2790
2791.appearance .sec:first-of-type {
2792 padding-top: 6px;
2793}
2794
2795.appearance .sec:last-of-type {
2796 padding-bottom: 18px;
2797}
2798
2799.appearance .sec {
2800 gap: 0;
2801}
2802
2803.appearance h2 {
2804 margin: 18px 0 4px;
2805}
2806
2807.appearance .field {
2808 grid-template-columns: 130px auto;
2809 justify-content: start;
2810 align-items: center;
2811 min-height: 50px;
2812 gap: 4px 16px;
2813
2814 // A phone stacks the label over its control, which takes the column.
2815 @media (max-width: 700px) {
2816 grid-template-columns: minmax(0, 1fr);
2817 min-height: 0;
2818 padding: 6px 0;
2819 }
2820}
2821
2822// On a phone a long choice (Turkish "Sistem ile eşleştir") tightens before it would leave the sheet.
2823@media (max-width: 700px) {
2824 .choice.choice {
2825 max-width: 100%;
2826 overflow-x: auto;
2827 scrollbar-width: none;
2828 }
2829
2830 .choice.choice label {
2831 padding: 0 11px;
2832 font-size: 13px;
2833 }
2834}
2835
2836.appearance .field > .field-label,
2837.appearance .field > label {
2838 padding: 0;
2839}
2840
2841.colour-group,
2842.colour-picker {
2843 margin: 0;
2844 padding: 0;
2845 border: 0;
2846}
2847
2848.colour-panel {
2849 display: none;
2850}
2851
2852.colour-group[data-tab="light"] [data-colour-panel="light"],
2853.colour-group[data-tab="dark"] [data-colour-panel="dark"] {
2854 display: block;
2855}
2856
2857.colour-choices {
2858 display: flex;
2859 flex-wrap: wrap;
2860 align-items: center;
2861 gap: 8px;
2862}
2863
2864.colour-choice {
2865 position: relative;
2866 display: block;
2867 width: auto;
2868 cursor: pointer;
2869
2870 input {
2871 position: absolute;
2872 width: 0;
2873 height: 0;
2874 margin: 0;
2875 opacity: 0;
2876 }
2877
2878 .accent-swatch,
2879 .base-swatch {
2880 display: block;
2881 width: 30px;
2882 height: 30px;
2883 border: 0;
2884 border-radius: 50%;
2885 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
2886 }
2887
2888 input:checked + span {
2889 outline: 2px solid var(--text);
2890 outline-offset: 2px;
2891 }
2892
2893 input:focus-visible + span {
2894 outline: 2px solid var(--focus);
2895 outline-offset: 2px;
2896 }
2897}
2898
2899.tune {
2900 display: flex;
2901 align-items: center;
2902 gap: 10px;
2903 margin-left: 10px;
2904}
2905
2906.tune-row {
2907 display: flex;
2908 align-items: center;
2909 gap: 10px;
2910}
2911
2912.hue-stripe,
2913.vivid-stripe {
2914 width: 130px;
2915 flex: none;
2916}
2917
2918main select {
2919 white-space: nowrap;
2920}
2921
2922// A phone puts a colour's fine tuning on its own line under the swatches.
2923@media (max-width: 700px) {
2924 .tune,
2925 .tune-row {
2926 flex-wrap: wrap;
2927 margin-left: 0;
2928 }
2929}
2930
2931.hex-input {
2932 width: 110px !important;
2933 font-family: var(--mono) !important;
2934 font-size: 13.5px !important;
2935}
2936
2937.sound-row {
2938 display: flex;
2939 flex-wrap: wrap;
2940 align-items: center;
2941 gap: 8px;
2942}
2943
2944.sound-row .hint {
2945 margin-left: 2px;
2946}
2947
2948.act.play {
2949 gap: 6px;
2950 font-size: 14px;
2951
2952 &::before {
2953 content: "";
2954 border-top: 4.5px solid transparent;
2955 border-bottom: 4.5px solid transparent;
2956 border-left: 7px solid currentColor;
2957 }
2958}
2959
2960// A select opens the shared menu panel, and its icon is the shared chevron, not a triangle. The
2961// chevron sits at the field's end, as a text field's end is its edge, so a wide select reads as one.
2962@supports (appearance: base-select) {
2963 select:not([multiple]):not([size]) {
2964 gap: 8px;
2965 }
2966
2967 select:not([multiple]):not([size])::picker-icon {
2968 content: "";
2969 width: 6px;
2970 height: 6px;
2971 margin: -3px 2px 0 auto;
2972 border-right: 1.5px solid currentColor;
2973 border-bottom: 1.5px solid currentColor;
2974 rotate: 45deg;
2975 }
2976
2977 select:not([multiple]):not([size]):open::picker-icon {
2978 rotate: 225deg;
2979 margin-top: 3px;
2980 }
2981
2982 select:not([multiple]):not([size])::picker(select) {
2983 padding: 6px;
2984 border: 0;
2985 border-radius: 20px;
2986 box-shadow: var(--pop-shadow), 0 0 0 1px var(--border);
2987 margin-top: 6px;
2988 }
2989
2990 select:not([multiple]):not([size]) option {
2991 display: flex;
2992 align-items: center;
2993 min-height: 34px;
2994 padding: 0 12px;
2995 border-radius: 12px;
2996 font-size: 14px;
2997 font-weight: 500;
2998 }
2999
3000 select:not([multiple]):not([size]) option:checked {
3001 background: var(--surface-2);
3002 color: var(--text);
3003 font-weight: 600;
3004 }
3005}
3006
3007// A pager or a lone tool under a sheet's rows sits on the rows' inset, not on the sheet's edge.
3008.sheet > .acts {
3009 margin: 0;
3010 padding: 8px;
3011}
3012
3013// A sort or view choice in a tools row: quiet words, the current one held like a pressed tool.
3014.sheet-tools .sort {
3015 > .act.current,
3016 > .act[aria-current] {
3017 background: var(--surface-2);
3018 color: var(--text);
3019 font-weight: 500; // the same as its neighbours, so choosing never shifts the row
3020 }
3021
3022 > .hint {
3023 font-size: 14px;
3024 }
3025}
3026
3027// Pagers: Newer, the page, Older as quiet words in one row under the list, on the sheet's inset with
3028// a hairline above. Every pager in the app is this row.
3029nav.pager:not(.pager-numbered),
3030.ci-side nav.pager:not(.pager-numbered) {
3031 display: flex;
3032 flex-wrap: wrap;
3033 align-items: center;
3034 gap: 4px;
3035 margin: 0;
3036 padding: 8px 18px;
3037 border-top: 1px solid var(--border);
3038 color: var(--muted);
3039 font-size: 14px;
3040
3041 > a {
3042 display: inline-flex;
3043 align-items: center;
3044 height: 30px;
3045 padding: 0 10px;
3046 border-radius: 12px;
3047 color: var(--muted);
3048 font-weight: 500;
3049 text-decoration: none;
3050
3051 &:first-child {
3052 margin-left: -10px;
3053 }
3054
3055 &:hover {
3056 background: var(--surface-2);
3057 color: var(--text);
3058 text-decoration: none;
3059 }
3060 }
3061
3062 > span {
3063 padding: 0 10px;
3064 }
3065
3066 > span:first-child {
3067 padding-left: 0;
3068 }
3069}
3070
3071// A closed disclosure leaves no empty box behind: in a row of actions its hidden content would be one
3072// more item, and one more gap, between its summary and the next action.
3073details:not([open])::details-content {
3074 display: none;
3075}
3076
3077// A button in a tools row sits on the row's middle line, like the words beside it.
3078.sheet-tools > button,
3079.sheet-tools > form > button {
3080 align-self: center;
3081}
3082
3083// Colour rows: five presets on fixed columns, then the Custom chip, then hue, vividness and hex,
3084// so Background and Accent line up column for column. A note about a lightened hex goes under them.
3085.colour-choices {
3086 display: grid;
3087 grid-template-columns: repeat(5, 30px) auto auto;
3088 align-items: center;
3089 gap: 8px;
3090}
3091
3092.colour-choices > .tune {
3093 grid-column: 7;
3094 display: flex;
3095 flex-wrap: wrap;
3096 align-items: center;
3097 gap: 6px 12px;
3098 margin-left: 12px;
3099
3100 > .tune-row {
3101 display: contents;
3102 }
3103
3104 .hue-stripe,
3105 .vivid-stripe {
3106 flex: none;
3107 width: 170px;
3108 }
3109
3110 .hex-note {
3111 flex-basis: 100%;
3112 }
3113
3114 .hex-note:empty {
3115 display: none;
3116 }
3117}
3118
3119@media (max-width: 700px) {
3120 .colour-choices > .tune {
3121 grid-column: 1 / -1;
3122 margin-left: 0;
3123 }
3124}
3125
3126// A box with its note: the note beside the box's words, on one line while there is room.
3127.checks > .check-row {
3128 display: flex;
3129 flex-wrap: wrap;
3130 align-items: baseline;
3131 column-gap: 10px;
3132
3133 > .hint {
3134 margin: 0;
3135 }
3136}
3137
3138.head-title {
3139 min-height: 38px;
3140}
3141
3142.repo-head .head-sub {
3143 min-height: 1lh;
3144}
3145
3146main:has(> nav.tabs) > .head:has(.head-sub),
3147main:has(> nav.tabs[data-section="admin"]) > .head {
3148 min-height: 64px;
3149}
3150
3151// A focus ring sits inside what has it, so a list that scrolls on its own never cuts it off.
3152:is(.rail-item, .line, summary, nav.tabs a, .tabs a, .sub a, .choice label):focus-visible {
3153 outline-offset: -2px;
3154}
3155
3156// A row's actions follow its text on the same line. A confirm opens in place of its word: the
3157// question, then the danger button and Keep it, all on the row.
3158.line {
3159 flex-wrap: wrap;
3160}
3161
3162.line > :is(details.reveal, .act-form, a.act, button.act) {
3163 flex: none;
3164 align-self: center;
3165}
3166
3167.line > details.reveal[open] > summary {
3168 display: none;
3169}
3170
3171.line > details.reveal > form.opened {
3172 display: flex;
3173 flex-direction: row;
3174 flex-wrap: wrap;
3175 align-items: center;
3176 gap: 8px;
3177 margin: 0;
3178 padding: 0;
3179
3180 > .hint {
3181 margin: 0;
3182 }
3183
3184 > .acts.asks {
3185 margin: 0;
3186 }
3187}
3188
3189// The account menu's name is its profile link: a menu row in the name's weight.
3190a.corner-who {
3191 display: flex;
3192 align-items: center;
3193 min-height: 34px;
3194 box-sizing: border-box;
3195 border-radius: 12px;
3196 color: var(--text);
3197 font-weight: 600;
3198 text-decoration: none;
3199
3200 &:hover {
3201 background: var(--surface-2);
3202 }
3203}
3204
3205// Run alerts: the previews stand on the switch's middle line, as tall as its choices.
3206.sound-row > .act.play {
3207 align-self: center;
3208 height: 32px;
3209 border-radius: 16px;
3210}
3211
3212// The custom colour reads as a word with its swatch, not as one more circle.
3213.colour-choice:has(> .custom-word) {
3214 display: inline-flex;
3215 flex-direction: row;
3216 align-items: center;
3217 gap: 8px;
3218 width: auto;
3219 height: 32px;
3220 padding: 0 12px 0 4px;
3221 border-radius: 16px;
3222 background: var(--surface-2);
3223 color: var(--text);
3224 font-size: 14px;
3225 cursor: pointer;
3226
3227 > .hue-swatch {
3228 width: 24px;
3229 height: 24px;
3230 }
3231
3232 > .custom-word {
3233 max-width: none;
3234 overflow: visible;
3235 font-size: 14px;
3236 font-weight: 400;
3237 color: var(--text);
3238 }
3239}
3240
3241// A form of one field sends from beside it: the field, then its button on the same line.
3242form.fields:has(> .field + button[type="submit"]):not(:has(> :not(.field, button[type="submit"], input[type="hidden"]))):not(:has(> .field ~ .field)) {
3243 flex-direction: row;
3244 flex-wrap: wrap;
3245 align-items: flex-start;
3246 column-gap: 8px;
3247
3248 > .field {
3249 flex: none;
3250 }
3251
3252 > button[type="submit"] {
3253 margin: 0;
3254 }
3255}
3256
3257// Numbered pages are the same row as every pager: on the sheet's inset with a hairline above, the
3258// numbers quiet words, the current one held like a pressed tool at the same weight, so moving
3259// between pages never shifts the row.
3260nav.pager.pager-numbered {
3261 display: flex;
3262 flex-wrap: wrap;
3263 align-items: center;
3264 gap: 4px;
3265 margin: 0;
3266 padding: 8px 18px;
3267 border-top: 1px solid var(--border);
3268 font-size: 14px;
3269
3270 .pager-page,
3271 .pager-step,
3272 .pager-gap {
3273 display: inline-flex;
3274 align-items: center;
3275 justify-content: center;
3276 box-sizing: border-box;
3277 height: 30px;
3278 margin: 0;
3279 color: var(--muted);
3280 font-weight: 500;
3281 font-variant-numeric: tabular-nums;
3282 }
3283
3284 // Every number and gap is one width, and Previous and Next always hold their place (dimmed when
3285 // there is nowhere to go), so moving between pages never moves a thing in the row.
3286 .pager-page,
3287 .pager-gap {
3288 min-width: 40px;
3289 padding: 0 4px;
3290 }
3291
3292 .pager-step {
3293 padding: 0 10px;
3294 }
3295
3296 .pager-step.off {
3297 opacity: 0.4;
3298 cursor: default;
3299 }
3300
3301 > :first-child {
3302 margin-left: -8px;
3303 }
3304
3305 .current {
3306 background: var(--surface-2);
3307 color: var(--text);
3308 font-weight: 500;
3309 }
3310
3311 a:hover {
3312 color: var(--text);
3313 }
3314}
3315
3316// A commit subject among a row's facts stays inline with the facts after it.
3317.line .val .commit-line {
3318 display: inline-flex;
3319 max-width: 40ch;
3320 vertical-align: bottom;
3321}
3322
3323// Passed is green everywhere, but a green with the accent's lightness and strength, so CI results
3324// sit with the chosen accent instead of beside it. A grey accent still gets a readable green.
3325@supports (color: oklch(from red l c h)) {
3326 :root:root:root {
3327 --ok: oklch(from var(--accent) l clamp(0.09, c, 0.15) 158);
3328 }
3329}
3330
3331// One focus ring for every control: 2px in the focus colour, drawn inside the control's own edge,
3332// so a sheet's or a row's edge never clips it and it looks the same on a button, a quiet action, a
3333// pager number or a tab.
3334:is(button, .button, a.act, .act, nav.pager a, .ci-tl-tab, .corner-who):focus-visible {
3335 outline: 2px solid var(--focus);
3336 outline-offset: -2px;
3337 box-shadow: none;
3338}
3339
3340// A list's search: one 32px soft field with its icon inside, then Exact and Aa as quiet options that
3341// hold like a pressed tool when on. The ring is the field's own, drawn inside its edge, so focusing or
3342// typing never moves or grows a thing in the row.
3343.list-find {
3344 display: inline-flex;
3345 flex-wrap: wrap;
3346 align-items: center;
3347 gap: 4px;
3348
3349 &#{&} .plain-search {
3350 display: inline-flex;
3351 flex: none;
3352 align-items: center;
3353 gap: 8px;
3354 box-sizing: border-box;
3355 width: 280px;
3356 height: 32px;
3357 margin: 0;
3358 padding: 0 12px;
3359 border-radius: 16px;
3360 background: var(--surface-2);
3361
3362 &:focus-within {
3363 outline: 2px solid var(--focus);
3364 outline-offset: -2px;
3365 }
3366
3367 .ico {
3368 flex: none;
3369 width: 16px;
3370 height: 16px;
3371 fill: none;
3372 stroke: var(--muted);
3373 stroke-width: 2;
3374 }
3375
3376 input[type="search"] {
3377 flex: 1;
3378 width: auto;
3379 min-width: 0;
3380 height: 100%;
3381 margin: 0;
3382 padding: 0;
3383 border: 0;
3384 border-radius: 0;
3385 outline: 0;
3386 background: none;
3387 box-shadow: none;
3388 font-size: 14px;
3389 }
3390
3391 > button[type="submit"] {
3392 display: none;
3393 }
3394 }
3395}
3396
3397.find-opt.find-opt {
3398 position: relative;
3399 display: inline-flex;
3400 flex-direction: row;
3401 align-items: center;
3402 box-sizing: border-box;
3403 height: 32px;
3404 padding: 0 12px;
3405 border-radius: 16px;
3406 color: var(--muted);
3407 cursor: pointer;
3408 font-size: 14px;
3409 font-weight: 500;
3410 user-select: none;
3411
3412 > input {
3413 position: absolute;
3414 width: 1px;
3415 height: 1px;
3416 margin: 0;
3417 opacity: 0;
3418 pointer-events: none;
3419 }
3420
3421 &:hover {
3422 color: var(--text);
3423 }
3424
3425 &:has(> input:checked) {
3426 background: var(--surface-2);
3427 color: var(--text);
3428 }
3429
3430 &:has(> input:focus-visible) {
3431 outline: 2px solid var(--focus);
3432 outline-offset: -2px;
3433 }
3434}
3435
3436@media (max-width: 640px) {
3437 .list-find {
3438 width: 100%;
3439 }
3440
3441 .list-find.list-find .plain-search {
3442 flex: 1 1 auto;
3443 width: auto;
3444 }
3445}
3446
3447// A filter beside a list's search: its word, then the small soft select every tools row uses.
3448.find-filter.find-filter {
3449 display: inline-flex;
3450 flex-direction: row;
3451 align-items: center;
3452 gap: 8px;
3453 margin-left: 8px;
3454 color: var(--muted);
3455 font-size: 14px;
3456 font-weight: 500;
3457
3458 @media (max-width: 700px) {
3459 margin-left: 0;
3460 }
3461
3462 select {
3463 width: auto;
3464 max-width: 220px;
3465 height: 32px;
3466 min-height: 0;
3467 padding: 0 30px 0 14px;
3468 border-radius: 16px;
3469 font-size: 14px;
3470 }
3471
3472 input[type="date"] {
3473 width: auto;
3474 height: 32px;
3475 min-height: 0;
3476 padding: 0 12px;
3477 border-radius: 16px;
3478 font-size: 14px;
3479 }
3480}
3481
3482// A list's search inside a topic: the same row as a sheet's tools, on the topic's edge.
3483.sec-tools {
3484 display: flex;
3485 flex-wrap: wrap;
3486 align-items: center;
3487 gap: 4px;
3488 margin: 2px 0 6px;
3489}
3490
3491// A run of log entries folded into one row opens in place to list each entry, a step in from the
3492// row's edge, so a fold never hides what happened.
3493details.log-group {
3494 border-bottom: 1px solid var(--border);
3495
3496 &:last-child {
3497 border-bottom: 0;
3498 }
3499
3500 > summary.line {
3501 border-bottom: 0;
3502 cursor: pointer;
3503 list-style: none;
3504
3505 &::-webkit-details-marker {
3506 display: none;
3507 }
3508
3509 > .count::after {
3510 content: "";
3511 display: inline-block;
3512 width: 5px;
3513 height: 5px;
3514 margin-left: 6px;
3515 border-right: 1.5px solid currentColor;
3516 border-bottom: 1.5px solid currentColor;
3517 transform: translateY(-2px) rotate(45deg);
3518 }
3519 }
3520
3521 &[open] > summary.line > .count {
3522 background: var(--text);
3523 color: var(--bg);
3524
3525 &::after {
3526 transform: translateY(1px) rotate(-135deg);
3527 }
3528 }
3529
3530 > .log-items {
3531 margin: 0 18px 8px 30px;
3532 border-left: 2px solid var(--border);
3533
3534 > .line {
3535 min-height: 34px;
3536 padding: 4px 12px;
3537 border-bottom: 0;
3538 }
3539 }
3540}
3541
3542// A reveal in a form of fields opens from the control column, its word on the controls' edge
3543// like the switches and the submit beside it.
3544.fields > details.reveal > summary.act {
3545 margin-left: calc(var(--label-w, 130px) + 6px);
3546}
3547
3548@media (max-width: 700px) {
3549 .fields > details.reveal > summary.act {
3550 margin-left: -10px;
3551 }
3552}
3553
3554// A page's own actions beside its title are all the same soft pill as Edit profile or Run
3555// workflow, whether the action is a link, a form's button or a reveal's word; a dangerous one
3556// keeps its red word on the pill. What opens from a reveal keeps its own kit.
3557.head-title > :is(a.act, button.act),
3558.head-title > form.act-form > button.act,
3559.head-title > details.reveal > summary.act {
3560 display: inline-flex;
3561 align-items: center;
3562 box-sizing: border-box;
3563 height: var(--control-h);
3564 padding: 0 18px;
3565 border: 0;
3566 border-radius: 19px;
3567 background: var(--surface-2);
3568 color: var(--text);
3569 font-size: 15px;
3570 font-weight: 600;
3571 line-height: 1;
3572 text-decoration: none;
3573
3574 &:hover {
3575 background: color-mix(in oklab, var(--surface-2) 88%, var(--text));
3576 color: var(--text);
3577 text-decoration: none;
3578 }
3579
3580 &.danger,
3581 &.danger:hover {
3582 color: var(--bad);
3583 }
3584}
3585
3586// A confirm opened from a pill beside the title floats under the pill as a panel, so the title's
3587// row never reflows around it. A form of fields still opens in place, with room for its labels.
3588.head-title > details.reveal:not(:has(.field)) {
3589 display: block;
3590 position: relative;
3591
3592 > .opened {
3593 position: absolute;
3594 z-index: 30;
3595 top: calc(100% + 8px);
3596 left: 0;
3597 display: flex;
3598 flex-direction: column;
3599 gap: 10px;
3600 box-sizing: border-box;
3601 width: max-content;
3602 max-width: min(360px, calc(100vw - 32px));
3603 margin: 0;
3604 padding: 14px 16px;
3605
3606 > .hint {
3607 margin: 0;
3608 }
3609
3610 > .acts {
3611 margin-left: 0;
3612 }
3613 }
3614
3615 // On a phone the pill may sit far right: the panel spans the title's row instead.
3616 @media (max-width: 700px) {
3617 position: static;
3618
3619 > .opened {
3620 right: 0;
3621 width: auto;
3622 max-width: none;
3623 }
3624 }
3625}
3626
3627@media (max-width: 700px) {
3628 .head-title:has(> details.reveal[open]) {
3629 position: relative;
3630 }
3631}
3632
3633// A choice whose options are places (an import's source) reads exactly like one of radios.
3634.choice.choice > a {
3635 display: inline-flex;
3636 align-items: center;
3637 height: 32px;
3638 padding: 0 16px;
3639 border-radius: 16px;
3640 color: var(--muted);
3641 font-size: 14px;
3642 font-weight: 500;
3643 line-height: 1;
3644 text-decoration: none;
3645 white-space: nowrap;
3646
3647 &:hover {
3648 color: var(--text);
3649 text-decoration: none;
3650 }
3651
3652 &[aria-current="page"] {
3653 background: var(--surface);
3654 box-shadow: 0 0 0 1px var(--border);
3655 color: var(--text);
3656 }
3657
3658 &:focus-visible {
3659 outline: 2px solid var(--focus);
3660 outline-offset: -2px;
3661 }
3662}
3663
3664// Exact and Aa sit inside the field at its end, so they never wrap under it.
3665.list-find.list-find .plain-search:has(> .find-opt) {
3666 width: 320px;
3667 padding-right: 4px;
3668 gap: 6px;
3669
3670 > .find-opt {
3671 flex: none;
3672 height: 24px;
3673 padding: 0 8px;
3674 border-radius: 12px;
3675 font-size: 12px;
3676 }
3677
3678 > .find-opt:has(> input:checked) {
3679 background: var(--surface);
3680 }
3681}
3682
3683// In a rail the search takes the rail's width.
3684.rail .list-find {
3685 display: flex;
3686 width: 100%;
3687
3688 &.list-find .plain-search,
3689 &.list-find .plain-search:has(> .find-opt) {
3690 flex: 1 1 100%;
3691 width: auto;
3692 min-width: 0;
3693 }
3694}
3695
3696// A facts topic: each line is a label on the label column, its value, and the action for it.
3697// Facts read as a short table: compact lines with no rules or gaps between them.
3698.sec.facts {
3699 gap: 0;
3700
3701 > h2 {
3702 margin-bottom: 6px;
3703 }
3704}
3705
3706.sec.facts > .line {
3707 min-height: 34px;
3708 padding-top: 2px;
3709 padding-bottom: 2px;
3710 border-bottom: 0;
3711}
3712
3713// An opened action in a fact line keeps its field and button on the line.
3714.sec.facts .line > details.reveal > form.opened {
3715 flex-wrap: nowrap;
3716
3717 > input[type="text"] {
3718 flex: none;
3719 width: 280px;
3720 }
3721
3722 @media (max-width: 640px) {
3723 flex-wrap: wrap;
3724
3725 > input[type="text"] {
3726 width: 100%;
3727 }
3728 }
3729}
3730
3731.sec.facts .line > .key {
3732 flex: 0 0 136px;
3733 color: var(--muted);
3734 font-size: 14px;
3735
3736 // On a phone every label sits over its value, so no line differs from the next.
3737 @media (max-width: 640px) {
3738 flex-basis: 100%;
3739 }
3740}
3741
3742@media (max-width: 640px) {
3743 .sec.facts > .line {
3744 row-gap: 0;
3745 padding-top: 4px;
3746 padding-bottom: 4px;
3747 }
3748}
3749
3750// A fixed value in a field's control column (an existing branch rule's pattern) stands on its label's line.
3751.field > .field-value {
3752 padding-top: 8px;
3753 font-size: 15px;
3754 line-height: 22px;
3755}
3756
3757// A topic's own action, standing alone under its heading (Rename repository, Transfer repository,
3758// Regenerate codes), is a small soft pill like Star, not a word: it is the thing the topic is for.
3759// Tools on a line of facts stay words. A dangerous one keeps its red word on the pill.
3760.sec > .acts > details.reveal > summary.act,
3761.sec > .acts > :is(a.act, button.act),
3762.sec > .acts > form.act-form > button.act,
3763.sec > :is(a.act, button.act),
3764.sec > details > summary.act,
3765.sec > form > button.act:only-of-type {
3766 display: inline-flex;
3767 align-items: center;
3768 width: fit-content;
3769 height: var(--control-sm);
3770 margin-left: 0;
3771 padding: 0 14px;
3772 border-radius: 15px;
3773 background: var(--surface-2);
3774 color: var(--text);
3775 font-size: 13px;
3776 font-weight: 600;
3777
3778 &:hover {
3779 background: color-mix(in oklab, var(--surface-2) 88%, var(--text));
3780 color: var(--text);
3781 }
3782
3783 &.danger,
3784 &.danger:hover {
3785 background: var(--danger-bg);
3786 color: var(--bad);
3787 }
3788
3789 &.quiet {
3790 color: var(--muted);
3791 }
3792}
3793
3794// Pills keep their own edge, so a row of them starts on the topic's text edge.
3795.sec > .acts:has(> details.reveal > summary.act, > a.act, > button.act, > form.act-form > button.act) {
3796 margin-left: 0;
3797 gap: 8px;
3798}