@brunosouzas/stackledger 0.0.0-stage → 0.4.1

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 (307) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +260 -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 +59 -0
  103. package/dist/map/layout.js +197 -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 +138 -0
  110. package/dist/map/neighbourhood.js.map +1 -0
  111. package/dist/map/parallel.d.ts +21 -0
  112. package/dist/map/parallel.js +174 -0
  113. package/dist/map/parallel.js.map +1 -0
  114. package/dist/map/relations.d.ts +39 -0
  115. package/dist/map/relations.js +127 -0
  116. package/dist/map/relations.js.map +1 -0
  117. package/dist/map/route.d.ts +25 -0
  118. package/dist/map/route.js +165 -0
  119. package/dist/map/route.js.map +1 -0
  120. package/dist/map/strip.d.ts +29 -0
  121. package/dist/map/strip.js +122 -0
  122. package/dist/map/strip.js.map +1 -0
  123. package/dist/map/suggest.d.ts +21 -0
  124. package/dist/map/suggest.js +97 -0
  125. package/dist/map/suggest.js.map +1 -0
  126. package/dist/map/svg.d.ts +22 -0
  127. package/dist/map/svg.js +232 -0
  128. package/dist/map/svg.js.map +1 -0
  129. package/dist/map/themes.d.ts +61 -0
  130. package/dist/map/themes.js +78 -0
  131. package/dist/map/themes.js.map +1 -0
  132. package/dist/map/xml.d.ts +8 -0
  133. package/dist/map/xml.js +68 -0
  134. package/dist/map/xml.js.map +1 -0
  135. package/dist/map/zones.d.ts +19 -0
  136. package/dist/map/zones.js +46 -0
  137. package/dist/map/zones.js.map +1 -0
  138. package/dist/mcp.d.ts +2 -0
  139. package/dist/mcp.js +145 -0
  140. package/dist/mcp.js.map +1 -0
  141. package/dist/money.d.ts +32 -0
  142. package/dist/money.js +91 -0
  143. package/dist/money.js.map +1 -0
  144. package/dist/report-command.d.ts +3 -0
  145. package/dist/report-command.js +85 -0
  146. package/dist/report-command.js.map +1 -0
  147. package/dist/report-formats.d.ts +11 -0
  148. package/dist/report-formats.js +157 -0
  149. package/dist/report-formats.js.map +1 -0
  150. package/dist/reports.d.ts +105 -0
  151. package/dist/reports.js +247 -0
  152. package/dist/reports.js.map +1 -0
  153. package/dist/scaffold.d.ts +30 -0
  154. package/dist/scaffold.js +140 -0
  155. package/dist/scaffold.js.map +1 -0
  156. package/dist/schema.d.ts +330 -0
  157. package/dist/schema.js +116 -0
  158. package/dist/schema.js.map +1 -0
  159. package/dist/secrets.d.ts +7 -0
  160. package/dist/secrets.js +68 -0
  161. package/dist/secrets.js.map +1 -0
  162. package/dist/site/build.d.ts +22 -0
  163. package/dist/site/build.js +196 -0
  164. package/dist/site/build.js.map +1 -0
  165. package/dist/site/command.d.ts +2 -0
  166. package/dist/site/command.js +221 -0
  167. package/dist/site/command.js.map +1 -0
  168. package/dist/site/data.d.ts +205 -0
  169. package/dist/site/data.js +241 -0
  170. package/dist/site/data.js.map +1 -0
  171. package/dist/site/fs-ops.d.ts +35 -0
  172. package/dist/site/fs-ops.js +26 -0
  173. package/dist/site/fs-ops.js.map +1 -0
  174. package/dist/site/owners.d.ts +5 -0
  175. package/dist/site/owners.js +50 -0
  176. package/dist/site/owners.js.map +1 -0
  177. package/dist/site/paths.d.ts +34 -0
  178. package/dist/site/paths.js +48 -0
  179. package/dist/site/paths.js.map +1 -0
  180. package/dist/site/policy.d.ts +17 -0
  181. package/dist/site/policy.js +26 -0
  182. package/dist/site/policy.js.map +1 -0
  183. package/dist/site/publish.d.ts +14 -0
  184. package/dist/site/publish.js +90 -0
  185. package/dist/site/publish.js.map +1 -0
  186. package/dist/site/relative.d.ts +14 -0
  187. package/dist/site/relative.js +265 -0
  188. package/dist/site/relative.js.map +1 -0
  189. package/dist/site/skills-build.d.ts +22 -0
  190. package/dist/site/skills-build.js +126 -0
  191. package/dist/site/skills-build.js.map +1 -0
  192. package/dist/site/skills-data.d.ts +89 -0
  193. package/dist/site/skills-data.js +94 -0
  194. package/dist/site/skills-data.js.map +1 -0
  195. package/dist/site/staging.d.ts +19 -0
  196. package/dist/site/staging.js +76 -0
  197. package/dist/site/staging.js.map +1 -0
  198. package/dist/skills/command.d.ts +8 -0
  199. package/dist/skills/command.js +64 -0
  200. package/dist/skills/command.js.map +1 -0
  201. package/dist/skills/frontmatter.d.ts +37 -0
  202. package/dist/skills/frontmatter.js +219 -0
  203. package/dist/skills/frontmatter.js.map +1 -0
  204. package/dist/skills/graph.d.ts +39 -0
  205. package/dist/skills/graph.js +100 -0
  206. package/dist/skills/graph.js.map +1 -0
  207. package/dist/skills/ignore.d.ts +34 -0
  208. package/dist/skills/ignore.js +138 -0
  209. package/dist/skills/ignore.js.map +1 -0
  210. package/dist/skills/lines.d.ts +53 -0
  211. package/dist/skills/lines.js +221 -0
  212. package/dist/skills/lines.js.map +1 -0
  213. package/dist/skills/map-command.d.ts +28 -0
  214. package/dist/skills/map-command.js +533 -0
  215. package/dist/skills/map-command.js.map +1 -0
  216. package/dist/skills/mermaid.d.ts +29 -0
  217. package/dist/skills/mermaid.js +261 -0
  218. package/dist/skills/mermaid.js.map +1 -0
  219. package/dist/skills/metro.d.ts +8 -0
  220. package/dist/skills/metro.js +93 -0
  221. package/dist/skills/metro.js.map +1 -0
  222. package/dist/skills/read.d.ts +17 -0
  223. package/dist/skills/read.js +54 -0
  224. package/dist/skills/read.js.map +1 -0
  225. package/dist/skills/rules.d.ts +28 -0
  226. package/dist/skills/rules.js +57 -0
  227. package/dist/skills/rules.js.map +1 -0
  228. package/dist/skills/source.d.ts +66 -0
  229. package/dist/skills/source.js +281 -0
  230. package/dist/skills/source.js.map +1 -0
  231. package/dist/skills/walk.d.ts +64 -0
  232. package/dist/skills/walk.js +281 -0
  233. package/dist/skills/walk.js.map +1 -0
  234. package/dist/source.d.ts +40 -0
  235. package/dist/source.js +199 -0
  236. package/dist/source.js.map +1 -0
  237. package/dist/stdout.d.ts +2 -0
  238. package/dist/stdout.js +24 -0
  239. package/dist/stdout.js.map +1 -0
  240. package/dist/validate.d.ts +45 -0
  241. package/dist/validate.js +321 -0
  242. package/dist/validate.js.map +1 -0
  243. package/dist/views.d.ts +25 -0
  244. package/dist/views.js +58 -0
  245. package/dist/views.js.map +1 -0
  246. package/examples/catalogue-repository/.github/workflows/stackledger.yml +122 -0
  247. package/examples/catalogue-repository/README.md +96 -0
  248. package/examples/catalogue-repository/catalog/catalog-info.yaml +12 -0
  249. package/examples/hosting/Caddyfile +69 -0
  250. package/examples/northwind/catalog-info.yaml +680 -0
  251. package/examples/northwind/stackledger.yaml +16 -0
  252. package/examples/northwind-machine/snapshot.json +309 -0
  253. package/examples/northwind-skills/agents/builder.md +10 -0
  254. package/examples/northwind-skills/agents/reviewer.md +10 -0
  255. package/examples/northwind-skills/designer/SKILL.md +8 -0
  256. package/examples/northwind-skills/editor/SKILL.md +8 -0
  257. package/examples/northwind-skills/engineering/SKILL.md +12 -0
  258. package/examples/northwind-skills/linter/SKILL.md +8 -0
  259. package/examples/northwind-skills/linter/rules.md +5 -0
  260. package/examples/northwind-skills/publishing/SKILL.md +12 -0
  261. package/examples/northwind-skills/publishing/rules.md +5 -0
  262. package/examples/northwind-skills/spec-writer/SKILL.md +8 -0
  263. package/examples/northwind-skills/stackledger-skills.yaml +51 -0
  264. package/examples/northwind-skills/tester/SKILL.md +10 -0
  265. package/examples/northwind-skills/writer/SKILL.md +8 -0
  266. package/examples/northwind-skills/writer/rules.md +6 -0
  267. package/npm-shrinkwrap.json +4995 -0
  268. package/package.json +51 -4
  269. package/site/LICENSE-astroplate +21 -0
  270. package/site/README.md +18 -0
  271. package/site/package.json +6 -0
  272. package/site/public/favicon.svg +1 -0
  273. package/site/src/components/Footer.astro +25 -0
  274. package/site/src/components/Header.astro +35 -0
  275. package/site/src/components/Impact.astro +55 -0
  276. package/site/src/components/LinkOrText.astro +12 -0
  277. package/site/src/components/SkillItem.astro +141 -0
  278. package/site/src/components/SubNav.astro +40 -0
  279. package/site/src/components/ThemeSwitch.astro +16 -0
  280. package/site/src/components/Themed.astro +14 -0
  281. package/site/src/layouts/Base.astro +52 -0
  282. package/site/src/lib/site.ts +25 -0
  283. package/site/src/pages/[reports].astro +222 -0
  284. package/site/src/pages/agents/[file].astro +14 -0
  285. package/site/src/pages/index.astro +71 -0
  286. package/site/src/pages/journeys/[name].astro +50 -0
  287. package/site/src/pages/journeys/index.astro +37 -0
  288. package/site/src/pages/licences/[name].astro +56 -0
  289. package/site/src/pages/map/index.astro +78 -0
  290. package/site/src/pages/playbooks/[file].astro +14 -0
  291. package/site/src/pages/rules/[...rules].astro +61 -0
  292. package/site/src/pages/skill-map/[...map].astro +101 -0
  293. package/site/src/pages/skills/[...list].astro +75 -0
  294. package/site/src/pages/skills/[file].astro +14 -0
  295. package/site/src/pages/software/[name].astro +155 -0
  296. package/site/src/pages/software/index.astro +71 -0
  297. package/site/src/scripts/diagram.ts +8 -0
  298. package/site/src/scripts/links.ts +31 -0
  299. package/site/src/scripts/map.ts +133 -0
  300. package/site/src/scripts/software.ts +32 -0
  301. package/site/src/scripts/theme.ts +52 -0
  302. package/site/src/styles/base.css +470 -0
  303. package/site/src/styles/fonts.css +60 -0
  304. package/site/src/styles/override.css +1 -0
  305. package/site/src/styles/pages.css +299 -0
  306. package/site/src/styles/tokens.css +71 -0
  307. package/skills/stackledger/SKILL.md +155 -0
