@graview/primitives 0.1.4 → 0.1.5
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/dist/arrange-bar.d.ts +1 -3
- package/dist/arrange-bar.d.ts.map +1 -1
- package/dist/arrange-bar.js +2 -24
- package/dist/arrange-bar.js.map +1 -1
- package/dist/arrangement.d.ts +5 -0
- package/dist/arrangement.d.ts.map +1 -0
- package/dist/arrangement.js +25 -0
- package/dist/arrangement.js.map +1 -0
- package/dist/chat.js +2 -2
- package/dist/chat.js.map +1 -1
- package/dist/companion.js +1 -1
- package/dist/companion.js.map +1 -1
- package/dist/connections.js +1 -1
- package/dist/connections.js.map +1 -1
- package/dist/default-view.d.ts +1 -1
- package/dist/default-view.d.ts.map +1 -1
- package/dist/default-view.js +1 -1
- package/dist/default-view.js.map +1 -1
- package/dist/default-views.d.ts +1 -1
- package/dist/default-views.d.ts.map +1 -1
- package/dist/default-views.js +11 -5
- package/dist/default-views.js.map +1 -1
- package/dist/editable.js +1 -1
- package/dist/editable.js.map +1 -1
- package/dist/find.js +2 -2
- package/dist/find.js.map +1 -1
- package/dist/frame.d.ts +22 -0
- package/dist/frame.d.ts.map +1 -0
- package/dist/frame.js +21 -0
- package/dist/frame.js.map +1 -0
- package/dist/framework-views.d.ts +5 -0
- package/dist/framework-views.d.ts.map +1 -0
- package/dist/framework-views.js +20 -0
- package/dist/framework-views.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/installation.js +2 -2
- package/dist/installation.js.map +1 -1
- package/dist/ladder.js +1 -1
- package/dist/ladder.js.map +1 -1
- package/dist/pages.d.ts +20 -0
- package/dist/pages.d.ts.map +1 -0
- package/dist/pages.js +19 -0
- package/dist/pages.js.map +1 -0
- package/dist/places.js +2 -2
- package/dist/places.js.map +1 -1
- package/dist/primitives/index.js +1 -1
- package/dist/primitives/index.js.map +1 -1
- package/dist/profile.js +1 -1
- package/dist/profile.js.map +1 -1
- package/dist/quick-relations.js +2 -2
- package/dist/quick-relations.js.map +1 -1
- package/dist/relation-key.js +1 -1
- package/dist/relation-key.js.map +1 -1
- package/dist/seats.js +1 -1
- package/dist/seats.js.map +1 -1
- package/dist/seeding.js +1 -1
- package/dist/seeding.js.map +1 -1
- package/dist/spec-views.d.ts +1 -1
- package/dist/spec-views.d.ts.map +1 -1
- package/dist/spec-views.js +1 -1
- package/dist/spec-views.js.map +1 -1
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +400 -393
- package/dist/theme.js.map +1 -1
- package/dist/view-doors.d.ts +10 -0
- package/dist/view-doors.d.ts.map +1 -0
- package/dist/view-doors.js +47 -0
- package/dist/view-doors.js.map +1 -0
- package/dist/wordmark.js +1 -1
- package/dist/wordmark.js.map +1 -1
- package/dist/workbench/activity.js +1 -1
- package/dist/workbench/activity.js.map +1 -1
- package/dist/workbench/agent-seat.js +2 -2
- package/dist/workbench/agent-seat.js.map +1 -1
- package/dist/workbench/answer-args.js +2 -2
- package/dist/workbench/answer-args.js.map +1 -1
- package/dist/workbench/back-out.d.ts +1 -1
- package/dist/workbench/back-out.d.ts.map +1 -1
- package/dist/workbench/back-out.js +2 -2
- package/dist/workbench/back-out.js.map +1 -1
- package/dist/workbench/following.js +1 -1
- package/dist/workbench/following.js.map +1 -1
- package/dist/workbench/inspector.js +1 -1
- package/dist/workbench/inspector.js.map +1 -1
- package/dist/workbench/standing.js +1 -1
- package/dist/workbench/standing.js.map +1 -1
- package/dist/workbench/trail.js +2 -2
- package/dist/workbench/trail.js.map +1 -1
- package/package.json +14 -6
package/dist/theme.js
CHANGED
|
@@ -99,6 +99,13 @@ function stillness(asking, within) {
|
|
|
99
99
|
${at} [data-graview-view][data-graview-read] > * { box-shadow: 0 0 0 1px var(--graview-activity); }
|
|
100
100
|
${at} [data-graview-connector][data-graview-activity] { animation: none; stroke-opacity: 1; }`;
|
|
101
101
|
}
|
|
102
|
+
/*
|
|
103
|
+
* WHY THE STYLESHEET'S NOTES ARE WRITTEN `${/* … *\/ ""}`. They were CSS
|
|
104
|
+
* comments inside the template, and every page carried them — 25 KB of the
|
|
105
|
+
* 60 this function was, shipped to each reader and parsed into each embed's
|
|
106
|
+
* <style> (FR-57). As a JS comment in an empty interpolation the words stay
|
|
107
|
+
* where they explain the rule, and a minifier folds them away.
|
|
108
|
+
*/
|
|
102
109
|
export function themeCss(scheme = "dark", brand = GRAVIEW_BRAND, options = {}) {
|
|
103
110
|
const tokens = brand.schemes[scheme];
|
|
104
111
|
const root = options.scope ?? ":root";
|
|
@@ -138,7 +145,7 @@ ${kitVariables(kit)}
|
|
|
138
145
|
--graview-font-body: ${body};
|
|
139
146
|
--graview-font-display: ${brand.typography?.display ?? body};
|
|
140
147
|
--graview-font-mono: ${brand.typography?.mono ?? 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace'};
|
|
141
|
-
/* Shape, as tokens, so a component never has to know whose product it is. */
|
|
148
|
+
${ /* Shape, as tokens, so a component never has to know whose product it is. */""}
|
|
142
149
|
--graview-radius: ${radius}px;
|
|
143
150
|
--graview-radius-sm: ${Math.max(2, Math.round(radius * 0.72))}px;
|
|
144
151
|
--graview-pad: ${Math.round(15 * density)}px;
|
|
@@ -153,36 +160,36 @@ ${surface} {
|
|
|
153
160
|
color: var(--graview-ink);
|
|
154
161
|
}
|
|
155
162
|
|
|
156
|
-
/*
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
${ /*
|
|
164
|
+
* THE READER'S OWN TEXT SIZE.
|
|
165
|
+
*
|
|
166
|
+
* Every size in the framework was once an absolute pixel count, so somebody
|
|
167
|
+
* who sets a larger default font in their browser — the setting WCAG 1.4.4
|
|
168
|
+
* is about — got a Graview that ignored them completely. 0.875rem is 14px
|
|
169
|
+
* at the default 16px root, so nothing moves for anyone who has not asked
|
|
170
|
+
* for anything, and everything moves together for anyone who has.
|
|
171
|
+
*/""}
|
|
165
172
|
${text} {
|
|
166
173
|
font: 0.875rem/1.55 var(--graview-font-body);
|
|
167
174
|
font-variant-numeric: tabular-nums;
|
|
168
175
|
-webkit-font-smoothing: antialiased;
|
|
169
176
|
}
|
|
170
177
|
|
|
171
|
-
/* Headings and the wordmark take the display face when a brand supplies one,
|
|
172
|
-
|
|
173
|
-
|
|
178
|
+
${ /* Headings and the wordmark take the display face when a brand supplies one,
|
|
179
|
+
and the body face when it does not — so a brand with one font is not asked
|
|
180
|
+
to name it twice. */""}
|
|
174
181
|
h1, h2, h3, h4, .graview-wordmark { font-family: var(--graview-font-display); }
|
|
175
182
|
code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
176
183
|
|
|
177
|
-
/*
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
${ /*
|
|
185
|
+
* A KIND'S FIGURE fills the box it is given.
|
|
186
|
+
*
|
|
187
|
+
* The art declares its own viewBox and knows nothing about where it is
|
|
188
|
+
* drawn — a chip at twelve pixels, a district's heading at eighteen, a kind
|
|
189
|
+
* card's landmark at forty — so the SIZE is the container's and the drawing
|
|
190
|
+
* scales into it. currentColor on the strokes means the kind's own hue
|
|
191
|
+
* arrives through the cascade without the art being redrawn.
|
|
192
|
+
*/""}
|
|
186
193
|
[data-graview-figure] > svg {
|
|
187
194
|
width: 100%;
|
|
188
195
|
height: 100%;
|
|
@@ -190,17 +197,17 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
190
197
|
overflow: visible;
|
|
191
198
|
}
|
|
192
199
|
|
|
193
|
-
/* How far above the stack the camera is, 0..1 — REGISTERED so it can
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
200
|
+
${ /* How far above the stack the camera is, 0..1 — REGISTERED so it can
|
|
201
|
+
transition. Rising to the Graview morphs the scene instead of cutting:
|
|
202
|
+
the square grid dissolves into the iso lattice and the districts grow up
|
|
203
|
+
out of their cards, all riding this one number. */""}
|
|
197
204
|
@property --graview-altitude {
|
|
198
205
|
syntax: "<number>";
|
|
199
206
|
inherits: true;
|
|
200
207
|
initial-value: 0;
|
|
201
208
|
}
|
|
202
209
|
|
|
203
|
-
/* The ground: a slow wash, so depth has something to recede into. */
|
|
210
|
+
${ /* The ground: a slow wash, so depth has something to recede into. */""}
|
|
204
211
|
.graview-ground {
|
|
205
212
|
position: relative;
|
|
206
213
|
background: var(--graview-wash), var(--graview-ground);
|
|
@@ -208,13 +215,13 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
208
215
|
transition: --graview-altitude 640ms cubic-bezier(0.33, 0, 0.2, 1);
|
|
209
216
|
}
|
|
210
217
|
|
|
211
|
-
/*
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
+
${ /*
|
|
219
|
+
* The altitude control rides the SAME number the scene rides — its own copy,
|
|
220
|
+
* because it sits beside the ground rather than inside it — on the same
|
|
221
|
+
* curve. So the mark morphs exactly as long as the scene does, and where an
|
|
222
|
+
* engine cannot register the property, both cut together: one mechanism,
|
|
223
|
+
* and no way for the control and the picture to disagree about the change.
|
|
224
|
+
*/""}
|
|
218
225
|
.graview-altitude-control {
|
|
219
226
|
--graview-altitude: 0;
|
|
220
227
|
transition:
|
|
@@ -226,7 +233,7 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
226
233
|
transform-box: fill-box;
|
|
227
234
|
transform-origin: center;
|
|
228
235
|
}
|
|
229
|
-
/* The ring of three kinds tightens to one ring around one node. */
|
|
236
|
+
${ /* The ring of three kinds tightens to one ring around one node. */""}
|
|
230
237
|
.graview-altitude-mark-ring {
|
|
231
238
|
transform: scaleX(calc(1 - 0.48 * var(--graview-altitude)));
|
|
232
239
|
opacity: calc(0.55 + 0.4 * var(--graview-altitude));
|
|
@@ -234,7 +241,7 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
234
241
|
.graview-altitude-mark-apex {
|
|
235
242
|
transform: translateY(calc(2.6px * var(--graview-altitude)));
|
|
236
243
|
}
|
|
237
|
-
/* The two wings gather into the centre and give their ink to the apex. */
|
|
244
|
+
${ /* The two wings gather into the centre and give their ink to the apex. */""}
|
|
238
245
|
.graview-altitude-mark-wing {
|
|
239
246
|
opacity: calc(0.75 * (1 - var(--graview-altitude)));
|
|
240
247
|
}
|
|
@@ -245,9 +252,9 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
245
252
|
transform: translate(calc(-4.4px * var(--graview-altitude)), calc(-0.8px * var(--graview-altitude)));
|
|
246
253
|
}
|
|
247
254
|
|
|
248
|
-
/* A fine measure under the scene. Faint enough to feel like calibration
|
|
249
|
-
|
|
250
|
-
|
|
255
|
+
${ /* A fine measure under the scene. Faint enough to feel like calibration
|
|
256
|
+
rather than graph paper, and it fades out at the edges so the scene has no
|
|
257
|
+
hard boundary. */""}
|
|
251
258
|
.graview-ground::before {
|
|
252
259
|
content: "";
|
|
253
260
|
position: absolute;
|
|
@@ -261,15 +268,15 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
261
268
|
mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
|
|
262
269
|
}
|
|
263
270
|
|
|
264
|
-
/* Content that scrolls inside a panel, and SAYS SO.
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
${ /* Content that scrolls inside a panel, and SAYS SO.
|
|
272
|
+
*
|
|
273
|
+
* A pure-CSS scroll shadow: two cover gradients painted in the panel's own
|
|
274
|
+
* ground scroll with the content, two shadows stay put, and so a shadow
|
|
275
|
+
* only shows at an edge there is more content past. No
|
|
276
|
+
* JavaScript, no measurement, and nothing to go stale — which matters
|
|
277
|
+
* because the failure it prevents is silent. macOS hides overlay scrollbars
|
|
278
|
+
* until you scroll, so without this a clipped list looks like a finished
|
|
279
|
+
* one. */""}
|
|
273
280
|
.graview-scroll {
|
|
274
281
|
overflow: auto;
|
|
275
282
|
min-height: 0;
|
|
@@ -282,8 +289,8 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
282
289
|
background-size: 100% 24px, 100% 24px, 100% 10px, 100% 10px;
|
|
283
290
|
background-attachment: local, local, scroll, scroll;
|
|
284
291
|
}
|
|
285
|
-
/* "There is more of this", said by the ground: a few pixels of the panel's
|
|
286
|
-
|
|
292
|
+
${ /* "There is more of this", said by the ground: a few pixels of the panel's
|
|
293
|
+
* own colour over the last row, stuck to the bottom of what scrolls. */""}
|
|
287
294
|
.graview-scroll[data-graview-overflowing]::after {
|
|
288
295
|
content: "";
|
|
289
296
|
position: sticky;
|
|
@@ -294,23 +301,23 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
294
301
|
pointer-events: none;
|
|
295
302
|
}
|
|
296
303
|
|
|
297
|
-
/* A card on the kinds plane.
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
+
${ /* A card on the kinds plane.
|
|
305
|
+
*
|
|
306
|
+
* Title and count only at rest — a strip of ten cards each showing three
|
|
307
|
+
* truncated member names is ten unreadable things, and the members are not
|
|
308
|
+
* what you are asking the strip. Hovering lifts one and reveals the kind's
|
|
309
|
+
* own description, which the declaration has always carried and nothing has
|
|
310
|
+
* ever shown. */""}
|
|
304
311
|
.graview-kind-card {
|
|
305
312
|
height: 100%;
|
|
306
313
|
transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1), height 170ms ease,
|
|
307
314
|
box-shadow 170ms ease;
|
|
308
|
-
/* IN THE STACK NOTHING HANGS BELOW A CARD. The iso block rests eighteen
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
315
|
+
${ /* IN THE STACK NOTHING HANGS BELOW A CARD. The iso block rests eighteen
|
|
316
|
+
pixels low there, invisible, ready to rise — and an invisible box that
|
|
317
|
+
pokes under the bottom row still made the stage scroll by nine pixels
|
|
318
|
+
with nowhere to scroll. Clipped (not hidden: no scroll container, no
|
|
319
|
+
scrollable overflow), and let out again from altitude, where the plate
|
|
320
|
+
floats above the card and the block stands up out of it. */""}
|
|
314
321
|
overflow: clip;
|
|
315
322
|
}
|
|
316
323
|
[data-graview-altitude] .graview-kind-card {
|
|
@@ -324,9 +331,9 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
324
331
|
position: relative;
|
|
325
332
|
z-index: 3;
|
|
326
333
|
}
|
|
327
|
-
/* From altitude a district is a village on its plot, not a card: hovering
|
|
328
|
-
|
|
329
|
-
|
|
334
|
+
${ /* From altitude a district is a village on its plot, not a card: hovering
|
|
335
|
+
it must not raise a white panel over the buildings. The lift stays in
|
|
336
|
+
the stack, where the card is a card. */""}
|
|
330
337
|
[data-graview-altitude] .graview-kind-card:hover,
|
|
331
338
|
[data-graview-altitude] .graview-kind-card:focus-within {
|
|
332
339
|
transform: none;
|
|
@@ -334,19 +341,19 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
334
341
|
background: transparent;
|
|
335
342
|
}
|
|
336
343
|
|
|
337
|
-
/* FROM ALTITUDE the ground is an ISOMETRIC LATTICE — diamond cells at the
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
/* DRAWN AS TILES, one cell each. A repeating gradient at the lattice's
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
344
|
+
${ /* FROM ALTITUDE the ground is an ISOMETRIC LATTICE — diamond cells at the
|
|
345
|
+
classic 2:1 pitch, a finer far weave above, dissolving toward the
|
|
346
|
+
horizon. Always present, faded by the altitude number, so rising
|
|
347
|
+
CROSSFADES the square grid into the lattice instead of cutting. */""}
|
|
348
|
+
${ /* DRAWN AS TILES, one cell each. A repeating gradient at the lattice's
|
|
349
|
+
angle was phased from the middle of the box and seamed at the box's own
|
|
350
|
+
edge when repeated with an offset, so the lines never sat where the
|
|
351
|
+
city's cells were: a plot stood beside the grid, not on it. Each tile is
|
|
352
|
+
one cell wide and half a cell tall — the diamond's bounding box — with
|
|
353
|
+
the tile's two diagonals drawn across it, which is the whole lattice:
|
|
354
|
+
corners and centres of the tiles are its vertices, and a tile corner is
|
|
355
|
+
pinned where the city's cell (0,0) meets the canvas. The far weave is the
|
|
356
|
+
same tile at half size. */""}
|
|
350
357
|
.graview-ground::after {
|
|
351
358
|
content: "";
|
|
352
359
|
position: absolute;
|
|
@@ -364,21 +371,21 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
364
371
|
var(--graview-lattice-tile) calc(var(--graview-lattice-tile) / 2),
|
|
365
372
|
calc(var(--graview-lattice-tile) / 2) calc(var(--graview-lattice-tile) / 4),
|
|
366
373
|
calc(var(--graview-lattice-tile) / 2) calc(var(--graview-lattice-tile) / 4);
|
|
367
|
-
/* Anchored where the city's cell (0,0) meets the canvas, so a plot placed
|
|
368
|
-
|
|
374
|
+
${ /* Anchored where the city's cell (0,0) meets the canvas, so a plot placed
|
|
375
|
+
by the map sits ON the grid a person can see, and pans with it. */""}
|
|
369
376
|
background-position: var(--graview-lattice-x, 0px) var(--graview-lattice-y, 0px);
|
|
370
|
-
/* Twice the square grid's weight: fields are meant to be seen, the grid is meant to be felt. */
|
|
377
|
+
${ /* Twice the square grid's weight: fields are meant to be seen, the grid is meant to be felt. */""}
|
|
371
378
|
opacity: calc(var(--graview-kit-lattice, 1) * var(--graview-grid-alpha) * 2 * var(--graview-altitude));
|
|
372
379
|
mask-image: linear-gradient(to top, #000 42%, rgba(0,0,0,0.35) 70%, transparent 92%);
|
|
373
380
|
-webkit-mask-image: linear-gradient(to top, #000 42%, rgba(0,0,0,0.35) 70%, transparent 92%);
|
|
374
381
|
}
|
|
375
382
|
|
|
376
|
-
/* THE GROUND UNDER A DISTRICT: its plot, drawn. Four lattice corners in
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
383
|
+
${ /* THE GROUND UNDER A DISTRICT: its plot, drawn. Four lattice corners in
|
|
384
|
+
the kind's hue, a kerb, a cast shadow toward the light — the arithmetic
|
|
385
|
+
the layout already did, made visible, so a district stands on land
|
|
386
|
+
rather than floating on a hatch. Fades in with the altitude number the
|
|
387
|
+
lattice fades in with; a hand-placed district's kerb is dashed, which is
|
|
388
|
+
the pinned mark on the ground rather than a box over the drawing. */""}
|
|
382
389
|
.graview-plots {
|
|
383
390
|
z-index: 0;
|
|
384
391
|
opacity: var(--graview-altitude);
|
|
@@ -400,10 +407,10 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
400
407
|
.graview-plot[data-graview-pinned] .graview-plot-tile {
|
|
401
408
|
stroke-dasharray: 4 3;
|
|
402
409
|
}
|
|
403
|
-
/* THE VILLAGE on the tile: one small iso building per member in the kind's
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
410
|
+
${ /* THE VILLAGE on the tile: one small iso building per member in the kind's
|
|
411
|
+
own faces (the same roof and walls the block had), a flagged member's roof
|
|
412
|
+
in the warning colour, a selected member's building lit in the accent.
|
|
413
|
+
Architecture, not controls: the tile under them takes the click. */""}
|
|
407
414
|
.graview-village { pointer-events: none; }
|
|
408
415
|
.graview-building polygon { stroke-width: 0.8; }
|
|
409
416
|
.graview-building[data-graview-flagged] .graview-iso-roof { fill: var(--graview-warn); stroke: var(--graview-warn); }
|
|
@@ -414,10 +421,10 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
414
421
|
letter-spacing: 0.06em;
|
|
415
422
|
fill: var(--graview-ink-muted);
|
|
416
423
|
}
|
|
417
|
-
/* THE ROADS between plots: the lattice's own two legs from kerb to kerb, a
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
424
|
+
${ /* THE ROADS between plots: the lattice's own two legs from kerb to kerb, a
|
|
425
|
+
bed between two edges in the ground's ink. Under the tiles and the
|
|
426
|
+
buildings, over the fields. A road the legend is asking about comes up
|
|
427
|
+
in the accent. */""}
|
|
421
428
|
.graview-road-edge {
|
|
422
429
|
fill: none;
|
|
423
430
|
stroke: var(--graview-ink);
|
|
@@ -437,34 +444,34 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
437
444
|
stroke: var(--graview-accent);
|
|
438
445
|
stroke-opacity: 0.9;
|
|
439
446
|
}
|
|
440
|
-
/* FIELDS. From altitude the ground darkens a shade toward the near edge and
|
|
441
|
-
|
|
442
|
-
|
|
447
|
+
${ /* FIELDS. From altitude the ground darkens a shade toward the near edge and
|
|
448
|
+
fades to the page at the horizon, so the lattice is land with a distance
|
|
449
|
+
rather than paper with a pattern. */""}
|
|
443
450
|
.graview-ground[data-graview-altitude] {
|
|
444
451
|
background:
|
|
445
452
|
linear-gradient(to top, color-mix(in oklab, var(--graview-ground) ${scheme === "light" ? "93%" : "88%"}, var(--graview-ink)) 0%, var(--graview-ground) 78%),
|
|
446
453
|
var(--graview-ground);
|
|
447
454
|
}
|
|
448
455
|
|
|
449
|
-
/* THE KEEPER'S BLOCK IN THE PROFILE, which hides itself when it is empty.
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
456
|
+
${ /* THE KEEPER'S BLOCK IN THE PROFILE, which hides itself when it is empty.
|
|
457
|
+
Both controls inside it draw nothing for a seat that may not administer,
|
|
458
|
+
and a heading with nothing under it is worse than no heading — so the
|
|
459
|
+
block is drawn only when it actually holds a control. */""}
|
|
453
460
|
.graview-profile-keeping { display: grid; gap: 6px; }
|
|
454
461
|
.graview-profile-keeping:not(:has(button, a)) { display: none; }
|
|
455
462
|
.graview-profile-keeping > * { justify-self: start; }
|
|
456
463
|
|
|
457
|
-
/* THE OPEN CHEVRON APPEARS WHEN REACHED FOR. Drawn on every plate at
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
464
|
+
${ /* THE OPEN CHEVRON APPEARS WHEN REACHED FOR. Drawn on every plate at
|
|
465
|
+
altitude it was noise times the number of districts; it shows on hover,
|
|
466
|
+
on keyboard focus, and while the district is open — and stays a real
|
|
467
|
+
button in between, so Tab still finds it and Enter still opens. */""}
|
|
461
468
|
[data-graview-altitude] .graview-kind-open {
|
|
462
469
|
opacity: 0.5;
|
|
463
470
|
transition: opacity 150ms ease;
|
|
464
471
|
}
|
|
465
|
-
/* Quiet: the chevron alone until reached for. Never opacity zero — a
|
|
466
|
-
|
|
467
|
-
|
|
472
|
+
${ /* Quiet: the chevron alone until reached for. Never opacity zero — a
|
|
473
|
+
button nobody can see is a button a driven browser cannot press either,
|
|
474
|
+
and Tab must land on something that looks like something. */""}
|
|
468
475
|
[data-graview-altitude] .graview-kind-open-word {
|
|
469
476
|
display: none;
|
|
470
477
|
}
|
|
@@ -478,22 +485,22 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
478
485
|
[data-graview-altitude] .graview-kind-open[aria-expanded="true"] .graview-kind-open-word {
|
|
479
486
|
display: inline;
|
|
480
487
|
}
|
|
481
|
-
/* The district-open control and its roster: altitude-only chrome. Inside
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
488
|
+
${ /* The district-open control and its roster: altitude-only chrome. Inside
|
|
489
|
+
the stack expanding dissolves a card, so the control does not exist
|
|
490
|
+
there. A full fingertip even though the glyph is small — the audit holds
|
|
491
|
+
every control to 24px. */""}
|
|
485
492
|
.graview-kind-open { display: none; }
|
|
486
493
|
[data-graview-altitude] .graview-kind-open {
|
|
487
494
|
display: inline-flex;
|
|
488
495
|
align-items: center;
|
|
489
496
|
justify-content: center;
|
|
490
497
|
flex: 0 0 auto;
|
|
491
|
-
/* A FINGERTIP, AND THE READER'S FINGERTIP IF IT IS BIGGER. 24px is the
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
498
|
+
${ /* A FINGERTIP, AND THE READER'S FINGERTIP IF IT IS BIGGER. 24px is the
|
|
499
|
+
floor audit-ui holds every control to; 1.5rem is the same 24 at the
|
|
500
|
+
default text size and grows with a reader who asked for more, so the
|
|
501
|
+
control never drifts under the words it sits beside. A max() rather than
|
|
502
|
+
either one alone: rem alone drops below the fingertip at a smaller
|
|
503
|
+
setting, px alone ignores the setting altogether. */""}
|
|
497
504
|
min-height: max(1.5rem, 24px);
|
|
498
505
|
padding: 1px 9px;
|
|
499
506
|
margin: -3px 0;
|
|
@@ -503,12 +510,12 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
503
510
|
box-shadow: none;
|
|
504
511
|
color: var(--graview-ink-muted);
|
|
505
512
|
cursor: pointer;
|
|
506
|
-
/* IN REM, LIKE EVERY OTHER SIZE HERE. At 10px this control's words were
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
513
|
+
${ /* IN REM, LIKE EVERY OTHER SIZE HERE. At 10px this control's words were
|
|
514
|
+
the one piece of text in the framework that ignored the reader's text
|
|
515
|
+
size completely: set to Largest, every name on the screen doubled and
|
|
516
|
+
"open" stayed ten pixels tall. A size a person chose and a control that
|
|
517
|
+
will not take it is the accessibility setting failing on its own
|
|
518
|
+
surface. */""}
|
|
512
519
|
font-size: 0.75rem;
|
|
513
520
|
letter-spacing: 0.08em;
|
|
514
521
|
text-transform: uppercase;
|
|
@@ -519,19 +526,19 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
519
526
|
color: var(--graview-accent);
|
|
520
527
|
border-color: var(--graview-accent-dim);
|
|
521
528
|
}
|
|
522
|
-
/* The roster reads as a LIST, one member a row — chips wrapping at their
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
/* A DRIVE-IN: a dark screen standing on the plot, and the showings under
|
|
526
|
-
|
|
527
|
-
|
|
529
|
+
${ /* The roster reads as a LIST, one member a row — chips wrapping at their
|
|
530
|
+
own widths read as spilled tiles, and a district's population is a roll
|
|
531
|
+
call, not a mosaic. */""}
|
|
532
|
+
${ /* A DRIVE-IN: a dark screen standing on the plot, and the showings under
|
|
533
|
+
it as a marquee of real buttons. Only from altitude; the same list the
|
|
534
|
+
Places pills carry, drawn where the pictures live. */""}
|
|
528
535
|
.graview-drive-in {
|
|
529
|
-
/* Its own block under the nameplate, never a row inside the pill: the
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
536
|
+
${ /* Its own block under the nameplate, never a row inside the pill: the
|
|
537
|
+
pill is one line of name and count, and a marquee flattened into it
|
|
538
|
+
read as "12 • shown above The month The week". On a box the pill sits
|
|
539
|
+
on the roof at the top of the card, so the marquee hangs under it; on
|
|
540
|
+
a landmark the pill floats above the card, so the marquee takes the
|
|
541
|
+
card's own top edge. */""}
|
|
535
542
|
position: absolute;
|
|
536
543
|
left: 50%;
|
|
537
544
|
top: 42px;
|
|
@@ -554,9 +561,9 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
554
561
|
.graview-drive-in-marquee[data-graview-thumbs="one"] {
|
|
555
562
|
grid-template-columns: 120px;
|
|
556
563
|
}
|
|
557
|
-
/* THE LENSES AS PICTURES: each showing is its lens drawn small — the real
|
|
558
|
-
|
|
559
|
-
|
|
564
|
+
${ /* THE LENSES AS PICTURES: each showing is its lens drawn small — the real
|
|
565
|
+
component at a fraction of its size, cut to a thumbnail — with its name
|
|
566
|
+
under it. The picture takes no pointer; the button around it does. */""}
|
|
560
567
|
.graview-drive-in-thumb {
|
|
561
568
|
position: relative;
|
|
562
569
|
display: grid;
|
|
@@ -574,12 +581,12 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
574
581
|
border-color: var(--graview-accent);
|
|
575
582
|
color: var(--graview-accent);
|
|
576
583
|
}
|
|
577
|
-
/* The press: the whole frame, laid over the picture and the title rather than
|
|
578
|
-
|
|
584
|
+
${ /* The press: the whole frame, laid over the picture and the title rather than
|
|
585
|
+
around them, so the lens drawn small never sits inside a button. */""}
|
|
579
586
|
.graview-drive-in-thumb-press {
|
|
580
587
|
position: absolute;
|
|
581
588
|
inset: -1px;
|
|
582
|
-
/* It fills its frame, and says the frame's floor itself: a target is sized where it is declared. */
|
|
589
|
+
${ /* It fills its frame, and says the frame's floor itself: a target is sized where it is declared. */""}
|
|
583
590
|
min-height: max(1.75rem, 28px);
|
|
584
591
|
margin: 0;
|
|
585
592
|
padding: 0;
|
|
@@ -588,7 +595,7 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
588
595
|
background: transparent;
|
|
589
596
|
box-shadow: none;
|
|
590
597
|
cursor: pointer;
|
|
591
|
-
/* The card's own floor, stated: it covers the card, and the card is at least this tall. */
|
|
598
|
+
${ /* The card's own floor, stated: it covers the card, and the card is at least this tall. */""}
|
|
592
599
|
min-height: max(1.75rem, 28px);
|
|
593
600
|
}
|
|
594
601
|
.graview-drive-in-thumb-press:focus-visible {
|
|
@@ -624,20 +631,20 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
624
631
|
font-size: 0.75rem;
|
|
625
632
|
line-height: 1.2;
|
|
626
633
|
white-space: nowrap;
|
|
627
|
-
/* Its own frame's width: two pictures share the marquee, and two names
|
|
628
|
-
|
|
634
|
+
${ /* Its own frame's width: two pictures share the marquee, and two names
|
|
635
|
+
each allowed the width of one picture ran into each other. */""}
|
|
629
636
|
max-width: 100%;
|
|
630
637
|
overflow: hidden;
|
|
631
638
|
text-overflow: ellipsis;
|
|
632
639
|
}
|
|
633
|
-
/* THE BILLBOARD'S FULL-SCREEN CONTROL: the one way down from a picture. */
|
|
634
|
-
/* THE RAIL A BILLBOARD IS MOVED BY: a title bar, in the board's own frame
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
640
|
+
${ /* THE BILLBOARD'S FULL-SCREEN CONTROL: the one way down from a picture. */""}
|
|
641
|
+
${ /* THE RAIL A BILLBOARD IS MOVED BY: a title bar, in the board's own frame
|
|
642
|
+
ink, along its top edge. Positioned like the full-screen control beside
|
|
643
|
+
it — the host wraps its children, so the rail is a grandchild of the
|
|
644
|
+
screen box and a child selector never reaches it. Wide enough to be an
|
|
645
|
+
easy target, short enough that the picture underneath is still what you
|
|
646
|
+
see, and present only at altitude, because only up there is the board
|
|
647
|
+
standing on a plot it could be moved around. */""}
|
|
641
648
|
.graview-screen-grip {
|
|
642
649
|
display: none;
|
|
643
650
|
}
|
|
@@ -649,15 +656,15 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
649
656
|
left: 0;
|
|
650
657
|
right: 0;
|
|
651
658
|
top: 0;
|
|
652
|
-
/* Drawn height, not CSS height: a district's plane is scaled down at
|
|
653
|
-
|
|
654
|
-
|
|
659
|
+
${ /* Drawn height, not CSS height: a district's plane is scaled down at
|
|
660
|
+
altitude, and 14 here reached the screen as an eight-pixel strip that
|
|
661
|
+
took three attempts to catch. */""}
|
|
655
662
|
height: 32px;
|
|
656
663
|
padding: 0 6px 0 12px;
|
|
657
664
|
box-sizing: border-box;
|
|
658
665
|
cursor: grab;
|
|
659
|
-
/* A title bar in the panel's own colours, not a grey strip: the board is
|
|
660
|
-
|
|
666
|
+
${ /* A title bar in the panel's own colours, not a grey strip: the board is
|
|
667
|
+
a window onto the picture, and its bar reads as the window's. */""}
|
|
661
668
|
background: var(--graview-panel-muted);
|
|
662
669
|
border-bottom: 1px solid var(--graview-edge);
|
|
663
670
|
z-index: 3;
|
|
@@ -703,11 +710,11 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
703
710
|
color: var(--graview-accent);
|
|
704
711
|
}
|
|
705
712
|
|
|
706
|
-
/* THE OTHERS: people and their agents in the city, each a small figure in
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
713
|
+
${ /* THE OTHERS: people and their agents in the city, each a small figure in
|
|
714
|
+
the scene's own line vocabulary with a name under it. They move by a
|
|
715
|
+
transition on transform — one number, the layout tween's curve — so a
|
|
716
|
+
quiet city runs nothing. This tab's own seat is not drawn here: the
|
|
717
|
+
companion on the frame is where it speaks. */""}
|
|
711
718
|
.graview-occupants {
|
|
712
719
|
position: absolute;
|
|
713
720
|
inset: 0;
|
|
@@ -767,9 +774,9 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
767
774
|
color: var(--graview-ink-muted);
|
|
768
775
|
pointer-events: none;
|
|
769
776
|
}
|
|
770
|
-
/* ANOTHER PERSON, on your map: a head and shoulders in their own hue, at
|
|
771
|
-
|
|
772
|
-
|
|
777
|
+
${ /* ANOTHER PERSON, on your map: a head and shoulders in their own hue, at
|
|
778
|
+
the plot their stop names or in the audience row of the showing they are
|
|
779
|
+
watching. Press to follow them; their name is under them like a robot's. */""}
|
|
773
780
|
.graview-figure[data-graview-person] .graview-figure-body {
|
|
774
781
|
left: -11px;
|
|
775
782
|
top: -24px;
|
|
@@ -784,11 +791,11 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
784
791
|
.graview-figure[data-graview-person][data-graview-followed] .graview-figure-body {
|
|
785
792
|
color: var(--graview-accent);
|
|
786
793
|
}
|
|
787
|
-
/* Their robot, beside them, captioned as theirs. */
|
|
794
|
+
${ /* Their robot, beside them, captioned as theirs. */""}
|
|
788
795
|
.graview-figure[data-graview-theirs] .graview-figure-body {
|
|
789
796
|
opacity: 0.85;
|
|
790
797
|
}
|
|
791
|
-
/* More than a row can hold, and the anonymous: a number where they stand. */
|
|
798
|
+
${ /* More than a row can hold, and the anonymous: a number where they stand. */""}
|
|
792
799
|
.graview-figure-count {
|
|
793
800
|
position: absolute;
|
|
794
801
|
transform: translate(-50%, -100%);
|
|
@@ -801,7 +808,7 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
801
808
|
white-space: nowrap;
|
|
802
809
|
pointer-events: auto;
|
|
803
810
|
}
|
|
804
|
-
/* What somebody else is pointing at, outlined in their colour. */
|
|
811
|
+
${ /* What somebody else is pointing at, outlined in their colour. */""}
|
|
805
812
|
.graview-presence-over {
|
|
806
813
|
position: absolute;
|
|
807
814
|
border: 2px solid hsl(var(--graview-hue, 200) 55% 52%);
|
|
@@ -810,7 +817,7 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
810
817
|
opacity: 0.75;
|
|
811
818
|
transition: left 200ms ease, top 200ms ease, width 200ms ease, height 200ms ease;
|
|
812
819
|
}
|
|
813
|
-
/* Off the visible ground: an indicator at the border, pointing at it. */
|
|
820
|
+
${ /* Off the visible ground: an indicator at the border, pointing at it. */""}
|
|
814
821
|
.graview-figure-edge {
|
|
815
822
|
position: absolute;
|
|
816
823
|
min-height: max(1.5rem, 24px);
|
|
@@ -839,14 +846,14 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
839
846
|
justify-content: flex-start;
|
|
840
847
|
max-width: none;
|
|
841
848
|
}
|
|
842
|
-
/* An OPENED district is a PANEL, not a pill with a list stuffed in it:
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
849
|
+
${ /* An OPENED district is a PANEL, not a pill with a list stuffed in it:
|
|
850
|
+
name and count share the header line, the roster sits under a hairline,
|
|
851
|
+
and the block behind fades — the plate IS the district while it is
|
|
852
|
+
open, so no roof pokes out above the roster. */""}
|
|
846
853
|
[data-graview-altitude] .graview-kind-face[data-graview-opened] {
|
|
847
|
-
/* A header that WRAPS rather than a grid that squeezes: the name's column
|
|
848
|
-
|
|
849
|
-
|
|
854
|
+
${ /* A header that WRAPS rather than a grid that squeezes: the name's column
|
|
855
|
+
was minmax(0, 1fr) beside the count's auto, so "VEHICLES" beside
|
|
856
|
+
"291 · +29 past · close" got 25 pixels and the count was drawn over it. */""}
|
|
850
857
|
display: flex !important;
|
|
851
858
|
flex-wrap: wrap;
|
|
852
859
|
justify-content: flex-start !important;
|
|
@@ -869,9 +876,9 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
869
876
|
opacity: calc(var(--graview-altitude) * 0.22);
|
|
870
877
|
}
|
|
871
878
|
|
|
872
|
-
/* WHAT KIND OF THING THIS IS, astride the focus panel's top-right edge —
|
|
873
|
-
|
|
874
|
-
|
|
879
|
+
${ /* WHAT KIND OF THING THIS IS, astride the focus panel's top-right edge —
|
|
880
|
+
the kind's dot and its name, the same thread the chips and the legend
|
|
881
|
+
carry. Scene chrome, so no view has to remember to say it. */""}
|
|
875
882
|
.graview-kind-tag {
|
|
876
883
|
position: absolute;
|
|
877
884
|
top: -9px;
|
|
@@ -882,8 +889,8 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
882
889
|
gap: 5px;
|
|
883
890
|
padding: 2px 8px;
|
|
884
891
|
border-radius: 999px;
|
|
885
|
-
/* The kind's own hue on the border and the words, so the tag and the
|
|
886
|
-
|
|
892
|
+
${ /* The kind's own hue on the border and the words, so the tag and the
|
|
893
|
+
district it belongs to read as one thread. */""}
|
|
887
894
|
border: 1px solid hsl(var(--graview-hue, 200) 45% var(--graview-tint-lightness) / 0.55);
|
|
888
895
|
color: hsl(var(--graview-hue, 200) 45% calc(var(--graview-tint-lightness) + ${scheme === "light" ? "-32%" : "28%"}));
|
|
889
896
|
background: var(--graview-float);
|
|
@@ -895,28 +902,28 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
895
902
|
pointer-events: none;
|
|
896
903
|
}
|
|
897
904
|
|
|
898
|
-
/* A LINE UNDER THE POINTER says it will take the press: the invisible hit
|
|
899
|
-
|
|
900
|
-
|
|
905
|
+
${ /* A LINE UNDER THE POINTER says it will take the press: the invisible hit
|
|
906
|
+
run ghosts in, so editability is discoverable by hovering the relation
|
|
907
|
+
itself rather than by rumor. */""}
|
|
901
908
|
.graview-edge-hit:hover {
|
|
902
909
|
stroke: var(--graview-accent);
|
|
903
910
|
opacity: 0.3;
|
|
904
911
|
}
|
|
905
912
|
|
|
906
|
-
/* THE DISTRICTS THE ROW COULD NOT HOLD.
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
/* A RELATION THE BAND COULD NOT HOLD: a group with its count and first names,
|
|
913
|
-
|
|
913
|
+
${ /* THE DISTRICTS THE ROW COULD NOT HOLD.
|
|
914
|
+
Not a district: no figure, no count, no tint of its own. A card that is
|
|
915
|
+
one control — how many more, and a press — and, open, a panel above the
|
|
916
|
+
row naming every district with what it holds. Solid rather than dashed
|
|
917
|
+
and faded: a dashed, translucent card read as a placeholder, and the only
|
|
918
|
+
way to five districts should not look like something that failed to load. */""}
|
|
919
|
+
${ /* A RELATION THE BAND COULD NOT HOLD: a group with its count and first names,
|
|
920
|
+
or the door to the rest. A card like the others, never the kind's lens small. */""}
|
|
914
921
|
.graview-band-group {
|
|
915
922
|
display: grid;
|
|
916
923
|
align-content: center;
|
|
917
924
|
gap: 2px;
|
|
918
925
|
height: 100%;
|
|
919
|
-
/* A card you press, held to the floor every pressable piece of chrome keeps. */
|
|
926
|
+
${ /* A card you press, held to the floor every pressable piece of chrome keeps. */""}
|
|
920
927
|
min-height: max(1.75rem, 28px);
|
|
921
928
|
box-sizing: border-box;
|
|
922
929
|
padding: 6px 10px;
|
|
@@ -1014,16 +1021,16 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1014
1021
|
margin-left: auto;
|
|
1015
1022
|
font-size: 0.8125rem;
|
|
1016
1023
|
}
|
|
1017
|
-
/* The panel stands above the card, inside the scene, and never clips: the
|
|
1018
|
-
|
|
1024
|
+
${ /* The panel stands above the card, inside the scene, and never clips: the
|
|
1025
|
+
card's box is a district's height, which holds a count and not a list. */""}
|
|
1019
1026
|
.graview-beyond-list {
|
|
1020
1027
|
position: absolute;
|
|
1021
1028
|
left: 0;
|
|
1022
1029
|
bottom: calc(100% + 6px);
|
|
1023
|
-
/* On the ground, over every plane — the focused card on plane zero
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1030
|
+
${ /* On the ground, over every plane — the focused card on plane zero
|
|
1031
|
+
painted over a panel drawn on plane two, and a menu under a card is
|
|
1032
|
+
no menu. Above the zoom control too, which is the only other thing
|
|
1033
|
+
that stands on the ground. */""}
|
|
1027
1034
|
z-index: 60;
|
|
1028
1035
|
margin: 0;
|
|
1029
1036
|
padding: 6px;
|
|
@@ -1031,8 +1038,8 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1031
1038
|
display: flex;
|
|
1032
1039
|
flex-direction: column;
|
|
1033
1040
|
gap: 1px;
|
|
1034
|
-
/* Its own width, not the ground's: portalled, a percentage here is the
|
|
1035
|
-
|
|
1041
|
+
${ /* Its own width, not the ground's: portalled, a percentage here is the
|
|
1042
|
+
whole scene. */""}
|
|
1036
1043
|
min-width: 200px;
|
|
1037
1044
|
max-width: min(280px, 92%);
|
|
1038
1045
|
max-height: 60vh;
|
|
@@ -1047,14 +1054,14 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1047
1054
|
align-items: center;
|
|
1048
1055
|
gap: 10px;
|
|
1049
1056
|
width: 100%;
|
|
1050
|
-
/* A FINGERTIP WHERE IT IS ACTUALLY DRAWN, not where it was designed.
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1057
|
+
${ /* A FINGERTIP WHERE IT IS ACTUALLY DRAWN, not where it was designed.
|
|
1058
|
+
Every other control in this sheet is floored at 24 and the audit divides
|
|
1059
|
+
by the plane's scale before judging it, which is right for a control
|
|
1060
|
+
that sits ON a large target: the chip's disclosure is small, and the
|
|
1061
|
+
card behind it is the size of a card. These names are not that. They are
|
|
1062
|
+
the ONLY way to the districts the row could not hold, and plane two is
|
|
1063
|
+
drawn at 0.90 — so a designed 24 meets a finger as 21.7. Designed at 28
|
|
1064
|
+
it is drawn at 25, which is the number the floor was always about. */""}
|
|
1058
1065
|
min-height: max(1.75rem, 28px);
|
|
1059
1066
|
padding: 0 8px;
|
|
1060
1067
|
border: none;
|
|
@@ -1083,13 +1090,13 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1083
1090
|
color: var(--graview-ink-faint);
|
|
1084
1091
|
}
|
|
1085
1092
|
|
|
1086
|
-
/* The way into the archive, on the card that fed it: quiet, but a real
|
|
1087
|
-
|
|
1093
|
+
${ /* The way into the archive, on the card that fed it: quiet, but a real
|
|
1094
|
+
control at a real size. */""}
|
|
1088
1095
|
.graview-kind-past {
|
|
1089
1096
|
display: inline-flex;
|
|
1090
1097
|
align-items: center;
|
|
1091
1098
|
flex: 0 0 auto;
|
|
1092
|
-
/* The same floor as the disclosure beside it — see .graview-kind-open. */
|
|
1099
|
+
${ /* The same floor as the disclosure beside it — see .graview-kind-open. */""}
|
|
1093
1100
|
min-height: max(1.5rem, 24px);
|
|
1094
1101
|
padding: 1px 8px;
|
|
1095
1102
|
margin: -3px 0;
|
|
@@ -1107,10 +1114,10 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1107
1114
|
border-color: var(--graview-accent-dim);
|
|
1108
1115
|
}
|
|
1109
1116
|
|
|
1110
|
-
/* A SEARCH OVER THE CITY. The districts the words found are lit and say how
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1117
|
+
${ /* A SEARCH OVER THE CITY. The districts the words found are lit and say how
|
|
1118
|
+
many; the rest recede — the same dimming a selection's reach has always
|
|
1119
|
+
used, so a search reads as "where the thing is", not as a new mode. The
|
|
1120
|
+
count is the way in: a real control, the words carried down. */""}
|
|
1114
1121
|
.graview-kind-card[data-graview-emphasis="dimmed"] {
|
|
1115
1122
|
opacity: 0.42;
|
|
1116
1123
|
transition: opacity 160ms ease;
|
|
@@ -1143,27 +1150,27 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1143
1150
|
.graview-kind-card[data-graview-emphasis="dimmed"] { transition: none; }
|
|
1144
1151
|
}
|
|
1145
1152
|
|
|
1146
|
-
/* Chrome that arrives with a state settles in rather than popping. */
|
|
1153
|
+
${ /* Chrome that arrives with a state settles in rather than popping. */""}
|
|
1147
1154
|
@keyframes graview-settle {
|
|
1148
1155
|
from { opacity: 0; transform: translateY(7px); }
|
|
1149
1156
|
}
|
|
1150
1157
|
|
|
1151
|
-
/* A district STANDS: an isometric block — roof, two shaded walls — whose
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1158
|
+
${ /* A district STANDS: an isometric block — roof, two shaded walls — whose
|
|
1159
|
+
height is its population. Always in the tree, faded and settled by the
|
|
1160
|
+
altitude number: rising, each block grows up out of its card while the
|
|
1161
|
+
card flies to its ring stop — a morph, not a cut. At altitude zero it is
|
|
1162
|
+
fully transparent and costs nothing. */""}
|
|
1156
1163
|
.graview-kind-block {
|
|
1157
1164
|
display: block;
|
|
1158
|
-
/* Architecture, not a control: clicks fall through to the card, and an
|
|
1159
|
-
|
|
1165
|
+
${ /* Architecture, not a control: clicks fall through to the card, and an
|
|
1166
|
+
invisible in-stack block must never sit over a neighbour's tuck. */""}
|
|
1160
1167
|
pointer-events: none;
|
|
1161
1168
|
position: absolute;
|
|
1162
1169
|
left: 8%;
|
|
1163
1170
|
bottom: 2px;
|
|
1164
1171
|
width: 84%;
|
|
1165
1172
|
height: auto;
|
|
1166
|
-
/* Under a marquee the block keeps out of its band: the drawing scales down inside the box. */
|
|
1173
|
+
${ /* Under a marquee the block keeps out of its band: the drawing scales down inside the box. */""}
|
|
1167
1174
|
max-height: calc(100% - var(--graview-marquee-room, 0px));
|
|
1168
1175
|
opacity: var(--graview-altitude);
|
|
1169
1176
|
transform: translateY(calc((1 - var(--graview-altitude)) * 18px));
|
|
@@ -1181,64 +1188,64 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1181
1188
|
fill: hsl(var(--graview-hue, 200) ${scheme === "light" ? "34% 55%" : "38% 13%"});
|
|
1182
1189
|
}
|
|
1183
1190
|
|
|
1184
|
-
/* WHERE THE KIND HAS ITS OWN DRAWING, the drawing is the building.
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1191
|
+
${ /* WHERE THE KIND HAS ITS OWN DRAWING, the drawing is the building.
|
|
1192
|
+
Same footprint as the block, same ground line, same cast shadow — the
|
|
1193
|
+
difference is that the district is now a person, a plot or a vehicle
|
|
1194
|
+
rather than one more box. Size carries the population the box's height
|
|
1195
|
+
used to: the rise the card computed, in a channel a drawing can use.
|
|
1196
|
+
|
|
1197
|
+
Stroke weight is set HERE rather than in the art, because the art is
|
|
1198
|
+
drawn to read at twenty pixels and a 1.4-unit stroke on a 24-unit box
|
|
1199
|
+
becomes a six-pixel marker line at a hundred. Thinned to a drafting
|
|
1200
|
+
line, which is what a blueprint of a thing looks like. */""}
|
|
1194
1201
|
.graview-kind-landmark {
|
|
1195
1202
|
display: block;
|
|
1196
1203
|
left: 50%;
|
|
1197
|
-
/* The block's own two pixels of ground clearance, kept: at altitude zero
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1204
|
+
${ /* The block's own two pixels of ground clearance, kept: at altitude zero
|
|
1205
|
+
every block is pushed eighteen pixels down as part of the morph, and
|
|
1206
|
+
without them the drawing hangs two pixels past the bottom of the scene
|
|
1207
|
+
and gives the whole page a scrollbar's worth of overflow. */""}
|
|
1201
1208
|
bottom: 2px;
|
|
1202
1209
|
aspect-ratio: 1;
|
|
1203
|
-
/* Sized by the card's HEIGHT, not its width: a district card is wider
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1210
|
+
${ /* Sized by the card's HEIGHT, not its width: a district card is wider
|
|
1211
|
+
than it is tall, and a square drawing at 96% of the width stood a third
|
|
1212
|
+
of itself above the card and back through the nameplate. Population is
|
|
1213
|
+
in the drawing's size either way — the same rise the box's height
|
|
1214
|
+
carried, 10 for a district of one and 46 for the largest. */""}
|
|
1208
1215
|
height: calc((100% - var(--graview-marquee-room, 0px)) * (0.72 + var(--graview-rise, 24) * 0.008));
|
|
1209
1216
|
width: auto;
|
|
1210
|
-
/* AND IT KEEPS UP WITH THE WORDS. The card is laid out in pixels off the
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1217
|
+
${ /* AND IT KEEPS UP WITH THE WORDS. The card is laid out in pixels off the
|
|
1218
|
+
stage and the nameplate is sized in rem, so a reader on Largest doubled
|
|
1219
|
+
every name in the city while every drawing under one stayed exactly the
|
|
1220
|
+
size it was — a postage stamp under a headline. A floor in em ties the
|
|
1221
|
+
drawing to the same number the names follow; at the browser's own size
|
|
1222
|
+
it is below what the card already gives and nothing moves.
|
|
1223
|
+
|
|
1224
|
+
Capped at the card, because a floor alone overflowed it: the drawings
|
|
1225
|
+
grew past the box they stand in and were sliced off at the bottom
|
|
1226
|
+
edge — a plot that reads as a V rather than a bed. The card's own
|
|
1227
|
+
height is what the picture can actually show, and the CARD is the thing
|
|
1228
|
+
that still does not follow the reader's size (see below).
|
|
1229
|
+
|
|
1230
|
+
(No back ticks in here: this whole stylesheet is a template literal,
|
|
1231
|
+
and one of them ends it.) */""}
|
|
1225
1232
|
min-height: min(5em, calc(96% - var(--graview-marquee-room, 0px)));
|
|
1226
|
-
/* The morph is a GROWTH from the ground line, not a drop: a block slides
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1233
|
+
${ /* The morph is a GROWTH from the ground line, not a drop: a block slides
|
|
1234
|
+
eighteen pixels down at altitude zero and grows up out of the card, and
|
|
1235
|
+
a drawing given the same treatment hangs below the card it belongs to —
|
|
1236
|
+
two pixels past the bottom of the scene on the lowest row, which is a
|
|
1237
|
+
scrollbar on every ground-level screen in the app. Scaling from the
|
|
1238
|
+
drawing's own feet is the same reading and costs nothing below. */""}
|
|
1232
1239
|
transform-origin: bottom center;
|
|
1233
1240
|
transform: translateX(-50%) scale(calc(0.55 + var(--graview-altitude) * 0.45));
|
|
1234
|
-
/* A cast shadow belongs to a solid; on a line drawing it is a blurred
|
|
1235
|
-
|
|
1236
|
-
|
|
1241
|
+
${ /* A cast shadow belongs to a solid; on a line drawing it is a blurred
|
|
1242
|
+
second copy of every stroke. The drawing keeps a hint of one so it
|
|
1243
|
+
still stands on the lattice rather than floating over it. */""}
|
|
1237
1244
|
filter: drop-shadow(${scheme === "light" ? "6px 5px 7px rgba(20,30,32,0.16)" : "7px 6px 9px rgba(0,0,0,0.45)"});
|
|
1238
1245
|
}
|
|
1239
|
-
/* The nameplate floats ABOVE a drawing rather than standing on it. On a box
|
|
1240
|
-
|
|
1241
|
-
|
|
1246
|
+
${ /* The nameplate floats ABOVE a drawing rather than standing on it. On a box
|
|
1247
|
+
the pill sits on the roof, which is what a label does over a building; on
|
|
1248
|
+
a figure the same 2% put it across the head. */""}
|
|
1242
1249
|
|
|
1243
1250
|
.graview-kind-landmark [data-graview-figure] {
|
|
1244
1251
|
width: 100% !important;
|
|
@@ -1251,29 +1258,29 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1251
1258
|
stroke-width: 0.85;
|
|
1252
1259
|
}
|
|
1253
1260
|
|
|
1254
|
-
/* From altitude the card's face becomes the district's NAMEPLATE: an
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1261
|
+
${ /* From altitude the card's face becomes the district's NAMEPLATE: an
|
|
1262
|
+
upright pill standing on the roof, the way a label floats over a building
|
|
1263
|
+
in any city view — the block carries the architecture, the pill carries
|
|
1264
|
+
the words. Inline styles drew the in-stack card, so the pill overrides
|
|
1265
|
+
must outrank them. */""}
|
|
1259
1266
|
.graview-kind-face {
|
|
1260
1267
|
transition: border-radius 640ms cubic-bezier(0.33, 0, 0.2, 1),
|
|
1261
1268
|
padding 640ms cubic-bezier(0.33, 0, 0.2, 1),
|
|
1262
1269
|
box-shadow 640ms ease;
|
|
1263
1270
|
}
|
|
1264
|
-
/* A SIGNPOST at the plot's front corner. From altitude the nameplate stood
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1271
|
+
${ /* A SIGNPOST at the plot's front corner. From altitude the nameplate stood
|
|
1272
|
+
at the top of the card — over the back row of the village — and the
|
|
1273
|
+
screen had to clear it. It is planted at the front vertex of the tile
|
|
1274
|
+
now, on a short post, where a sign stands at the entrance to a place;
|
|
1275
|
+
the scene says where that vertex is in --graview-front-y. */""}
|
|
1269
1276
|
[data-graview-altitude] .graview-kind-face {
|
|
1270
1277
|
position: absolute !important;
|
|
1271
1278
|
left: 50% !important;
|
|
1272
1279
|
top: 2% !important;
|
|
1273
1280
|
transform: translateX(-50%);
|
|
1274
1281
|
width: max-content;
|
|
1275
|
-
/* Wider than the block when the name is: a label overflows its building
|
|
1276
|
-
|
|
1282
|
+
${ /* Wider than the block when the name is: a label overflows its building
|
|
1283
|
+
the way a map label does. "REQUIRE / MENTS" on two lines does not. */""}
|
|
1277
1284
|
max-width: none;
|
|
1278
1285
|
white-space: nowrap;
|
|
1279
1286
|
height: auto !important;
|
|
@@ -1297,38 +1304,38 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1297
1304
|
height: 10px;
|
|
1298
1305
|
background: var(--graview-ink-faint);
|
|
1299
1306
|
}
|
|
1300
|
-
/* A landmark WITHOUT a plot — a nested card — keeps its plate floating
|
|
1301
|
-
|
|
1302
|
-
|
|
1307
|
+
${ /* A landmark WITHOUT a plot — a nested card — keeps its plate floating
|
|
1308
|
+
above the drawing rather than across its head; one on a plot stands at
|
|
1309
|
+
the signpost like every other district (the rule above). */""}
|
|
1303
1310
|
[data-graview-altitude] [data-graview-landmark]:not([data-graview-plot] *) .graview-kind-face {
|
|
1304
1311
|
top: 0 !important;
|
|
1305
1312
|
transform: translate(-50%, calc(-100% - 7px));
|
|
1306
1313
|
}
|
|
1307
|
-
/* The drive-in's board hangs UNDER the signpost, in the ground the layout
|
|
1308
|
-
|
|
1314
|
+
${ /* The drive-in's board hangs UNDER the signpost, in the ground the layout
|
|
1315
|
+
reserved for it below the tile's front corner, not over the village. */""}
|
|
1309
1316
|
[data-graview-altitude] .graview-drive-in {
|
|
1310
1317
|
top: calc(var(--graview-front-y, 42px) + 12px);
|
|
1311
1318
|
}
|
|
1312
|
-
/* An OPENED district's listing takes the ground under the signpost; the
|
|
1313
|
-
|
|
1319
|
+
${ /* An OPENED district's listing takes the ground under the signpost; the
|
|
1320
|
+
board steps up over the village, which the listing covers anyway. */""}
|
|
1314
1321
|
[data-graview-altitude] .graview-kind-face[data-graview-opened] ~ .graview-drive-in {
|
|
1315
1322
|
top: calc(var(--graview-front-y, 42px) - 22px - var(--graview-marquee-room, 0px) + 8px);
|
|
1316
1323
|
}
|
|
1317
|
-
/* THE LANDMARK STANDS IN THE SQUARE: its feet at the plot's centre, among
|
|
1318
|
-
|
|
1319
|
-
|
|
1324
|
+
${ /* THE LANDMARK STANDS IN THE SQUARE: its feet at the plot's centre, among
|
|
1325
|
+
the buildings, rather than at the card's bottom edge — which, once the
|
|
1326
|
+
card grew for a board, was out in the road in front of the village. */""}
|
|
1320
1327
|
[data-graview-altitude] [data-graview-plot] .graview-kind-landmark {
|
|
1321
1328
|
bottom: auto;
|
|
1322
1329
|
top: calc(var(--graview-centre-y, 50%) + 10px);
|
|
1323
1330
|
transform: translate(-50%, -100%) scale(calc(0.55 + var(--graview-altitude) * 0.45));
|
|
1324
1331
|
}
|
|
1325
|
-
/* ZOOM, in the ground's corner: the way a map carries its own. Two
|
|
1326
|
-
|
|
1332
|
+
${ /* ZOOM, in the ground's corner: the way a map carries its own. Two
|
|
1333
|
+
fingertip-sized buttons and the level between them, shown from altitude. */""}
|
|
1327
1334
|
.graview-zoom {
|
|
1328
1335
|
position: absolute;
|
|
1329
1336
|
right: 16px;
|
|
1330
1337
|
bottom: 16px;
|
|
1331
|
-
/* Above the occupants: a robot walking past a control must not cover it. */
|
|
1338
|
+
${ /* Above the occupants: a robot walking past a control must not cover it. */""}
|
|
1332
1339
|
z-index: 8;
|
|
1333
1340
|
display: inline-flex;
|
|
1334
1341
|
align-items: center;
|
|
@@ -1366,16 +1373,16 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1366
1373
|
font-variant-numeric: tabular-nums;
|
|
1367
1374
|
}
|
|
1368
1375
|
|
|
1369
|
-
/* THE SCREEN IS A BILLBOARD at the back of the village: a frame, and two
|
|
1370
|
-
|
|
1371
|
-
/* On the NATURAL BOX, which is the picture now: the layout cuts the
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1376
|
+
${ /* THE SCREEN IS A BILLBOARD at the back of the village: a frame, and two
|
|
1377
|
+
posts into the ground at its foot. */""}
|
|
1378
|
+
${ /* On the NATURAL BOX, which is the picture now: the layout cuts the
|
|
1379
|
+
billboard to what the lens drew (measured by the scene), never shorter
|
|
1380
|
+
than a screen's worth — so the box is the picture, and an empty lens is a
|
|
1381
|
+
header over an empty screen rather than a strip floating over the
|
|
1382
|
+
village. The frame used to sit on the drawing itself, from the days the
|
|
1383
|
+
box was as tall as the window with the picture in its top third. It
|
|
1384
|
+
carries the panel's own ground so the empty part of a screen is a screen
|
|
1385
|
+
and not the field showing through a frame. */""}
|
|
1379
1386
|
[data-graview-altitude] [data-graview-screen] > [data-graview-natural],
|
|
1380
1387
|
[data-graview-altitude] [data-graview-screen] > :not([data-graview-natural]):not(.graview-kind-tag) {
|
|
1381
1388
|
outline: 2px solid color-mix(in oklab, var(--graview-ink) 60%, var(--graview-panel));
|
|
@@ -1401,31 +1408,31 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1401
1408
|
[data-graview-altitude] [data-graview-screen] > [data-graview-natural]::after,
|
|
1402
1409
|
[data-graview-altitude] [data-graview-screen] > :not([data-graview-natural]):not(.graview-kind-tag)::after { right: 22%; }
|
|
1403
1410
|
|
|
1404
|
-
/* A thing inside a view that is itself a thing: an event in a calendar, a
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
/* A card someone dragged into place. Marked, not decorated: a dotted tie to
|
|
1409
|
-
|
|
1410
|
-
/* On the CHILD, not the host: the host is the layout's box, and a view
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
/* And never on the natural box either — a view drawn scaled sits inside a
|
|
1415
|
-
|
|
1416
|
-
|
|
1411
|
+
${ /* A thing inside a view that is itself a thing: an event in a calendar, a
|
|
1412
|
+
person in a list. It has to look reachable, and it has to SHOW focus —
|
|
1413
|
+
these are the primary way anyone moves through the graph, so a keyboard
|
|
1414
|
+
user who cannot see where they are is stuck. */""}
|
|
1415
|
+
${ /* A card someone dragged into place. Marked, not decorated: a dotted tie to
|
|
1416
|
+
say this position is held rather than computed. */""}
|
|
1417
|
+
${ /* On the CHILD, not the host: the host is the layout's box, and a view
|
|
1418
|
+
that sizes to its content (a zoomed record, a fit panel) fills only part
|
|
1419
|
+
of it — a dashed box around the empty remainder read as a drawing
|
|
1420
|
+
mistake, not a mark. */""}
|
|
1421
|
+
${ /* And never on the natural box either — a view drawn scaled sits inside a
|
|
1422
|
+
box the size of the whole scene, and the mark belongs on the drawing, not
|
|
1423
|
+
on the box; nor on the kind tag, which is a label and not the thing. */""}
|
|
1417
1424
|
[data-graview-pinned] > :not([data-graview-natural]):not(.graview-kind-tag),
|
|
1418
1425
|
[data-graview-pinned] > [data-graview-natural] > * {
|
|
1419
1426
|
outline: 1px dashed var(--graview-edge-bright);
|
|
1420
1427
|
outline-offset: 3px;
|
|
1421
1428
|
border-radius: 12px;
|
|
1422
1429
|
}
|
|
1423
|
-
/* AND NOT FROM ALTITUDE, where a district is a village on a plot and its
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1430
|
+
${ /* AND NOT FROM ALTITUDE, where a district is a village on a plot and its
|
|
1431
|
+
card is a box with nothing drawn in it: the dashed outline was the only
|
|
1432
|
+
visible part, so a hand-placed district read as an empty rounded
|
|
1433
|
+
rectangle sitting on the ground — several of them, in a picture that had
|
|
1434
|
+
no rectangles in it. The plot's own kerb goes dashed up here, which is
|
|
1435
|
+
the same fact said where the district actually is. */""}
|
|
1429
1436
|
[data-graview-altitude] [data-graview-pinned] > :not([data-graview-natural]):not(.graview-kind-tag),
|
|
1430
1437
|
[data-graview-altitude] [data-graview-pinned] > [data-graview-natural] > * {
|
|
1431
1438
|
outline: none;
|
|
@@ -1443,10 +1450,10 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1443
1450
|
outline-offset: 2px;
|
|
1444
1451
|
border-radius: 7px;
|
|
1445
1452
|
}
|
|
1446
|
-
/* On a board the keyboard ring hugs the DISC, not the disc-plus-label
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1453
|
+
${ /* On a board the keyboard ring hugs the DISC, not the disc-plus-label
|
|
1454
|
+
group: a rectangle drawn around a circle read as a mystery box on the
|
|
1455
|
+
pitch ("why does Left Midfield have this box?"), when all it ever said
|
|
1456
|
+
was "the keyboard is here". */""}
|
|
1450
1457
|
[data-graview-slot]:focus-visible {
|
|
1451
1458
|
outline: none;
|
|
1452
1459
|
}
|
|
@@ -1454,7 +1461,7 @@ code, kbd, samp { font-family: var(--graview-font-mono); }
|
|
|
1454
1461
|
box-shadow: 0 0 0 2px var(--graview-ground), 0 0 0 4px var(--graview-accent);
|
|
1455
1462
|
}
|
|
1456
1463
|
|
|
1457
|
-
/* A view is a thing you can act on. It should look like one. */
|
|
1464
|
+
${ /* A view is a thing you can act on. It should look like one. */""}
|
|
1458
1465
|
[data-graview-view] { cursor: pointer; }
|
|
1459
1466
|
[data-graview-view]:hover { filter: brightness(${scheme === "light" ? 0.985 : 1.12}); }
|
|
1460
1467
|
[data-graview-view]:focus-visible {
|
|
@@ -1488,25 +1495,25 @@ button:disabled { opacity: 0.45; cursor: default; }
|
|
|
1488
1495
|
|
|
1489
1496
|
code { color: var(--graview-ink-muted); font-size: 0.8125rem; letter-spacing: 0.02em; }
|
|
1490
1497
|
|
|
1491
|
-
/* A view host, once the scene has placed it. The transition is on filter
|
|
1492
|
-
|
|
1493
|
-
|
|
1498
|
+
${ /* A view host, once the scene has placed it. The transition is on filter
|
|
1499
|
+
only — never on layout properties, which would make every navigation
|
|
1500
|
+
reflow the page. */""}
|
|
1494
1501
|
[data-graview-view] {
|
|
1495
1502
|
transition: filter 260ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
1496
1503
|
}
|
|
1497
1504
|
|
|
1498
|
-
/* WHAT YOU CAN PRESS IS WHAT YOU CAN SEE.
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1505
|
+
${ /* WHAT YOU CAN PRESS IS WHAT YOU CAN SEE.
|
|
1506
|
+
|
|
1507
|
+
A host is the box the LAYOUT gave a view — a band on the ground, the whole
|
|
1508
|
+
scene scaled small from altitude — and a view that sizes to its content
|
|
1509
|
+
fills only part of it. The rest is invisible, and an invisible box must
|
|
1510
|
+
not be a target: a record read from altitude and pinned beside a district
|
|
1511
|
+
covered that district's open button with nothing at all, and the button
|
|
1512
|
+
stopped answering. So the host itself is out of hit-testing on the DOM
|
|
1513
|
+
path and only the drawn content is in; every handler still hears the
|
|
1514
|
+
content's events on the way up. The GPU path keeps its own rule: there
|
|
1515
|
+
the whole subtree stays out, because the platform's hit-test descending
|
|
1516
|
+
into a captured view brings the renderer down. */""}
|
|
1510
1517
|
[data-graview-stage="dom"] [data-graview-view],
|
|
1511
1518
|
[data-graview-stage="dom"] [data-graview-view] > [data-graview-natural] {
|
|
1512
1519
|
pointer-events: none;
|
|
@@ -1519,11 +1526,11 @@ code { color: var(--graview-ink-muted); font-size: 0.8125rem; letter-spacing: 0.
|
|
|
1519
1526
|
filter: drop-shadow(0 0 14px var(--graview-accent-dim));
|
|
1520
1527
|
}
|
|
1521
1528
|
|
|
1522
|
-
/* A node implicated by the last change, whoever made it. The pulse is the
|
|
1523
|
-
|
|
1524
|
-
/* THE SEAT'S MARK on what it just wrote: its own glyph, in its own hue, at
|
|
1525
|
-
|
|
1526
|
-
|
|
1529
|
+
${ /* A node implicated by the last change, whoever made it. The pulse is the
|
|
1530
|
+
same for a human edit and an agent edit, because the diff is. */""}
|
|
1531
|
+
${ /* THE SEAT'S MARK on what it just wrote: its own glyph, in its own hue, at
|
|
1532
|
+
the thing's top-right corner. It arrives with the change and fades with
|
|
1533
|
+
it; the companion's log is what remembers. */""}
|
|
1527
1534
|
.graview-seat-marks {
|
|
1528
1535
|
position: absolute;
|
|
1529
1536
|
inset: 0;
|
|
@@ -1546,9 +1553,9 @@ code { color: var(--graview-ink-muted); font-size: 0.8125rem; letter-spacing: 0.
|
|
|
1546
1553
|
box-shadow: var(--graview-lift-low);
|
|
1547
1554
|
animation: graview-seat-mark 4000ms ease-out forwards;
|
|
1548
1555
|
}
|
|
1549
|
-
/* A QUESTION THE SEAT ASKED, standing at the node it is about: it says
|
|
1550
|
-
|
|
1551
|
-
|
|
1556
|
+
${ /* A QUESTION THE SEAT ASKED, standing at the node it is about: it says
|
|
1557
|
+
itself and waits, because a dot nobody can read is a question nobody
|
|
1558
|
+
answers. It does not fade — an unanswered question is still open. */""}
|
|
1552
1559
|
.graview-seat-asking {
|
|
1553
1560
|
position: absolute;
|
|
1554
1561
|
transform: translate(-50%, -100%);
|
|
@@ -1599,20 +1606,20 @@ code { color: var(--graview-ink-muted); font-size: 0.8125rem; letter-spacing: 0.
|
|
|
1599
1606
|
border-radius: 10px;
|
|
1600
1607
|
}
|
|
1601
1608
|
|
|
1602
|
-
/* ------------------------------------------------------------ watching
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1609
|
+
${ /* ------------------------------------------------------------ watching
|
|
1610
|
+
*
|
|
1611
|
+
* From outside the plane stack, activity has somewhere to HAPPEN: a kind
|
|
1612
|
+
* lights where an edit landed, an edge pulses where a relation was made or
|
|
1613
|
+
* broken, and a flag appears where a rule started failing. All of it is
|
|
1614
|
+
* derived from the op log — author, intent, reads and writes — and all of it
|
|
1615
|
+
* is drawn by these rules rather than by a frame loop, which is why watching
|
|
1616
|
+
* costs nothing while nothing is happening.
|
|
1617
|
+
*
|
|
1618
|
+
* Who moved is carried in HUE, not in a badge. A person is the accent the
|
|
1619
|
+
* whole interface already uses for "you did this"; an agent is a colder cast,
|
|
1620
|
+
* so a turn it took on its own is distinguishable at a glance from one you
|
|
1621
|
+
* directed; both at once takes both.
|
|
1622
|
+
*/""}
|
|
1616
1623
|
[data-graview-activity] {
|
|
1617
1624
|
--graview-activity: var(--graview-accent);
|
|
1618
1625
|
}
|
|
@@ -1636,9 +1643,9 @@ code { color: var(--graview-ink-muted); font-size: 0.8125rem; letter-spacing: 0.
|
|
|
1636
1643
|
border-radius: 10px;
|
|
1637
1644
|
}
|
|
1638
1645
|
|
|
1639
|
-
/* What an agent READ is the half a diff cannot show, and the half that says
|
|
1640
|
-
|
|
1641
|
-
|
|
1646
|
+
${ /* What an agent READ is the half a diff cannot show, and the half that says
|
|
1647
|
+
whether to trust what it then did. Quieter than a write on purpose: it is
|
|
1648
|
+
evidence of attention, not of a change. */""}
|
|
1642
1649
|
@keyframes graview-considered {
|
|
1643
1650
|
0% { outline-color: transparent; }
|
|
1644
1651
|
25% { outline-color: var(--graview-activity); }
|
|
@@ -1652,15 +1659,15 @@ code { color: var(--graview-ink-muted); font-size: 0.8125rem; letter-spacing: 0.
|
|
|
1652
1659
|
animation: graview-considered 1800ms ease-out;
|
|
1653
1660
|
}
|
|
1654
1661
|
|
|
1655
|
-
/* A rule that has just begun to fail. It outlives the edit that caused it,
|
|
1656
|
-
|
|
1662
|
+
${ /* A rule that has just begun to fail. It outlives the edit that caused it,
|
|
1663
|
+
because the problem does. */""}
|
|
1657
1664
|
[data-graview-view][data-graview-broke] > * {
|
|
1658
1665
|
box-shadow: 0 0 0 1px var(--graview-warn), 0 0 22px -6px var(--graview-warn);
|
|
1659
1666
|
border-radius: 10px;
|
|
1660
1667
|
}
|
|
1661
1668
|
|
|
1662
|
-
/* A relation made or broken: both ends were written, so the line between
|
|
1663
|
-
|
|
1669
|
+
${ /* A relation made or broken: both ends were written, so the line between
|
|
1670
|
+
them is the thing that changed. */""}
|
|
1664
1671
|
@keyframes graview-relation {
|
|
1665
1672
|
0% { stroke-opacity: 0.28; stroke-width: 1.4; }
|
|
1666
1673
|
30% { stroke-opacity: 1; stroke-width: 3; }
|
|
@@ -1670,28 +1677,28 @@ code { color: var(--graview-ink-muted); font-size: 0.8125rem; letter-spacing: 0.
|
|
|
1670
1677
|
animation: graview-relation 1200ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
1671
1678
|
}
|
|
1672
1679
|
|
|
1673
|
-
/*
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1680
|
+
${ /*
|
|
1681
|
+
* MOTION, ASKED OF THE SYSTEM AND OVERRIDABLE BY THE PERSON.
|
|
1682
|
+
*
|
|
1683
|
+
* The system's own preference is the default and always was. The "motion"
|
|
1684
|
+
* setting (see readerSettings) stamps data-graview-motion on the root
|
|
1685
|
+
* element when — and only when — a reader overrides it: "reduce" turns the same
|
|
1686
|
+
* rules on for somebody whose system says otherwise, and "full" turns them
|
|
1687
|
+
* off for somebody whose system says reduce and who wants the movement
|
|
1688
|
+
* here anyway. Choosing "as your system has it" removes the attribute, so
|
|
1689
|
+
* the media query is what answers again.
|
|
1690
|
+
*
|
|
1691
|
+
* Written as one rule list under two selectors rather than duplicated,
|
|
1692
|
+
* because a stylesheet where the two copies can drift is a stylesheet where
|
|
1693
|
+
* they will.
|
|
1694
|
+
*/""}
|
|
1688
1695
|
@media (prefers-reduced-motion: reduce) {
|
|
1689
1696
|
.graview-figure { transition: none; }
|
|
1690
1697
|
${stillness(`${motionRoot}:not([data-graview-motion='full'])`, text)}
|
|
1691
1698
|
}
|
|
1692
1699
|
${stillness(`${motionRoot}[data-graview-motion='reduce']`, text)}
|
|
1693
1700
|
|
|
1694
|
-
/* VIEWS AS DATA (FR-03): the blocks a view spec is drawn with, over the tokens above. */
|
|
1701
|
+
${ /* VIEWS AS DATA (FR-03): the blocks a view spec is drawn with, over the tokens above. */""}
|
|
1695
1702
|
${SPEC_VIEW_CSS}`;
|
|
1696
1703
|
}
|
|
1697
1704
|
//# sourceMappingURL=theme.js.map
|