/*============================*/ /* part 1: copied from saturn (danieldaum.net) global.css, MIT. only the sections used here; re-copy when saturn changes. font urls point at ./fonts/ instead of ./fonts/. */ /*============================*/ /*============================*/ /* josh comeau css reset */ /* https://www.joshwcomeau.com/css/custom-css-reset/*/ /*============================*/ *, *::before, *::after { box-sizing: border-box; } * { margin: 0; } @media (prefers-reduced-motion: no-preference) { html { interpolate-size: allow-keywords; } } body { line-height: 1.5; -webkit-font-smoothing: antialiased; } img, picture, video, canvas, svg { display: block; max-width: 100%; } input, button, textarea, select { font: inherit; } p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; } @media (min-width: 769px) { p { text-wrap: pretty; } } h1, h2, h3, h4, h5, h6 { text-wrap: balance; } /*============================*/ /* fonts - geist pixel square (one weight, no italic), geist mono */ /*============================*/ /* the weight range stops the browser faking bold */ @font-face { font-family: "Geist Pixel"; src: url("./fonts/geistpixel/GeistPixel-Square.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; } /* geist mono, code blocks only: pixel type is proportional, so columns drift */ @font-face { font-family: "Geist Mono"; src: url("./fonts/geistmono/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "Geist Mono"; src: url("./fonts/geistmono/GeistMono-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; } /*============================*/ /* tokens */ /*============================*/ html { height: 100%; font-size: 16px; scrollbar-gutter: stable; color-scheme: dark; /* moss: flexoki greens and base greys, stephango.com/flexoki (MIT) */ --background-dark: #1a1e0c; --surface: #252d09; --borders: #313d07; --text-headings: #f2f0e5; --text-body: #dad8ce; --text-secondary: #9f9d96; --accent: #a0af54; --accent-muted: #536907; /* rating scale (out of 5, half steps allowed) */ --rating-terrible: #e86b6b; --rating-below-average: #d9a441; --rating-good: #bdbd7f; --rating-above-average: #a9c94f; --rating-great: #7ec98f; /* syntax: same roles as the zed, helix and warp themes */ --syn-fg: #c2c4ba; --syn-punct: #a2a49b; --syn-comment: #909585; --syn-keyword: #ad9be2; --syn-function: #6fb1d7; --syn-builtin: #7ac4ad; --syn-type: #ddc56c; --syn-variable: #e0775d; --syn-constant: #e7a86e; --syn-string: #a9b767; } /* other palettes, picked by theme.js; moss is the no-js default */ [data-theme="ink"] { --background-dark: #101a24; --surface: #12253b; --borders: #133051; --accent: #66a0c8; --accent-muted: #1a4f8c; /* syntax */ --syn-fg: #bdc3ca; --syn-punct: #9ea4aa; --syn-comment: #838d98; --syn-keyword: #a79eec; --syn-function: #6fb2df; --syn-builtin: #73c6be; --syn-type: #dbc777; --syn-variable: #e0796e; --syn-constant: #eaa77c; --syn-string: #a2ba75; } [data-theme="wine"] { --background-dark: #24131d; --surface: #39172b; --borders: #4f1b39; --accent: #e47da8; --accent-muted: #87285e; /* syntax */ --syn-fg: #cabfc4; --syn-punct: #a9a0a5; --syn-comment: #978790; --syn-keyword: #b896e2; --syn-function: #75afdd; --syn-builtin: #77c4b6; --syn-type: #ebbe6e; --syn-variable: #e57268; --syn-constant: #f0a17b; --syn-string: #b3b365; } [data-theme="plum"] { --background-dark: #1a1623; --surface: #261c39; --borders: #31234e; --accent: #a699d0; --accent-muted: #4f3685; /* syntax */ --syn-fg: #c3c1cb; --syn-punct: #a4a1aa; --syn-comment: #8c8897; --syn-keyword: #b19ee7; --syn-function: #7db1de; --syn-builtin: #7fc5c2; --syn-type: #e4c584; --syn-variable: #de7c7b; --syn-constant: #eba78c; --syn-string: #adb87b; } [data-theme="teal"] { --background-dark: #101f1d; --surface: #122f2c; --borders: #143f3c; --accent: #5abdac; --accent-muted: #1c6c66; /* syntax */ --syn-fg: #bac5c4; --syn-punct: #9ca5a4; --syn-comment: #859794; --syn-keyword: #a59ee7; --syn-function: #6bb1da; --syn-builtin: #73c5b5; --syn-type: #d6c872; --syn-variable: #de7965; --syn-constant: #e5a873; --syn-string: #9fb970; } [data-theme="flexoki"] { --background-dark: #100f0f; --surface: #1c1b1a; --borders: #282726; --accent: #e8705f; --accent-muted: #575653; /* syntax */ --syn-fg: #c6c2bb; --syn-punct: #a6a29d; --syn-comment: #8a847a; --syn-keyword: #af98ec; --syn-function: #69b1e0; --syn-builtin: #6dc6b5; --syn-type: #e3c363; --syn-variable: #e8705f; --syn-constant: #f0a26d; --syn-string: #a9b761; } /*============================*/ /* base - elements */ /*============================*/ body { max-width: 78ch; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; margin: 0 auto; padding: min(3rem, 8vw) min(2rem, 5vw); font-family: "Geist Pixel", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace; color: var(--text-body); background-color: var(--background-dark); } ::selection { background: var(--accent); color: var(--background-dark); } h1 { font-size: 1.75rem; color: var(--text-headings); margin: 0 0 0.3rem 0; line-height: 1.2; } h2 { font-size: 1.35rem; color: var(--text-headings); margin: 3rem 0 0.6rem 0; } h3 { font-size: 1.125rem; color: var(--text-headings); margin: 2.25rem 0 0.5rem 0; } /* small label, same as the post kicker */ h4 { font-size: 0.78rem; color: var(--text-secondary); margin: 1.5rem 0 0.5rem 0; letter-spacing: 0.12em; } p { margin: 0 0 1.2rem 0; color: var(--text-body); } p, ul, ol { font-size: 0.9375rem; } p, li { line-height: 1.65; } a { color: var(--text-headings); text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease; } /* text links; classed links are components and style themselves */ :where(p, li, td, dd, blockquote, figcaption) > a:not([class]) { border-bottom: 1px solid var(--accent-muted); } :where(p, li, td, dd, blockquote, figcaption) > a:not([class]):hover { color: var(--accent); border-bottom-color: var(--accent); } blockquote { margin: 1.75rem 0; padding-left: 1.2rem; border-left: 3px solid var(--accent-muted); color: var(--text-secondary); font-style: italic; } img { width: 100%; height: auto; border: 1px solid var(--borders); border-radius: 2px; } figcaption { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.6rem; } code { font-family: "Geist Pixel", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 0.9rem; color: var(--text-headings); background: var(--surface); padding: 0.2rem 0.4rem; border-radius: 4px; border: 1px solid var(--borders); } pre { margin: 2rem 0; padding: 1.25rem; background: var(--surface); border: 1px solid var(--borders); border-radius: 6px; overflow-x: auto; tab-size: 4; scrollbar-color: var(--borders) transparent; } pre code { background: none; padding: 0; display: block; font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--syn-fg); font-size: 0.84rem; font-synthesis: none; border: none; box-shadow: none; line-height: 1.5; } /* syntax roles, set by scripts/highlight.mjs */ .hl-comment { color: var(--syn-comment); font-style: italic; } .hl-keyword { color: var(--syn-keyword); } .hl-function, .hl-link { color: var(--syn-function); } .hl-builtin, .hl-escape { color: var(--syn-builtin); } .hl-type, .hl-self, .hl-changed { color: var(--syn-type); } .hl-variable, .hl-heading, .hl-removed { color: var(--syn-variable); } .hl-constant { color: var(--syn-constant); } .hl-string, .hl-added { color: var(--syn-string); } .hl-punct { color: var(--syn-punct); } figure { margin: 1.5rem 0; } ul, ol { margin: 0 0 1.2rem 1.5rem; padding: 0; } li { margin: 0.35rem 0; display: list-item; } hr { border: 0; height: 1px; background: var(--borders); margin-top: 1rem; margin-bottom: 1rem; width: 100%; } /*============================*/ /* base - focus */ /*============================*/ /* Focus visible for keyboard navigation */ a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; } /* Remove default focus for mouse users */ a:focus:not(:focus-visible) { outline: none; } /*============================*/ /* layout - site header */ /*============================*/ .site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 0.5rem 0.5rem 0.75rem; margin-bottom: 2rem; } .site-name { color: var(--text-body); font-size: 30px; } .site-name:hover { color: var(--accent); } @media (max-width: 600px) { .site-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; } .site-name { font-size: 26px; } /* one row */ .site-header nav { width: 100%; justify-content: space-between; } } /*============================*/ /* layout - main, footer, nav */ /*============================*/ main { flex: 1; padding: 0.5rem; } footer { margin-top: 3rem; padding: 0.5rem; } /* quieter than the header nav: grey until hovered */ footer nav { font-size: 0.8rem; letter-spacing: 0.08em; } footer nav a { color: var(--text-secondary); } /* theme.js shows it; without js it would do nothing */ .theme-button { display: none; padding: 0; border: 0; background: none; color: var(--text-secondary); letter-spacing: inherit; cursor: pointer; align-self: flex-start; } [data-theme] .theme-button { display: inline; } footer nav p { color: var(--accent-muted); } /* the footer links point at danieldaum.net, so the selectors match the path, not the full url, as in saturn */ @media (max-width: 600px) { footer nav p, footer nav a[href$="/id/"] { display: none; } } @media (max-width: 480px) { footer nav a[href$="/changelog/"] { display: none; } } nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.88rem; } .site-header nav a { color: var(--text-body); } .site-header nav a[aria-current="page"] { color: var(--accent); } .site-header nav a, footer nav a, .theme-button { border-bottom: 1px solid transparent; transition: color 220ms ease 60ms, border-bottom-color 220ms ease 60ms; } .site-header nav a:hover, footer nav a:hover, .theme-button:hover { color: var(--accent); border-bottom-color: var(--accent); } nav p { margin: 0 0.5rem 0 0; } /*============================*/ /* responsive - small screens (768px, then 480px) */ /*============================*/ @media (max-width: 768px) { body { padding: min(2.5rem, 7vw) min(1.75rem, 4vw); } h1 { font-size: 1.6rem; } } @media (max-width: 480px) { body { padding: min(2rem, 6vw) 1rem; } .site-header, main, footer { padding-inline: 0; } h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; margin-top: 1.75rem; padding-top: 1rem; } h3 { font-size: 1.05rem; margin-top: 1.75rem; } nav { gap: 0.25rem 0.75rem; } pre { padding: 1rem; margin: 1.5rem -0.5rem; border-radius: 4px; } pre code { font-size: 0.8rem; } } /*============================*/ /* components - page header */ /*============================*/ .page-header { margin-bottom: 2.75rem; } .page-header h1 { line-height: 1.4; } .page-header .meta { font-size: 0.88rem; } /* the home hero is the one heading in the accent */ .page-header--home h1 { color: var(--accent); } /* a post or section page: a small kicker above a smaller h1 */ .page-header-kicker { margin: 0 0 0.5rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); } .page-header--post h1 { font-size: 1.6rem; line-height: 1.3; margin-bottom: 0.6rem; } .page-header--post .meta { margin: 0; font-size: 0.8rem; letter-spacing: 0.06em; } /* a section page: the kicker is its parent and links back up, and the meta is a sentence about the page, not a date */ .page-header-kicker a { color: var(--text-secondary); border-bottom: 1px solid var(--accent-muted); transition: color 150ms ease, border-bottom-color 150ms ease; } .page-header-kicker a:hover { color: var(--accent); border-bottom-color: var(--accent); } .page-header--post .meta:not(.caps) { font-size: 0.88rem; letter-spacing: normal; line-height: 1.6; } /*============================*/ /* components - meta line */ /*============================*/ .meta { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.4rem; margin-bottom: 1.25rem; } .meta-split { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; } .meta-sep { opacity: 0.6; } @media (max-width: 600px) { .meta-split { flex-direction: column; gap: 0.15rem; } .meta-sep { display: none; } } /*============================*/ /* components - breadcrumb */ /*============================*/ .breadcrumb { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; display: block; } .breadcrumb a { color: var(--text-secondary); border-bottom: 1px solid var(--accent-muted); } .breadcrumb a:hover { color: var(--accent); } /*============================*/ /* components - section label */ /*============================*/ .section-label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); margin: 2.5rem 0 0.75rem 0; padding: 0; } /*============================*/ /* components - cards */ /*============================*/ .card-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; } .card { box-sizing: border-box; flex: 1 1 calc(50% - 0.4rem); min-width: 11rem; display: flex; flex-direction: column; gap: 0.35rem; padding: 0.875rem 1rem; border-radius: 10px; border: 1px solid var(--borders); background: var(--background-dark); cursor: pointer; transition: border-color 150ms ease; } .card p { margin: 0; padding: 0; } .card:hover { border-color: var(--accent); } .card-title { color: var(--text-headings); font-size: 0.95rem; line-height: 1.2; } .card-desc { color: var(--text-secondary); font-size: 0.78rem; line-height: 1.4; } .card:hover .card-title, .card:hover .card-type { color: var(--accent); } .card-type { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-secondary); } /* muted "view all" variant: a centred bar under the grid */ .card--more { border-style: dashed; opacity: 0.65; justify-content: center; align-items: center; padding-block: 1.1rem; } .card--more:hover { opacity: 1; } .card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; transform: scale(1.03); } /*============================*/ /* components - pills */ /*============================*/ .pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; } .pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.6rem; border: 1px solid var(--borders); border-radius: 999px; font-size: 0.68rem; letter-spacing: 0.08em; line-height: 1.4; color: var(--text-secondary); white-space: nowrap; } /* in development: a slow pulsing dot (reduced motion stops it). switched off for now; uncomment to bring it back */ /* .pill--dev::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; animation: pill-pulse 2.4s ease-in-out infinite; } @keyframes pill-pulse { 50% { opacity: 0.25; } } */ /*============================*/ /* components - table */ /*============================*/ .table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 0.5rem; } /* column headers */ .table thead th { text-align: left; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); padding: 0 1rem 0.6rem 0; border-bottom: 1px solid var(--borders); } .table thead th.table-col-date { width: 7rem; } .table thead th.table-col-tag { width: 5.5rem; } .table thead th.table-col-rating { width: 5rem; } .table thead th.table-col-label { width: 11rem; } .table thead th.table-col-desc { width: 45%; } /* rows */ .table-row td { padding: 0.75rem 1rem 0.75rem 0; vertical-align: baseline; border-bottom: 1px solid var(--borders); } .table-row:first-child td { border-top: 1px solid var(--borders); } .table-row:last-child td { border-bottom: none; } .table-row:hover { background: var(--surface); cursor: pointer; } /* title link */ .table-title { color: var(--text-headings); font-size: 0.9rem; } .table-title:hover { color: var(--accent); } .table-row:hover .table-title { color: var(--accent); } /* date column */ .table-date { color: var(--text-secondary); font-size: 0.82rem; white-space: nowrap; } /* tag column */ .table-tag { color: var(--text-secondary); font-size: 0.82rem; white-space: nowrap; } /* description column */ .table-desc { color: var(--text-secondary); font-size: 0.82rem; } /* mobile: stack title above date + tag */ @media (max-width: 600px) { .table, .table thead, .table tbody { display: block; } .table thead { display: none; } .table-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--borders); } .table-row:first-child { border-top: 1px solid var(--borders); } .table-row:last-child { border-bottom: none; } .table .table-row td, .table .table-row:first-child td, .table .table-row:last-child td { display: block; border-bottom: none; border-top: none; padding: 0; } .table-row td:first-child { flex: 0 0 100%; margin-bottom: 0.25rem; } .table-date, .table-tag, .table-desc { font-size: 0.78rem; } } /*============================*/ /* components - code block */ /*============================*/ /* optional file label over a pre, like bat's header */ .code-block { margin: 2rem 0; } .code-block pre { margin: 0; border-top-left-radius: 0; border-top-right-radius: 0; } .code-label { margin: 0; padding: 0.45rem 1.25rem; border: 1px solid var(--borders); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--background-dark); font-size: 0.78rem; color: var(--text-secondary); } @media (max-width: 480px) { .code-block { margin: 1.5rem -0.5rem; } .code-label { padding-inline: 1rem; border-radius: 4px 4px 0 0; } } /*============================*/ /* projects - version history */ /*============================*/ /* past versions of a project, oldest first: date and commit, title, screenshot, a line or two */ .version-list { list-style: none; margin: 0; padding: 1rem 0 1rem min(2.25rem, 6vw); border-left: 1px solid var(--borders); } .version-list > li { margin: 0; } .version-list > li + li { margin-top: 3rem; } .version-meta { display: flex; gap: 1rem; margin: 0; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-secondary); } .version-hash { color: var(--text-secondary); } .version-hash:hover { color: var(--accent); } .version-list h3 { margin: 0.3rem 0 0.75rem 0; } .version-list figure { margin: 0 0 1rem 0; } /*============================*/ /* projects - commit log */ /*============================*/ /* recent commits, written by hand. stands in for a screenshot: in the project banner and on the /projects/ card */ .commit-log { position: relative; width: 100%; max-width: 40rem; margin: 0 auto; padding: 1rem 1.25rem; border: 1px solid var(--borders); border-radius: 0.5rem; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); } .commit-log-head a { color: var(--text-secondary); } .commit-log-head a:hover { color: var(--accent); } .commit-log-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px dashed var(--borders); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-secondary); } .commit-log-list { list-style: none; margin: 0; padding: 0; } .commit-log-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; margin: 0; padding: 0.3rem 0; font-size: 0.82rem; line-height: 1.5; } .commit-log-hash, .commit-log-date { color: var(--text-secondary); font-variant-numeric: tabular-nums; } .commit-log-msg { color: var(--text-headings); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /*============================*/ /* utilities */ /*============================*/ .text-center { text-align: center; } /* Skip link, hidden until focused */ .skip-link { position: absolute; top: -3rem; left: 0.5rem; z-index: 200; padding: 0.4rem 0.75rem; background: var(--background-dark); border: 1px solid var(--accent); } .skip-link:focus { top: 0.5rem; } /* Caps are visual only; source text stays readable for screen readers */ .caps, h4, .site-name, .site-header nav a, footer nav a, .theme-button, .breadcrumb, .page-header h1, .project-header-title, .project-card h2, .card-type, .project-stat-value, .card-title, .meta-split > span, .table-title, .table-date, .entry-heading h1, .pager-title, .photo-caption-date, .lightbox-details, .tracker-caption-line, .archive-title, .archive-tag, .archive-date, .pill, .commit-log-head, .commit-log-date, .version-date, .social-title, .comment-author, .comment-time, .comment-link { text-transform: uppercase; } /*============================*/ /* preferences - contrast, motion */ /*============================*/ /* High contrast mode support */ @media (prefers-contrast: more) { html, [data-theme] { --text-body: #ffffff; --text-secondary: #cccccc; --text-headings: #ffffff; --accent: #ffff00; --borders: #ffffff; --accent-muted: #444444; --rating-terrible: #ff9494; --rating-below-average: #ffc24d; --rating-good: #ffffff; --rating-above-average: #d4f06a; --rating-great: #8dffab; /* flexoki 200, at least 6.8:1 on every surface */ --syn-fg: #ffffff; --syn-punct: #e6e4d9; --syn-comment: #cccccc; --syn-keyword: #c4b9e0; --syn-function: #92bfdb; --syn-builtin: #87d3c3; --syn-type: #eccb60; --syn-variable: #f89a8a; --syn-constant: #f9ae77; --syn-string: #bec97e; } a { text-decoration: underline; } code { border: 2px solid var(--borders); } } /* Reduced motion preferences */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } } /*============================*/ /* print */ /*============================*/ @media print { html, [data-theme] { --text-body: #100f0f; --text-headings: #100f0f; --text-secondary: #575653; --background-dark: #ffffff; --surface: #f5f5f5; --borders: #cccccc; --accent: #100f0f; --rating-terrible: #af3029; --rating-below-average: #bc5215; --rating-good: #8e6b01; --rating-above-average: #536907; --rating-great: #1c6c66; /* flexoki 600/700, all at least 4.5:1 on #f5f5f5 */ --syn-fg: #100f0f; --syn-punct: #575653; --syn-comment: #6f6e69; --syn-keyword: #5e409d; --syn-function: #205ea6; --syn-builtin: #1c6c66; --syn-type: #8e6b01; --syn-variable: #af3029; --syn-constant: #9d4310; --syn-string: #536907; } pre { white-space: pre-wrap; overflow-wrap: anywhere; break-inside: avoid; } .code-label { break-after: avoid; } body { background: white; color: black; display: block; min-height: auto; max-width: none; padding: 1rem; font-size: 11pt; line-height: 1.4; } header, main, footer { padding: 0.25rem 0; } h1 { font-size: 1.4rem; color: black; page-break-after: avoid; } h2, h3 { color: black; page-break-after: avoid; border: none; } p, li { orphans: 3; widows: 3; } a { color: black; text-decoration: underline; background: none; border: none; } a[href^="mailto:"]:after { content: " (" attr(href) ")"; font-size: 0.75em; } a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 0.75em; } nav { display: none; } blockquote { border-left-color: black; } img { border: 1px solid black; page-break-inside: avoid; } hr { background: black; } .meta { color: #666; } .breadcrumb, .pager { display: none; } } /*============================*/ /* part 2: daum.dev only. saturn's tokens and palettes, with a type and component system for a code browser: Geist Pixel for all text, as on danieldaum.net, and Geist Mono for code and hashes. Sentence case, few capitals. */ /*============================*/ :root { --ui: "Geist Pixel", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; --pixel: "Geist Pixel", ui-monospace, monospace; --radius: 10px; --radius-sm: 6px; --add: var(--syn-string); --del: var(--syn-variable); --sig: color-mix(in oklab, var(--add) 12%, var(--box)); /* verified signatures */ --sig-edge: color-mix(in oklab, var(--add) 55%, var(--rule)); /* layers, darkest first. The page is saturn's own background, so moving between danieldaum.net and here doesn't change it. Each layer above it lifts the lightness by about the steps of the Paint themes for Gitea (box, box header, hover, border) and keeps the palette's hue. web/contrast_test.go checks the text on them. */ --page: var(--background-dark); --box: color-mix(in oklab, var(--background-dark) 98%, white); --box-head: color-mix(in oklab, var(--background-dark) 95%, white); --hover: color-mix(in oklab, var(--background-dark) 92%, white); --rule: color-mix(in oklab, var(--background-dark) 86%, white); --edge: color-mix(in oklab, var(--background-dark) 80%, white); --line: color-mix(in oklab, var(--background-dark) 76%, white); /* text: content near the heading colour, --text-secondary for metadata */ --body-text: color-mix(in oklab, var(--text-body) 45%, var(--text-headings)); --accent-bright: color-mix(in oklab, var(--accent) 82%, white); --accent-edge: color-mix(in oklab, var(--accent) 45%, var(--edge)); /* heatmap and activity steps: the box mixed toward the accent */ --heat-1: color-mix(in oklab, var(--accent) 30%, var(--box)); --heat-2: color-mix(in oklab, var(--accent) 52%, var(--box)); --heat-3: color-mix(in oklab, var(--accent) 76%, var(--box)); /* depth: Paint's soft card shadow and a faint top highlight */ --highlight: inset 0 1px 0 rgb(255 255 255 / 0.03); --depth: var(--highlight), 0 1px 1px rgb(0 0 0 / 0.25); } /* body keeps saturn's size, colour and background, so the header, the footer and the 78ch page width match danieldaum.net exactly. The code browser's own type starts at main. */ main { font-family: var(--ui); font-size: 15px; line-height: 1.55; color: var(--body-text); } p { color: var(--body-text); } /* names and numbers */ time, .count, .f-size, .f-age, .lang-pct, .diffstat, .stat-pill, .diff-summary, .file-stats, .repo-card-meta, .heat-body, .ln { font-variant-numeric: tabular-nums; } /* one focus ring for everything interactive */ a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; } h1, h2, h3, .site-name { font-family: var(--pixel); font-weight: normal; } /* saturn capitalises nav and labels; a code browser reads better without. The chrome and the page headers keep saturn's capitals. */ .pill, .card-title { text-transform: none; } .muted { color: var(--text-secondary); } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .empty, .hint { color: var(--text-secondary); font-size: 0.9rem; } /* icons: Octicons (16px grid, filled paths), coloured by currentColor */ .sprite { position: absolute; width: 0; height: 0; overflow: hidden; } .icon { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -3px; fill: currentColor; border: 0; } /* file icons: material-icon-theme, as on Gitea. They keep their own colours, so they don't follow data-theme. */ .ficon { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -3px; } /* avatars are images; saturn styles every img as a full-width bordered photo */ img.avatar-xs, img.avatar-sm { display: inline-block; flex: none; border: 0; border-radius: 0; } .avatar-xs, .avatar-sm { border-radius: 50% !important; object-fit: cover; } .avatar-xs { width: 20px; height: 20px; } .avatar-sm { width: 24px; height: 24px; } .avatar-none { display: inline-grid; place-items: center; flex: none; color: var(--text-secondary); background: var(--box-head); box-shadow: 0 0 0 1px var(--rule); } .avatar-none .icon { width: 12px; height: 12px; } /* controls */ .button, .chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--box-head); color: var(--text-headings); font-size: 0.85rem; line-height: 1.3; white-space: nowrap; transition: border-color 150ms ease, background 150ms ease, color 150ms ease; } .button:hover, a.chip:hover { border-color: var(--accent-edge); color: var(--accent-bright); } .button--small { padding: 0.2rem 0.6rem; font-size: 0.8rem; } .button--primary { background: var(--accent); border-color: var(--accent); color: var(--background-dark); font-weight: 600; } .button--primary:hover { background: color-mix(in oklab, var(--accent) 85%, white); border-color: color-mix(in oklab, var(--accent) 85%, white); color: var(--background-dark); } .chip--inline { padding: 0.05rem 0.5rem; font-family: var(--mono); font-size: 0.78rem; } .badge { display: inline-flex; align-items: center; padding: 0.05rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.72rem; font-weight: 500; line-height: 1.5; color: var(--text-secondary); white-space: nowrap; } .badge--latest, .badge--open { color: var(--add); border-color: color-mix(in oklab, var(--add) 55%, transparent); } .badge--merged { color: var(--syn-keyword); border-color: color-mix(in oklab, var(--syn-keyword) 55%, transparent); } .badge--closed { color: var(--del); border-color: color-mix(in oklab, var(--del) 55%, transparent); } .badge--pre { color: var(--syn-type); border-color: color-mix(in oklab, var(--syn-type) 55%, transparent); } .sha { padding: 0.05rem 0.4rem; border: 1px solid var(--rule); border-radius: 4px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; } a.sha:hover { color: var(--accent-bright); border-color: var(--accent-edge); } /* signed commits, as on Gitea: a verified hash gets a green edge and a lock with the signer's avatar, a signed but unverified one an open lock */ .sha--verified, .sha--signed { display: inline-flex; align-items: center; } .sha--verified, a.sha--verified:hover { border-color: var(--sig-edge); } .sha-sig { display: inline-flex; align-self: stretch; align-items: center; gap: 0.25rem; margin: -0.05rem -0.4rem -0.05rem 0.4rem; padding: 0 0.3rem; border-left: 1px solid var(--rule); border-radius: 0 3px 3px 0; background: var(--box-head); } .sha--verified .sha-sig { border-left-color: var(--sig-edge); background: var(--sig); color: var(--add); } .sha-sig .icon { width: 12px; height: 12px; vertical-align: 0; } .sha-sig img.avatar-xs { width: 14px; height: 14px; } /* copy fields: a read-only input plus a copy button (copy.js shows it) */ .copyfield { display: flex; min-width: 0; } .copyfield input { flex: 1; min-width: 0; padding: 0.45rem 0.65rem; font-family: var(--mono); font-size: 0.8rem; color: var(--text-headings); background: var(--box); border: 1px solid var(--line); border-radius: var(--radius-sm); } .copyfield input:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -1px; } .copyfield:has(.copy:not([hidden])) input { border-top-right-radius: 0; border-bottom-right-radius: 0; } .copy { display: inline-grid; place-items: center; width: 2.2rem; padding: 0; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--box-head); color: var(--text-secondary); cursor: pointer; } .copy:hover { color: var(--accent-bright); } .copy .icon-check, .copy.copied .icon-copy, .button--copy .icon-check, .button--copy.copied .icon-copy { display: none; } .copy.copied .icon-check, .button--copy.copied .icon-check { display: inline-block; color: var(--add); } /* Raw and copy on file pages, joined like one split button. Without JS the copy button stays hidden and Raw keeps its own corners. */ .button-group { display: inline-flex; } .button-group > .button:has(+ .button:not([hidden])) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .button-group > .button + .button { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; } .button-group > .button:hover, .button-group > .button:focus-visible { position: relative; /* the hovered edge draws over its neighbour's */ } .button--copy { cursor: pointer; } /* their display rules would otherwise beat [hidden]: copy.js reveals them */ .copy[hidden], .button--copy[hidden] { display: none; } /* boxes: the one container for listings, files, readmes and diffs */ .box { margin-bottom: 1.25rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--box); box-shadow: var(--depth); overflow: hidden; } .box-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin: 0; padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); background: var(--box-head); box-shadow: var(--highlight); font-family: var(--ui); font-size: 0.875rem; font-weight: 600; color: var(--text-headings); } .box-head .icon { color: var(--text-secondary); } .box-note { margin: 0; padding: 1.25rem 1rem; color: var(--text-secondary); font-size: 0.9rem; } /* links inside listings are components, not underlined prose links */ .box :where(td, li, span, div) > a:not([class]) { border-bottom: 0; } /* rows: commits, pulls, packages, refs */ .rows { margin: 0; padding: 0; list-style: none; } .rows > li { margin: 0; } .rows > li + li { border-top: 1px solid var(--rule); } .row { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; transition: background 120ms ease; } .row:hover, .files tr:hover td { background: var(--hover); } .row-main { display: grid; flex: 1; min-width: 0; gap: 0.15rem; } .row-title { overflow: hidden; color: var(--text-headings); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; } a.row-title:hover, .row-title a:hover { color: var(--accent-bright); } .row-title a { color: var(--text-headings); } .row-title .badge { margin-left: 0.5rem; } .row-sub { overflow: hidden; color: var(--text-secondary); font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; } .row-sub a { color: var(--text-secondary); } .row time { color: var(--text-secondary); font-size: 0.8rem; white-space: nowrap; } .pkg-icon, .pr-icon { display: inline-grid; place-items: center; flex: none; color: var(--text-secondary); } .pr--open { color: var(--add); } .pr--merged { color: var(--syn-keyword); } .pr--closed { color: var(--del); } .package .copyfield { margin-top: 0.5rem; max-width: 36rem; } /* container images: one box per image, one
per digest */ .image-ref { font-family: var(--mono); font-size: 0.82rem; overflow-wrap: anywhere; } .image-count { margin-left: auto; color: var(--text-secondary); font-weight: 400; font-size: 0.8rem; } .image-pull { padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); } .image-pull .copyfield, .image-body .copyfield { max-width: 44rem; } .image-version summary { list-style: none; cursor: pointer; } .image-version summary::-webkit-details-marker { display: none; } .image-version summary .icon-chevron { color: var(--text-secondary); transition: transform 150ms ease; } .image-version[open] summary .icon-chevron { transform: rotate(180deg); } .image-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; white-space: normal; } .image-body { display: grid; gap: 0.9rem; padding: 0.25rem 1rem 1rem 3.1rem; } .digest { padding: 0; border: 0; background: none; color: var(--text-headings); font-family: var(--mono); font-size: 0.78rem; overflow-wrap: anywhere; } .meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 0; font-size: 0.85rem; } .meta-list dt { color: var(--text-secondary); } .meta-list dd { margin: 0; min-width: 0; color: var(--body-text); overflow-wrap: anywhere; } .meta-list a { color: var(--text-headings); border-bottom: 1px solid var(--accent-edge); } .meta-list a:hover { color: var(--accent-bright); } .platforms { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; } .platforms li { display: grid; grid-template-columns: 9rem 1fr auto; gap: 0.25rem 1rem; align-items: baseline; margin: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--box-head); font-size: 0.85rem; } .plat-name { color: var(--text-headings); font-family: var(--mono); font-size: 0.8rem; font-weight: 500; } .plat-os { color: var(--body-text); } .plat-size { color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; } .platforms .digest { grid-column: 1 / -1; color: var(--text-secondary); } @media (max-width: 600px) { .image-body { padding-left: 1rem; } .meta-list { grid-template-columns: 1fr; gap: 0.1rem; } .meta-list dd + dt { margin-top: 0.5rem; } .platforms li { grid-template-columns: 1fr auto; } .plat-os { grid-column: 1 / -1; grid-row: 2; } } /* heatmap: fits its box at any width; colours follow the palette */ .heat-body { padding: 1rem 1rem 0.75rem; } .heatmap { display: block; width: 100%; height: auto; border: 0; } .heatmap text { fill: var(--text-secondary); font-family: var(--ui); font-size: 9px; } .heatmap .h0, .heat-legend .h0 { fill: var(--hover); background: var(--hover); } .heatmap .h1, .heat-legend .h1 { fill: var(--heat-1); background: var(--heat-1); } .heatmap .h2, .heat-legend .h2 { fill: var(--heat-2); background: var(--heat-2); } .heatmap .h3, .heat-legend .h3 { fill: var(--heat-3); background: var(--heat-3); } .heatmap .h4, .heat-legend .h4 { fill: var(--accent); background: var(--accent); } .heat-legend { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin: 0.5rem 0 0; color: var(--text-secondary); font-size: 0.75rem; } .heat-legend i { width: 10px; height: 10px; border-radius: 2px; } /* activity: stats in the box head, weekly bars over the heatmap */ .activity-stats { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-left: auto; color: var(--text-secondary); font-size: 0.8rem; font-weight: 400; } .activity-stats b { color: var(--text-headings); font-weight: 600; font-variant-numeric: tabular-nums; } .streak { display: inline-flex; align-items: center; gap: 0.3rem; } .streak .icon { color: var(--syn-constant); } /* activity bars: the heatmap's columns and width, so each bar sits over its week; colours come from tokens only */ .bars { display: block; width: 100%; height: auto; margin-bottom: 0.75rem; border: 0; } .bars text { fill: var(--text-secondary); font-family: var(--ui); font-size: 9px; font-variant-numeric: tabular-nums; pointer-events: none; } .bars line, .bars-streak { fill: none; stroke-width: 1; pointer-events: none; } .bars-grid { stroke: color-mix(in oklab, var(--rule) 55%, var(--box)); } .bars-base { stroke: var(--edge); } .bars-month { stroke: var(--rule); stroke-dasharray: 1 3; } .bars-grid, .bars-base, .bars-month { shape-rendering: crispEdges; } .bars-hit { fill: transparent; transition: fill 120ms; } .bars-hit:hover { fill: color-mix(in oklab, var(--text-headings) 5%, transparent); } .bars-bar { fill: var(--bar); pointer-events: none; transition: fill 120ms; } .bars .h1 { --bar: var(--heat-1); } .bars .h2 { --bar: var(--heat-2); } .bars .h3 { --bar: var(--heat-3); } .bars .h4 { --bar: var(--accent); } .bars-stub { --bar: var(--hover); } .bars-hit:hover + .bars-bar { fill: color-mix(in oklab, var(--bar) 72%, white); } /* headings colour, not the accent: the top step is filled with the accent */ .bars-now { stroke: var(--text-headings); stroke-width: 1; } .bars-streak { stroke: var(--syn-constant); } @media (prefers-reduced-motion: reduce) { .bars-hit, .bars-bar { transition: none; } } /* small screens: the last 26 weeks of both, rendered separately */ .heat-half { display: none; } @media (max-width: 600px) { .heat-year { display: none; } .heat-half { display: block; } } /* sparklines: the accent line over a faint area */ .spark { display: block; flex: none; width: 96px; height: 24px; border: 0; overflow: visible; } .spark-line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; } .spark-area { fill: color-mix(in oklab, var(--accent) 16%, transparent); } .spark--flat .spark-line { stroke: var(--edge); } .spark--flat .spark-area { fill: none; } /* featured repos: a head row with a link to the repos page */ .section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; } .section-link { color: var(--text-secondary); font-size: 0.82rem; transition: color 150ms ease; } .section-link:hover { color: var(--accent-bright); } /* recently active: a small accent pill on the card, and an accent edge */ .repo-card--active { border-color: var(--accent-edge); } .pill-active { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: color-mix(in oklab, var(--accent) 16%, var(--box)); color: var(--accent-bright); font-size: 0.7rem; font-weight: 500; line-height: 1.5; white-space: nowrap; } .repo-card-title { min-width: 0; max-width: calc(100% - 1.5rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* activity feed: a compact text timeline, styled after saturn's comment threads (meta line, body, small links, a rule for nested lines) */ .feed { margin-top: 2rem; padding-top: 0.25rem; border-top: 1px dashed var(--rule); } .timeline { margin: 0.25rem 0 0; padding: 0; list-style: none; } .tl-item { position: relative; display: grid; grid-template-columns: 3rem 1.25rem minmax(0, 1fr); grid-template-areas: "time who main"; gap: 0 0.7rem; margin: 0; padding: 0.2rem 0; } .tl-time { grid-area: time; padding-top: 0.1rem; color: var(--text-secondary); font-family: var(--mono); font-size: 0.72rem; white-space: nowrap; } .tl-who { grid-area: who; position: relative; width: 1.25rem; height: 1.25rem; } .tl-who .avatar-sm { width: 1.25rem; height: 1.25rem; } .tl-who .avatar-none .icon { width: 10px; height: 10px; } .tl-badge { position: absolute; right: -0.3rem; bottom: -0.25rem; display: grid; place-items: center; width: 0.85rem; height: 0.85rem; border: 1px solid var(--rule); border-radius: 50%; background: var(--page); color: var(--text-secondary); } .tl-badge .icon { width: 9px; height: 9px; } .tl--merged .tl-badge { color: var(--syn-keyword); } .tl--opened .tl-badge, .tl--issue .tl-badge { color: var(--add); } .tl--release .tl-badge { color: var(--syn-type); } .tl--created .tl-badge { color: var(--syn-function); } .tl-main { grid-area: main; min-width: 0; } .tl-text { margin: 0; color: var(--body-text); font-size: 0.85rem; line-height: 1.4; } .tl-actor { color: var(--text-headings); font-weight: 600; } .tl-text a { color: var(--text-headings); font-weight: 600; transition: color 150ms ease; } .tl-text a.tl-title { font-weight: 400; border-bottom: 1px solid var(--rule); } .tl-text a:hover { color: var(--accent-bright); } .tl-ref, .tl-text a.tl-ref { padding: 0; border: 0; background: none; color: var(--text-secondary); font-family: var(--mono); font-size: 0.85em; font-weight: 400; } /* commit lines sit on a rule, like saturn's comment replies */ .tl-commits { display: grid; margin: 0.1rem 0 0; padding: 0 0 0 0.75rem; border-left: 1px solid var(--rule); list-style: none; } .tl-commits li { display: flex; align-items: baseline; gap: 0.7rem; min-width: 0; margin: 0; font-size: 0.78rem; line-height: 1.45; } .tl-sha { flex: none; color: var(--syn-function); font-family: var(--mono); font-size: 0.72rem; } a.tl-sha:hover { color: var(--accent-bright); } .tl-sig { display: inline-flex; flex: none; align-self: center; margin-left: -0.45rem; color: var(--add); } .tl-sig .icon { width: 12px; height: 12px; } .tl-subject { overflow: hidden; color: var(--text-secondary); text-overflow: ellipsis; white-space: nowrap; } .tl-commits .tl-foot { gap: 0.6rem; font-size: 0.72rem; } /* like saturn's .comment-author tag */ .tl-chip { padding: 0 0.4rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--text-secondary); font-family: var(--mono); font-size: 0.68rem; } /* like saturn's .comment-link */ .tl-link { color: var(--syn-function); transition: color 150ms ease; } .tl-link:hover { color: var(--accent-bright); } @media (max-width: 600px) { .tl-item { grid-template-columns: 1.25rem minmax(0, 1fr); grid-template-areas: "who time" "who main"; gap: 0 0.6rem; } .tl-time { padding: 0; font-size: 0.68rem; } .activity-stats { margin-left: 0; flex-basis: 100%; } } /* repository cards */ .section-title { margin: 2rem 0 0.75rem; font-size: 1.1rem; } .repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.75rem; } .repo-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--box); box-shadow: var(--depth); transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease; } .repo-card:hover { border-color: var(--accent-edge); background: color-mix(in oklab, var(--box) 55%, var(--hover)); box-shadow: var(--depth), inset 0 0 0 1px color-mix(in oklab, var(--accent) 18%, transparent); transform: translateY(-1px); } /* the name keeps its width; the pills wrap under it when the card is narrow */ .repo-card-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; color: var(--text-headings); font-weight: 600; } .repo-card-name .icon { color: var(--text-secondary); } .repo-card:hover .repo-card-name { color: var(--accent-bright); } .repo-card-desc { flex: 1; color: var(--body-text); font-size: 0.875rem; } .repo-card-desc--none { color: var(--text-secondary); } .repo-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-top: 0.25rem; } .badge--release { margin-left: auto; color: var(--accent-bright); border-color: var(--accent-edge); font-family: var(--mono); font-weight: 500; } .repo-card-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.25rem; color: var(--text-secondary); font-size: 0.8rem; } /* language colours use the syntax roles so they follow the palette */ .dot { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.4rem; border-radius: 50%; background: var(--text-secondary); } .lang-0 { background: var(--syn-keyword); fill: var(--syn-keyword); } .lang-1 { background: var(--syn-function); fill: var(--syn-function); } .lang-2 { background: var(--syn-builtin); fill: var(--syn-builtin); } .lang-3 { background: var(--syn-type); fill: var(--syn-type); } .lang-4 { background: var(--syn-variable); fill: var(--syn-variable); } .lang-5 { background: var(--syn-constant); fill: var(--syn-constant); } .lang-6 { background: var(--syn-string); fill: var(--syn-string); } .lang-7 { background: var(--accent); fill: var(--accent); } .lang-other { background: var(--text-secondary); fill: var(--text-secondary); } /* repo header */ .repo-head { margin-bottom: 1.25rem; } /* the h1 is saturn's post header; this only lines up the archived pill */ .repo-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; } .repo-title .pill { font-family: var(--ui); font-size: 0.72rem; } .topics { margin-top: 0.75rem; } .topics .pill { padding: 0.15rem 0.65rem; border-color: transparent; background: color-mix(in oklab, var(--accent) 14%, var(--box)); color: var(--accent-bright); font-size: 0.75rem; letter-spacing: 0; } .repo-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0.85rem 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--text-secondary); } .repo-meta li { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; } .repo-meta a { border: 0; color: var(--text-headings); } .repo-meta a:hover { color: var(--accent-bright); } /* repo tabs: plain words like the site nav, the open one in the accent and underlined. The underline is as wide as the word. */ .tabs { display: flex; flex-wrap: nowrap; /* saturn's nav wraps; tabs scroll instead */ gap: 1.5rem; margin: 0 0 1.25rem; overflow-x: auto; border-bottom: 1px solid var(--rule); font-size: 0.875rem; scrollbar-width: none; } .tabs a { flex: none; /* Safari shrinks scrolling flex items until they overlap */ display: inline-flex; align-items: baseline; gap: 0.3rem; margin-bottom: -1px; padding: 0.6rem 0; border-bottom: 2px solid transparent; color: var(--text-secondary); white-space: nowrap; transition: color 150ms ease, border-color 150ms ease; } .tabs a:hover { color: var(--text-headings); } .tabs a[aria-current="page"] { color: var(--accent-bright); border-bottom-color: var(--accent-bright); } .count { color: var(--text-secondary); font-size: 0.75rem; } /* code box */ .box-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); font-size: 0.875rem; } .box-bar .chip { font-family: var(--mono); font-size: 0.8rem; } /* clone menu: a
, so it opens without js */ .clone { position: relative; margin-left: auto; } .clone summary { list-style: none; cursor: pointer; } .clone summary::-webkit-details-marker { display: none; } .clone summary .icon-chevron { transition: transform 150ms ease; } .clone[open] summary .icon-chevron { transform: rotate(180deg); } .clone-pop { position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 10; display: grid; gap: 0.4rem; width: min(28rem, 86vw); padding: 0.9rem 1rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--box-head); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); } .clone-label { margin: 0.25rem 0 0; color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; } /* latest commit row */ .box-commit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.65rem 1rem; border-bottom: 1px solid var(--rule); background: var(--box-head); font-size: 0.875rem; } .commit-author { color: var(--text-headings); font-weight: 600; } .commit-msg { flex: 1 1 10rem; min-width: 0; overflow: hidden; color: var(--text-headings); font-weight: 500; white-space: nowrap; mask-image: linear-gradient(to right, black calc(100% - 3rem), transparent); } .commit-msg:hover { color: var(--accent-bright); } .box-commit time { color: var(--text-secondary); white-space: nowrap; } .ci { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--text-secondary); font-size: 0.8rem; } a.ci:hover { color: var(--text-headings); } .ci--success .icon { color: var(--add); } .ci--failure .icon, .ci--error .icon { color: var(--del); } .ci--pending .icon, .ci--warning .icon { color: var(--syn-type); } /* file listing */ .files { width: 100%; border-collapse: collapse; font-size: 0.875rem; } .files tr + tr td { border-top: 1px solid var(--rule); } .files td { padding: 0.5rem 1rem; vertical-align: middle; transition: background 120ms ease; } .f-name { width: 1%; white-space: nowrap; } .f-name .ficon { margin-right: 0.6rem; } .f-name a, .f-name span { color: var(--text-headings); font-weight: 500; } .f-name a:hover { color: var(--accent-bright); } /* commit messages fade out instead of ending in an ellipsis. The mask sits on the text, not the cell, so the row's top border stays unbroken. */ .f-msg { max-width: 0; } .f-msg a, .f-msg span { display: block; overflow: hidden; color: var(--body-text); white-space: nowrap; mask-image: linear-gradient(to right, black calc(100% - 4rem), transparent); } .f-msg a:hover { color: var(--accent-bright); } .f-size, .f-age { width: 1%; color: var(--text-secondary); font-size: 0.8rem; text-align: right; white-space: nowrap; } .f-size { font-family: var(--mono); font-size: 0.75rem; } /* freshness: the newer the change, the warmer the age */ .fresh-1 { color: var(--syn-constant) !important; } .fresh-2 { color: color-mix(in oklab, var(--syn-constant) 70%, var(--text-secondary)) !important; } .fresh-3 { color: color-mix(in oklab, var(--syn-constant) 35%, var(--text-secondary)) !important; } @media (max-width: 720px) { .f-msg, .f-size { display: none; } .f-name { width: auto; } .commit-msg { order: 9; flex-basis: 100%; } } /* languages: a compact legend under the tabs, and a thin strip along the top edge of the code box (the box's overflow clips it to the corners) */ .langbar { display: block; width: 100%; height: 4px; border: 0; border-radius: 0; } .lang-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: -0.5rem 0 0.75rem; padding: 0; list-style: none; font-size: 0.8rem; color: var(--text-headings); } .lang-legend li { display: inline-flex; align-items: center; margin: 0; line-height: 1.4; } .lang-legend .dot { width: 0.5rem; height: 0.5rem; } .lang-pct { margin-left: 0.35rem; color: var(--text-secondary); } /* phones: the three languages and "other" stay on one line */ @media (max-width: 600px) { .lang-legend { gap: 0.25rem 0.75rem; font-size: 0.75rem; } } /* breadcrumbs */ .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0 0 0.85rem; font-size: 0.95rem; } .crumbs a { color: var(--accent-bright); } .crumbs a:hover { text-decoration: underline; } .crumbs .ficon { margin-right: 0.4rem; } .crumbs [aria-current] { color: var(--text-headings); font-weight: 600; } .crumb-sep { color: var(--text-secondary); } /* README box tabs: radio inputs, so they switch without js. Without :has only the first document shows, as a plain README box would. */ .doc-tabs { flex-wrap: nowrap; gap: 0; padding-block: 0; padding-inline: 0.4rem; overflow-x: auto; scrollbar-width: none; } /* phones: tab rows scroll sideways, with a fade on the right as a hint and room to scroll the last tab clear of it */ @media (max-width: 600px) { .tabs, .doc-tabs { padding-right: 2rem; mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); } .tabs { gap: 1.25rem; } } .doc-tabs label { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.55rem; color: var(--text-secondary); font-weight: 500; white-space: nowrap; cursor: pointer; transition: color 150ms ease, box-shadow 150ms ease; } .doc-tabs label:hover { color: var(--text-headings); box-shadow: inset 0 -2px var(--rule); } /* the icon lights up on hover, so icon-only tabs read as clickable */ .doc-tabs label .icon { transition: color 150ms ease; } .doc-tabs label:hover .icon { color: var(--accent-bright); } .doc-tabs input:checked + label { color: var(--text-headings); box-shadow: inset 0 -2px var(--accent-bright); } .doc-tabs input:checked + label .icon { color: var(--accent-bright); } /* five or more documents can't all fit with labels, so only the open one shows its label; the rest are icons, named by title and for screen readers */ .doc-tabs--compact input:not(:checked) + label .doc-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .doc-tabs input:focus-visible + label { outline: 2px solid var(--accent-bright); outline-offset: -4px; border-radius: var(--radius-sm); } .docs .doc + .doc { display: none; } @supports selector(:has(a)) { .docs:has(.doc-tabs) .doc { display: none; } .docs:has(.d0:checked) .p0, .docs:has(.d1:checked) .p1, .docs:has(.d2:checked) .p2, .docs:has(.d3:checked) .p3, .docs:has(.d4:checked) .p4, .docs:has(.d5:checked) .p5, .docs:has(.d6:checked) .p6, .docs:has(.d7:checked) .p7, .docs:has(.d8:checked) .p8, .docs:has(.d9:checked) .p9, .docs:has(.d10:checked) .p10, .docs:has(.d11:checked) .p11, .docs:has(.d12:checked) .p12 { display: block; } } /* plain-text documents (LICENSE) wrap like prose */ .doc > pre:only-child { margin: 0; padding: 0; border: 0; background: none; white-space: pre-wrap; font-family: var(--mono); font-size: 0.82rem; color: var(--body-text); } /* readme and other rendered markdown */ .readme { padding: 1.5rem 2rem 1.75rem; } .markdown > :first-child { margin-top: 0; } .markdown > :last-child { margin-bottom: 0; } .markdown :where(p, li, td) > a:not([class]) { border-bottom: 1px solid var(--accent-edge); } :where(p, li, td, dd, blockquote, figcaption) > a:not([class]):hover { color: var(--accent-bright); border-bottom-color: var(--accent-bright); } .markdown h1 { font-size: 1.6rem; margin: 1.5rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); } .markdown h2 { font-size: 1.25rem; margin: 1.75rem 0 0.6rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--rule); } .markdown h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; } .markdown img { display: inline-block; width: auto; max-width: 100%; border: 0; } code { background: color-mix(in oklab, var(--text-headings) 9%, transparent); border-color: transparent; } hr { background: var(--rule); } .markdown pre { margin: 1rem 0; border-color: var(--rule); background: var(--box-head); } .markdown table { margin: 0 0 1.2rem; border-collapse: collapse; font-size: 0.875rem; } .markdown th, .markdown td { padding: 0.4rem 0.75rem; border: 1px solid var(--rule); } .markdown th { background: var(--box-head); } .markdown input[type="checkbox"] { margin-right: 0.4rem; accent-color: var(--accent); } @media (max-width: 600px) { .readme { padding: 1rem; } } .box-empty { display: grid; gap: 0.75rem; padding: 1.5rem; } .box-empty p { margin: 0; } /* file and diff views */ .file-head { font-weight: normal; } .file-name { color: var(--text-headings); font-family: var(--mono); font-size: 0.82rem; font-weight: 500; overflow-wrap: anywhere; } .file-stats { margin-right: auto; color: var(--text-secondary); font-size: 0.8rem; } pre.code { margin: 0; padding: 0.75rem 0; border: 0; border-radius: 0; background: var(--box); } .line { display: block; min-height: 1.5em; padding-right: 1.25rem; } .ln { display: inline-block; width: 5ch; margin-right: 1.25rem; color: var(--text-secondary); text-align: right; opacity: 0.55; user-select: none; } a.ln:hover { color: var(--accent-bright); opacity: 1; } .line:target { background: color-mix(in oklab, var(--accent) 12%, transparent); box-shadow: inset 3px 0 var(--accent); } .file-image { padding: 1.5rem; text-align: center; background: var(--box); } .file-image img { display: inline-block; width: auto; max-width: 100%; border: 0; } /* commit page */ .commit-head { padding: 1rem 1rem 0.25rem; } .commit-title { margin: 0; font-size: 1.2rem; color: var(--text-headings); } .commit-body { margin: 0.75rem 0 0; color: var(--body-text); font-size: 0.9rem; white-space: pre-wrap; } .commit-meta { margin-top: 0.75rem; border-top: 1px solid var(--rule); border-bottom: 0; } .commit-ids { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-left: auto; font-size: 0.8rem; } .checks { margin: 0; padding: 0.25rem 0; border-top: 1px solid var(--rule); list-style: none; font-size: 0.85rem; } .checks li { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.4rem 1rem; } /* commit page: the signature bar, like Gitea's */ .sig-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin: 0; padding: 0.5rem 1rem; border-top: 1px solid var(--rule); font-size: 0.85rem; } .sig-line b { color: var(--text-headings); font-weight: 600; } .sig-line code { padding: 0 0.25rem; font-family: var(--mono); font-size: 0.78rem; overflow-wrap: anywhere; } .sig-line--verified { border-top-color: var(--sig-edge); background: var(--sig); } .sig-line--verified .icon, .sig-line--verified b { color: var(--add); } .checks li.ci--success .icon { color: var(--add); } .checks li.ci--failure .icon, .checks li.ci--error .icon { color: var(--del); } .checks li.ci--pending .icon { color: var(--syn-type); } .checks b { color: var(--text-headings); font-weight: 500; } .diff-summary { margin: 0 0 0.75rem; color: var(--text-secondary); font-size: 0.875rem; } .diff-summary b { color: var(--text-headings); font-weight: 600; } .add { color: var(--add); } .del { color: var(--del); } .diffstat { margin-left: auto; font-family: var(--mono); font-size: 0.78rem; } .diff .ln { width: 4ch; margin-right: 0.75rem; } .diff .sign { display: inline-block; width: 1.5ch; user-select: none; } .diff .line.hl-added { background: color-mix(in oklab, var(--add) 12%, transparent); } .diff .line.hl-removed { background: color-mix(in oklab, var(--del) 12%, transparent); } .diff .hunk { padding: 0.3rem 1.25rem; color: var(--text-secondary); background: color-mix(in oklab, var(--syn-function) 8%, transparent); } /* releases */ .release-head { font-weight: normal; } .release-tag { color: var(--text-headings); font-family: var(--mono); font-size: 0.85rem; font-weight: 600; } .release-date { margin-left: auto; color: var(--text-secondary); font-size: 0.8rem; } .release-body { padding: 1rem 1.25rem 1.25rem; } .release-title { margin: 0 0 0.75rem; font-size: 1.25rem; color: var(--text-headings); } .assets { margin: 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; font-size: 0.85rem; } .assets li { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.5rem 1.25rem; color: var(--text-secondary); } .assets li + li { border-top: 1px solid var(--rule); } .assets a { flex: 1; color: var(--text-headings); font-family: var(--mono); font-size: 0.8rem; } .assets a:hover { color: var(--accent-bright); } /* pulls: each row opens its body, no js */ .pull summary { list-style: none; cursor: pointer; } .pull summary::-webkit-details-marker { display: none; } .pull-body { padding: 0.25rem 1rem 1rem 3.1rem; font-size: 0.9rem; } /* comments under an issue or pull: a thin rail on the left, like a reply */ .thread { margin: 0 1rem 1rem 3.1rem; padding: 0; list-style: none; } .thread-more { margin: 0 1rem 0.5rem 3.1rem; font-size: 0.8rem; } .comment { padding: 0.5rem 0 0.5rem 1rem; border-left: 2px solid var(--rule); font-size: 0.9rem; } .comment + .comment { margin-top: 0.5rem; } .comment-head { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.35rem; color: var(--text-secondary); font-size: 0.8rem; } .comment-head b { color: var(--text-headings); font-weight: 600; } .box-foot { margin: 0; padding: 0.6rem 1rem; border-top: 1px solid var(--rule); font-size: 0.8rem; } @media (max-width: 600px) { .pull-body, .thread { margin-left: 1rem; padding-left: 0; } } /* 404 */ .notfound { padding: 4rem 0; text-align: center; } .notfound h1 { color: var(--accent-bright); font-size: 5rem; line-height: 1; margin: 0 0 1rem; } .notfound p { color: var(--text-secondary); } .nf-repos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.5rem auto; padding: 0; max-width: 36rem; list-style: none; } .nf-repos li { margin: 0; } .nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; } /*============================*/ /* polish pass 3, phase 5: freshness, header pills, log days, empty states */ /*============================*/ /* live: a still green dot for a commit in the last 24 hours */ .live { display: inline-block; flex: none; width: 7px; height: 7px; margin: 0 0.15rem 0 0.4rem; border-radius: 50%; background: var(--add); vertical-align: middle; } .badge--new { margin-left: 0.5rem; color: var(--accent-bright); border-color: var(--accent-edge); background: color-mix(in oklab, var(--accent) 12%, transparent); } /* repo header: stats as compact pills */ .repo-stats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.85rem 0 0; padding: 0; list-style: none; } .repo-stats li { margin: 0; } .stat-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--box); color: var(--text-secondary); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color 150ms ease, color 150ms ease, background 150ms ease; } .stat-pill .icon { width: 14px; height: 14px; } .stat-pill b { color: var(--text-headings); font-weight: 600; } a.stat-pill:hover { border-color: var(--accent-edge); background: var(--hover); color: var(--text-headings); } .stat-pill--release { border-color: var(--accent-edge); background: color-mix(in oklab, var(--accent) 14%, var(--box)); color: var(--accent-bright); font-family: var(--mono); font-weight: 500; } a.stat-pill--release:hover { color: var(--accent-bright); background: color-mix(in oklab, var(--accent) 22%, var(--box)); } .stat-pill.ci--success { border-color: color-mix(in oklab, var(--add) 45%, var(--rule)); } .stat-pill.ci--failure, .stat-pill.ci--error { border-color: color-mix(in oklab, var(--del) 45%, var(--rule)); } /* commit log: one box per day under a sticky day header */ .log-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.25rem; color: var(--text-secondary); font-size: 0.875rem; } .log-group > .box { margin: 0 0 1rem; padding: 0; list-style: none; } .log-day { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.6rem 0 0.5rem; background: var(--page); color: var(--text-secondary); font-family: var(--ui); font-size: 0.85rem; font-weight: 600; } .commit-item .diffstat { margin-left: 0; white-space: nowrap; } /* phones: stats, checks and hash drop to a second line under the subject */ @media (max-width: 600px) { .commit-item { flex-wrap: wrap; row-gap: 0.35rem; } .commit-item .row-main { flex-basis: calc(100% - 2rem); } .commit-item .row-main + * { margin-left: 2rem; } } /* empty states: an icon, one line, a muted hint */ .empty-state { display: grid; justify-items: center; gap: 0.4rem; padding: 2.5rem 1.5rem; text-align: center; } .empty-state .copyfield { width: min(100%, 30rem); margin-top: 0.5rem; } .empty-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 0.25rem; border: 1px solid var(--rule); border-radius: 50%; background: var(--box-head); color: var(--text-secondary); } .empty-icon .icon { width: 20px; height: 20px; } .empty-title { margin: 0; color: var(--text-headings); font-weight: 600; } .empty-hint { max-width: 30rem; margin: 0; color: var(--text-secondary); font-size: 0.875rem; } .empty-inline { display: flex; align-items: center; gap: 0.5rem; } /* hover: rows that weren't covered yet */ .assets li, .platforms li, .tl-item { transition: background 120ms ease; } .assets li:hover { background: var(--hover); } /* focus rings inside boxes sit inside the edge, so the box can't clip them */ .box :focus-visible { outline-offset: -2px; } /* the code box lets the clone menu overflow; its first child and the last file row take the rounded corners instead */ .box--code { overflow: visible; } .box--code > :first-child { border-top-left-radius: calc(var(--radius) - 1px); border-top-right-radius: calc(var(--radius) - 1px); } .box--code .files { border-collapse: separate; border-spacing: 0; } .box--code .files tr:last-child td:first-child { border-bottom-left-radius: calc(var(--radius) - 1px); } .box--code .files tr:last-child td:last-child { border-bottom-right-radius: calc(var(--radius) - 1px); } /* footer: theme.js unhides the button. The theme is shared with danieldaum.net. */ .theme-button[hidden] { display: none; }