@@ -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,470 @@
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
+ color: var(--color-text-dark);
173
+ font-family: var(--font-secondary);
174
+ font-size: 1.35rem;
175
+ font-weight: 700;
176
+ text-decoration: none;
177
+ }
178
+
179
+ .navbar-nav {
180
+ display: flex;
181
+ flex-wrap: wrap;
182
+ gap: 0 1.5rem;
183
+ margin: 0 auto 0 1rem;
184
+ padding: 0;
185
+ list-style: none;
186
+ }
187
+
188
+ .nav-link {
189
+ display: block;
190
+ padding: 0.5rem;
191
+ color: var(--color-text-dark);
192
+ font-weight: 600;
193
+ text-decoration: none;
194
+ transition: color 0.2s;
195
+ }
196
+
197
+ .nav-link:hover {
198
+ color: var(--color-accent);
199
+ }
200
+
201
+ .nav-link[aria-current="page"] {
202
+ text-decoration: underline;
203
+ text-decoration-color: var(--color-accent);
204
+ text-decoration-thickness: 2px;
205
+ text-underline-offset: 8px;
206
+ }
207
+
208
+ /* Theme switch: Astroplate's sliding knob with a sun and a moon, as a real button. */
209
+
210
+ .theme-switch {
211
+ position: relative;
212
+ display: inline-flex;
213
+ align-items: center;
214
+ width: 2.75rem;
215
+ height: 1.25rem;
216
+ padding: 0;
217
+ border: 0;
218
+ border-radius: 1rem;
219
+ background: var(--color-border);
220
+ cursor: pointer;
221
+ }
222
+
223
+ .theme-switch-knob {
224
+ position: absolute;
225
+ top: -0.25rem;
226
+ left: 0;
227
+ display: flex;
228
+ align-items: center;
229
+ justify-content: center;
230
+ width: 1.75rem;
231
+ height: 1.75rem;
232
+ border-radius: 50%;
233
+ background: var(--color-dark);
234
+ transition: left 0.3s;
235
+ }
236
+
237
+ .theme-switch[aria-checked="true"] .theme-switch-knob {
238
+ left: 1rem;
239
+ }
240
+
241
+ .theme-switch .icon-moon,
242
+ .theme-switch[aria-checked="true"] .icon-sun {
243
+ display: none;
244
+ }
245
+
246
+ .theme-switch[aria-checked="true"] .icon-moon {
247
+ display: block;
248
+ }
249
+
250
+ /* Footer: brand and links, then the view, version and theme credit (Astroplate's footer). */
251
+
252
+ .footer {
253
+ margin-top: 3rem;
254
+ background: var(--color-light);
255
+ }
256
+
257
+ .footer-main {
258
+ display: flex;
259
+ flex-wrap: wrap;
260
+ align-items: center;
261
+ justify-content: space-between;
262
+ gap: 1rem;
263
+ padding: 2rem 1rem;
264
+ }
265
+
266
+ .footer-links {
267
+ display: flex;
268
+ flex-wrap: wrap;
269
+ gap: 0.5rem 1.5rem;
270
+ margin: 0;
271
+ padding: 0;
272
+ list-style: none;
273
+ }
274
+
275
+ .footer-bottom {
276
+ padding: 1.25rem 0;
277
+ border-top: 1px solid var(--color-border);
278
+ color: var(--color-text-light);
279
+ text-align: center;
280
+ }
281
+
282
+ .footer-bottom p {
283
+ margin: 0;
284
+ }
285
+
286
+ /* Buttons and form controls. */
287
+
288
+ .btn {
289
+ display: inline-flex;
290
+ align-items: center;
291
+ gap: 0.4rem;
292
+ min-height: 2.25rem;
293
+ padding: 0.35rem 0.9rem;
294
+ border: 1px solid var(--color-dark);
295
+ border-radius: var(--radius);
296
+ background: transparent;
297
+ color: var(--color-text-dark);
298
+ font: inherit;
299
+ font-weight: 600;
300
+ cursor: pointer;
301
+ transition: background 0.2s, color 0.2s;
302
+ }
303
+
304
+ .btn:hover,
305
+ .btn[aria-pressed="true"] {
306
+ background: var(--color-primary);
307
+ color: var(--color-on-primary);
308
+ }
309
+
310
+ .btn svg {
311
+ display: block;
312
+ }
313
+
314
+ input[type="search"],
315
+ select {
316
+ min-height: 2.25rem;
317
+ padding: 0.3rem 0.6rem;
318
+ border: 1px solid var(--color-border);
319
+ border-radius: var(--radius);
320
+ background: var(--color-body);
321
+ color: var(--color-text-dark);
322
+ font: inherit;
323
+ }
324
+
325
+ .field {
326
+ display: flex;
327
+ flex-direction: column;
328
+ gap: 0.25rem;
329
+ font-size: 0.9rem;
330
+ font-weight: 600;
331
+ color: var(--color-text-dark);
332
+ }
333
+
334
+ /* Tables, as Astroplate's prose tables: rounded border, light header. */
335
+
336
+ .table-wrap {
337
+ overflow-x: auto;
338
+ border: 1px solid var(--color-border);
339
+ border-radius: var(--radius);
340
+ }
341
+
342
+ table {
343
+ width: 100%;
344
+ border-collapse: collapse;
345
+ }
346
+
347
+ th,
348
+ td {
349
+ padding: 0.75rem 1rem;
350
+ border-bottom: 1px solid var(--color-border);
351
+ text-align: left;
352
+ vertical-align: top;
353
+ }
354
+
355
+ thead th {
356
+ background: var(--color-light);
357
+ color: var(--color-text-dark);
358
+ font-weight: 600;
359
+ }
360
+
361
+ tbody tr:last-child td {
362
+ border-bottom: 0;
363
+ }
364
+
365
+ /* Definition lists for item fields. */
366
+
367
+ .fields {
368
+ display: grid;
369
+ grid-template-columns: minmax(8rem, max-content) 1fr;
370
+ gap: 0.4rem 1.5rem;
371
+ margin: 0;
372
+ }
373
+
374
+ .fields dd {
375
+ margin: 0;
376
+ overflow-wrap: anywhere;
377
+ }
378
+
379
+ .card {
380
+ padding: 1.25rem 1.5rem;
381
+ border: 1px solid var(--color-border);
382
+ border-radius: var(--radius);
383
+ background: var(--color-body);
384
+ }
385
+
386
+ .plain-list {
387
+ margin: 0;
388
+ padding-left: 1.2rem;
389
+ }
390
+
391
+ .plain-list li {
392
+ margin: 0.2rem 0;
393
+ }
394
+
395
+ .tags {
396
+ display: flex;
397
+ flex-wrap: wrap;
398
+ gap: 0.4rem;
399
+ margin: 0;
400
+ padding: 0;
401
+ list-style: none;
402
+ }
403
+
404
+ .tags li {
405
+ padding: 0 0.6rem;
406
+ border: 1px solid var(--color-border);
407
+ border-radius: 1rem;
408
+ font-size: 0.9rem;
409
+ }
410
+
411
+ /* Diagrams: one SVG per theme, the other is not displayed. */
412
+
413
+ .diagram {
414
+ overflow-x: auto;
415
+ margin: 0 0 1rem;
416
+ border: 1px solid var(--color-border);
417
+ border-radius: var(--radius);
418
+ }
419
+
420
+ .diagram svg {
421
+ display: block;
422
+ max-width: none;
423
+ height: auto;
424
+ }
425
+
426
+ /* The neighbourhood diagram is drawn for a wide column and scaled to fill it; on a narrow screen it
427
+ keeps a readable size and scrolls instead. */
428
+ .diagram-wide svg {
429
+ width: 100%;
430
+ min-width: 52rem;
431
+ }
432
+
433
+ .themed-dark {
434
+ display: none;
435
+ }
436
+
437
+ :root[data-theme="dark"] .themed-light {
438
+ display: none;
439
+ }
440
+
441
+ :root[data-theme="dark"] .themed-dark {
442
+ display: block;
443
+ }
444
+
445
+ @media (prefers-color-scheme: dark) {
446
+ :root:not([data-theme="light"]) .themed-light {
447
+ display: none;
448
+ }
449
+
450
+ :root:not([data-theme="light"]) .themed-dark {
451
+ display: block;
452
+ }
453
+ }
454
+
455
+ .diagram [data-ref] {
456
+ cursor: pointer;
457
+ }
458
+
459
+ .diagram [data-ref]:focus-visible {
460
+ outline: 3px solid var(--color-accent);
461
+ }
462
+
463
+ .badge {
464
+ display: inline-block;
465
+ vertical-align: middle;
466
+ }
467
+
468
+ .badge svg {
469
+ display: block;
470
+ }
@@ -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. */