@brunosouzas/stackledger 0.0.0-stage → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +261 -2
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.js +97 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/control.d.ts +2 -0
  7. package/dist/control.js +22 -0
  8. package/dist/control.js.map +1 -0
  9. package/dist/discover-command.d.ts +7 -0
  10. package/dist/discover-command.js +60 -0
  11. package/dist/discover-command.js.map +1 -0
  12. package/dist/discovery/annotations.d.ts +24 -0
  13. package/dist/discovery/annotations.js +37 -0
  14. package/dist/discovery/annotations.js.map +1 -0
  15. package/dist/discovery/host.d.ts +47 -0
  16. package/dist/discovery/host.js +56 -0
  17. package/dist/discovery/host.js.map +1 -0
  18. package/dist/discovery/index.d.ts +15 -0
  19. package/dist/discovery/index.js +30 -0
  20. package/dist/discovery/index.js.map +1 -0
  21. package/dist/discovery/machine.d.ts +14 -0
  22. package/dist/discovery/machine.js +17 -0
  23. package/dist/discovery/machine.js.map +1 -0
  24. package/dist/discovery/run.d.ts +39 -0
  25. package/dist/discovery/run.js +130 -0
  26. package/dist/discovery/run.js.map +1 -0
  27. package/dist/discovery/snapshot.d.ts +60 -0
  28. package/dist/discovery/snapshot.js +161 -0
  29. package/dist/discovery/snapshot.js.map +1 -0
  30. package/dist/discovery/sources/apps.d.ts +3 -0
  31. package/dist/discovery/sources/apps.js +136 -0
  32. package/dist/discovery/sources/apps.js.map +1 -0
  33. package/dist/discovery/sources/brew.d.ts +15 -0
  34. package/dist/discovery/sources/brew.js +69 -0
  35. package/dist/discovery/sources/brew.js.map +1 -0
  36. package/dist/discovery/sources/common.d.ts +39 -0
  37. package/dist/discovery/sources/common.js +70 -0
  38. package/dist/discovery/sources/common.js.map +1 -0
  39. package/dist/discovery/sources/index.d.ts +8 -0
  40. package/dist/discovery/sources/index.js +12 -0
  41. package/dist/discovery/sources/index.js.map +1 -0
  42. package/dist/discovery/sources/launchd.d.ts +3 -0
  43. package/dist/discovery/sources/launchd.js +65 -0
  44. package/dist/discovery/sources/launchd.js.map +1 -0
  45. package/dist/discovery/sources/mas.d.ts +9 -0
  46. package/dist/discovery/sources/mas.js +25 -0
  47. package/dist/discovery/sources/mas.js.map +1 -0
  48. package/dist/discovery/sources/mise.d.ts +5 -0
  49. package/dist/discovery/sources/mise.js +64 -0
  50. package/dist/discovery/sources/mise.js.map +1 -0
  51. package/dist/discovery/sources/npm.d.ts +12 -0
  52. package/dist/discovery/sources/npm.js +34 -0
  53. package/dist/discovery/sources/npm.js.map +1 -0
  54. package/dist/discovery/sources/pipx.d.ts +4 -0
  55. package/dist/discovery/sources/pipx.js +82 -0
  56. package/dist/discovery/sources/pipx.js.map +1 -0
  57. package/dist/discovery/types.d.ts +73 -0
  58. package/dist/discovery/types.js +10 -0
  59. package/dist/discovery/types.js.map +1 -0
  60. package/dist/discovery/write.d.ts +50 -0
  61. package/dist/discovery/write.js +196 -0
  62. package/dist/discovery/write.js.map +1 -0
  63. package/dist/drift-command.d.ts +62 -0
  64. package/dist/drift-command.js +375 -0
  65. package/dist/drift-command.js.map +1 -0
  66. package/dist/drift-formats.d.ts +3 -0
  67. package/dist/drift-formats.js +54 -0
  68. package/dist/drift-formats.js.map +1 -0
  69. package/dist/drift.d.ts +95 -0
  70. package/dist/drift.js +206 -0
  71. package/dist/drift.js.map +1 -0
  72. package/dist/errors.d.ts +15 -0
  73. package/dist/errors.js +26 -0
  74. package/dist/errors.js.map +1 -0
  75. package/dist/graph.d.ts +103 -0
  76. package/dist/graph.js +181 -0
  77. package/dist/graph.js.map +1 -0
  78. package/dist/ics.d.ts +18 -0
  79. package/dist/ics.js +103 -0
  80. package/dist/ics.js.map +1 -0
  81. package/dist/identity.d.ts +18 -0
  82. package/dist/identity.js +36 -0
  83. package/dist/identity.js.map +1 -0
  84. package/dist/index.d.ts +14 -0
  85. package/dist/index.js +9 -0
  86. package/dist/index.js.map +1 -0
  87. package/dist/map/badges.d.ts +20 -0
  88. package/dist/map/badges.js +95 -0
  89. package/dist/map/badges.js.map +1 -0
  90. package/dist/map/command.d.ts +8 -0
  91. package/dist/map/command.js +86 -0
  92. package/dist/map/command.js.map +1 -0
  93. package/dist/map/heap.d.ts +15 -0
  94. package/dist/map/heap.js +57 -0
  95. package/dist/map/heap.js.map +1 -0
  96. package/dist/map/ink.d.ts +11 -0
  97. package/dist/map/ink.js +10 -0
  98. package/dist/map/ink.js.map +1 -0
  99. package/dist/map/labels.d.ts +43 -0
  100. package/dist/map/labels.js +172 -0
  101. package/dist/map/labels.js.map +1 -0
  102. package/dist/map/layout.d.ts +64 -0
  103. package/dist/map/layout.js +228 -0
  104. package/dist/map/layout.js.map +1 -0
  105. package/dist/map/model.d.ts +46 -0
  106. package/dist/map/model.js +84 -0
  107. package/dist/map/model.js.map +1 -0
  108. package/dist/map/neighbourhood.d.ts +18 -0
  109. package/dist/map/neighbourhood.js +137 -0
  110. package/dist/map/neighbourhood.js.map +1 -0
  111. package/dist/map/parallel.d.ts +35 -0
  112. package/dist/map/parallel.js +261 -0
  113. package/dist/map/parallel.js.map +1 -0
  114. package/dist/map/pieces.d.ts +12 -0
  115. package/dist/map/pieces.js +15 -0
  116. package/dist/map/pieces.js.map +1 -0
  117. package/dist/map/relations.d.ts +39 -0
  118. package/dist/map/relations.js +122 -0
  119. package/dist/map/relations.js.map +1 -0
  120. package/dist/map/route.d.ts +25 -0
  121. package/dist/map/route.js +165 -0
  122. package/dist/map/route.js.map +1 -0
  123. package/dist/map/strip.d.ts +29 -0
  124. package/dist/map/strip.js +120 -0
  125. package/dist/map/strip.js.map +1 -0
  126. package/dist/map/suggest.d.ts +21 -0
  127. package/dist/map/suggest.js +97 -0
  128. package/dist/map/suggest.js.map +1 -0
  129. package/dist/map/svg.d.ts +29 -0
  130. package/dist/map/svg.js +203 -0
  131. package/dist/map/svg.js.map +1 -0
  132. package/dist/map/themes.d.ts +64 -0
  133. package/dist/map/themes.js +94 -0
  134. package/dist/map/themes.js.map +1 -0
  135. package/dist/map/xml.d.ts +6 -0
  136. package/dist/map/xml.js +57 -0
  137. package/dist/map/xml.js.map +1 -0
  138. package/dist/map/zones.d.ts +19 -0
  139. package/dist/map/zones.js +46 -0
  140. package/dist/map/zones.js.map +1 -0
  141. package/dist/mcp.d.ts +2 -0
  142. package/dist/mcp.js +145 -0
  143. package/dist/mcp.js.map +1 -0
  144. package/dist/money.d.ts +32 -0
  145. package/dist/money.js +91 -0
  146. package/dist/money.js.map +1 -0
  147. package/dist/report-command.d.ts +3 -0
  148. package/dist/report-command.js +85 -0
  149. package/dist/report-command.js.map +1 -0
  150. package/dist/report-formats.d.ts +11 -0
  151. package/dist/report-formats.js +157 -0
  152. package/dist/report-formats.js.map +1 -0
  153. package/dist/reports.d.ts +105 -0
  154. package/dist/reports.js +247 -0
  155. package/dist/reports.js.map +1 -0
  156. package/dist/scaffold.d.ts +30 -0
  157. package/dist/scaffold.js +140 -0
  158. package/dist/scaffold.js.map +1 -0
  159. package/dist/schema.d.ts +345 -0
  160. package/dist/schema.js +120 -0
  161. package/dist/schema.js.map +1 -0
  162. package/dist/secrets.d.ts +7 -0
  163. package/dist/secrets.js +68 -0
  164. package/dist/secrets.js.map +1 -0
  165. package/dist/site/build.d.ts +22 -0
  166. package/dist/site/build.js +198 -0
  167. package/dist/site/build.js.map +1 -0
  168. package/dist/site/command.d.ts +2 -0
  169. package/dist/site/command.js +221 -0
  170. package/dist/site/command.js.map +1 -0
  171. package/dist/site/data.d.ts +225 -0
  172. package/dist/site/data.js +243 -0
  173. package/dist/site/data.js.map +1 -0
  174. package/dist/site/fs-ops.d.ts +35 -0
  175. package/dist/site/fs-ops.js +26 -0
  176. package/dist/site/fs-ops.js.map +1 -0
  177. package/dist/site/owners.d.ts +5 -0
  178. package/dist/site/owners.js +50 -0
  179. package/dist/site/owners.js.map +1 -0
  180. package/dist/site/paths.d.ts +34 -0
  181. package/dist/site/paths.js +48 -0
  182. package/dist/site/paths.js.map +1 -0
  183. package/dist/site/policy.d.ts +17 -0
  184. package/dist/site/policy.js +26 -0
  185. package/dist/site/policy.js.map +1 -0
  186. package/dist/site/publish.d.ts +14 -0
  187. package/dist/site/publish.js +90 -0
  188. package/dist/site/publish.js.map +1 -0
  189. package/dist/site/relative.d.ts +14 -0
  190. package/dist/site/relative.js +265 -0
  191. package/dist/site/relative.js.map +1 -0
  192. package/dist/site/skills-build.d.ts +22 -0
  193. package/dist/site/skills-build.js +126 -0
  194. package/dist/site/skills-build.js.map +1 -0
  195. package/dist/site/skills-data.d.ts +89 -0
  196. package/dist/site/skills-data.js +94 -0
  197. package/dist/site/skills-data.js.map +1 -0
  198. package/dist/site/staging.d.ts +19 -0
  199. package/dist/site/staging.js +76 -0
  200. package/dist/site/staging.js.map +1 -0
  201. package/dist/site/ui-icons.d.ts +4 -0
  202. package/dist/site/ui-icons.js +19 -0
  203. package/dist/site/ui-icons.js.map +1 -0
  204. package/dist/skills/command.d.ts +8 -0
  205. package/dist/skills/command.js +64 -0
  206. package/dist/skills/command.js.map +1 -0
  207. package/dist/skills/frontmatter.d.ts +37 -0
  208. package/dist/skills/frontmatter.js +219 -0
  209. package/dist/skills/frontmatter.js.map +1 -0
  210. package/dist/skills/graph.d.ts +39 -0
  211. package/dist/skills/graph.js +100 -0
  212. package/dist/skills/graph.js.map +1 -0
  213. package/dist/skills/ignore.d.ts +34 -0
  214. package/dist/skills/ignore.js +138 -0
  215. package/dist/skills/ignore.js.map +1 -0
  216. package/dist/skills/lines.d.ts +53 -0
  217. package/dist/skills/lines.js +221 -0
  218. package/dist/skills/lines.js.map +1 -0
  219. package/dist/skills/map-command.d.ts +28 -0
  220. package/dist/skills/map-command.js +533 -0
  221. package/dist/skills/map-command.js.map +1 -0
  222. package/dist/skills/mermaid.d.ts +29 -0
  223. package/dist/skills/mermaid.js +261 -0
  224. package/dist/skills/mermaid.js.map +1 -0
  225. package/dist/skills/metro.d.ts +8 -0
  226. package/dist/skills/metro.js +93 -0
  227. package/dist/skills/metro.js.map +1 -0
  228. package/dist/skills/read.d.ts +17 -0
  229. package/dist/skills/read.js +54 -0
  230. package/dist/skills/read.js.map +1 -0
  231. package/dist/skills/rules.d.ts +28 -0
  232. package/dist/skills/rules.js +57 -0
  233. package/dist/skills/rules.js.map +1 -0
  234. package/dist/skills/source.d.ts +66 -0
  235. package/dist/skills/source.js +281 -0
  236. package/dist/skills/source.js.map +1 -0
  237. package/dist/skills/walk.d.ts +64 -0
  238. package/dist/skills/walk.js +281 -0
  239. package/dist/skills/walk.js.map +1 -0
  240. package/dist/source.d.ts +40 -0
  241. package/dist/source.js +199 -0
  242. package/dist/source.js.map +1 -0
  243. package/dist/stdout.d.ts +2 -0
  244. package/dist/stdout.js +24 -0
  245. package/dist/stdout.js.map +1 -0
  246. package/dist/validate.d.ts +45 -0
  247. package/dist/validate.js +321 -0
  248. package/dist/validate.js.map +1 -0
  249. package/dist/views.d.ts +25 -0
  250. package/dist/views.js +58 -0
  251. package/dist/views.js.map +1 -0
  252. package/examples/catalogue-repository/.github/workflows/stackledger.yml +122 -0
  253. package/examples/catalogue-repository/README.md +96 -0
  254. package/examples/catalogue-repository/catalog/catalog-info.yaml +12 -0
  255. package/examples/hosting/Caddyfile +69 -0
  256. package/examples/northwind/catalog-info.yaml +680 -0
  257. package/examples/northwind/stackledger.yaml +16 -0
  258. package/examples/northwind-machine/snapshot.json +309 -0
  259. package/examples/northwind-skills/agents/builder.md +10 -0
  260. package/examples/northwind-skills/agents/reviewer.md +10 -0
  261. package/examples/northwind-skills/designer/SKILL.md +8 -0
  262. package/examples/northwind-skills/editor/SKILL.md +8 -0
  263. package/examples/northwind-skills/engineering/SKILL.md +12 -0
  264. package/examples/northwind-skills/linter/SKILL.md +8 -0
  265. package/examples/northwind-skills/linter/rules.md +5 -0
  266. package/examples/northwind-skills/publishing/SKILL.md +12 -0
  267. package/examples/northwind-skills/publishing/rules.md +5 -0
  268. package/examples/northwind-skills/spec-writer/SKILL.md +8 -0
  269. package/examples/northwind-skills/stackledger-skills.yaml +51 -0
  270. package/examples/northwind-skills/tester/SKILL.md +10 -0
  271. package/examples/northwind-skills/writer/SKILL.md +8 -0
  272. package/examples/northwind-skills/writer/rules.md +6 -0
  273. package/npm-shrinkwrap.json +5016 -0
  274. package/package.json +52 -4
  275. package/site/LICENSE-astroplate +21 -0
  276. package/site/README.md +18 -0
  277. package/site/package.json +6 -0
  278. package/site/public/brand-mark-dark.svg +7 -0
  279. package/site/public/favicon.svg +6 -0
  280. package/site/public/home-banner.svg +93 -0
  281. package/site/public/link-icons/email-dark.svg +7 -0
  282. package/site/public/link-icons/email-light.svg +6 -0
  283. package/site/public/link-icons/github-dark.svg +8 -0
  284. package/site/public/link-icons/github-light.svg +7 -0
  285. package/site/public/link-icons/linkedin-dark.svg +8 -0
  286. package/site/public/link-icons/linkedin-light.svg +7 -0
  287. package/site/public/link-icons/website-dark.svg +8 -0
  288. package/site/public/link-icons/website-light.svg +7 -0
  289. package/site/src/components/Footer.astro +25 -0
  290. package/site/src/components/Header.astro +35 -0
  291. package/site/src/components/Impact.astro +55 -0
  292. package/site/src/components/LinkOrText.astro +12 -0
  293. package/site/src/components/SkillItem.astro +141 -0
  294. package/site/src/components/SubNav.astro +40 -0
  295. package/site/src/components/ThemeSwitch.astro +13 -0
  296. package/site/src/components/Themed.astro +15 -0
  297. package/site/src/layouts/Base.astro +52 -0
  298. package/site/src/lib/site.ts +25 -0
  299. package/site/src/pages/[reports].astro +222 -0
  300. package/site/src/pages/agents/[file].astro +14 -0
  301. package/site/src/pages/index.astro +72 -0
  302. package/site/src/pages/journeys/[name].astro +50 -0
  303. package/site/src/pages/journeys/index.astro +37 -0
  304. package/site/src/pages/licences/[name].astro +56 -0
  305. package/site/src/pages/map/index.astro +78 -0
  306. package/site/src/pages/playbooks/[file].astro +14 -0
  307. package/site/src/pages/rules/[...rules].astro +61 -0
  308. package/site/src/pages/skill-map/[...map].astro +101 -0
  309. package/site/src/pages/skills/[...list].astro +75 -0
  310. package/site/src/pages/skills/[file].astro +14 -0
  311. package/site/src/pages/software/[name].astro +155 -0
  312. package/site/src/pages/software/index.astro +71 -0
  313. package/site/src/scripts/diagram.ts +8 -0
  314. package/site/src/scripts/links.ts +31 -0
  315. package/site/src/scripts/map.ts +133 -0
  316. package/site/src/scripts/software.ts +32 -0
  317. package/site/src/scripts/theme.ts +52 -0
  318. package/site/src/styles/base.css +481 -0
  319. package/site/src/styles/fonts.css +60 -0
  320. package/site/src/styles/override.css +1 -0
  321. package/site/src/styles/pages.css +315 -0
  322. package/site/src/styles/tokens.css +87 -0
  323. package/skills/stackledger/SKILL.md +155 -0
