forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.010.9 MiB41ee476Tahinli29 days ago283 commits

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