forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.010.9 MiB8e56ffcTahinli1 month ago262 commits

_shell.scss1226 lines, 23.5 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. Signed in, it reads
155// as one field: a search icon, the path, then a "search or jump to" hint and Ctrl K.
156
157.pathbar {
158 display: flex;
159 align-items: center;
160 flex: 1 1 auto;
161 min-width: 0;
162 max-width: 640px;
163 height: 32px;
164 box-sizing: border-box;
165 padding: 0 0 0 4px;
166 overflow: hidden;
167 border: 1px solid transparent;
168 border-radius: var(--radius-sm);
169 font-family: var(--mono);
170 font-size: 12.5px;
171 color: var(--muted);
172
173 &:hover {
174 border-color: var(--border);
175 }
176
177 &:has(.pathbar-edit) {
178 padding-left: 10px;
179 border-color: var(--border);
180 border-radius: var(--radius-md);
181 background: var(--surface);
182
183 &:hover {
184 border-color: var(--border-strong);
185 }
186 }
187}
188
189.pathbar-ico {
190 flex: none;
191 width: 15px;
192 height: 15px;
193 margin-right: 6px;
194 color: var(--muted);
195}
196
197.pathbar-segs {
198 display: flex;
199 align-items: center;
200 flex: 0 1 auto;
201 min-width: 0;
202 margin: 0;
203 padding: 0;
204 overflow: hidden;
205 list-style: none;
206 white-space: nowrap;
207
208 li {
209 display: flex;
210 align-items: center;
211 min-width: 0;
212
213 & + li::before {
214 content: "/";
215 flex: none;
216 padding: 0 6px;
217 color: var(--border-strong);
218 }
219 }
220}
221
222.pathbar-seg {
223 min-width: 0;
224 overflow: hidden;
225 padding: 2px 4px;
226 border-radius: var(--radius-sm);
227 color: var(--muted);
228 text-overflow: ellipsis;
229 text-decoration: none;
230 white-space: nowrap;
231
232 &:hover {
233 color: var(--text);
234 background: var(--surface-2);
235 text-decoration: none;
236 }
237
238 &.owner {
239 color: var(--accent-ink);
240 }
241
242 &.last {
243 color: var(--text);
244 font-weight: 600;
245
246 &:hover {
247 background: none;
248 }
249 }
250}
251
252.pathbar-edit {
253 display: flex;
254 align-items: center;
255 justify-content: space-between;
256 gap: 8px;
257 flex: 1 1 0;
258 height: 100%;
259 min-width: 0;
260 margin: 0;
261 padding: 0 6px 0 12px;
262 border: 0;
263 background: transparent;
264 color: var(--muted);
265 font: inherit;
266 cursor: text;
267
268 kbd {
269 flex: none;
270 padding: 0 5px;
271 font-family: var(--mono);
272 font-size: 11px;
273 line-height: 18px;
274 color: var(--text-2);
275 background: var(--surface-2);
276 border: 1px solid var(--border-strong);
277 border-radius: var(--radius-sm);
278 }
279
280 // The bar is the field, so the global button hover and focus ring stay off this part of it.
281 &:hover,
282 &:focus-visible {
283 border: 0;
284 background: transparent;
285 box-shadow: none;
286 }
287
288 &:hover .pathbar-hint {
289 color: var(--text-2);
290 }
291}
292
293.pathbar:has(.pathbar-edit:focus-visible) {
294 border-color: var(--focus);
295 box-shadow: 0 0 0 3px var(--accent-soft);
296}
297
298.pathbar-hint {
299 min-width: 0;
300 overflow: hidden;
301 font-family: var(--font);
302 font-size: 13px;
303 color: var(--muted);
304 text-overflow: ellipsis;
305 white-space: nowrap;
306}
307
308// Live strip: what is running or just finished, at the end of the top bar.
309
310.live-strip {
311 display: flex;
312 align-items: center;
313 gap: 6px;
314 flex: none;
315 min-width: 0;
316 margin-left: auto;
317}
318
319.pill {
320 display: inline-flex;
321 align-items: center;
322 gap: 6px;
323 flex: 0 1 auto;
324 min-width: 0;
325 height: 26px;
326 box-sizing: border-box;
327 padding: 0 10px;
328 overflow: hidden;
329 border: 1px solid var(--border);
330 border-radius: var(--radius-full);
331 background: var(--surface);
332 color: var(--text-2);
333 font-size: 12.5px;
334 white-space: nowrap;
335 text-decoration: none;
336
337 b {
338 font-weight: 600;
339 color: var(--text);
340 }
341
342 &:hover {
343 background: var(--surface-2);
344 text-decoration: none;
345 }
346}
347
348.pill-dot {
349 flex: none;
350 width: 7px;
351 height: 7px;
352 border-radius: 50%;
353 background: var(--muted);
354}
355
356.pill.ok .pill-dot {
357 background: var(--ok);
358}
359
360.pill.bad .pill-dot {
361 background: var(--danger);
362}
363
364.pill.hot {
365 border-color: color-mix(in srgb, var(--heat-3) 45%, var(--border));
366 background: linear-gradient(
367 90deg,
368 color-mix(in srgb, var(--heat-3) 18%, var(--surface)),
369 color-mix(in srgb, var(--heat-3) 6%, var(--surface))
370 );
371
372 .pill-dot {
373 background: var(--heat-4);
374 animation: pill-pulse 1.6s ease-out infinite;
375 }
376}
377
378// Two or more runs: the summary pill opens a list of all of them, right-aligned under it.
379.strip-runs {
380 position: relative;
381
382 > summary {
383 list-style: none;
384 cursor: pointer;
385
386 &::-webkit-details-marker {
387 display: none;
388 }
389 }
390}
391
392.strip-list {
393 position: absolute;
394 top: calc(100% + 6px);
395 right: 0;
396 z-index: 60;
397 display: grid;
398 gap: 2px;
399 box-sizing: border-box;
400 width: max-content;
401 min-width: 240px;
402 max-width: min(420px, 92vw);
403 max-height: min(60vh, 420px);
404 overflow-y: auto;
405 margin: 0;
406 padding: 6px;
407 list-style: none;
408 background: var(--surface);
409 border: 1px solid var(--border);
410 border-radius: var(--radius-md);
411 box-shadow: var(--shadow);
412
413 li {
414 min-width: 0;
415 }
416}
417
418.strip-row {
419 display: flex;
420 align-items: center;
421 gap: 8px;
422 min-width: 0;
423 padding: 6px 8px;
424 border-radius: var(--radius-md);
425 color: var(--text-2);
426 font-size: 12.5px;
427 white-space: nowrap;
428 text-decoration: none;
429
430 b {
431 min-width: 0;
432 overflow: hidden;
433 font-weight: 600;
434 color: var(--text);
435 text-overflow: ellipsis;
436 }
437
438 &:hover {
439 background: var(--surface-2);
440 text-decoration: none;
441 }
442
443 &.ok .pill-dot {
444 background: var(--ok);
445 }
446
447 &.bad .pill-dot {
448 background: var(--danger);
449 }
450
451 &.hot .pill-dot {
452 background: var(--heat-4);
453 animation: pill-pulse 1.6s ease-out infinite;
454 }
455}
456
457@keyframes pill-pulse {
458 0% {
459 box-shadow: 0 0 0 0 var(--heat-glow);
460 }
461
462 70%,
463 100% {
464 box-shadow: 0 0 0 6px transparent;
465 }
466}
467
468// The shared button keeps its natural width in columns; in the top bar it sits on the centre line.
469.topbar .button {
470 align-self: center;
471 flex: none;
472}
473
474.topbar-link {
475 flex: none;
476 color: var(--text-2);
477 font-size: 14.5px;
478 font-weight: 500;
479 text-decoration: none;
480
481 &:hover {
482 color: var(--text);
483 text-decoration: none;
484 }
485}
486
487// The avatar menu: the avatar is the summary; the menu list keeps its links from main.scss.
488.topbar .menu {
489 flex: none;
490
491 summary {
492 display: grid;
493 place-items: center;
494 width: 36px;
495 height: 36px;
496 padding: 0;
497 border: 0;
498 border-radius: 50%;
499 }
500
501 summary img {
502 display: block;
503 width: 28px;
504 height: 28px;
505 }
506
507 &[open] summary {
508 box-shadow: 0 0 0 2px var(--accent-soft);
509 }
510}
511
512.topbar .menu-list {
513 top: calc(100% + 8px);
514}
515
516// Phone menu: the section sidebar in a panel under the top bar. Hidden from 900px.
517
518.nav-toggle {
519 flex: none;
520}
521
522.nav-panel {
523 position: absolute;
524 top: 100%;
525 left: 12px;
526 z-index: 30;
527 box-sizing: border-box;
528 width: 280px;
529 max-width: calc(100vw - 24px);
530 max-height: calc(100vh - var(--topbar-h));
531 padding: 12px;
532 overflow-y: auto;
533 background: var(--surface);
534 border: 1px solid var(--border);
535 border-radius: var(--radius-lg);
536 box-shadow: var(--shadow);
537}
538
539// Section sidebar (admin, settings and an org's pages). Other pages have none.
540
541.shell {
542 display: grid;
543 grid-template-columns: minmax(0, 1fr);
544 min-height: calc(100vh - var(--topbar-h));
545}
546
547.shell-sidebar {
548 display: none;
549}
550
551.side-links {
552 display: flex;
553 flex-direction: column;
554 gap: 2px;
555}
556
557.side-link {
558 display: flex;
559 align-items: center;
560 gap: 10px;
561 min-height: 36px;
562 padding: 0 12px;
563 border-radius: var(--radius-md);
564 color: var(--text-2);
565 font-size: 14.5px;
566 font-weight: 500;
567 white-space: nowrap;
568 text-decoration: none;
569
570 &:hover {
571 background: var(--surface-2);
572 text-decoration: none;
573 }
574
575 .ico {
576 color: var(--muted);
577 }
578
579 &.on {
580 background: var(--accent-soft);
581 color: var(--accent-ink);
582 font-weight: 600;
583
584 .ico {
585 color: var(--accent-ink);
586 }
587 }
588}
589
590.side-group {
591 margin-top: 24px;
592}
593
594.side-h {
595 margin: 0 12px 8px;
596 font-size: 12.5px;
597 font-weight: 600;
598 line-height: 1.4;
599 color: var(--muted);
600}
601
602// Profile corner: the signed-in user's floating panel at the bottom left of the window (see
603// `.corner-float`). Its menu opens upward from the panel.
604.corner-wrap {
605 position: relative;
606 display: flex;
607 align-items: center;
608 gap: 4px;
609}
610
611.corner {
612 position: relative;
613}
614
615// The panel's menu anchors to the panel's width, not to the summary, so it reads as a menu of its own.
616.corner-float .corner {
617 position: static;
618}
619
620.corner-btn {
621 display: flex;
622 align-items: center;
623 gap: 8px;
624 padding: 8px;
625 border-radius: var(--radius-md);
626 color: var(--text);
627 cursor: pointer;
628 list-style: none;
629
630 &:hover {
631 background: var(--surface-2);
632 }
633
634 &::-webkit-details-marker {
635 display: none;
636 }
637}
638
639// The name wraps onto at most two lines, breaking at spaces. A single word too long for the line
640// breaks inside it.
641.corner-name {
642 min-width: 0;
643 overflow: hidden;
644 font-size: 13.5px;
645 font-weight: 600;
646 line-height: 1.2;
647 white-space: normal;
648 overflow-wrap: break-word;
649 display: -webkit-box;
650 -webkit-line-clamp: 2;
651 -webkit-box-orient: vertical;
652}
653
654// The avatar beside the name. Running CI shows in the live strip, not around the avatar.
655.corner-avatar {
656 display: grid;
657 flex: none;
658 place-items: center;
659
660 .avatar {
661 width: 32px;
662 height: 32px;
663 border-radius: 50%;
664 }
665}
666
667.corner-chips {
668 display: flex;
669 align-items: center;
670 gap: 4px;
671 margin-left: auto;
672}
673
674// Chips count what waits on the user. They never take the accent.
675.chip {
676 display: inline-flex;
677 align-items: center;
678 gap: 3px;
679 flex: none;
680 height: 20px;
681 box-sizing: border-box;
682 padding: 0 6px;
683 border: 1px solid var(--border);
684 border-radius: var(--radius-full);
685 background: var(--surface-2);
686 color: var(--text-2);
687 font-size: 11px;
688 font-weight: 700;
689 font-variant-numeric: tabular-nums;
690
691 .ico {
692 width: 12px;
693 height: 12px;
694 }
695}
696
697// A chip is a link to the newest thing it counts.
698a.chip {
699 text-decoration: none;
700
701 &:hover {
702 text-decoration: none;
703 filter: brightness(1.15);
704 }
705}
706
707// The bell beside the summary, inside the floating panel. It opens the popover of the newest
708// notifications, and its unread count sits on its top right corner.
709.corner-bell {
710 position: relative;
711 display: grid;
712 flex: none;
713 place-items: center;
714 width: 28px;
715 height: 28px;
716 border-radius: var(--radius-md);
717 color: var(--muted);
718
719 &:hover {
720 background: color-mix(in srgb, var(--text) 8%, transparent);
721 color: var(--text);
722 }
723
724 .ico {
725 width: 18px;
726 height: 18px;
727 }
728}
729
730// The unread count on the bell: a small badge over its top right corner.
731.corner-bell .bell-count {
732 position: absolute;
733 top: -4px;
734 right: -4px;
735 min-width: 16px;
736 height: 16px;
737 padding: 0 4px;
738 font-size: 10px;
739 line-height: 16px;
740 box-shadow: 0 0 0 2px var(--surface);
741}
742
743// The bell's popover: the newest notifications, opened upward from the bell (nav.js places it). The
744// UA's centring is reset so the fixed placement holds. It has no display of its own: the UA hides it
745// while closed.
746.bell-pop {
747 position: fixed;
748 inset: auto;
749 margin: 0;
750 box-sizing: border-box;
751 width: 320px;
752 max-width: calc(100vw - 16px);
753 max-height: min(420px, 70vh);
754 padding: 0;
755 overflow: hidden;
756 background: var(--surface);
757 color: var(--text);
758 border: 1px solid var(--border);
759 border-radius: var(--radius-md);
760 box-shadow: var(--shadow);
761}
762
763.bell-box {
764 display: flex;
765 flex-direction: column;
766 max-height: min(420px, 70vh);
767}
768
769.bell-head {
770 display: flex;
771 align-items: center;
772 justify-content: space-between;
773 gap: 8px;
774 padding: 10px 14px 8px;
775 border-bottom: 1px solid var(--border);
776 font-size: 14px;
777 font-weight: 600;
778}
779
780.bell-clear {
781 display: none;
782 margin: 0;
783 font-size: 13px;
784 font-weight: 400;
785}
786
787.bell-box:has(.bell-item) .bell-clear {
788 display: block;
789}
790
791.bell-list {
792 flex: 1 1 auto;
793 min-height: 0;
794 overflow-y: auto;
795 padding: 4px;
796 border-bottom: 1px solid var(--border);
797}
798
799.bell-rows {
800 margin: 0;
801 padding: 0;
802 list-style: none;
803}
804
805.bell-item {
806 display: grid;
807 grid-template-columns: 8px minmax(0, 1fr);
808 gap: 10px;
809 align-items: start;
810 padding: 8px 10px;
811 border-radius: var(--radius-md);
812 color: var(--text);
813 text-decoration: none;
814
815 &:hover {
816 background: var(--surface-2);
817 text-decoration: none;
818 }
819}
820
821.bell-dot {
822 width: 8px;
823 height: 8px;
824 margin-top: 6px;
825 border-radius: 50%;
826
827 &.unread {
828 background: var(--accent);
829 }
830}
831
832.bell-text {
833 display: grid;
834 gap: 2px;
835 min-width: 0;
836}
837
838.bell-line {
839 font-size: 13.5px;
840 line-height: 1.3;
841 overflow-wrap: break-word;
842 display: -webkit-box;
843 -webkit-line-clamp: 2;
844 -webkit-box-orient: vertical;
845 overflow: hidden;
846}
847
848.bell-meta {
849 display: flex;
850 flex-wrap: wrap;
851 gap: 6px;
852 font-size: 12px;
853}
854
855.bell-empty {
856 margin: 0;
857 padding: 10px;
858 font-size: 13px;
859}
860
861.bell-open {
862 flex: none;
863 align-self: stretch;
864 justify-content: center;
865 margin: 8px;
866 text-decoration: none;
867}
868
869.chip-review {
870 color: var(--important);
871 background: color-mix(in srgb, var(--important) 12%, var(--surface));
872 border-color: color-mix(in srgb, var(--important) 35%, transparent);
873}
874
875.chip-mention {
876 color: var(--info);
877 background: color-mix(in srgb, var(--info) 12%, var(--surface));
878 border-color: color-mix(in srgb, var(--info) 35%, transparent);
879}
880
881.chip-failing {
882 color: var(--danger);
883 background: var(--danger-bg);
884 border-color: color-mix(in srgb, var(--danger) 35%, transparent);
885}
886
887.corner-menu {
888 position: absolute;
889 bottom: calc(100% + 6px);
890 z-index: 40;
891 display: grid;
892 gap: 2px;
893 box-sizing: border-box;
894 padding: 6px;
895 background: var(--surface);
896 border: 1px solid var(--border);
897 border-radius: var(--radius-md);
898 box-shadow: var(--shadow);
899}
900
901// The profile corner: a small panel fixed at the bottom left of the window, the avatar, the chips and
902// the bell. The name is left out of the panel; its aria-label still names the viewer.
903.corner-float {
904 position: fixed;
905 left: 16px;
906 bottom: 16px;
907 z-index: 40;
908 max-width: min(280px, calc(100vw - 32px));
909 background: var(--surface);
910 border: 1px solid var(--border);
911 border-radius: 999px;
912 box-shadow: var(--shadow);
913 padding: 4px 8px;
914 // The panel can be dragged with a pointer (nav.js): touch must not scroll under it.
915 touch-action: none;
916 cursor: grab;
917 user-select: none;
918}
919
920.corner-float.dragging {
921 cursor: grabbing;
922}
923
924// Below 900px the panel steps aside while the reader scrolls down (nav.js sets corner-away): it fades
925// out and takes no pointer, so the page under it can be read and tapped. Reduced motion skips the fade.
926.corner-float {
927 transition: opacity 0.2s ease;
928}
929
930.corner-float.corner-away {
931 opacity: 0;
932 pointer-events: none;
933}
934
935// Placed in the top half of the window: the menu opens below the panel. In the right half it anchors
936// to the panel's right edge instead of the left one. The default corner keeps the upward menu.
937.corner-float[data-open="down"] .corner-menu {
938 top: calc(100% + 6px);
939 bottom: auto;
940}
941
942// The menu is as wide as its content, at least the panel's width, and never wider than the window.
943.corner-float .corner-menu {
944 left: 8px;
945 right: auto;
946 width: max-content;
947 min-width: calc(100% - 16px);
948 max-width: calc(100vw - 32px);
949}
950
951.corner-float[data-side="right"] .corner-menu {
952 left: auto;
953 right: 8px;
954}
955
956.corner-float .corner-name {
957 display: none;
958}
959
960.corner-float .corner-btn {
961 padding: 2px 4px;
962}
963
964.corner-float .corner-avatar .avatar {
965 width: 28px;
966 height: 28px;
967}
968
969// `button.corner-link` too (Log out): the extra element in the selector outweighs `button.link-button`.
970.corner-link,
971button.corner-link.link-button {
972 display: block;
973 width: 100%;
974 box-sizing: border-box;
975 margin: 0;
976 padding: 8px 10px;
977 border: 0;
978 border-radius: var(--radius-md);
979 background: none;
980 color: var(--text);
981 font: inherit;
982 font-size: 14px;
983 text-align: left;
984 text-decoration: none;
985 cursor: pointer;
986
987 &:hover {
988 background: var(--surface-2);
989 text-decoration: none;
990 }
991}
992
993.corner-theme {
994 display: flex;
995 align-items: center;
996 justify-content: space-between;
997 padding: 4px 6px 4px 10px;
998 font-size: 14px;
999 color: var(--muted);
1000
1001 span {
1002 color: var(--text-2);
1003 }
1004}
1005
1006.corner-theme-set {
1007 display: flex;
1008 gap: 2px;
1009 margin: 0;
1010
1011 button {
1012 display: grid;
1013 place-items: center;
1014 width: 28px;
1015 height: 26px;
1016 padding: 0;
1017 border: 0;
1018 border-radius: var(--radius-sm);
1019 background: none;
1020 color: var(--muted);
1021 cursor: pointer;
1022
1023 &:hover {
1024 color: var(--text);
1025 }
1026
1027 &[aria-pressed="true"] {
1028 background: var(--surface-2);
1029 color: var(--text);
1030 }
1031
1032 // An icon button has no room for the spinner: dimming alone shows it is busy.
1033 &.is-busy::after {
1034 display: none;
1035 }
1036 }
1037
1038 .ico {
1039 width: 16px;
1040 height: 16px;
1041 }
1042}
1043
1044// Page column and footer. The footer sits under the page in the same column, so a short page and
1045// its footer fit in the viewport the shell fills (no scroll for a footer's height).
1046
1047.shell-body {
1048 display: flex;
1049 flex-direction: column;
1050 min-width: 0;
1051}
1052
1053.shell-body > main {
1054 flex: 1 0 auto;
1055 box-sizing: border-box;
1056 width: 100%;
1057 min-width: 0;
1058 max-width: 1280px;
1059 margin: 0 auto;
1060 padding: 24px 16px 24px;
1061}
1062
1063.site-footer {
1064 display: flex;
1065 flex-wrap: wrap;
1066 align-items: center;
1067 gap: 12px;
1068 box-sizing: border-box;
1069 padding: 14px 16px 20px;
1070 font-size: 12.5px;
1071 color: var(--muted);
1072 border-top: 1px solid var(--border);
1073}
1074
1075// Signed-in pages without a sidebar: the floating profile panel sits over the footer's left edge.
1076body[data-signed-in] .shell:not(:has(> .shell-sidebar)) .site-footer {
1077 padding-left: 132px;
1078}
1079
1080// The page is one full-width column. A section page (admin, settings, an org) adds its sidebar beside
1081// it from 900px, below.
1082
1083// The floating profile corner sits over the bottom left of the page below 900px: the page keeps
1084// clear of it at its end.
1085@media (max-width: 899px) {
1086 .shell-body {
1087 padding-bottom: 72px;
1088 }
1089}
1090
1091@media (max-width: 699px) {
1092 .topbar .crumbs {
1093 display: none;
1094 }
1095
1096 .top-search {
1097 flex: 1 1 0;
1098 }
1099
1100 // Phones: the path bar shows only the last segment, and the live strip goes (its counts are in the menu).
1101 .pathbar-segs li:not(:last-child) {
1102 display: none;
1103 }
1104
1105 .pathbar-segs li + li::before {
1106 display: none;
1107 }
1108
1109 // Phones have no keyboard, so the shortcut hint goes, and the path keeps the room the search hint
1110 // would take (the icon still marks the bar as search).
1111 .pathbar-edit kbd,
1112 .pathbar-hint {
1113 display: none;
1114 }
1115
1116 .live-strip {
1117 display: none;
1118 }
1119}
1120
1121// Narrow phones: the search field no longer fits beside the other top bar items, so it becomes an
1122// icon that opens the public repository search on the Explore page (the same search, no JS).
1123.topbar .top-search-link {
1124 display: none;
1125}
1126
1127@media (max-width: 639px) {
1128 .top-search {
1129 display: none;
1130 }
1131
1132 .topbar .top-search-link {
1133 display: grid;
1134 margin-left: auto;
1135 }
1136}
1137
1138@media (min-width: 700px) {
1139 .shell-body > main {
1140 padding: 28px 28px 24px;
1141 }
1142
1143 .site-footer {
1144 padding: 14px 28px 20px;
1145 }
1146}
1147
1148@media (min-width: 900px) {
1149 .nav-toggle {
1150 display: none;
1151 }
1152
1153 .shell:has(> .shell-sidebar) {
1154 grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
1155 }
1156
1157 .shell-sidebar {
1158 position: sticky;
1159 top: var(--topbar-h);
1160 align-self: start;
1161 display: flex;
1162 flex-direction: column;
1163 box-sizing: border-box;
1164 // Ends at the viewport's bottom while the site banner still shows above it (--shell-top, nav.js).
1165 height: calc(100vh - max(var(--topbar-h), var(--shell-top, 0px)));
1166 min-width: 0;
1167 padding: 16px 12px 24px;
1168 overflow-y: auto;
1169 background: var(--surface);
1170 border-right: 1px solid var(--border);
1171 }
1172}
1173
1174// Sidebar on the right (the user's preference, set on <html> as data-sidebar). The section sidebar
1175// takes the second column and its border moves to its inner edge. Below
1176// 900px the sidebar is hidden either way, so the phone layout and the nav toggle are unchanged.
1177@media (min-width: 900px) {
1178 html[data-sidebar="right"] .shell:has(> .shell-sidebar) {
1179 grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
1180 }
1181
1182 html[data-sidebar="right"] .shell > .shell-sidebar {
1183 order: 2;
1184 border-right: 0;
1185 border-left: 1px solid var(--border);
1186 }
1187}
1188
1189// Soft navigation: a thin progress line along the top while a page is being fetched in place
1190// (nav.js sets aria-busy on <html>). Decorative; the page stays usable underneath.
1191html[aria-busy="true"] body::before {
1192 content: "";
1193 position: fixed;
1194 top: 0;
1195 left: 0;
1196 right: 0;
1197 height: 2px;
1198 z-index: 1000;
1199 background: var(--accent);
1200 transform-origin: left center;
1201 pointer-events: none;
1202 animation: soft-nav-progress 1.1s ease-in-out infinite;
1203}
1204
1205@keyframes soft-nav-progress {
1206 0% { transform: scaleX(0); }
1207 50% { transform: scaleX(0.7); }
1208 100% { transform: scaleX(1); opacity: 0; }
1209}
1210
1211@media (prefers-reduced-motion: reduce) {
1212 html[aria-busy="true"] body::before {
1213 animation: none;
1214 transform: scaleX(1);
1215 opacity: 0.45;
1216 }
1217
1218 .corner-float {
1219 transition: none;
1220 }
1221
1222 .pill.hot .pill-dot,
1223 .strip-row.hot .pill-dot {
1224 animation: none;
1225 }
1226}