@@ -0,0 +1,32 @@
1
+ // Software list: search and filters hide rows of the table itself (catalogue-site, Software list).
2
+ // Search ignores case and looks only at the shown cells; each filter must equal its cell's text.
3
+ const table = document.querySelector<HTMLTableElement>('[data-software]');
4
+ const tools = document.querySelector<HTMLElement>('[data-list-tools]');
5
+ const search = document.querySelector<HTMLInputElement>('[data-search]');
6
+ const filters = [...document.querySelectorAll<HTMLSelectElement>('[data-filter]')];
7
+ const count = document.querySelector<HTMLElement>('[data-count]');
8
+ const noMatch = document.querySelector<HTMLElement>('[data-no-match]');
9
+
10
+ function cellText(row: HTMLTableRowElement, column: string): string {
11
+ return row.querySelector(`[data-column="${column}"]`)?.textContent?.trim() ?? '';
12
+ }
13
+
14
+ function apply(): void {
15
+ if (!table) return;
16
+ const query = (search?.value ?? '').trim().toLowerCase();
17
+ const rows = [...table.tBodies[0]!.rows];
18
+ let shown = 0;
19
+ for (const row of rows) {
20
+ const matchesQuery = !query || [...row.cells].some((cell) => (cell.textContent ?? '').toLowerCase().includes(query));
21
+ const matchesFilters = filters.every((filter) => !filter.value || cellText(row, filter.dataset.filter ?? '') === filter.value);
22
+ row.hidden = !(matchesQuery && matchesFilters);
23
+ if (!row.hidden) shown++;
24
+ }
25
+ if (noMatch) noMatch.hidden = shown > 0;
26
+ if (count) count.textContent = shown === rows.length ? '' : `${shown} of ${rows.length} items shown.`;
27
+ }
28
+
29
+ if (tools) tools.hidden = false;
30
+ search?.addEventListener('input', apply);
31
+ for (const filter of filters) filter.addEventListener('change', apply);
32
+ apply();
@@ -0,0 +1,52 @@
1
+ // Theme switch (catalogue-site, Layout): follow prefers-color-scheme until the reader chooses,
2
+ // then remember light or dark in localStorage for every page of this site.
3
+ const KEY = 'stackledger-theme';
4
+ type Theme = 'light' | 'dark';
5
+
6
+ const root = document.documentElement;
7
+ const systemDark = window.matchMedia('(prefers-color-scheme: dark)');
8
+
9
+ function stored(): Theme | undefined {
10
+ try {
11
+ const value = localStorage.getItem(KEY);
12
+ return value === 'light' || value === 'dark' ? value : undefined;
13
+ } catch {
14
+ // Storage can be unavailable (private mode, blocked); the switch still works on this page.
15
+ return undefined;
16
+ }
17
+ }
18
+
19
+ function current(): Theme {
20
+ return (root.dataset.theme as Theme | undefined) ?? (systemDark.matches ? 'dark' : 'light');
21
+ }
22
+
23
+ function syncSwitches(): void {
24
+ for (const button of document.querySelectorAll<HTMLButtonElement>('[data-theme-switch]')) {
25
+ button.hidden = false;
26
+ button.setAttribute('aria-checked', String(current() === 'dark'));
27
+ }
28
+ }
29
+
30
+ function choose(theme: Theme): void {
31
+ root.dataset.theme = theme;
32
+ try {
33
+ localStorage.setItem(KEY, theme);
34
+ } catch {
35
+ // Not remembered across pages, but applied here.
36
+ }
37
+ syncSwitches();
38
+ }
39
+
40
+ const saved = stored();
41
+ if (saved) root.dataset.theme = saved;
42
+
43
+ function wire(): void {
44
+ for (const button of document.querySelectorAll<HTMLButtonElement>('[data-theme-switch]')) {
45
+ button.addEventListener('click', () => choose(current() === 'dark' ? 'light' : 'dark'));
46
+ }
47
+ systemDark.addEventListener('change', syncSwitches);
48
+ syncSwitches();
49
+ }
50
+
51
+ if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', wire);
52
+ else wire();
@@ -0,0 +1,481 @@
1
+ /* Base look, translated from brunosouzas.com's Tailwind classes (Astroplate theme, MIT) into plain
2
+ CSS: typography, container, header, footer, theme switch, buttons, tables and lists. Colours and
3
+ fonts only come from tokens.css variables. */
4
+
5
+ *,
6
+ *::before,
7
+ *::after {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ html {
12
+ font-size: var(--text-base-sm);
13
+ }
14
+
15
+ @media (min-width: 768px) {
16
+ html {
17
+ font-size: var(--text-base);
18
+ }
19
+ }
20
+
21
+ body {
22
+ margin: 0;
23
+ display: flex;
24
+ flex-direction: column;
25
+ min-height: 100vh;
26
+ background: var(--color-body);
27
+ color: var(--color-text);
28
+ font-family: var(--font-primary);
29
+ font-size: 1rem;
30
+ font-weight: 400;
31
+ line-height: 1.625;
32
+ }
33
+
34
+ main {
35
+ flex-grow: 1;
36
+ }
37
+
38
+ h1,
39
+ h2,
40
+ h3,
41
+ h4,
42
+ h5,
43
+ h6 {
44
+ margin: 0 0 0.5em;
45
+ color: var(--color-text-dark);
46
+ font-family: var(--font-secondary);
47
+ font-weight: 700;
48
+ line-height: 1.25;
49
+ }
50
+
51
+ h1 {
52
+ font-size: var(--text-h1-sm);
53
+ }
54
+
55
+ h2 {
56
+ font-size: var(--text-h4);
57
+ margin-top: 2.2rem;
58
+ }
59
+
60
+ h3 {
61
+ font-size: var(--text-h6);
62
+ margin-top: 1.4rem;
63
+ }
64
+
65
+ @media (min-width: 768px) {
66
+ h1 {
67
+ font-size: var(--text-h1);
68
+ }
69
+ }
70
+
71
+ p {
72
+ margin: 0 0 1rem;
73
+ }
74
+
75
+ a {
76
+ color: var(--color-text-dark);
77
+ text-decoration-color: var(--color-accent);
78
+ text-underline-offset: 0.2em;
79
+ }
80
+
81
+ a:hover {
82
+ color: var(--color-accent);
83
+ }
84
+
85
+ strong,
86
+ b,
87
+ dt {
88
+ color: var(--color-text-dark);
89
+ font-weight: 600;
90
+ }
91
+
92
+ code {
93
+ font-size: 0.9em;
94
+ overflow-wrap: anywhere;
95
+ }
96
+
97
+ :focus-visible {
98
+ outline: 3px solid var(--color-accent);
99
+ outline-offset: 2px;
100
+ }
101
+
102
+ [hidden] {
103
+ display: none !important;
104
+ }
105
+
106
+ .visually-hidden {
107
+ position: absolute;
108
+ width: 1px;
109
+ height: 1px;
110
+ margin: -1px;
111
+ overflow: hidden;
112
+ clip-path: inset(50%);
113
+ white-space: nowrap;
114
+ }
115
+
116
+ .skip-link {
117
+ position: absolute;
118
+ left: 1rem;
119
+ top: -4rem;
120
+ z-index: 50;
121
+ padding: 0.5rem 1rem;
122
+ border-radius: var(--radius);
123
+ background: var(--color-primary);
124
+ color: var(--color-on-primary);
125
+ }
126
+
127
+ .skip-link:focus {
128
+ top: 1rem;
129
+ }
130
+
131
+ .container {
132
+ width: 100%;
133
+ max-width: var(--container);
134
+ margin: 0 auto;
135
+ padding: 0 1rem;
136
+ }
137
+
138
+ .section {
139
+ padding: 2.5rem 0 4rem;
140
+ }
141
+
142
+ .lead {
143
+ max-width: 48rem;
144
+ color: var(--color-text);
145
+ font-size: 1.125rem;
146
+ }
147
+
148
+ .muted {
149
+ color: var(--color-text-light);
150
+ }
151
+
152
+ /* Header: brand on the left, navigation, theme switch on the right (Astroplate's header). */
153
+
154
+ .header {
155
+ position: sticky;
156
+ top: 0;
157
+ z-index: 30;
158
+ padding: 1.25rem 0;
159
+ border-bottom: 1px solid var(--color-border);
160
+ background: var(--color-body);
161
+ }
162
+
163
+ .navbar {
164
+ display: flex;
165
+ flex-wrap: wrap;
166
+ align-items: center;
167
+ justify-content: space-between;
168
+ gap: 0.5rem 1.5rem;
169
+ }
170
+
171
+ .navbar-brand {
172
+ display: inline-flex;
173
+ align-items: center;
174
+ gap: 0.5rem;
175
+ color: var(--color-text-dark);
176
+ font-family: var(--font-secondary);
177
+ font-size: 1.35rem;
178
+ font-weight: 700;
179
+ text-decoration: none;
180
+ }
181
+
182
+ .navbar-nav {
183
+ display: flex;
184
+ flex-wrap: wrap;
185
+ gap: 0 1.5rem;
186
+ margin: 0 auto 0 1rem;
187
+ padding: 0;
188
+ list-style: none;
189
+ }
190
+
191
+ .nav-link {
192
+ display: block;
193
+ padding: 0.5rem;
194
+ color: var(--color-text-dark);
195
+ font-weight: 600;
196
+ text-decoration: none;
197
+ transition: color 0.2s;
198
+ }
199
+
200
+ .nav-link:hover {
201
+ color: var(--color-accent);
202
+ }
203
+
204
+ .nav-link[aria-current="page"] {
205
+ text-decoration: underline;
206
+ text-decoration-color: var(--color-accent);
207
+ text-decoration-thickness: 2px;
208
+ text-underline-offset: 8px;
209
+ }
210
+
211
+ /* Theme switch: Astroplate's sliding knob with a sun and a moon, as a real button. */
212
+
213
+ .theme-switch {
214
+ position: relative;
215
+ display: inline-flex;
216
+ align-items: center;
217
+ width: 2.75rem;
218
+ height: 1.25rem;
219
+ padding: 0;
220
+ border: 0;
221
+ border-radius: 1rem;
222
+ background: var(--color-border);
223
+ cursor: pointer;
224
+ }
225
+
226
+ .theme-switch-knob {
227
+ position: absolute;
228
+ top: -0.25rem;
229
+ left: 0;
230
+ display: flex;
231
+ align-items: center;
232
+ justify-content: center;
233
+ width: 1.75rem;
234
+ height: 1.75rem;
235
+ border-radius: 50%;
236
+ background: var(--color-dark);
237
+ transition: left 0.3s;
238
+ }
239
+
240
+ .theme-switch[aria-checked="true"] .theme-switch-knob {
241
+ left: 1rem;
242
+ }
243
+
244
+ .theme-switch .icon-moon,
245
+ .theme-switch[aria-checked="true"] .icon-sun {
246
+ display: none;
247
+ }
248
+
249
+ .theme-switch[aria-checked="true"] .icon-moon {
250
+ display: block;
251
+ }
252
+
253
+ /* Footer: brand and links, then the view, version and theme credit (Astroplate's footer). */
254
+
255
+ .footer {
256
+ margin-top: 3rem;
257
+ background: var(--color-light);
258
+ }
259
+
260
+ .footer-main {
261
+ display: flex;
262
+ flex-wrap: wrap;
263
+ align-items: center;
264
+ justify-content: space-between;
265
+ gap: 1rem;
266
+ padding: 2rem 1rem;
267
+ }
268
+
269
+ .footer-links {
270
+ display: flex;
271
+ flex-wrap: wrap;
272
+ gap: 0.5rem 1.5rem;
273
+ margin: 0;
274
+ padding: 0;
275
+ list-style: none;
276
+ }
277
+
278
+ .footer-bottom {
279
+ padding: 1.25rem 0;
280
+ border-top: 1px solid var(--color-border);
281
+ color: var(--color-text-light);
282
+ text-align: center;
283
+ }
284
+
285
+ .footer-bottom p {
286
+ margin: 0;
287
+ }
288
+
289
+ /* Buttons and form controls. */
290
+
291
+ .btn {
292
+ display: inline-flex;
293
+ align-items: center;
294
+ gap: 0.4rem;
295
+ min-height: 2.25rem;
296
+ padding: 0.35rem 0.9rem;
297
+ border: var(--frame-outline);
298
+ border-radius: var(--radius);
299
+ box-shadow: var(--frame-shadow);
300
+ background: transparent;
301
+ color: var(--color-text-dark);
302
+ font: inherit;
303
+ font-weight: 600;
304
+ cursor: pointer;
305
+ transition: background 0.2s, color 0.2s;
306
+ }
307
+
308
+ .btn:hover,
309
+ .btn[aria-pressed="true"] {
310
+ background: var(--color-primary);
311
+ color: var(--color-on-primary);
312
+ }
313
+
314
+ .btn svg,
315
+ .theme-switch svg {
316
+ display: block;
317
+ }
318
+
319
+ .btn .icon {
320
+ display: inline-flex;
321
+ }
322
+
323
+ input[type="search"],
324
+ select {
325
+ min-height: 2.25rem;
326
+ padding: 0.3rem 0.6rem;
327
+ border: 1px solid var(--color-border);
328
+ border-radius: var(--radius);
329
+ background: var(--color-body);
330
+ color: var(--color-text-dark);
331
+ font: inherit;
332
+ }
333
+
334
+ .field {
335
+ display: flex;
336
+ flex-direction: column;
337
+ gap: 0.25rem;
338
+ font-size: 0.9rem;
339
+ font-weight: 600;
340
+ color: var(--color-text-dark);
341
+ }
342
+
343
+ /* Tables, as Astroplate's prose tables: rounded border, light header. */
344
+
345
+ .table-wrap {
346
+ overflow-x: auto;
347
+ border: 1px solid var(--color-border);
348
+ border-radius: var(--radius);
349
+ }
350
+
351
+ table {
352
+ width: 100%;
353
+ border-collapse: collapse;
354
+ }
355
+
356
+ th,
357
+ td {
358
+ padding: 0.75rem 1rem;
359
+ border-bottom: 1px solid var(--color-border);
360
+ text-align: left;
361
+ vertical-align: top;
362
+ }
363
+
364
+ thead th {
365
+ background: var(--color-light);
366
+ color: var(--color-text-dark);
367
+ font-weight: 600;
368
+ }
369
+
370
+ tbody tr:last-child td {
371
+ border-bottom: 0;
372
+ }
373
+
374
+ /* Definition lists for item fields. */
375
+
376
+ .fields {
377
+ display: grid;
378
+ grid-template-columns: minmax(8rem, max-content) 1fr;
379
+ gap: 0.4rem 1.5rem;
380
+ margin: 0;
381
+ }
382
+
383
+ .fields dd {
384
+ margin: 0;
385
+ overflow-wrap: anywhere;
386
+ }
387
+
388
+ .card {
389
+ padding: 1.25rem 1.5rem;
390
+ border: var(--frame-outline);
391
+ border-radius: var(--radius);
392
+ background: var(--color-body);
393
+ box-shadow: var(--frame-shadow);
394
+ }
395
+
396
+ .plain-list {
397
+ margin: 0;
398
+ padding-left: 1.2rem;
399
+ }
400
+
401
+ .plain-list li {
402
+ margin: 0.2rem 0;
403
+ }
404
+
405
+ .tags {
406
+ display: flex;
407
+ flex-wrap: wrap;
408
+ gap: 0.4rem;
409
+ margin: 0;
410
+ padding: 0;
411
+ list-style: none;
412
+ }
413
+
414
+ .tags li {
415
+ padding: 0 0.6rem;
416
+ border: var(--frame-outline);
417
+ border-radius: 1rem;
418
+ box-shadow: var(--frame-shadow);
419
+ font-size: 0.9rem;
420
+ }
421
+
422
+ /* Diagrams: one SVG per theme, the other is not displayed. */
423
+
424
+ .diagram {
425
+ overflow-x: auto;
426
+ margin: 0 0 1rem;
427
+ border: 1px solid var(--color-border);
428
+ border-radius: var(--radius);
429
+ }
430
+
431
+ .diagram svg {
432
+ display: block;
433
+ max-width: none;
434
+ height: auto;
435
+ }
436
+
437
+ /* The neighbourhood diagram is drawn for a wide column and scaled to fill it; on a narrow screen it
438
+ keeps a readable size and scrolls instead. */
439
+ .diagram-wide svg {
440
+ width: 100%;
441
+ min-width: 52rem;
442
+ }
443
+
444
+ .themed-dark {
445
+ display: none;
446
+ }
447
+
448
+ :root[data-theme="dark"] .themed-light {
449
+ display: none;
450
+ }
451
+
452
+ :root[data-theme="dark"] .themed-dark {
453
+ display: revert;
454
+ }
455
+
456
+ @media (prefers-color-scheme: dark) {
457
+ :root:not([data-theme="light"]) .themed-light {
458
+ display: none;
459
+ }
460
+
461
+ :root:not([data-theme="light"]) .themed-dark {
462
+ display: revert;
463
+ }
464
+ }
465
+
466
+ .diagram [data-ref] {
467
+ cursor: pointer;
468
+ }
469
+
470
+ .diagram [data-ref]:focus-visible {
471
+ outline: 3px solid var(--color-accent);
472
+ }
473
+
474
+ .badge {
475
+ display: inline-block;
476
+ vertical-align: middle;
477
+ }
478
+
479
+ .badge svg {
480
+ display: block;
481
+ }
@@ -0,0 +1,60 @@
1
+ /* Heebo (text) and Signika (headings), the fonts of brunosouzas.com, and Lato (the map and the
2
+ diagrams, as in the site's illustrations), from the @fontsource packages (SIL Open Font License 1.1).
3
+ The build copies the files into src/fonts/; Vite emits them next to the stylesheet in _astro/ and
4
+ the build makes these url()s relative. No font is fetched from the network. */
5
+
6
+ @font-face {
7
+ font-family: "Heebo";
8
+ font-style: normal;
9
+ font-weight: 400;
10
+ font-display: swap;
11
+ src: url("../fonts/heebo-latin-400-normal.woff2") format("woff2");
12
+ }
13
+
14
+ @font-face {
15
+ font-family: "Heebo";
16
+ font-style: normal;
17
+ font-weight: 600;
18
+ font-display: swap;
19
+ src: url("../fonts/heebo-latin-600-normal.woff2") format("woff2");
20
+ }
21
+
22
+ @font-face {
23
+ font-family: "Signika";
24
+ font-style: normal;
25
+ font-weight: 500;
26
+ font-display: swap;
27
+ src: url("../fonts/signika-latin-500-normal.woff2") format("woff2");
28
+ }
29
+
30
+ @font-face {
31
+ font-family: "Signika";
32
+ font-style: normal;
33
+ font-weight: 700;
34
+ font-display: swap;
35
+ src: url("../fonts/signika-latin-700-normal.woff2") format("woff2");
36
+ }
37
+
38
+ @font-face {
39
+ font-family: "Lato";
40
+ font-style: normal;
41
+ font-weight: 400;
42
+ font-display: swap;
43
+ src: url("../fonts/lato-latin-400-normal.woff2") format("woff2");
44
+ }
45
+
46
+ @font-face {
47
+ font-family: "Lato";
48
+ font-style: normal;
49
+ font-weight: 700;
50
+ font-display: swap;
51
+ src: url("../fonts/lato-latin-700-normal.woff2") format("woff2");
52
+ }
53
+
54
+ @font-face {
55
+ font-family: "Lato";
56
+ font-style: normal;
57
+ font-weight: 900;
58
+ font-display: swap;
59
+ src: url("../fonts/lato-latin-900-normal.woff2") format("woff2");
60
+ }
@@ -0,0 +1 @@
1
+ /* Replaced at build time by stackledger with the light-theme colours of spec.site.colors (validated #RRGGBB values). Empty by default. */