@purview-dev/pm-docs-site 0.0.0-stage → 0.1.0-pre.2
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.
- package/LICENSE.md +9 -0
- package/README.md +219 -2
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +90 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +118 -0
- package/dist/options.d.ts +5 -0
- package/dist/options.js +46 -0
- package/dist/repo-docs.d.ts +33 -0
- package/dist/repo-docs.js +94 -0
- package/dist/schema-version.d.ts +10 -0
- package/dist/schema-version.js +19 -0
- package/dist/sidebar.d.ts +10 -0
- package/dist/sidebar.js +30 -0
- package/dist/site-options.d.ts +9 -0
- package/dist/site-options.js +39 -0
- package/dist/types.d.ts +47 -0
- package/dist/types.js +4 -0
- package/lib/repo-docs.ts +124 -0
- package/lib/schema-version.ts +24 -0
- package/package.json +68 -5
- package/src/components/ExportStamp.astro +29 -0
- package/src/components/FeatureSummary.astro +160 -0
- package/src/components/FeatureTable.astro +64 -0
- package/src/components/ItemDetail.astro +16 -0
- package/src/components/ItemDialog.astro +16 -0
- package/src/components/LinkedFrom.astro +33 -0
- package/src/components/LinkedText.astro +12 -0
- package/src/components/PlanInteractions.astro +30 -0
- package/src/components/RefLink.astro +18 -0
- package/src/components/StateBadge.astro +15 -0
- package/src/components/board/Board.tsx +244 -0
- package/src/components/board/KanbanItemCard.tsx +129 -0
- package/src/components/board/LinkRuns.tsx +21 -0
- package/src/components/board/TaskKanbanCard.tsx +81 -0
- package/src/components/board/useBoardUrlState.ts +41 -0
- package/src/components/lib/KanbanItemCard.astro +264 -0
- package/src/components/lib/StatusTimelineFeed.astro +194 -0
- package/src/components/lib/TaskKanbanCard.astro +215 -0
- package/src/components/timeline/Timeline.tsx +159 -0
- package/src/components/timeline/useTimelineLayout.ts +39 -0
- package/src/content.config.ts +16 -0
- package/src/env.d.ts +7 -0
- package/src/lib/board-data.ts +84 -0
- package/src/lib/board.ts +209 -0
- package/src/lib/planning-types.ts +207 -0
- package/src/lib/planning.ts +415 -0
- package/src/lib/references.ts +360 -0
- package/src/lib/timeline.ts +156 -0
- package/src/loaders/repo-docs.ts +69 -0
- package/src/pages/index.astro +158 -0
- package/src/pages/plan/board.astro +41 -0
- package/src/pages/plan/log.astro +83 -0
- package/src/pages/plan/risks/[id].astro +72 -0
- package/src/pages/plan/risks.astro +263 -0
- package/src/pages/plan/roadmap.astro +108 -0
- package/src/routes/plan/briefs.astro +66 -0
- package/src/routes/plan/features/[id].astro +113 -0
- package/src/routes/plan/features/index.astro +29 -0
- package/src/routes/plan/inbox.astro +78 -0
- package/src/routes/plan/milestones/[milestone].astro +113 -0
- package/src/routes/plan/milestones/index.astro +56 -0
- package/src/routes/plan/now.astro +135 -0
- package/src/routes/plan/strategy.astro +194 -0
- package/src/scripts/plan.ts +40 -0
- package/src/styles/components.css +491 -0
- package/src/styles/kanban.css +277 -0
- package/src/styles/timeline.css +210 -0
- package/src/styles/width.css +4 -0
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The astrocomponents.dev components read a small set of design tokens
|
|
3
|
+
* (--c-primary, --c-text-1, --r-md, --font-sans, …). They map onto Starlight's
|
|
4
|
+
* theme variables here, which Starlight switches between light and dark.
|
|
5
|
+
*/
|
|
6
|
+
:root {
|
|
7
|
+
--c-primary: var(--sl-color-accent);
|
|
8
|
+
--c-primary-light: var(--sl-color-accent-high);
|
|
9
|
+
--c-text-1: var(--sl-color-white);
|
|
10
|
+
--c-text-2: var(--sl-color-gray-2);
|
|
11
|
+
--c-text-3: var(--sl-color-gray-3);
|
|
12
|
+
--r-md: 10px;
|
|
13
|
+
--sp-4: 0.9rem;
|
|
14
|
+
--font-sans: var(--sl-font);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* A kanban board: always one row of five columns, scrolling sideways when the
|
|
18
|
+
page is narrower than the board, never wrapping a column onto a new line.
|
|
19
|
+
The Board island (src/components/board/Board.tsx) puts the filter bar, the
|
|
20
|
+
five column headers, and every lane's five cells in this one grid, so a
|
|
21
|
+
lane's cells sit under their headers and a collapsed column is narrow in
|
|
22
|
+
every row. */
|
|
23
|
+
.plan-columns {
|
|
24
|
+
--plan-open: minmax(11rem, 1fr);
|
|
25
|
+
--plan-shut: 3rem;
|
|
26
|
+
display: grid;
|
|
27
|
+
grid-template-columns: var(--col-now, var(--plan-open)) var(--col-next, var(--plan-open)) var(--col-foryou, var(--plan-open)) var(--col-waiting, var(--plan-open)) var(--col-done, var(--plan-open));
|
|
28
|
+
column-gap: 1rem;
|
|
29
|
+
align-items: stretch;
|
|
30
|
+
overflow-x: auto;
|
|
31
|
+
padding-bottom: 0.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* The filter bar spans the board; it stays hidden until the island hydrates. */
|
|
35
|
+
.plan-board__filters {
|
|
36
|
+
grid-column: 1 / -1;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-wrap: wrap;
|
|
39
|
+
align-items: end;
|
|
40
|
+
gap: 0.75rem 1rem;
|
|
41
|
+
margin-bottom: 1rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.plan-board__filters[hidden] {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.plan-board__filter {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
gap: 0.25rem;
|
|
52
|
+
font-size: var(--sl-text-sm);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.plan-board__filter select,
|
|
56
|
+
.plan-board__clear {
|
|
57
|
+
font: inherit;
|
|
58
|
+
font-size: var(--sl-text-sm);
|
|
59
|
+
padding: 0.3rem 0.5rem;
|
|
60
|
+
border: 1px solid var(--sl-color-hairline);
|
|
61
|
+
border-radius: 6px;
|
|
62
|
+
background: var(--sl-color-bg);
|
|
63
|
+
color: var(--sl-color-text);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.plan-board__clear {
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.plan-board__clear:disabled {
|
|
71
|
+
cursor: default;
|
|
72
|
+
opacity: 0.5;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* The header row and the lanes. It adds no box, so its children stay items of
|
|
76
|
+
the board's grid. While <html> has the pending mark (a board key in the URL,
|
|
77
|
+
PlanInteractions.astro) it is hidden, until the island has rendered that
|
|
78
|
+
state, so a filtered link never shows the unfiltered board. If the island
|
|
79
|
+
never loads and so never clears the mark, the board shows anyway after 3s,
|
|
80
|
+
unfiltered: never a blank board. */
|
|
81
|
+
.plan-board__body {
|
|
82
|
+
display: contents;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:root[data-board-pending] .plan-board__body {
|
|
86
|
+
visibility: hidden;
|
|
87
|
+
animation: plan-board-reveal 0s 3s forwards;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@keyframes plan-board-reveal {
|
|
91
|
+
to {
|
|
92
|
+
visibility: visible;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* A lane is a row of the board's grid: a header across every column, then one cell per column. */
|
|
97
|
+
.plan-lane {
|
|
98
|
+
display: contents;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.plan-lane__header {
|
|
102
|
+
grid-column: 1 / -1;
|
|
103
|
+
display: flex;
|
|
104
|
+
gap: 0.5rem;
|
|
105
|
+
margin-top: 1rem;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.plan-lane__count {
|
|
110
|
+
color: var(--sl-color-gray-3);
|
|
111
|
+
font-weight: 400;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.plan-lane > .plan-column__cards {
|
|
115
|
+
margin-top: 0.5rem;
|
|
116
|
+
padding: 0.75rem;
|
|
117
|
+
border: 1px solid var(--sl-color-hairline);
|
|
118
|
+
border-radius: 12px;
|
|
119
|
+
background: var(--sl-color-bg);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Ungrouped, a column's header and its cards cell read as one column. The
|
|
123
|
+
doubled class outranks `.plan-column`, which is declared below. */
|
|
124
|
+
.plan-column.plan-column--joined {
|
|
125
|
+
border-bottom: 0;
|
|
126
|
+
border-radius: 12px 12px 0 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.plan-lane[data-lane='all'] > .plan-column__cards {
|
|
130
|
+
margin-top: 0;
|
|
131
|
+
padding-top: 0;
|
|
132
|
+
border-top: 0;
|
|
133
|
+
border-radius: 0 0 12px 12px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.plan-column {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
gap: 0.75rem;
|
|
140
|
+
padding: 0.75rem;
|
|
141
|
+
border: 1px solid var(--sl-color-hairline);
|
|
142
|
+
border-radius: 12px;
|
|
143
|
+
background: var(--sl-color-bg);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.plan-column > h2 {
|
|
147
|
+
margin: 0;
|
|
148
|
+
font-size: var(--sl-text-base);
|
|
149
|
+
display: flex;
|
|
150
|
+
justify-content: space-between;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.plan-column > * {
|
|
154
|
+
max-width: none !important;
|
|
155
|
+
margin-top: 0 !important;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.plan-column__toggle {
|
|
159
|
+
all: unset;
|
|
160
|
+
box-sizing: border-box;
|
|
161
|
+
display: flex;
|
|
162
|
+
justify-content: space-between;
|
|
163
|
+
gap: 0.5rem;
|
|
164
|
+
width: 100%;
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
border-radius: 6px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.plan-column__toggle:focus-visible {
|
|
170
|
+
outline: 2px solid var(--sl-color-accent);
|
|
171
|
+
outline-offset: 2px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* A collapsed column (the root attribute, set before paint by
|
|
175
|
+
PlanInteractions.astro and kept by the Board island) is a narrow strip with
|
|
176
|
+
its name and count written down it, and its cards hidden in every lane. */
|
|
177
|
+
:root[data-board-collapsed~='now'] .plan-columns {
|
|
178
|
+
--col-now: var(--plan-shut);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:root[data-board-collapsed~='next'] .plan-columns {
|
|
182
|
+
--col-next: var(--plan-shut);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:root[data-board-collapsed~='foryou'] .plan-columns {
|
|
186
|
+
--col-foryou: var(--plan-shut);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:root[data-board-collapsed~='waiting'] .plan-columns {
|
|
190
|
+
--col-waiting: var(--plan-shut);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:root[data-board-collapsed~='done'] .plan-columns {
|
|
194
|
+
--col-done: var(--plan-shut);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:root[data-board-collapsed~='now'] [data-column='now'],
|
|
198
|
+
:root[data-board-collapsed~='next'] [data-column='next'],
|
|
199
|
+
:root[data-board-collapsed~='foryou'] [data-column='foryou'],
|
|
200
|
+
:root[data-board-collapsed~='waiting'] [data-column='waiting'],
|
|
201
|
+
:root[data-board-collapsed~='done'] [data-column='done'] {
|
|
202
|
+
padding: 0.75rem 0.25rem;
|
|
203
|
+
min-width: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:root[data-board-collapsed~='now'] [data-lane-column='now'],
|
|
207
|
+
:root[data-board-collapsed~='next'] [data-lane-column='next'],
|
|
208
|
+
:root[data-board-collapsed~='foryou'] [data-lane-column='foryou'],
|
|
209
|
+
:root[data-board-collapsed~='waiting'] [data-lane-column='waiting'],
|
|
210
|
+
:root[data-board-collapsed~='done'] [data-lane-column='done'] {
|
|
211
|
+
padding-left: 0.25rem;
|
|
212
|
+
padding-right: 0.25rem;
|
|
213
|
+
min-width: 0;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:root[data-board-collapsed~='now'] [data-lane-column='now'] > *,
|
|
217
|
+
:root[data-board-collapsed~='next'] [data-lane-column='next'] > *,
|
|
218
|
+
:root[data-board-collapsed~='foryou'] [data-lane-column='foryou'] > *,
|
|
219
|
+
:root[data-board-collapsed~='waiting'] [data-lane-column='waiting'] > *,
|
|
220
|
+
:root[data-board-collapsed~='done'] [data-lane-column='done'] > * {
|
|
221
|
+
display: none;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:root[data-board-collapsed~='now'] [data-column='now'] .plan-column__toggle,
|
|
225
|
+
:root[data-board-collapsed~='next'] [data-column='next'] .plan-column__toggle,
|
|
226
|
+
:root[data-board-collapsed~='foryou'] [data-column='foryou'] .plan-column__toggle,
|
|
227
|
+
:root[data-board-collapsed~='waiting'] [data-column='waiting'] .plan-column__toggle,
|
|
228
|
+
:root[data-board-collapsed~='done'] [data-column='done'] .plan-column__toggle {
|
|
229
|
+
writing-mode: vertical-rl;
|
|
230
|
+
justify-content: start;
|
|
231
|
+
align-items: center;
|
|
232
|
+
gap: 0.75rem;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.plan-column__cards {
|
|
236
|
+
display: flex;
|
|
237
|
+
flex-direction: column;
|
|
238
|
+
gap: 0.75rem;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.plan-column__cards > * {
|
|
242
|
+
margin-top: 0 !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* A card's title is the link to its item's page; a plain click opens the item popup. */
|
|
246
|
+
.plan-item-link {
|
|
247
|
+
color: inherit;
|
|
248
|
+
text-decoration: none;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.plan-item-link:hover,
|
|
252
|
+
.plan-item-link:focus-visible {
|
|
253
|
+
text-decoration: underline;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.k-item__tag[href] {
|
|
257
|
+
text-decoration: none;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.plan-dialog {
|
|
261
|
+
width: min(42rem, calc(100vw - 2rem));
|
|
262
|
+
max-height: calc(100vh - 4rem);
|
|
263
|
+
padding: 1.25rem 1.5rem;
|
|
264
|
+
border: 1px solid var(--sl-color-hairline);
|
|
265
|
+
border-radius: 12px;
|
|
266
|
+
background: var(--sl-color-bg);
|
|
267
|
+
color: var(--sl-color-text);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.plan-dialog::backdrop {
|
|
271
|
+
background: rgb(0 0 0 / 0.45);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.plan-dialog__head {
|
|
275
|
+
display: flex;
|
|
276
|
+
justify-content: space-between;
|
|
277
|
+
align-items: start;
|
|
278
|
+
gap: 1rem;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.plan-dialog__head h2 {
|
|
282
|
+
margin: 0;
|
|
283
|
+
font-size: var(--sl-text-xl);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.plan-dialog__close {
|
|
287
|
+
border: 0;
|
|
288
|
+
background: none;
|
|
289
|
+
color: inherit;
|
|
290
|
+
font-size: 1.5rem;
|
|
291
|
+
line-height: 1;
|
|
292
|
+
cursor: pointer;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.plan-dialog__body > * + * {
|
|
296
|
+
margin-top: 0.75rem;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.plan-dialog__foot {
|
|
300
|
+
margin: 1rem 0 0;
|
|
301
|
+
font-weight: 600;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.plan-empty {
|
|
305
|
+
color: var(--sl-color-gray-3);
|
|
306
|
+
font-size: var(--sl-text-sm);
|
|
307
|
+
margin: 0;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* A risk's RAG status, wherever it is shown: the word is always printed, so
|
|
311
|
+
the colour is never the only signal. */
|
|
312
|
+
.rag {
|
|
313
|
+
display: inline-block;
|
|
314
|
+
padding: 0.1rem 0.45rem;
|
|
315
|
+
border-radius: 4px;
|
|
316
|
+
border: 1px solid var(--sl-color-hairline);
|
|
317
|
+
font-size: var(--sl-text-xs);
|
|
318
|
+
font-weight: 600;
|
|
319
|
+
text-transform: uppercase;
|
|
320
|
+
letter-spacing: 0.03em;
|
|
321
|
+
white-space: nowrap;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.rag--red {
|
|
325
|
+
color: #b91c1c;
|
|
326
|
+
background: #ef44441a;
|
|
327
|
+
border-color: #ef444466;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.rag--amber {
|
|
331
|
+
color: #b45309;
|
|
332
|
+
background: #f59e0b1a;
|
|
333
|
+
border-color: #f59e0b66;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.rag--green {
|
|
337
|
+
color: #047857;
|
|
338
|
+
background: #10b9811a;
|
|
339
|
+
border-color: #10b98166;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
:root[data-theme='dark'] .rag--red {
|
|
343
|
+
color: #fca5a5;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
:root[data-theme='dark'] .rag--amber {
|
|
347
|
+
color: #fcd34d;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
:root[data-theme='dark'] .rag--green {
|
|
351
|
+
color: #6ee7b7;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.export-stamp {
|
|
355
|
+
color: var(--sl-color-gray-3);
|
|
356
|
+
font-size: var(--sl-text-xs);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* An item's state or roadmap label: the word is always printed. */
|
|
360
|
+
.state {
|
|
361
|
+
display: inline-block;
|
|
362
|
+
padding: 0.1rem 0.45rem;
|
|
363
|
+
border-radius: 4px;
|
|
364
|
+
border: 1px solid var(--sl-color-hairline);
|
|
365
|
+
font-size: var(--sl-text-xs);
|
|
366
|
+
font-weight: 600;
|
|
367
|
+
text-transform: uppercase;
|
|
368
|
+
letter-spacing: 0.03em;
|
|
369
|
+
white-space: nowrap;
|
|
370
|
+
vertical-align: middle;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.state--now {
|
|
374
|
+
color: var(--sl-color-accent-high);
|
|
375
|
+
background: var(--sl-color-accent-low);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.state--done {
|
|
379
|
+
color: #047857;
|
|
380
|
+
border-color: #10b98166;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.state--dropped,
|
|
384
|
+
.state--blocked {
|
|
385
|
+
color: #b91c1c;
|
|
386
|
+
border-color: #ef444466;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.state--waiting {
|
|
390
|
+
color: #b45309;
|
|
391
|
+
border-color: #f59e0b66;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
:root[data-theme='dark'] .state--done {
|
|
395
|
+
color: #6ee7b7;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
:root[data-theme='dark'] .state--dropped,
|
|
399
|
+
:root[data-theme='dark'] .state--blocked {
|
|
400
|
+
color: #fca5a5;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
:root[data-theme='dark'] .state--waiting {
|
|
404
|
+
color: #fcd34d;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/* Tables and fact lists on the plan pages. */
|
|
408
|
+
.plan-table td:first-child {
|
|
409
|
+
min-width: 12rem;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.plan-table td.plan-nowrap {
|
|
413
|
+
white-space: nowrap;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.plan-count {
|
|
417
|
+
color: var(--sl-color-gray-3);
|
|
418
|
+
font-size: var(--sl-text-base);
|
|
419
|
+
font-weight: 400;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.plan-facts {
|
|
423
|
+
display: grid;
|
|
424
|
+
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
|
|
425
|
+
gap: 0.75rem;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.plan-facts > div {
|
|
429
|
+
padding: 0.6rem 0.9rem;
|
|
430
|
+
border: 1px solid var(--sl-color-hairline);
|
|
431
|
+
border-radius: 10px;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.plan-facts dt {
|
|
435
|
+
color: var(--sl-color-gray-3);
|
|
436
|
+
font-size: var(--sl-text-xs);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.plan-facts dd {
|
|
440
|
+
margin: 0;
|
|
441
|
+
font-weight: 600;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.plan-progress {
|
|
445
|
+
width: 100%;
|
|
446
|
+
max-width: 24rem;
|
|
447
|
+
height: 0.5rem;
|
|
448
|
+
accent-color: var(--sl-color-accent);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.plan-focus {
|
|
452
|
+
margin-left: 0.5rem;
|
|
453
|
+
padding: 0.1rem 0.5rem;
|
|
454
|
+
border-radius: 999px;
|
|
455
|
+
background: var(--sl-color-accent-low);
|
|
456
|
+
color: var(--sl-color-accent-high);
|
|
457
|
+
font-size: var(--sl-text-xs);
|
|
458
|
+
vertical-align: middle;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.plan-meta {
|
|
462
|
+
color: var(--sl-color-gray-2);
|
|
463
|
+
font-size: var(--sl-text-sm);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/* Cards in a wrapping grid (milestones, inbox ideas, plan tasks). */
|
|
467
|
+
.plan-cards {
|
|
468
|
+
display: grid;
|
|
469
|
+
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
|
470
|
+
gap: 1rem;
|
|
471
|
+
align-items: start;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.plan-cards > * {
|
|
475
|
+
margin-top: 0 !important;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.plan-card {
|
|
479
|
+
padding: 1rem;
|
|
480
|
+
border: 1px solid var(--sl-color-hairline);
|
|
481
|
+
border-radius: 12px;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.plan-card h3 {
|
|
485
|
+
margin: 0 0 0.35rem;
|
|
486
|
+
font-size: var(--sl-text-lg);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.plan-card p {
|
|
490
|
+
margin: 0.35rem 0 0;
|
|
491
|
+
}
|