// 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(--accent); } .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; } } .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. .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); } } .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(--accent-ink); } &.last { color: var(--text); font-weight: 600; &:hover { background: none; } } } .pathbar-edit { display: flex; align-items: center; justify-content: flex-end; flex: 1 1 0; height: 100%; min-width: 0; margin: 0; padding: 0 6px; 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); opacity: 0; } &:hover kbd, &:focus-visible kbd { opacity: 1; } } // 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; } } // A dot on the menu button when there are unread notifications (the bell's count moved here). .nav-toggle summary.has-dot::after { content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--heat-3); box-shadow: 0 0 0 2px var(--bg); } // 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; } .topbar-link { flex: none; color: var(--text-2); font-size: 14.5px; font-weight: 500; text-decoration: none; &:hover { color: var(--text); text-decoration: 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(--accent-soft); } } .topbar .menu-list { top: calc(100% + 8px); } // Phone menu: the sidebar in a panel under the top bar. Hidden from 900px. .nav-toggle { flex: none; } .nav-panel { position: absolute; top: 100%; left: 12px; z-index: 30; box-sizing: border-box; width: 280px; max-width: calc(100vw - 24px); max-height: calc(100vh - var(--topbar-h)); padding: 12px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); } // Sidebar .shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); } .shell-sidebar { display: none; } .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); } .count { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; } &.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; .ico, .count { 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); } .side-empty { margin: 0 12px; font-size: 13px; color: var(--muted); } .side-repos { display: flex; flex-direction: column; gap: 2px; a { display: flex; align-items: center; min-height: 32px; padding: 0 12px; overflow: hidden; border-radius: var(--radius-md); font-family: var(--mono); font-size: 13.5px; color: var(--text-2); white-space: nowrap; text-decoration: none; &:hover { background: var(--surface-2); text-decoration: none; } } } // Profile corner: the signed-in user at the bottom of the sidebar. Its menu opens upward. .corner { position: relative; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); } .nav-panel .corner { margin-top: 12px; } // The phone panel scrolls, so a menu opening upward would be cut at its top: it opens in place. .nav-panel .corner-menu { position: static; margin-top: 6px; box-shadow: none; } .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; } } .corner-name { min-width: 0; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; } // The avatar inside a ring: a plain border ring when nothing runs, a full ember ring while a run // of the viewer's is queued or running (.hot), glowing softly. .heat-ring { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--border); &.hot { background: conic-gradient(var(--heat-2), var(--heat-3), var(--heat-4), var(--heat-2)); filter: drop-shadow(0 0 5px var(--heat-glow)); } .avatar { box-sizing: border-box; width: 28px; height: 28px; border: 2px solid var(--bg); border-radius: 50%; } } .corner-chips { display: flex; align-items: center; gap: 4px; margin-left: auto; } // 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; } } .chip-review { color: var(--important); background: color-mix(in srgb, var(--important) 12%, var(--surface)); border-color: color-mix(in srgb, var(--important) 35%, transparent); } .chip-mention { color: var(--info); background: color-mix(in srgb, var(--info) 12%, var(--surface)); border-color: color-mix(in srgb, var(--info) 35%, transparent); } .chip-failing { color: var(--danger); background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 35%, transparent); } .corner-menu { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); 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); } .corner-cap { margin: 0; padding: 6px 10px 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); } .corner-waiting { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; a { display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px; border-radius: var(--radius-md); color: var(--text); text-decoration: none; &:hover { background: var(--surface-2); text-decoration: none; } } } .corner-dot { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--muted); &.review { background: var(--important); } &.mention { background: var(--info); } } .corner-item { display: flex; flex-direction: column; min-width: 0; span { overflow: hidden; font-size: 13.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; } small { overflow: hidden; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; } } // `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; } } .corner-rule { width: auto; margin: 4px 6px; border: 0; border-top: 1px solid var(--border); } .corner-theme { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 4px 10px; font-size: 14px; color: var(--muted); span { color: var(--text-2); } } .corner-theme-set { display: flex; gap: 2px; margin: 0; button { display: grid; place-items: center; width: 28px; height: 26px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); cursor: pointer; &:hover { color: var(--text); } &[aria-pressed="true"] { background: var(--surface-2); color: var(--text); } } .ico { width: 16px; height: 16px; } } // Page column and footer .shell > main { box-sizing: border-box; width: 100%; min-width: 0; max-width: 1280px; margin: 0 auto; padding: 24px 16px 48px; } .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); } // Wide screens: the sidebar sits beside the page, and a repo's tabs replace its links. @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. .pathbar-edit kbd { display: none; } .live-strip { display: none; } } // Narrow phones: the search field no longer fits beside the other top bar items, so it becomes an // icon that opens the public repository search on the Explore page (the same search, no JS). .topbar .top-search-link { display: none; } @media (max-width: 639px) { .top-search { display: none; } .topbar .top-search-link { display: grid; margin-left: auto; } } @media (min-width: 700px) { .shell > main { padding: 28px 28px 48px; } .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); } .shell-sidebar { position: sticky; top: var(--topbar-h); align-self: start; // A column, so the profile corner sits at its bottom (margin-top: auto). display: flex; flex-direction: column; box-sizing: border-box; // Ends at the viewport's bottom while the site banner still shows above it (--shell-top, nav.js). height: calc(100vh - max(var(--topbar-h), var(--shell-top, 0px))); min-width: 0; padding: 16px 12px 24px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); } // The profile corner stays above a repo page's fixed tabs, which end where it starts: 50px of // corner, its rule and the sidebar's 24px bottom padding. .shell-sidebar .corner { position: relative; z-index: 6; } .shell:has(> .shell-sidebar .corner) .repo-tabs { bottom: 76px; } // The sticky sidebar is its own stacking layer, under the fixed tabs, so the open menu would sit // behind them: while it is open the sidebar rises above the tabs, see-through so they still show. .shell-sidebar:has(.corner[open]) { z-index: 6; } .shell:has(.repo-tabs) .shell-sidebar:has(.corner[open]) { background: transparent; } // A repo page: its tabs become the sidebar, fixed under the top bar, and the global links go. .shell:has(.repo-tabs) .shell-sidebar .side-links, .shell:has(.repo-tabs) .shell-sidebar .side-group { display: none; } .shell:has(> .shell-sidebar) .repo-tabs { position: fixed; // nav.js sets --shell-top to where the page body starts, below the site banner when there is one. top: max(var(--topbar-h), var(--shell-top, 0px)); bottom: 0; left: 0; z-index: 5; box-sizing: border-box; width: var(--sidebar-w); flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 16px 12px 24px; overflow-x: hidden; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 0; } .shell:has(> .shell-sidebar) .repo-tabs .tab { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--radius-md); box-shadow: none; color: var(--text-2); font-size: 14.5px; font-weight: 500; &:hover { background: var(--surface-2); color: var(--text); } &.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; box-shadow: none; } } .shell:has(> .shell-sidebar) .repo-tabs .tab-count { margin-left: auto; padding: 0; background: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; } } // Sidebar on the right (the user's preference, set on as data-sidebar). The sidebar takes the // second column and its border moves to its inner edge. A repo's tabs follow it. 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); } html[data-sidebar="right"] .shell > .shell-sidebar { order: 2; border-right: 0; border-left: 1px solid var(--border); } html[data-sidebar="right"] .shell:has(> .shell-sidebar) .repo-tabs { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--border); } } // 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; } .pill.hot .pill-dot, .strip-row.hot .pill-dot { animation: none; } }