Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Code

527 commit(s) on main

Put job execution behind an interface Keenan Nemetz · 2h ago de3eec16
history blame raw 23.1 KiB
1/* Vole documentation theme.
2
3 The tokens are the forge's Everforest dark/medium palette from
4 server/web/static/everforest.css and the layout tokens from
5 server/web/static/vole.css. The site is deliberately dark only: it uses
6 Vole's dark/medium variant directly, rather than carrying a light half that
7 only the docs use.
8
9 Sections, in file order: tokens and fonts, base type, top bar, page layout,
10 sidebar, content, tables and code, page footer, search palette, responsive. */
11
12/* ---------- tokens and fonts ---------- */
13
14:root {
15 color-scheme: dark;
16
17 /* surfaces */
18 --bg: #2d353b;
19 --bg-panel: #343f44;
20 --bg-raised: #3d484d;
21 --bg-hover: #475258;
22 --bg-active: #4f585e;
23 --border: #4f585e;
24 --border-strong: #56635f;
25
26 /* text */
27 --fg: #d3c6aa;
28 --fg-muted: #9da9a0;
29 --fg-faint: #859289;
30
31 /* accent and status */
32 --accent: #a7c080;
33 --accent-fg: #2d353b;
34 --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
35 --running: #7fbbb3;
36 --good: #a7c080;
37 --bad: #e67e80;
38 --warn: #dbbc7f;
39 --merged: #d699b6;
40
41 /* shape, type, and measure */
42 --radius: 6px;
43 --radius-lg: 8px;
44 --page-gutter: 24px;
45 --topbar-h: 46px;
46 --sidebar-w: 16rem;
47 --toc-w: 14rem;
48 /* The article is the flexible column: it takes the space the side columns
49 leave, up to this cap. */
50 --content-max: 56rem;
51 --layout-gap: 32px;
52 /* The docs grid, not the whole page, is the measure the header and footer
53 follow. Keeping the columns plus their gutters in one token is what makes
54 the brand line up with the sidebar at every width. */
55 --layout-max: calc(
56 var(--sidebar-w) + var(--content-max) + var(--toc-w) +
57 2 * var(--layout-gap) + 2 * var(--page-gutter)
58 );
59 --font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", Arial, sans-serif;
60 --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
61 --fs: 15.4px;
62 --lh: 1.62;
63
64 /* The head mark is drawn in the text colour, as on the forge's dark theme. */
65 --mark-fill: currentColor;
66 --mark-outline: transparent;
67}
68
69@font-face {
70 font-family: "Lexend";
71 font-style: normal;
72 font-weight: 100 900;
73 font-display: swap;
74 src: url("fonts/lexend-latin-ext.woff2") format("woff2");
75 unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
76}
77@font-face {
78 font-family: "Lexend";
79 font-style: normal;
80 font-weight: 100 900;
81 font-display: swap;
82 src: url("fonts/lexend-latin.woff2") format("woff2");
83 unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
84}
85@font-face {
86 font-family: "JetBrains Mono";
87 font-style: normal;
88 font-weight: 100 800;
89 font-display: swap;
90 src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
91 unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
92}
93@font-face {
94 font-family: "JetBrains Mono";
95 font-style: normal;
96 font-weight: 100 800;
97 font-display: swap;
98 src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
99 unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
100}
101@font-face {
102 font-family: "JetBrains Mono";
103 font-style: italic;
104 font-weight: 100 800;
105 font-display: swap;
106 src: url("fonts/jetbrains-mono-italic-latin-ext.woff2") format("woff2");
107 unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
108}
109@font-face {
110 font-family: "JetBrains Mono";
111 font-style: italic;
112 font-weight: 100 800;
113 font-display: swap;
114 src: url("fonts/jetbrains-mono-italic-latin.woff2") format("woff2");
115 unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
116}
117
118/* ---------- base type ---------- */
119
120* { box-sizing: border-box; }
121* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
122::-webkit-scrollbar { width: 10px; height: 10px; }
123::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
124::-webkit-scrollbar-track { background: transparent; }
125
126html {
127 scroll-behavior: smooth;
128 /* The top bar scrolls away with the page, so an anchor only needs the
129 article's own breathing room, not the bar's height. */
130 scroll-padding-top: 24px;
131}
132
133body {
134 margin: 0;
135 background: var(--bg);
136 color: var(--fg);
137 font-family: var(--font);
138 font-size: var(--fs);
139 line-height: var(--lh);
140 -webkit-font-smoothing: auto;
141 font-kerning: normal;
142}
143
144a { color: var(--accent); text-decoration: none; }
145a:hover { text-decoration: underline; }
146
147h1, h2, h3, h4, h5, h6 {
148 margin: 0;
149 font-weight: 600;
150 letter-spacing: -0.01em;
151 line-height: 1.35;
152}
153
154p { margin: 0 0 14px; }
155ul, ol { margin: 0 0 14px; padding-left: 22px; }
156li > p { margin: 0; }
157hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
158img { max-width: 100%; }
159kbd {
160 font-family: var(--mono);
161 font-size: 0.8em;
162 padding: 0 4px;
163 border: 1px solid var(--border);
164 border-radius: 4px;
165 background: var(--bg-panel);
166 color: var(--fg-muted);
167}
168.icon { width: 14px; height: 14px; flex: none; }
169
170:focus-visible {
171 outline: 2px solid var(--accent);
172 outline-offset: 2px;
173 border-radius: 3px;
174}
175
176.skip-link {
177 position: fixed;
178 top: 8px;
179 left: 8px;
180 z-index: 100;
181 transform: translateY(-200%);
182 padding: 6px 10px;
183 border-radius: var(--radius);
184 background: var(--accent);
185 color: var(--accent-fg);
186 font-weight: 500;
187}
188.skip-link:focus { transform: none; text-decoration: none; }
189
190.muted { color: var(--fg-muted); }
191
192/* ---------- top bar ---------- */
193
194/* The bar is part of the document: it scrolls away with the page rather than
195 pinning itself over the article. */
196.topbar {
197 display: flex;
198 align-items: center;
199 gap: 20px;
200 height: var(--topbar-h);
201 padding-block: 0;
202 padding-inline: max(var(--page-gutter), calc((100% - var(--layout-max)) / 2 + var(--page-gutter)));
203 background: var(--bg-panel);
204 border-bottom: 1px solid var(--border);
205}
206
207.brand {
208 display: inline-flex;
209 align-items: center;
210 gap: 8px;
211 color: var(--fg);
212 white-space: nowrap;
213}
214.brand:hover { text-decoration: none; }
215.brand .mark {
216 display: block;
217 position: relative;
218 flex: none;
219 width: 30px;
220 height: 30px;
221}
222.brand .mark::before,
223.brand .mark::after {
224 content: "";
225 position: absolute;
226 inset: 0;
227 -webkit-mask-position: center;
228 -webkit-mask-size: contain;
229 -webkit-mask-repeat: no-repeat;
230 mask-position: center;
231 mask-size: contain;
232 mask-repeat: no-repeat;
233}
234.brand .mark::before {
235 background-color: var(--mark-outline);
236 -webkit-mask-image: url("vole-head-solid.png");
237 mask-image: url("vole-head-solid.png");
238}
239.brand .mark::after {
240 background-color: var(--mark-fill);
241 -webkit-mask-image: url("vole-head.png");
242 mask-image: url("vole-head.png");
243}
244.brand-name {
245 font-size: calc(15.4px * 1);
246 font-weight: 600;
247 letter-spacing: -0.01em;
248}
249.brand-note {
250 padding: 0 5px;
251 border: 1px solid var(--border);
252 border-radius: 4px;
253 color: var(--fg-faint);
254 font-size: calc(11.55px * 1);
255 font-weight: 500;
256 letter-spacing: 0.06em;
257 text-transform: uppercase;
258}
259
260.nav-toggle {
261 display: none;
262 align-items: center;
263 justify-content: center;
264 padding: 6px;
265 border: 0;
266 border-radius: var(--radius);
267 background: none;
268 color: var(--fg-muted);
269 cursor: pointer;
270}
271.nav-toggle:hover { background: var(--bg-hover); color: var(--fg); }
272
273.topsearch {
274 flex: 1 1 auto;
275 min-width: 8rem;
276 max-width: 18rem;
277 margin-left: auto;
278}
279.topsearch-box {
280 display: flex;
281 align-items: center;
282 gap: 8px;
283 width: 100%;
284 min-width: 0;
285 min-height: 30px;
286 padding: 5px 8px;
287 border: 1px solid var(--border-strong);
288 border-radius: var(--radius);
289 background: var(--bg);
290 color: var(--fg-muted);
291 font: inherit;
292 font-size: calc(13.75px * 1);
293 text-align: left;
294 cursor: pointer;
295}
296.topsearch-box:hover {
297 border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
298 color: var(--fg);
299}
300.topsearch-box .icon { width: 13px; height: 13px; color: var(--fg-faint); }
301.topsearch-label {
302 flex: 1 1 auto;
303 min-width: 0;
304 overflow: hidden;
305 text-overflow: ellipsis;
306 white-space: nowrap;
307}
308.topsearch-key {
309 flex: 0 0 auto;
310 padding: 0 4px;
311 border: 1px solid var(--border);
312 border-radius: 4px;
313 background: var(--bg-panel);
314 color: var(--fg-faint);
315 font-family: var(--mono);
316 font-size: calc(11.55px * 1);
317}
318
319/* The way out to the repository this site documents (mkdocs.yml's repo_url). */
320.topbar-link {
321 display: inline-flex;
322 align-items: center;
323 gap: 6px;
324 flex: none;
325 padding: 5px 8px;
326 border: 1px solid transparent;
327 border-radius: var(--radius);
328 color: var(--fg-muted);
329 font-size: calc(13.75px * 1);
330 white-space: nowrap;
331}
332.topbar-link:hover {
333 background: var(--bg-hover);
334 color: var(--fg);
335 text-decoration: none;
336}
337.topbar-link .icon { width: 13px; height: 13px; color: var(--fg-faint); }
338
339/* ---------- page layout ---------- */
340
341.layout {
342 display: grid;
343 grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
344 justify-content: center;
345 align-items: start;
346 gap: var(--layout-gap);
347 width: min(100%, var(--layout-max));
348 margin: 0 auto;
349 padding: 28px var(--page-gutter) 80px;
350}
351
352/* ---------- sidebar ---------- */
353
354/* The side columns scroll with the article; no column has its own scrollbar. */
355.sidebar {
356 padding-right: 4px;
357}
358
359.nav-list { list-style: none; margin: 0; padding: 0; }
360.nav-root > .nav-item { margin-bottom: 12px; }
361.nav-section { margin: 20px 0 0; }
362.nav-section:first-child { margin-top: 0; }
363.nav-section-title {
364 margin: 0 0 6px;
365 padding: 0 10px;
366 color: var(--fg-faint);
367 font-size: calc(11.55px * 1);
368 font-weight: 600;
369 letter-spacing: 0.08em;
370 text-transform: uppercase;
371}
372.nav-link {
373 display: block;
374 padding: 5px 10px;
375 border: 1px solid transparent;
376 border-radius: var(--radius);
377 color: var(--fg-muted);
378 font-size: calc(13.75px * 1);
379}
380.nav-link:hover {
381 background: var(--bg-hover);
382 color: var(--fg);
383 text-decoration: none;
384}
385.nav-link.active {
386 background: var(--accent-soft);
387 border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
388 color: var(--accent);
389 font-weight: 500;
390}
391
392/* ---------- content ---------- */
393
394.content {
395 min-width: 0;
396 max-width: var(--content-max);
397}
398
399.content > :first-child { margin-top: 0; }
400.content > :last-child { margin-bottom: 0; }
401
402.content h1 { margin: 0 0 16px; font-size: calc(23.1px * 1); }
403.content h2 { margin: 42px 0 12px; font-size: calc(17.6px * 1); }
404.content h3 { margin: 30px 0 9px; font-size: calc(15.4px * 1); }
405.content h4 { margin: 24px 0 8px; font-size: calc(14.3px * 1); }
406.content h5,
407.content h6 { margin: 18px 0 6px; color: var(--fg-muted); font-size: calc(13.75px * 1); }
408
409.content p { margin: 14px 0; }
410.content ul,
411.content ol { margin: 14px 0; padding-left: 24px; }
412.content li { margin: 4px 0; }
413.content li::marker { color: var(--fg-faint); }
414
415/* Start-here cards on the overview. They are links, not navigation: the three
416 jobs a reader can arrive with. */
417.start-grid {
418 display: grid;
419 grid-template-columns: repeat(3, minmax(0, 1fr));
420 gap: 12px;
421 margin: 20px 0 28px;
422}
423.start-card {
424 display: flex;
425 flex-direction: column;
426 gap: 5px;
427 padding: 15px 16px;
428 border: 1px solid var(--border);
429 border-radius: var(--radius-lg);
430 background: var(--bg-panel);
431 color: var(--fg);
432}
433.start-card:hover {
434 border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
435 background: var(--bg-raised);
436 text-decoration: none;
437}
438.start-card-title {
439 color: var(--accent);
440 font-size: calc(14.3px * 1);
441 font-weight: 600;
442}
443.start-card-text {
444 color: var(--fg-muted);
445 font-size: calc(13.2px * 1);
446 line-height: 1.5;
447}
448
449/* Callouts. Core Markdown's admonition extension emits .admonition.<type>.
450 Use them for a caveat at the point of decision, not for ordinary prose. */
451.admonition {
452 margin: 18px 0;
453 padding: 12px 14px;
454 border: 1px solid var(--border);
455 border-left: 3px solid var(--running);
456 border-radius: var(--radius);
457 background: var(--bg-panel);
458}
459.admonition-title {
460 margin: 0 0 6px;
461 color: var(--running);
462 font-size: calc(13.75px * 1);
463 font-weight: 600;
464}
465.admonition > :last-child { margin-bottom: 0; }
466.admonition.tip { border-left-color: var(--good); }
467.admonition.tip .admonition-title { color: var(--good); }
468.admonition.warning {
469 border-left-color: var(--warn);
470 background: color-mix(in srgb, var(--warn) 7%, var(--bg-panel));
471}
472.admonition.warning .admonition-title { color: var(--warn); }
473.admonition.danger {
474 border-left-color: var(--bad);
475 background: color-mix(in srgb, var(--bad) 7%, var(--bg-panel));
476}
477.admonition.danger .admonition-title { color: var(--bad); }
478
479/* Diagrams are Mermaid source, rendered in the browser on pages that opt in
480 with `mermaid: true`. Static images use the same figure frame. */
481.doc-figure { margin: 22px 0; }
482.doc-figure .mermaid {
483 margin: 0;
484 overflow-x: auto;
485 text-align: center;
486}
487.doc-figure .mermaid svg {
488 display: block;
489 max-width: 100%;
490 height: auto;
491 margin: 0 auto;
492}
493.doc-figure img {
494 display: block;
495 width: 100%;
496 height: auto;
497 border: 1px solid var(--border);
498 border-radius: var(--radius-lg);
499 background: var(--bg-panel);
500}
501.doc-figure figcaption {
502 margin-top: 8px;
503 color: var(--fg-faint);
504 font-size: calc(12.65px * 1);
505 line-height: 1.5;
506}
507
508.content blockquote {
509 margin: 14px 0;
510 padding: 2px 0 2px 14px;
511 border-left: 3px solid var(--border-strong);
512 color: var(--fg-muted);
513}
514.content blockquote > :first-child { margin-top: 0; }
515.content blockquote > :last-child { margin-bottom: 0; }
516
517/* A heading permalink is quiet until the reader is near it. The link is still
518 in the tab order, so keyboard users can copy the fragment without a mouse. */
519.headerlink {
520 margin-left: 0.35em;
521 color: var(--fg-faint);
522 font-weight: 400;
523 opacity: 0;
524}
525h1:hover .headerlink,
526h2:hover .headerlink,
527h3:hover .headerlink,
528h4:hover .headerlink,
529h5:hover .headerlink,
530h6:hover .headerlink,
531.headerlink:focus-visible { opacity: 1; }
532.headerlink:hover { color: var(--accent); text-decoration: none; }
533
534/* ---------- tables and code ---------- */
535
536.content table {
537 display: block;
538 width: 100%;
539 max-width: 100%;
540 overflow-x: auto;
541 margin: 20px 0;
542 border: 1px solid var(--border);
543 border-radius: var(--radius-lg);
544 border-collapse: collapse;
545 background: var(--bg-panel);
546 font-size: calc(13.75px * 1);
547}
548.content th,
549.content td {
550 padding: 8px 12px;
551 border-bottom: 1px solid var(--border);
552 text-align: left;
553 vertical-align: top;
554}
555.content tr:last-child > td { border-bottom: 0; }
556.content th {
557 background: var(--bg-raised);
558 color: var(--fg-faint);
559 font-size: calc(12.1px * 1);
560 font-weight: 500;
561 letter-spacing: 0.04em;
562 text-transform: uppercase;
563 padding-top: 7px;
564 padding-bottom: 7px;
565}
566.content tbody tr:hover { background: var(--bg-hover); }
567
568.content code,
569.content kbd {
570 font-family: var(--mono);
571}
572.content code {
573 padding: 1px 5px;
574 border: 1px solid var(--border);
575 border-radius: 4px;
576 background: var(--bg-raised);
577 font-size: 0.82em;
578}
579.content pre {
580 margin: 12px 0;
581 padding: 12px 14px;
582 border: 1px solid var(--border);
583 border-radius: var(--radius);
584 background: var(--bg-panel);
585 overflow: auto;
586 font-family: var(--mono);
587 font-size: calc(13.2px * 1);
588 line-height: 1.55;
589}
590.content pre code {
591 padding: 0;
592 border: 0;
593 background: none;
594 font-size: inherit;
595}
596.content .codehilite {
597 position: relative;
598 margin: 12px 0;
599}
600.content .codehilite pre { margin: 0; }
601
602.copy-code {
603 position: absolute;
604 top: 7px;
605 right: 7px;
606 padding: 3px 7px;
607 border: 1px solid var(--border-strong);
608 border-radius: 4px;
609 background: var(--bg-raised);
610 color: var(--fg-muted);
611 font-family: var(--font);
612 font-size: calc(11.55px * 1);
613 line-height: 1.4;
614 cursor: pointer;
615 opacity: 0;
616 transition: opacity 0.12s ease;
617}
618.codehilite:hover .copy-code,
619.copy-code:focus-visible { opacity: 1; }
620.copy-code:hover { background: var(--bg-hover); color: var(--fg); }
621
622/* ---------- pager and footer ---------- */
623
624.pager {
625 display: grid;
626 grid-template-columns: repeat(2, minmax(0, 1fr));
627 gap: 12px;
628 margin-top: 40px;
629 padding-top: 20px;
630 border-top: 1px solid var(--border);
631}
632.pager-link {
633 display: flex;
634 flex-direction: column;
635 gap: 2px;
636 min-width: 0;
637 padding: 10px 12px;
638 border: 1px solid var(--border);
639 border-radius: var(--radius-lg);
640 background: var(--bg-panel);
641 color: var(--fg);
642}
643.pager-link:hover {
644 border-color: var(--border-strong);
645 background: var(--bg-raised);
646 text-decoration: none;
647}
648.pager-next { text-align: right; }
649.pager-where {
650 color: var(--fg-faint);
651 font-size: calc(11.55px * 1);
652 font-weight: 500;
653 letter-spacing: 0.06em;
654 text-transform: uppercase;
655}
656.pager-title {
657 overflow: hidden;
658 text-overflow: ellipsis;
659 white-space: nowrap;
660 font-size: calc(13.75px * 1);
661 font-weight: 500;
662}
663.pager-prev .pager-title { color: var(--fg-muted); }
664.pager-next .pager-title { color: var(--accent); }
665
666.site-footer {
667 width: min(100%, var(--layout-max));
668 margin: 0 auto;
669 padding: 18px var(--page-gutter) 40px;
670 border-top: 1px solid var(--border);
671 color: var(--fg-faint);
672 font-size: calc(12.65px * 1);
673}
674.site-footer p { margin: 0; }
675.site-footer p + p { margin-top: 4px; }
676.site-footer a { color: var(--fg-muted); }
677.site-footer a:hover { color: var(--accent); }
678
679/* ---------- on this page ---------- */
680
681.toc {
682 font-size: calc(12.65px * 1);
683}
684.toc-title {
685 margin: 0 0 8px;
686 color: var(--fg-faint);
687 font-size: calc(11.55px * 1);
688 font-weight: 600;
689 letter-spacing: 0.08em;
690 text-transform: uppercase;
691}
692.toc-list { list-style: none; margin: 0; padding: 0; }
693.toc-list .toc-list { padding-left: 10px; }
694.toc-item > a {
695 display: block;
696 padding: 3px 0 3px 10px;
697 border-left: 1px solid var(--border);
698 color: var(--fg-muted);
699 overflow: hidden;
700 text-overflow: ellipsis;
701 white-space: nowrap;
702}
703.toc-item > a:hover {
704 border-left-color: var(--border-strong);
705 color: var(--fg);
706 text-decoration: none;
707}
708.toc-level-3 > a { padding-left: 18px; color: var(--fg-faint); }
709
710/* ---------- search palette ---------- */
711
712.palette {
713 width: min(40rem, calc(100vw - 2 * var(--page-gutter)));
714 max-height: min(80vh, 44rem);
715 margin: 10vh auto auto;
716 padding: 0;
717 border: 1px solid var(--border-strong);
718 border-radius: var(--radius-lg);
719 background: var(--bg-raised);
720 color: var(--fg);
721 box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
722 overflow: hidden;
723}
724.palette::backdrop { background: rgba(0, 0, 0, 0.5); }
725.palette-search {
726 display: flex;
727 align-items: center;
728 gap: 10px;
729 padding: 10px 12px;
730 border-bottom: 1px solid var(--border);
731}
732.palette-search .icon { width: 16px; height: 16px; color: var(--fg-muted); }
733.palette-search input[type="search"] {
734 flex: 1 1 auto;
735 width: auto;
736 min-width: 0;
737 min-height: 0;
738 padding: 2px 0;
739 border: 0;
740 background: transparent;
741 color: var(--fg);
742 font: inherit;
743 font-size: calc(15.4px * 1);
744}
745.palette-search input[type="search"]::placeholder { color: var(--fg-faint); }
746.palette-search input[type="search"]::-webkit-search-cancel-button,
747.palette-search input[type="search"]::-webkit-search-decoration {
748 -webkit-appearance: none;
749 appearance: none;
750}
751.palette-search input[type="search"]:focus-visible { outline: 0; }
752.palette-close {
753 display: inline-flex;
754 align-items: center;
755 justify-content: center;
756 padding: 4px;
757 border: 0;
758 border-radius: var(--radius);
759 background: none;
760 color: var(--fg-faint);
761 cursor: pointer;
762}
763.palette-close:hover { background: var(--bg-hover); color: var(--fg); }
764.palette-results { max-height: min(60vh, 30rem); overflow-y: auto; padding: 6px; }
765.palette-row {
766 display: block;
767 padding: 7px 9px;
768 border-radius: var(--radius);
769 color: var(--fg);
770}
771.palette-row:hover { background: var(--bg-hover); text-decoration: none; }
772.palette-row.is-selected { background: var(--accent-soft); }
773.palette-row-title {
774 display: block;
775 overflow: hidden;
776 text-overflow: ellipsis;
777 white-space: nowrap;
778 font-weight: 500;
779}
780.palette-row-where {
781 display: block;
782 overflow: hidden;
783 text-overflow: ellipsis;
784 white-space: nowrap;
785 color: var(--fg-faint);
786 font-size: calc(12.65px * 1);
787}
788.palette-empty {
789 margin: 0;
790 padding: 16px 12px;
791 color: var(--fg-muted);
792 font-size: calc(13.75px * 1);
793}
794.palette-foot {
795 display: flex;
796 gap: 14px;
797 padding: 7px 12px;
798 border-top: 1px solid var(--border);
799 color: var(--fg-faint);
800 font-size: calc(12.65px * 1);
801}
802.palette-foot kbd {
803 padding: 0 4px;
804 background: var(--bg-panel);
805}
806
807.nav-scrim { display: none; }
808
809.not-found {
810 padding: 40px 0;
811}
812.not-found-code {
813 margin: 0 0 4px;
814 color: var(--accent);
815 font-family: var(--mono);
816 font-size: calc(13.2px * 1);
817 letter-spacing: 0.12em;
818}
819
820/* ---------- responsive ---------- */
821
822/* Below the width where three columns plus a readable article fit, give the
823 article the TOC's space rather than squeezing it. */
824@media (max-width: 1360px) {
825 .layout {
826 grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
827 justify-content: start;
828 }
829 .toc { display: none; }
830}
831
832@media (max-width: 900px) {
833 .nav-toggle { display: inline-flex; }
834 .start-grid { grid-template-columns: 1fr; }
835
836 .layout {
837 display: block;
838 padding-top: 20px;
839 }
840 .content { max-width: var(--content-max); }
841
842 /* On small screens the sidebar is a drawer over the page, not a column in
843 it, so it is the one thing that stays put while open. */
844 .sidebar {
845 position: fixed;
846 top: 0;
847 bottom: 0;
848 left: 0;
849 z-index: 30;
850 width: min(20rem, 85vw);
851 overflow-y: auto;
852 padding: 16px 14px 32px;
853 background: var(--bg-panel);
854 border-right: 1px solid var(--border);
855 transform: translateX(-100%);
856 transition: transform 0.16s ease;
857 }
858 body.nav-open .sidebar { transform: translateX(0); }
859 body.nav-open { overflow: hidden; }
860
861 .nav-scrim {
862 position: fixed;
863 inset: 0;
864 z-index: 25;
865 background: rgba(0, 0, 0, 0.5);
866 }
867 body.nav-open .nav-scrim { display: block; }
868}
869
870@media (max-width: 640px) {
871 .topbar { gap: 10px; padding-inline: 16px; }
872 .brand-note { display: none; }
873 .topsearch { min-width: 0; max-width: none; }
874 .topsearch-label { display: none; }
875 .topsearch-box { justify-content: flex-end; }
876 .topsearch-key { display: none; }
877 /* Keep the word "Source": the icon alone is a thinner target and a weaker
878 label, and the search box can shrink to make the room. */
879 .topbar-link .icon { display: none; }
880 .topbar-link { padding-inline: 2px; }
881 .layout { padding-inline: 16px; }
882 .site-footer { padding-inline: 16px; }
883 .content h1 { font-size: calc(20.9px * 1); }
884 .pager { grid-template-columns: 1fr; }
885 .palette-foot { display: none; }
886}
887
888@media (prefers-reduced-motion: reduce) {
889 html { scroll-behavior: auto; }
890 *,
891 *::before,
892 *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
893}
894