/* gsg — monospace-first UI. Every value on these pages is an identifier, hash, path or count, so the interface type is the same face as the code; the sans face appears only inside rendered README prose. Palette is a cool slate ramp with one indigo accent and a six-colour lane ramp that the commit graph and its branch chips share. */ :root { --bg: #FAFAFC; --surface: #FFFFFF; --line: #E3E5EE; --line-soft: #EDEEF5; --fg: #14161D; --fg-soft: #4A5063; --dim: #858BA0; --accent: #5B4BE0; --accent-bg: #EEEBFE; --add: #1E874B; --add-bg: #E9F6EE; --del: #C4314B; --del-bg: #FCECEF; --lane-0: #5B4BE0; --lane-1: #109C8D; --lane-2: #C97A0E; --lane-3: #D2447A; --lane-4: #2A7CD6; --lane-5: #6C9B1E; --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace; --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --r: 6px; --pad: clamp(1rem, 4vw, 2rem); } @media (prefers-color-scheme: dark) { :root { --bg: #0E1016; --surface: #151823; --line: #242838; --line-soft: #1C2030; --fg: #E4E7F0; --fg-soft: #A8AEC2; --dim: #6E7590; --accent: #9C8BFF; --accent-bg: #211D3D; --add: #4BC585; --add-bg: #12251A; --del: #FF7A90; --del-bg: #2A1419; --lane-0: #9C8BFF; --lane-1: #34C6B4; --lane-2: #E5A544; --lane-3: #F2678E; --lane-4: #58A6F0; --lane-5: #9BD45F; } } *, *::before, *::after { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; } body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--mono); font-size: 13.5px; line-height: 1.6; font-variant-ligatures: none; -webkit-font-smoothing: antialiased; } .wrap { max-width: 74rem; margin: 0 auto; padding-inline: var(--pad); } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 2px; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; } .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* ---------------------------------------------------------------- topbar */ .topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); } .bar { display: flex; align-items: center; gap: .65rem; height: 3.1rem; flex-wrap: wrap; } .brand { color: var(--fg); font-weight: 600; letter-spacing: -.01em; } .brand:hover { color: var(--accent); text-decoration: none; } .slash { color: var(--dim); } .repo { color: var(--fg); font-weight: 600; } .tabs { display: flex; gap: .15rem; margin-left: .6rem; } .tabs a { color: var(--fg-soft); padding: .2rem .55rem; border-radius: var(--r); font-size: .8125rem; letter-spacing: .02em; } .tabs a:hover { background: var(--line-soft); color: var(--fg); text-decoration: none; } .refpick { margin-left: auto; } .refpick select { font: inherit; font-size: .8125rem; color: var(--fg-soft); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .2rem 1.4rem .2rem .5rem; cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: right .62rem center, right .42rem center; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; } .refpick select:hover { border-color: var(--accent); color: var(--fg); } /* ------------------------------------------------------------- page head */ main.wrap { padding-block: 2.25rem 5rem; } .page-head { margin-bottom: 1.6rem; } .page-head h1 { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; } .page-head h1.subject { font-weight: 500; } .sub { margin: .3rem 0 0; color: var(--dim); font-size: .8125rem; } .sub code { color: var(--fg-soft); } .dots { color: var(--dim); padding: 0 .3rem; } h2 { margin: 2.5rem 0 .7rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); display: flex; align-items: baseline; gap: .75rem; } h2 .more { font-size: .6875rem; letter-spacing: .06em; margin-left: auto; } section:first-of-type h2 { margin-top: 1.75rem; } .crumbs { display: flex; flex-wrap: wrap; gap: .3rem; align-items: baseline; font-size: 1.0625rem; font-weight: 500; } .crumbs .here { color: var(--fg); } /* ------------------------------------------------------------------ facts */ .facts { display: grid; grid-template-columns: max-content 1fr; gap: .1rem 1.5rem; margin: 0; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); } .facts dt { color: var(--dim); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; } .facts dd { margin: 0; color: var(--fg-soft); } .facts dd code { color: var(--fg); } .full-sha { word-break: break-all; } .clone { user-select: all; } /* ----------------------------------------------------------- latest commit */ .latest { display: grid; grid-template-columns: max-content 1fr max-content; align-items: baseline; gap: .85rem; margin-top: .9rem; padding: .6rem .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--fg); } .latest:hover { border-color: var(--accent); text-decoration: none; } .latest-sha { color: var(--accent); font-size: .8125rem; } .latest-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .latest-meta { color: var(--dim); font-size: .75rem; white-space: nowrap; } .readme { margin-top: 1.75rem; } /* ---------------------------------------------------------------- tables */ .listing { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; } .listing td { padding: .42rem .75rem; border-top: 1px solid var(--line-soft); vertical-align: baseline; } .listing tr:first-child td { border-top: 0; } .listing tr:hover td { background: var(--line-soft); } .listing .name { width: 100%; } .listing .name a { color: var(--fg); } .listing .name a:hover { color: var(--accent); } .listing .desc, .listing .who { color: var(--dim); white-space: nowrap; } .listing .when, .listing .num, .listing .churn, .listing .act { color: var(--dim); white-space: nowrap; text-align: right; font-size: .8125rem; } .listing .sha a { color: var(--accent); } .listing .icon { padding-right: 0; width: 1.4rem; } .glyph { color: var(--dim); font-size: .75rem; } .glyph.dir { color: var(--accent); } .muted { color: var(--dim); } .empty { color: var(--dim); text-align: center; padding: 1.6rem !important; } .ghost { color: var(--dim); font-size: .75rem; border: 1px solid var(--line); border-radius: 4px; padding: .05rem .38rem; } .ghost:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; } .churn .add { color: var(--add); } .churn .del { color: var(--del); margin-left: .5rem; } .chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; } .chip { font-size: .75rem; padding: .1rem .45rem; border: 1px solid var(--line); border-radius: 4px; color: var(--fg-soft); background: var(--surface); } .chip b { color: var(--dim); font-weight: 400; } .chip-branch { color: var(--accent); background: var(--accent-bg); border-color: transparent; margin-right: .35rem; } .chip-tag { color: var(--lane-2); border-color: currentColor; margin-right: .35rem; } /* ----------------------------------------------------------------- graph */ /* The signature: lane geometry comes from the module, colour from here. */ table.graph { width: 100%; border-collapse: collapse; } table.graph td { padding: 0 .75rem; height: 30px; white-space: nowrap; vertical-align: middle; } table.graph tr:hover { background: var(--line-soft); } table.graph .rail { padding: 0; width: 1px; } .rail-svg { display: block; } table.graph .msg { width: 100%; white-space: normal; } table.graph .msg a { color: var(--fg); } table.graph .msg a:hover { color: var(--accent); } table.graph .who, table.graph .when { color: var(--dim); font-size: .8125rem; text-align: right; } /* ------------------------------------------------------------ source/diff */ .source, .patch { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; } .source table { border-collapse: collapse; width: 100%; } .source td { padding: 0; vertical-align: top; } .source .ln { width: 1%; padding: 0 .9rem 0 .8rem; text-align: right; color: var(--dim); user-select: none; position: sticky; left: 0; background: var(--surface); border-right: 1px solid var(--line-soft); } .source .ln a { color: inherit; } .source .lc { padding-left: .9rem; white-space: pre; font-size: .8125rem; line-height: 1.55; } .source tr:target .lc, .source tr:target .ln { background: var(--accent-bg); } /* Diffs mark the gutter rather than flooding the row: the signal stays readable when a hunk is mostly additions. */ .patch { font-size: .8125rem; line-height: 1.55; } .pl { white-space: pre; padding: 0 .9rem 0 .65rem; border-left: 3px solid transparent; } .pl.meta { color: var(--dim); } .pl.hunk { color: var(--accent); background: var(--accent-bg); border-left-color: var(--accent); } .pl.add { color: var(--add); background: var(--add-bg); border-left-color: var(--add); } .pl.del { color: var(--del); background: var(--del-bg); border-left-color: var(--del); } .message { margin: 1rem 0 0; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); white-space: pre-wrap; color: var(--fg-soft); font-size: .8125rem; } .notice { padding: .6rem .85rem; border-radius: var(--r); background: var(--accent-bg); color: var(--fg-soft); font-size: .8125rem; } /* ----------------------------------------------------------------- prose */ /* The only place the sans face appears. */ .prose-wrap { margin-top: 2.5rem; } .prose { font-family: var(--sans); font-size: .9375rem; line-height: 1.7; color: var(--fg-soft); padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); } .prose h1, .prose h2, .prose h3 { font-family: var(--sans); color: var(--fg); text-transform: none; letter-spacing: -.01em; display: block; } .prose h1 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; } .prose h2 { font-size: 1.0625rem; margin: 1.5rem 0 .5rem; } .prose :first-child { margin-top: 0; } .prose h3 { font-size: .9375rem; margin: 1.25rem 0 .4rem; } .prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 1rem; } .prose ul, .prose ol { padding-left: 1.35rem; } .prose li { margin-bottom: .2rem; } .prose img { max-width: 100%; height: auto; border-radius: 4px; } .prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.75rem 0; } .prose blockquote { padding: .1rem 0 .1rem 1rem; border-left: 2px solid var(--line); color: var(--dim); } .prose table { border-collapse: collapse; font-size: .875rem; } .prose th, .prose td { padding: .35rem .8rem; border: 1px solid var(--line); text-align: left; } .prose th { background: var(--bg); font-weight: 600; color: var(--fg); } .prose code, .prose pre { font-family: var(--mono); font-size: .8125rem; } .prose :not(pre) > code { padding: .1rem .3rem; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 3px; } .prose pre { padding: .8rem; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 4px; overflow-x: auto; line-height: 1.5; } .prose pre code { padding: 0; background: none; border: 0; } /* ---------------------------------------------------------------- footer */ footer { padding-block: 1.25rem; margin-top: 3rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .75rem; display: flex; gap: .5rem; } footer .sep { color: var(--line); } /* ----------------------------------------------------------- small screens */ @media (max-width: 46rem) { .listing .who, .listing .desc, table.graph .who { display: none; } .latest { grid-template-columns: max-content 1fr; } .latest-meta { grid-column: 1 / -1; } .bar { height: auto; padding-block: .6rem; } .refpick { margin-left: 0; width: 100%; } .refpick select { width: 100%; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }