// Shell: the sticky top bar, the signed-in sidebar, the page column and the footer. From 900px // the sidebar is always there, and a repo's tabs take it over. Below 900px the sidebar moves // into a menu in the top bar, and the repo tabs become a horizontal strip. // Icons: strokes use currentColor, so they follow the text colour in both themes. .ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } // Top bar .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; box-sizing: border-box; height: var(--topbar-h); min-width: 0; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--border); } .wordmark { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; &:hover { text-decoration: none; } } .wordmark-mark { width: 20px; height: 20px; color: var(--text); } .topbar .crumbs { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; overflow: hidden; font-size: 14px; color: var(--muted); white-space: nowrap; &::before { content: "/"; margin-right: 10px; color: var(--border-strong); } ol { flex-wrap: nowrap; } a { color: inherit; } } .top-search { position: relative; flex: 0 1 340px; min-width: 0; margin: 0 0 0 auto; input { box-sizing: border-box; width: 100%; height: 36px; min-width: 0; margin: 0; padding: 0 12px 0 36px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; &::placeholder { color: var(--muted); } &:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } } } .top-search-icon { position: absolute; top: 10px; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; } .topbar .icon-btn { position: relative; display: grid; place-items: center; flex: none; box-sizing: border-box; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text-2); font: inherit; list-style: none; cursor: pointer; &:hover { background: var(--surface-2); text-decoration: none; } &::-webkit-details-marker { display: none; } } .theme-form { display: flex; flex: none; margin: 0; } // Path bar: the breadcrumb of the page, and the click target that opens the Ctrl K palette. // The bar fills the top bar's free space; its edit button covers the rest of it. Signed in, it reads // as one field: a search icon, the path, then a "search or jump to" hint and Ctrl K. .pathbar { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; max-width: 640px; height: 32px; box-sizing: border-box; padding: 0 0 0 4px; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-sm); font-family: var(--mono); font-size: 12.5px; color: var(--muted); &:hover { border-color: var(--border); } &:has(.pathbar-edit) { padding-left: 10px; border-color: var(--border); border-radius: var(--radius-md); background: var(--surface); &:hover { border-color: var(--border-strong); } } } .pathbar-ico { flex: none; width: 15px; height: 15px; margin-right: 6px; color: var(--muted); } .pathbar-segs { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; white-space: nowrap; li { display: flex; align-items: center; min-width: 0; & + li::before { content: "/"; flex: none; padding: 0 6px; color: var(--border-strong); } } } .pathbar-seg { min-width: 0; overflow: hidden; padding: 2px 4px; border-radius: var(--radius-sm); color: var(--muted); text-overflow: ellipsis; text-decoration: none; white-space: nowrap; &:hover { color: var(--text); background: var(--surface-2); text-decoration: none; } &.owner { color: var(--text); } &.last { color: var(--text); font-weight: 600; &:hover { background: none; } } } // The shortcut sits right after the hint: at the far end of the bar it read as the key for the link // beside it. .pathbar-edit { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex: 1 1 0; height: 100%; min-width: 0; margin: 0; padding: 0 6px 0 12px; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: text; kbd { flex: none; padding: 0 5px; font-family: var(--mono); font-size: 11px; line-height: 18px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); } // The bar is the field, so the global button hover and focus ring stay off this part of it. &:hover, &:focus-visible { border: 0; background: transparent; box-shadow: none; } &:hover .pathbar-hint { color: var(--text-2); } } .pathbar:has(.pathbar-edit:focus-visible) { border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); } .pathbar-hint { min-width: 0; overflow: hidden; font-family: var(--font); font-size: 13px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; } // Live strip: what is running or just finished, at the end of the top bar. .live-strip { display: flex; align-items: center; gap: 6px; flex: none; min-width: 0; margin-left: auto; } .pill { display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; height: 26px; box-sizing: border-box; padding: 0 10px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); color: var(--text-2); font-size: 12.5px; white-space: nowrap; text-decoration: none; b { font-weight: 600; color: var(--text); } &:hover { background: var(--surface-2); text-decoration: none; } } .pill-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); } .pill.ok .pill-dot { background: var(--ok); } .pill.bad .pill-dot { background: var(--danger); } .pill.hot { border-color: color-mix(in srgb, var(--heat-3) 45%, var(--border)); background: linear-gradient( 90deg, color-mix(in srgb, var(--heat-3) 18%, var(--surface)), color-mix(in srgb, var(--heat-3) 6%, var(--surface)) ); .pill-dot { background: var(--heat-4); animation: pill-pulse 1.6s ease-out infinite; } } // Two or more runs: the summary pill opens a list of all of them, right-aligned under it. .strip-runs { position: relative; > summary { list-style: none; cursor: pointer; &::-webkit-details-marker { display: none; } } } .strip-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; display: grid; gap: 2px; box-sizing: border-box; width: max-content; min-width: 240px; max-width: min(420px, 92vw); max-height: min(60vh, 420px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); li { min-width: 0; } } .strip-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: var(--radius-md); color: var(--text-2); font-size: 12.5px; white-space: nowrap; text-decoration: none; b { min-width: 0; overflow: hidden; font-weight: 600; color: var(--text); text-overflow: ellipsis; } &:hover { background: var(--surface-2); text-decoration: none; } &.ok .pill-dot { background: var(--ok); } &.bad .pill-dot { background: var(--danger); } &.hot .pill-dot { background: var(--heat-4); animation: pill-pulse 1.6s ease-out infinite; } } @keyframes pill-pulse { 0% { box-shadow: 0 0 0 0 var(--heat-glow); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } } // The shared button keeps its natural width in columns; in the top bar it sits on the centre line. .topbar .button { align-self: center; flex: none; } // The avatar menu: the avatar is the summary; the menu list keeps its links from main.scss. .topbar .menu { flex: none; summary { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; } summary img { display: block; width: 28px; height: 28px; } &[open] summary { box-shadow: 0 0 0 2px var(--surface-2); } } .topbar .menu-list { top: calc(100% + 8px); } // Phone menu: the section sidebar in a panel under the top bar. Hidden from 900px. .nav-toggle { flex: none; } // Section sidebar (admin, settings and an org's pages). Other pages have none. .shell { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1 0 auto; } .side-links { display: flex; flex-direction: column; gap: 2px; } .side-link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: var(--radius-md); color: var(--text-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; text-decoration: none; &:hover { background: var(--surface-2); text-decoration: none; } .ico { color: var(--muted); } &.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; .ico { color: var(--accent-ink); } } } .side-group { margin-top: 24px; } .side-h { margin: 0 12px 8px; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--muted); } // Profile corner: the signed-in user's floating panel at the bottom left of the window (see // `.corner-float`). Its menu opens upward from the panel. .corner-wrap { position: relative; display: flex; align-items: center; gap: 4px; } .corner { position: relative; } // The panel's menu anchors to the panel's width, not to the summary, so it reads as a menu of its own. .corner-float .corner { position: static; } .corner-btn { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius-md); color: var(--text); cursor: pointer; list-style: none; &:hover { background: var(--surface-2); } &::-webkit-details-marker { display: none; } } // The name wraps onto at most two lines, breaking at spaces. A single word too long for the line // breaks inside it. .corner-name { min-width: 0; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: normal; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } // The avatar beside the name. Running CI shows in the live strip, not around the avatar. .corner-avatar { display: grid; flex: none; place-items: center; .avatar { width: 32px; height: 32px; border-radius: 50%; } } // Chips count what waits on the user. They never take the accent. .chip { display: inline-flex; align-items: center; gap: 3px; flex: none; height: 20px; box-sizing: border-box; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface-2); color: var(--text-2); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; .ico { width: 12px; height: 12px; } } // A chip is a link to the newest thing it counts. a.chip { text-decoration: none; &:hover { text-decoration: none; filter: brightness(1.15); } } .corner-menu { position: absolute; bottom: calc(100% + 8px); z-index: 40; display: grid; gap: 2px; box-sizing: border-box; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); } // The profile corner: a small panel fixed at the bottom left of the window, the avatar, the name and // the notifications row. The name is always shown in full (see `.corner-name` below). .corner-float { position: fixed; left: 16px; bottom: 16px; z-index: 40; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); padding: 4px 8px; // The panel can be dragged with a pointer (nav.js): touch must not scroll under it. touch-action: none; cursor: grab; user-select: none; } .corner-float.dragging { cursor: grabbing; } // Below 900px the panel steps aside while the reader scrolls down (nav.js sets corner-away): it fades // out and takes no pointer, so the page under it can be read and tapped. Reduced motion skips the fade. .corner-float { } .corner-float.corner-away { opacity: 0; pointer-events: none; } // Placed in the top half of the window: the menu opens below the panel. In the right half it anchors // to the panel's right edge instead of the left one. The default corner keeps the upward menu. .corner-float[data-open="down"] .corner-menu { top: calc(100% + 8px); bottom: auto; } // The menu is as wide as its content, at least the panel's width, and never wider than the window. .corner-float .corner-menu { left: 8px; right: auto; width: max-content; min-width: calc(100% - 16px); max-width: calc(100vw - 32px); } .corner-float[data-side="right"] .corner-menu { left: auto; right: 8px; } // The viewer's full name, never truncated. On a phone it wraps instead of running off the screen. .corner-float .corner-name { display: block; padding-right: 4px; white-space: nowrap; overflow: visible; } @media (max-width: 479px) { .corner-float .corner-name { white-space: normal; } } .corner-float .corner-btn { padding: 2px 4px; } .corner-float .corner-avatar .avatar { width: 28px; height: 28px; } // `button.corner-link` too (Log out): the extra element in the selector outweighs `button.link-button`. .corner-link, button.corner-link.link-button { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 8px 10px; border: 0; border-radius: var(--radius-md); background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; &:hover { background: var(--surface-2); text-decoration: none; } } // Page column and footer. The footer sits under the page in the same column, so a short page and // its footer fit in the viewport the shell fills (no scroll for a footer's height). .shell-body { display: flex; flex-direction: column; min-width: 0; } .shell-body > main { flex: 1 0 auto; box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 20px 16px 24px; } .site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; box-sizing: border-box; padding: 14px 16px 20px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); } // Signed-in pages without a sidebar: the floating profile panel sits over the footer's left edge. body[data-signed-in] .shell:not(:has(> .shell-sidebar)) .site-footer { padding-left: 132px; } // The page is one full-width column. A section page (admin, settings, an org) adds its sidebar beside // it from 900px, below. // The floating profile corner sits over the bottom left of the page below 900px: the page keeps // clear of it at its end. @media (max-width: 899px) { .shell-body { padding-bottom: 72px; } } @media (max-width: 699px) { .topbar .crumbs { display: none; } .top-search { flex: 1 1 0; } // Phones: the path bar shows only the last segment, and the live strip goes (its counts are in the menu). .pathbar-segs li:not(:last-child) { display: none; } .pathbar-segs li + li::before { display: none; } // Phones have no keyboard, so the shortcut hint goes, and the path keeps the room the search hint // would take (the icon still marks the bar as search). .pathbar-edit kbd, .pathbar-hint { display: none; } .live-strip { display: none; } } @media (max-width: 639px) { .top-search { display: none; } } @media (min-width: 700px) { .shell-body > main { padding: 20px 28px 24px; } .site-footer { padding: 14px 28px 20px; } } @media (min-width: 900px) { .nav-toggle { display: none; } .shell:has(> .shell-sidebar) { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); } } // Sidebar on the right (the user's preference, set on as data-sidebar). The section sidebar // takes the second column and its border moves to its inner edge. Below // 900px the sidebar is hidden either way, so the phone layout and the nav toggle are unchanged. @media (min-width: 900px) { html[data-sidebar="right"] .shell:has(> .shell-sidebar) { grid-template-columns: minmax(0, 1fr) var(--sidebar-w); } } // Soft navigation: a thin progress line along the top while a page is being fetched in place // (nav.js sets aria-busy on ). Decorative; the page stays usable underneath. html[aria-busy="true"] body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000; background: var(--accent); transform-origin: left center; pointer-events: none; animation: soft-nav-progress 1.1s ease-in-out infinite; } @keyframes soft-nav-progress { 0% { transform: scaleX(0); } 50% { transform: scaleX(0.7); } 100% { transform: scaleX(1); opacity: 0; } } @media (prefers-reduced-motion: reduce) { html[aria-busy="true"] body::before { animation: none; transform: scaleX(1); opacity: 0.45; } .corner-float { } .pill.hot .pill-dot, .strip-row.hot .pill-dot { animation: none; } }