forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.09.3 MiBdcdcd27Tahinli1 month ago240 commits

_shell.scss1141 lines, 21.4 KiBHistoryRawDownload
1// Shell: the sticky top bar, the signed-in sidebar, the page column and the footer. From 900px
2// the sidebar is always there, and a repo's tabs take it over. Below 900px the sidebar moves
3// into a menu in the top bar, and the repo tabs become a horizontal strip.
4
5// Icons: strokes use currentColor, so they follow the text colour in both themes.
6.ico {
7 flex: none;
8 width: 18px;
9 height: 18px;
10 fill: none;
11 stroke: currentColor;
12 stroke-width: 1.8;
13 stroke-linecap: round;
14 stroke-linejoin: round;
15}
16
17// Top bar
18
19.topbar {
20 position: sticky;
21 top: 0;
22 z-index: 20;
23 display: flex;
24 align-items: center;
25 gap: 12px;
26 box-sizing: border-box;
27 height: var(--topbar-h);
28 min-width: 0;
29 padding: 0 16px;
30 background: var(--bg);
31 border-bottom: 1px solid var(--border);
32}
33
34.wordmark {
35 display: inline-flex;
36 align-items: center;
37 gap: 8px;
38 flex: none;
39 font-size: 17px;
40 font-weight: 700;
41 letter-spacing: -0.02em;
42 color: var(--text);
43 text-decoration: none;
44
45 &:hover {
46 text-decoration: none;
47 }
48}
49
50.wordmark-mark {
51 width: 20px;
52 height: 20px;
53 color: var(--accent);
54}
55
56.topbar .crumbs {
57 display: flex;
58 align-items: center;
59 flex: 0 1 auto;
60 min-width: 0;
61 overflow: hidden;
62 font-size: 14px;
63 color: var(--muted);
64 white-space: nowrap;
65
66 &::before {
67 content: "/";
68 margin-right: 10px;
69 color: var(--border-strong);
70 }
71
72 ol {
73 flex-wrap: nowrap;
74 }
75}
76
77.top-search {
78 position: relative;
79 flex: 0 1 340px;
80 min-width: 0;
81 margin: 0 0 0 auto;
82
83 input {
84 box-sizing: border-box;
85 width: 100%;
86 height: 36px;
87 min-width: 0;
88 margin: 0;
89 padding: 0 12px 0 36px;
90 border: 1px solid var(--border);
91 border-radius: var(--radius-md);
92 background: var(--surface);
93 color: var(--text);
94 font: inherit;
95 font-size: 14px;
96
97 &::placeholder {
98 color: var(--muted);
99 }
100
101 &:focus {
102 outline: none;
103 border-color: var(--accent);
104 box-shadow: 0 0 0 3px var(--accent-soft);
105 }
106 }
107}
108
109.top-search-icon {
110 position: absolute;
111 top: 10px;
112 left: 11px;
113 width: 16px;
114 height: 16px;
115 color: var(--muted);
116 pointer-events: none;
117}
118
119.topbar .icon-btn {
120 position: relative;
121 display: grid;
122 place-items: center;
123 flex: none;
124 box-sizing: border-box;
125 width: 36px;
126 height: 36px;
127 margin: 0;
128 padding: 0;
129 border: 1px solid var(--border);
130 border-radius: var(--radius-md);
131 background: var(--surface);
132 color: var(--text-2);
133 font: inherit;
134 list-style: none;
135 cursor: pointer;
136
137 &:hover {
138 background: var(--surface-2);
139 text-decoration: none;
140 }
141
142 &::-webkit-details-marker {
143 display: none;
144 }
145}
146
147.theme-form {
148 display: flex;
149 flex: none;
150 margin: 0;
151}
152
153// Path bar: the breadcrumb of the page, and the click target that opens the Ctrl K palette.
154// The bar fills the top bar's free space; its edit button covers the rest of it.
155
156.pathbar {
157 display: flex;
158 align-items: center;
159 flex: 1 1 auto;
160 min-width: 0;
161 max-width: 640px;
162 height: 32px;
163 box-sizing: border-box;
164 padding: 0 0 0 4px;
165 overflow: hidden;
166 border: 1px solid transparent;
167 border-radius: var(--radius-sm);
168 font-family: var(--mono);
169 font-size: 12.5px;
170 color: var(--muted);
171
172 &:hover {
173 border-color: var(--border);
174 }
175}
176
177.pathbar-segs {
178 display: flex;
179 align-items: center;
180 flex: 0 1 auto;
181 min-width: 0;
182 margin: 0;
183 padding: 0;
184 overflow: hidden;
185 list-style: none;
186 white-space: nowrap;
187
188 li {
189 display: flex;
190 align-items: center;
191 min-width: 0;
192
193 & + li::before {
194 content: "/";
195 flex: none;
196 padding: 0 6px;
197 color: var(--border-strong);
198 }
199 }
200}
201
202.pathbar-seg {
203 min-width: 0;
204 overflow: hidden;
205 padding: 2px 4px;
206 border-radius: var(--radius-sm);
207 color: var(--muted);
208 text-overflow: ellipsis;
209 text-decoration: none;
210 white-space: nowrap;
211
212 &:hover {
213 color: var(--text);
214 background: var(--surface-2);
215 text-decoration: none;
216 }
217
218 &.owner {
219 color: var(--accent-ink);
220 }
221
222 &.last {
223 color: var(--text);
224 font-weight: 600;
225
226 &:hover {
227 background: none;
228 }
229 }
230}
231
232.pathbar-edit {
233 display: flex;
234 align-items: center;
235 justify-content: flex-end;
236 flex: 1 1 0;
237 height: 100%;
238 min-width: 0;
239 margin: 0;
240 padding: 0 6px;
241 border: 0;
242 background: transparent;
243 color: var(--muted);
244 font: inherit;
245 cursor: text;
246
247 kbd {
248 flex: none;
249 padding: 0 5px;
250 font-family: var(--mono);
251 font-size: 11px;
252 line-height: 18px;
253 color: var(--text-2);
254 background: var(--surface-2);
255 border: 1px solid var(--border-strong);
256 border-radius: var(--radius-sm);
257 opacity: 0;
258 }
259
260 &:hover kbd,
261 &:focus-visible kbd {
262 opacity: 1;
263 }
264}
265
266// Live strip: what is running or just finished, at the end of the top bar.
267
268.live-strip {
269 display: flex;
270 align-items: center;
271 gap: 6px;
272 flex: none;
273 min-width: 0;
274 margin-left: auto;
275}
276
277.pill {
278 display: inline-flex;
279 align-items: center;
280 gap: 6px;
281 flex: 0 1 auto;
282 min-width: 0;
283 height: 26px;
284 box-sizing: border-box;
285 padding: 0 10px;
286 overflow: hidden;
287 border: 1px solid var(--border);
288 border-radius: var(--radius-full);
289 background: var(--surface);
290 color: var(--text-2);
291 font-size: 12.5px;
292 white-space: nowrap;
293 text-decoration: none;
294
295 b {
296 font-weight: 600;
297 color: var(--text);
298 }
299
300 &:hover {
301 background: var(--surface-2);
302 text-decoration: none;
303 }
304}
305
306.pill-dot {
307 flex: none;
308 width: 7px;
309 height: 7px;
310 border-radius: 50%;
311 background: var(--muted);
312}
313
314.pill.ok .pill-dot {
315 background: var(--ok);
316}
317
318.pill.bad .pill-dot {
319 background: var(--danger);
320}
321
322.pill.hot {
323 border-color: color-mix(in srgb, var(--heat-3) 45%, var(--border));
324 background: linear-gradient(
325 90deg,
326 color-mix(in srgb, var(--heat-3) 18%, var(--surface)),
327 color-mix(in srgb, var(--heat-3) 6%, var(--surface))
328 );
329
330 .pill-dot {
331 background: var(--heat-4);
332 animation: pill-pulse 1.6s ease-out infinite;
333 }
334}
335
336// Two or more runs: the summary pill opens a list of all of them, right-aligned under it.
337.strip-runs {
338 position: relative;
339
340 > summary {
341 list-style: none;
342 cursor: pointer;
343
344 &::-webkit-details-marker {
345 display: none;
346 }
347 }
348}
349
350.strip-list {
351 position: absolute;
352 top: calc(100% + 6px);
353 right: 0;
354 z-index: 60;
355 display: grid;
356 gap: 2px;
357 box-sizing: border-box;
358 width: max-content;
359 min-width: 240px;
360 max-width: min(420px, 92vw);
361 max-height: min(60vh, 420px);
362 overflow-y: auto;
363 margin: 0;
364 padding: 6px;
365 list-style: none;
366 background: var(--surface);
367 border: 1px solid var(--border);
368 border-radius: var(--radius-md);
369 box-shadow: var(--shadow);
370
371 li {
372 min-width: 0;
373 }
374}
375
376.strip-row {
377 display: flex;
378 align-items: center;
379 gap: 8px;
380 min-width: 0;
381 padding: 6px 8px;
382 border-radius: var(--radius-md);
383 color: var(--text-2);
384 font-size: 12.5px;
385 white-space: nowrap;
386 text-decoration: none;
387
388 b {
389 min-width: 0;
390 overflow: hidden;
391 font-weight: 600;
392 color: var(--text);
393 text-overflow: ellipsis;
394 }
395
396 &:hover {
397 background: var(--surface-2);
398 text-decoration: none;
399 }
400
401 &.ok .pill-dot {
402 background: var(--ok);
403 }
404
405 &.bad .pill-dot {
406 background: var(--danger);
407 }
408
409 &.hot .pill-dot {
410 background: var(--heat-4);
411 animation: pill-pulse 1.6s ease-out infinite;
412 }
413}
414
415@keyframes pill-pulse {
416 0% {
417 box-shadow: 0 0 0 0 var(--heat-glow);
418 }
419
420 70%,
421 100% {
422 box-shadow: 0 0 0 6px transparent;
423 }
424}
425
426// A dot on the menu button when there are unread notifications (the bell's count moved here).
427.nav-toggle summary.has-dot::after {
428 content: "";
429 position: absolute;
430 top: 5px;
431 right: 5px;
432 width: 8px;
433 height: 8px;
434 border-radius: 50%;
435 background: var(--heat-3);
436 box-shadow: 0 0 0 2px var(--bg);
437}
438
439// The shared button keeps its natural width in columns; in the top bar it sits on the centre line.
440.topbar .button {
441 align-self: center;
442 flex: none;
443}
444
445.topbar-link {
446 flex: none;
447 color: var(--text-2);
448 font-size: 14.5px;
449 font-weight: 500;
450 text-decoration: none;
451
452 &:hover {
453 color: var(--text);
454 text-decoration: none;
455 }
456}
457
458// The avatar menu: the avatar is the summary; the menu list keeps its links from main.scss.
459.topbar .menu {
460 flex: none;
461
462 summary {
463 display: grid;
464 place-items: center;
465 width: 36px;
466 height: 36px;
467 padding: 0;
468 border: 0;
469 border-radius: 50%;
470 }
471
472 summary img {
473 display: block;
474 width: 28px;
475 height: 28px;
476 }
477
478 &[open] summary {
479 box-shadow: 0 0 0 2px var(--accent-soft);
480 }
481}
482
483.topbar .menu-list {
484 top: calc(100% + 8px);
485}
486
487// Phone menu: the sidebar in a panel under the top bar. Hidden from 900px.
488
489.nav-toggle {
490 flex: none;
491}
492
493.nav-panel {
494 position: absolute;
495 top: 100%;
496 left: 12px;
497 z-index: 30;
498 box-sizing: border-box;
499 width: 280px;
500 max-width: calc(100vw - 24px);
501 max-height: calc(100vh - var(--topbar-h));
502 padding: 12px;
503 overflow-y: auto;
504 background: var(--surface);
505 border: 1px solid var(--border);
506 border-radius: var(--radius-lg);
507 box-shadow: var(--shadow);
508}
509
510// Sidebar
511
512.shell {
513 display: grid;
514 grid-template-columns: minmax(0, 1fr);
515 min-height: calc(100vh - var(--topbar-h));
516}
517
518.shell-sidebar {
519 display: none;
520}
521
522.side-links {
523 display: flex;
524 flex-direction: column;
525 gap: 2px;
526}
527
528.side-link {
529 display: flex;
530 align-items: center;
531 gap: 10px;
532 min-height: 36px;
533 padding: 0 12px;
534 border-radius: var(--radius-md);
535 color: var(--text-2);
536 font-size: 14.5px;
537 font-weight: 500;
538 white-space: nowrap;
539 text-decoration: none;
540
541 &:hover {
542 background: var(--surface-2);
543 text-decoration: none;
544 }
545
546 .ico {
547 color: var(--muted);
548 }
549
550 .count {
551 margin-left: auto;
552 font-size: 12.5px;
553 color: var(--muted);
554 font-variant-numeric: tabular-nums;
555 }
556
557 &.on {
558 background: var(--accent-soft);
559 color: var(--accent-ink);
560 font-weight: 600;
561
562 .ico,
563 .count {
564 color: var(--accent-ink);
565 }
566 }
567}
568
569.side-group {
570 margin-top: 24px;
571}
572
573.side-h {
574 margin: 0 12px 8px;
575 font-size: 12.5px;
576 font-weight: 600;
577 line-height: 1.4;
578 color: var(--muted);
579}
580
581.side-empty {
582 margin: 0 12px;
583 font-size: 13px;
584 color: var(--muted);
585}
586
587.side-repos {
588 display: flex;
589 flex-direction: column;
590 gap: 2px;
591
592 a {
593 display: flex;
594 align-items: center;
595 min-height: 32px;
596 padding: 0 12px;
597 overflow: hidden;
598 border-radius: var(--radius-md);
599 font-family: var(--mono);
600 font-size: 13.5px;
601 color: var(--text-2);
602 white-space: nowrap;
603 text-decoration: none;
604
605 &:hover {
606 background: var(--surface-2);
607 text-decoration: none;
608 }
609 }
610}
611
612// Profile corner: the signed-in user at the bottom of the sidebar. Its menu opens upward.
613
614.corner {
615 position: relative;
616 margin-top: auto;
617 padding-top: 8px;
618 border-top: 1px solid var(--border);
619}
620
621.nav-panel .corner {
622 margin-top: 12px;
623}
624
625// The phone panel scrolls, so a menu opening upward would be cut at its top: it opens in place.
626.nav-panel .corner-menu {
627 position: static;
628 margin-top: 6px;
629 box-shadow: none;
630}
631
632.corner-btn {
633 display: flex;
634 align-items: center;
635 gap: 8px;
636 padding: 8px;
637 border-radius: var(--radius-md);
638 color: var(--text);
639 cursor: pointer;
640 list-style: none;
641
642 &:hover {
643 background: var(--surface-2);
644 }
645
646 &::-webkit-details-marker {
647 display: none;
648 }
649}
650
651.corner-name {
652 min-width: 0;
653 overflow: hidden;
654 font-size: 14px;
655 font-weight: 600;
656 text-overflow: ellipsis;
657 white-space: nowrap;
658}
659
660// The avatar inside a ring: a plain border ring when nothing runs, a full ember ring while a run
661// of the viewer's is queued or running (.hot), glowing softly.
662.heat-ring {
663 display: grid;
664 flex: none;
665 place-items: center;
666 width: 34px;
667 height: 34px;
668 border-radius: 50%;
669 background: var(--border);
670
671 &.hot {
672 background: conic-gradient(var(--heat-2), var(--heat-3), var(--heat-4), var(--heat-2));
673 filter: drop-shadow(0 0 5px var(--heat-glow));
674 }
675
676 .avatar {
677 box-sizing: border-box;
678 width: 28px;
679 height: 28px;
680 border: 2px solid var(--bg);
681 border-radius: 50%;
682 }
683}
684
685.corner-chips {
686 display: flex;
687 align-items: center;
688 gap: 4px;
689 margin-left: auto;
690}
691
692// Chips count what waits on the user. They never take the accent.
693.chip {
694 display: inline-flex;
695 align-items: center;
696 gap: 3px;
697 flex: none;
698 height: 20px;
699 box-sizing: border-box;
700 padding: 0 6px;
701 border: 1px solid var(--border);
702 border-radius: var(--radius-full);
703 background: var(--surface-2);
704 color: var(--text-2);
705 font-size: 11px;
706 font-weight: 700;
707 font-variant-numeric: tabular-nums;
708
709 .ico {
710 width: 12px;
711 height: 12px;
712 }
713}
714
715.chip-review {
716 color: var(--important);
717 background: color-mix(in srgb, var(--important) 12%, var(--surface));
718 border-color: color-mix(in srgb, var(--important) 35%, transparent);
719}
720
721.chip-mention {
722 color: var(--info);
723 background: color-mix(in srgb, var(--info) 12%, var(--surface));
724 border-color: color-mix(in srgb, var(--info) 35%, transparent);
725}
726
727.chip-failing {
728 color: var(--danger);
729 background: var(--danger-bg);
730 border-color: color-mix(in srgb, var(--danger) 35%, transparent);
731}
732
733.corner-menu {
734 position: absolute;
735 left: 8px;
736 right: 8px;
737 bottom: calc(100% + 6px);
738 z-index: 40;
739 display: grid;
740 gap: 2px;
741 box-sizing: border-box;
742 padding: 6px;
743 background: var(--surface);
744 border: 1px solid var(--border);
745 border-radius: var(--radius-md);
746 box-shadow: var(--shadow);
747}
748
749.corner-cap {
750 margin: 0;
751 padding: 6px 10px 2px;
752 font-size: 11.5px;
753 font-weight: 600;
754 color: var(--muted);
755}
756
757.corner-waiting {
758 display: grid;
759 gap: 2px;
760 margin: 0;
761 padding: 0;
762 list-style: none;
763
764 a {
765 display: flex;
766 align-items: flex-start;
767 gap: 8px;
768 padding: 6px 10px;
769 border-radius: var(--radius-md);
770 color: var(--text);
771 text-decoration: none;
772
773 &:hover {
774 background: var(--surface-2);
775 text-decoration: none;
776 }
777 }
778}
779
780.corner-dot {
781 flex: none;
782 width: 7px;
783 height: 7px;
784 margin-top: 6px;
785 border-radius: 50%;
786 background: var(--muted);
787
788 &.review {
789 background: var(--important);
790 }
791
792 &.mention {
793 background: var(--info);
794 }
795}
796
797.corner-item {
798 display: flex;
799 flex-direction: column;
800 min-width: 0;
801
802 span {
803 overflow: hidden;
804 font-size: 13.5px;
805 line-height: 1.3;
806 text-overflow: ellipsis;
807 white-space: nowrap;
808 }
809
810 small {
811 overflow: hidden;
812 font-family: var(--mono);
813 font-size: 11.5px;
814 color: var(--muted);
815 text-overflow: ellipsis;
816 white-space: nowrap;
817 }
818}
819
820// `button.corner-link` too (Log out): the extra element in the selector outweighs `button.link-button`.
821.corner-link,
822button.corner-link.link-button {
823 display: block;
824 width: 100%;
825 box-sizing: border-box;
826 margin: 0;
827 padding: 8px 10px;
828 border: 0;
829 border-radius: var(--radius-md);
830 background: none;
831 color: var(--text);
832 font: inherit;
833 font-size: 14px;
834 text-align: left;
835 text-decoration: none;
836 cursor: pointer;
837
838 &:hover {
839 background: var(--surface-2);
840 text-decoration: none;
841 }
842}
843
844.corner-rule {
845 width: auto;
846 margin: 4px 6px;
847 border: 0;
848 border-top: 1px solid var(--border);
849}
850
851.corner-theme {
852 display: flex;
853 align-items: center;
854 justify-content: space-between;
855 padding: 4px 6px 4px 10px;
856 font-size: 14px;
857 color: var(--muted);
858
859 span {
860 color: var(--text-2);
861 }
862}
863
864.corner-theme-set {
865 display: flex;
866 gap: 2px;
867 margin: 0;
868
869 button {
870 display: grid;
871 place-items: center;
872 width: 28px;
873 height: 26px;
874 padding: 0;
875 border: 0;
876 border-radius: var(--radius-sm);
877 background: none;
878 color: var(--muted);
879 cursor: pointer;
880
881 &:hover {
882 color: var(--text);
883 }
884
885 &[aria-pressed="true"] {
886 background: var(--surface-2);
887 color: var(--text);
888 }
889 }
890
891 .ico {
892 width: 16px;
893 height: 16px;
894 }
895}
896
897// Page column and footer
898
899.shell > main {
900 box-sizing: border-box;
901 width: 100%;
902 min-width: 0;
903 max-width: 1280px;
904 margin: 0 auto;
905 padding: 24px 16px 48px;
906}
907
908.site-footer {
909 display: flex;
910 flex-wrap: wrap;
911 align-items: center;
912 gap: 12px;
913 box-sizing: border-box;
914 padding: 14px 16px 20px;
915 font-size: 12.5px;
916 color: var(--muted);
917 border-top: 1px solid var(--border);
918}
919
920// Wide screens: the sidebar sits beside the page, and a repo's tabs replace its links.
921
922@media (max-width: 699px) {
923 .topbar .crumbs {
924 display: none;
925 }
926
927 .top-search {
928 flex: 1 1 0;
929 }
930
931 // Phones: the path bar shows only the last segment, and the live strip goes (its counts are in the menu).
932 .pathbar-segs li:not(:last-child) {
933 display: none;
934 }
935
936 .pathbar-segs li + li::before {
937 display: none;
938 }
939
940 // Phones have no keyboard, so the shortcut hint goes.
941 .pathbar-edit kbd {
942 display: none;
943 }
944
945 .live-strip {
946 display: none;
947 }
948}
949
950// Narrow phones: the search field no longer fits beside the other top bar items, so it becomes an
951// icon that opens the public repository search on the Explore page (the same search, no JS).
952.topbar .top-search-link {
953 display: none;
954}
955
956@media (max-width: 639px) {
957 .top-search {
958 display: none;
959 }
960
961 .topbar .top-search-link {
962 display: grid;
963 margin-left: auto;
964 }
965}
966
967@media (min-width: 700px) {
968 .shell > main {
969 padding: 28px 28px 48px;
970 }
971
972 .site-footer {
973 padding: 14px 28px 20px;
974 }
975}
976
977@media (min-width: 900px) {
978 .nav-toggle {
979 display: none;
980 }
981
982 .shell:has(> .shell-sidebar) {
983 grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
984 }
985
986 .shell-sidebar {
987 position: sticky;
988 top: var(--topbar-h);
989 align-self: start;
990 // A column, so the profile corner sits at its bottom (margin-top: auto).
991 display: flex;
992 flex-direction: column;
993 box-sizing: border-box;
994 // Ends at the viewport's bottom while the site banner still shows above it (--shell-top, nav.js).
995 height: calc(100vh - max(var(--topbar-h), var(--shell-top, 0px)));
996 min-width: 0;
997 padding: 16px 12px 24px;
998 overflow-y: auto;
999 background: var(--surface);
1000 border-right: 1px solid var(--border);
1001 }
1002
1003 // The profile corner stays above a repo page's fixed tabs, which end where it starts: 50px of
1004 // corner, its rule and the sidebar's 24px bottom padding.
1005 .shell-sidebar .corner {
1006 position: relative;
1007 z-index: 6;
1008 }
1009
1010 .shell:has(> .shell-sidebar .corner) .repo-tabs {
1011 bottom: 76px;
1012 }
1013
1014 // The sticky sidebar is its own stacking layer, under the fixed tabs, so the open menu would sit
1015 // behind them: while it is open the sidebar rises above the tabs, see-through so they still show.
1016 .shell-sidebar:has(.corner[open]) {
1017 z-index: 6;
1018 }
1019
1020 .shell:has(.repo-tabs) .shell-sidebar:has(.corner[open]) {
1021 background: transparent;
1022 }
1023
1024 // A repo page: its tabs become the sidebar, fixed under the top bar, and the global links go.
1025 .shell:has(.repo-tabs) .shell-sidebar .side-links,
1026 .shell:has(.repo-tabs) .shell-sidebar .side-group {
1027 display: none;
1028 }
1029
1030 .shell:has(> .shell-sidebar) .repo-tabs {
1031 position: fixed;
1032 // nav.js sets --shell-top to where the page body starts, below the site banner when there is one.
1033 top: max(var(--topbar-h), var(--shell-top, 0px));
1034 bottom: 0;
1035 left: 0;
1036 z-index: 5;
1037 box-sizing: border-box;
1038 width: var(--sidebar-w);
1039 flex-direction: column;
1040 align-items: stretch;
1041 gap: 2px;
1042 margin: 0;
1043 padding: 16px 12px 24px;
1044 overflow-x: hidden;
1045 overflow-y: auto;
1046 background: var(--surface);
1047 border-right: 1px solid var(--border);
1048 border-bottom: 0;
1049 }
1050
1051 .shell:has(> .shell-sidebar) .repo-tabs .tab {
1052 display: flex;
1053 align-items: center;
1054 gap: 8px;
1055 min-height: 36px;
1056 padding: 0 12px;
1057 border-radius: var(--radius-md);
1058 box-shadow: none;
1059 color: var(--text-2);
1060 font-size: 14.5px;
1061 font-weight: 500;
1062
1063 &:hover {
1064 background: var(--surface-2);
1065 color: var(--text);
1066 }
1067
1068 &.active {
1069 background: var(--accent-soft);
1070 color: var(--accent-ink);
1071 font-weight: 600;
1072 box-shadow: none;
1073 }
1074 }
1075
1076 .shell:has(> .shell-sidebar) .repo-tabs .tab-count {
1077 margin-left: auto;
1078 padding: 0;
1079 background: none;
1080 font-size: 12.5px;
1081 color: var(--muted);
1082 font-variant-numeric: tabular-nums;
1083 }
1084}
1085
1086// Sidebar on the right (the user's preference, set on <html> as data-sidebar). The sidebar takes the
1087// second column and its border moves to its inner edge. A repo's tabs follow it. Below 900px the
1088// sidebar is hidden either way, so the phone layout and the nav toggle are unchanged.
1089@media (min-width: 900px) {
1090 html[data-sidebar="right"] .shell:has(> .shell-sidebar) {
1091 grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
1092 }
1093
1094 html[data-sidebar="right"] .shell > .shell-sidebar {
1095 order: 2;
1096 border-right: 0;
1097 border-left: 1px solid var(--border);
1098 }
1099
1100 html[data-sidebar="right"] .shell:has(> .shell-sidebar) .repo-tabs {
1101 left: auto;
1102 right: 0;
1103 border-right: 0;
1104 border-left: 1px solid var(--border);
1105 }
1106}
1107
1108// Soft navigation: a thin progress line along the top while a page is being fetched in place
1109// (nav.js sets aria-busy on <html>). Decorative; the page stays usable underneath.
1110html[aria-busy="true"] body::before {
1111 content: "";
1112 position: fixed;
1113 top: 0;
1114 left: 0;
1115 right: 0;
1116 height: 2px;
1117 z-index: 1000;
1118 background: var(--accent);
1119 transform-origin: left center;
1120 pointer-events: none;
1121 animation: soft-nav-progress 1.1s ease-in-out infinite;
1122}
1123
1124@keyframes soft-nav-progress {
1125 0% { transform: scaleX(0); }
1126 50% { transform: scaleX(0.7); }
1127 100% { transform: scaleX(1); opacity: 0; }
1128}
1129
1130@media (prefers-reduced-motion: reduce) {
1131 html[aria-busy="true"] body::before {
1132 animation: none;
1133 transform: scaleX(1);
1134 opacity: 0.45;
1135 }
1136
1137 .pill.hot .pill-dot,
1138 .strip-row.hot .pill-dot {
1139 animation: none;
1140 }
1141}