clavarium 0.2.26 → 0.2.27-next.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.
- package/npm-shrinkwrap.json +10 -10
- package/package.json +3 -3
- package/server/binders.mjs +29 -9
- package/server/main.mjs +2 -1
- package/web/app.js +150 -25
- package/web/style.css +72 -27
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.27-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
|
13
13
|
"@xterm/xterm": "^6.0.0",
|
|
14
|
-
"clavarium-binder": "0.1.
|
|
14
|
+
"clavarium-binder": "0.1.3-next.3",
|
|
15
15
|
"clavarium-docket": "0.1.1",
|
|
16
|
-
"clavarium-parley": "0.
|
|
16
|
+
"clavarium-parley": "0.17.0-next.1",
|
|
17
17
|
"mermaid": "11.17.2",
|
|
18
18
|
"node-pty": "^1.1.0",
|
|
19
19
|
"pdfjs-dist": "6.4.299",
|
|
@@ -688,9 +688,9 @@
|
|
|
688
688
|
}
|
|
689
689
|
},
|
|
690
690
|
"node_modules/clavarium-binder": {
|
|
691
|
-
"version": "0.1.
|
|
692
|
-
"resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.
|
|
693
|
-
"integrity": "sha512-
|
|
691
|
+
"version": "0.1.3-next.3",
|
|
692
|
+
"resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.3-next.3.tgz",
|
|
693
|
+
"integrity": "sha512-2dBd5DGT8LjyNqwKRmeiKs5Fg6TemVhJhbItLzktHil7bU61FCIY2b6pdPdBinPYfm2zWSib6mUhVaZdfODo4A==",
|
|
694
694
|
"license": "MIT",
|
|
695
695
|
"bin": {
|
|
696
696
|
"binder": "bin/binder.mjs",
|
|
@@ -714,9 +714,9 @@
|
|
|
714
714
|
}
|
|
715
715
|
},
|
|
716
716
|
"node_modules/clavarium-parley": {
|
|
717
|
-
"version": "0.
|
|
718
|
-
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.
|
|
719
|
-
"integrity": "sha512-
|
|
717
|
+
"version": "0.17.0-next.1",
|
|
718
|
+
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.0-next.1.tgz",
|
|
719
|
+
"integrity": "sha512-2kE+wIq8lMlza2iBpLHqFOGsAZJUYlnWO3ehu7DuiQOBXa6lePoxyUH1wq3CbCP8dTxlciQIFBMVaKDfbjMAKA==",
|
|
720
720
|
"license": "MIT",
|
|
721
721
|
"bin": {
|
|
722
722
|
"parley": "bin/parley.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27-next.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@xterm/addon-fit": "^0.11.0",
|
|
46
46
|
"@xterm/xterm": "^6.0.0",
|
|
47
|
-
"clavarium-binder": "0.1.
|
|
47
|
+
"clavarium-binder": "0.1.3-next.3",
|
|
48
48
|
"clavarium-docket": "0.1.1",
|
|
49
|
-
"clavarium-parley": "0.
|
|
49
|
+
"clavarium-parley": "0.17.0-next.1",
|
|
50
50
|
"mermaid": "11.17.2",
|
|
51
51
|
"node-pty": "^1.1.0",
|
|
52
52
|
"pdfjs-dist": "6.4.299",
|
package/server/binders.mjs
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
* ITS DOCKET IS TOLD (dockets.mjs) when the owner gives it a record, approves
|
|
17
17
|
* one it owns, or a record it owns comes due.
|
|
18
|
+
*
|
|
19
|
+
* A CARD COMES DUE (Binder's rule: a date alone at 09:00 this server's time,
|
|
20
|
+
* a date and time at that time; not done, not archived): each conversation
|
|
21
|
+
* that owns it is posted one event (kind binder/due, its title and list, data
|
|
22
|
+
* the card), and where a person owns it, the owner's devices are told once
|
|
23
|
+
* (alerts.mjs). Binder keeps what it gave, so a restart says nothing again;
|
|
24
|
+
* a due date moved says it again when the new time comes.
|
|
18
25
|
*/
|
|
19
26
|
import { mkdirSync, lstatSync } from 'node:fs';
|
|
20
27
|
import { keeper } from 'clavarium-binder/host';
|
|
@@ -22,15 +29,18 @@ import { keeper } from 'clavarium-binder/host';
|
|
|
22
29
|
export const FOLDER = '.binder';
|
|
23
30
|
export const PUMP_MS = 1000;
|
|
24
31
|
export const DUE_MS = 30_000;
|
|
32
|
+
export const DUE_KIND = 'binder/due';
|
|
25
33
|
const AGENT = 'conversation:';
|
|
34
|
+
const PERSON = 'person:';
|
|
26
35
|
|
|
27
36
|
export class Binders {
|
|
28
|
-
#keeper; #resources; #conversations; #dockets; #team; #timers = []; #changes = 0; #ready = new Set();
|
|
37
|
+
#keeper; #resources; #conversations; #dockets; #team; #alert; #timers = []; #changes = 0; #ready = new Set();
|
|
29
38
|
|
|
30
39
|
/* `conversations()`: the names of the conversations. `dockets`: Dockets (optional): a tool told.
|
|
31
|
-
`team`: the operators (optional), each a person who may own a record.
|
|
32
|
-
|
|
33
|
-
|
|
40
|
+
`team`: the operators (optional), each a person who may own a record. `alert({title, body, url})`:
|
|
41
|
+
the owner's devices (optional), told of a card a person owns that came due. */
|
|
42
|
+
constructor({ dataDir, resources, conversations, dockets = null, team = null, alert = null, now = () => Date.now() }) {
|
|
43
|
+
this.#resources = resources; this.#conversations = conversations; this.#dockets = dockets; this.#team = team; this.#alert = alert;
|
|
34
44
|
this.#keeper = keeper(`${dataDir}/binder`, { sides: () => this.#sides(), now });
|
|
35
45
|
this.#keeper.store.onChange((line) => { this.#changes++; this.#heard(line); });
|
|
36
46
|
}
|
|
@@ -50,10 +60,22 @@ export class Binders {
|
|
|
50
60
|
}
|
|
51
61
|
|
|
52
62
|
/* A tool told, through its docket, of what concerns it. */
|
|
53
|
-
#tell(id, text) {
|
|
63
|
+
#tell(id, text, kind = 'binder', data = undefined) {
|
|
54
64
|
if (!this.#dockets || !id.startsWith(AGENT)) return;
|
|
55
65
|
const name = id.slice(AGENT.length);
|
|
56
|
-
try { this.#dockets.post(name, { kind
|
|
66
|
+
try { this.#dockets.post(name, { kind, text, ...(data ? { data } : {}) }); } catch { /* its docket may be off */ }
|
|
67
|
+
}
|
|
68
|
+
/* The cards come due since the last look: told to who owns them, once. */
|
|
69
|
+
remind() {
|
|
70
|
+
const told = [];
|
|
71
|
+
for (const { record: r, list: l } of this.#keeper.due()) {
|
|
72
|
+
for (const id of r.owners) this.#tell(id, `Due: #${r.id} ${r.title} (${l.title})`, DUE_KIND, { card: r.id, list: l.id, due: r.due });
|
|
73
|
+
if (this.#alert && r.owners.some((id) => id.startsWith(PERSON))) {
|
|
74
|
+
try { void Promise.resolve(this.#alert({ title: 'Due', body: `${r.title} (${l.title})`, url: `/?open=lists&a=${encodeURIComponent(`list:${l.id}`)}` })).catch(() => {}); } catch { /* as said */ }
|
|
75
|
+
}
|
|
76
|
+
told.push(r.id);
|
|
77
|
+
}
|
|
78
|
+
return told;
|
|
57
79
|
}
|
|
58
80
|
#heard(line) {
|
|
59
81
|
if (line.by?.kind !== 'person' || !line.record) return;
|
|
@@ -67,9 +89,7 @@ export class Binders {
|
|
|
67
89
|
|
|
68
90
|
start() {
|
|
69
91
|
this.#timers.push(setInterval(() => { try { this.#keeper.pump(); } catch { /* the next turn */ } }, PUMP_MS));
|
|
70
|
-
this.#timers.push(setInterval(() => {
|
|
71
|
-
try { for (const { record: r } of this.#keeper.due()) for (const id of r.owners) this.#tell(id, `Due in Binder: #${r.id} ${r.title} (${r.due})`); } catch { /* the next turn */ }
|
|
72
|
-
}, DUE_MS));
|
|
92
|
+
this.#timers.push(setInterval(() => { try { this.remind(); } catch { /* the next turn */ } }, DUE_MS));
|
|
73
93
|
for (const t of this.#timers) t.unref?.();
|
|
74
94
|
return () => { for (const t of this.#timers) clearInterval(t); this.#timers = []; };
|
|
75
95
|
}
|
package/server/main.mjs
CHANGED
|
@@ -393,7 +393,8 @@ export async function startHome({ port, host, dataDir, mntDir = dataDir, gitRese
|
|
|
393
393
|
const wakeTimer = wakeups.start(wakeEveryMs);
|
|
394
394
|
const docketTimer = dockets.start(wakeEveryMs);
|
|
395
395
|
/* Lists kept with the tools, held here: see binders.mjs. */
|
|
396
|
-
const binders = new Binders({ dataDir, resources: folders, conversations: () => all.list().map((c) => c.name), dockets, team
|
|
396
|
+
const binders = new Binders({ dataDir, resources: folders, conversations: () => all.list().map((c) => c.name), dockets, team,
|
|
397
|
+
alert: (message) => alerts.tell({ ...message, title: `${instance.name()}: ${message.title}` }) });
|
|
397
398
|
const stopBinders = binders.start();
|
|
398
399
|
/* A repository's origin kept up to date, checks run in the machine, and
|
|
399
400
|
automatic sending to the branches the owner listed: see gitkeeper.mjs. */
|
package/web/app.js
CHANGED
|
@@ -50,20 +50,22 @@
|
|
|
50
50
|
const handle = document.getElementById('list-resize');
|
|
51
51
|
if (!handle) return;
|
|
52
52
|
let kept = LIST_USUAL; try { kept = Number(localStorage.getItem(LIST_WIDTH)) || LIST_USUAL; } catch { /* none */ }
|
|
53
|
+
/* What the person chose, kept apart from what the window allows: a narrower window (a tablet turned) narrows the list for a while, not for good. */
|
|
54
|
+
let chosen = kept;
|
|
53
55
|
listWidth(kept);
|
|
54
56
|
let drag = null;
|
|
55
57
|
handle.addEventListener('pointerdown', (e) => { if (e.button !== 0) return; drag = { id: e.pointerId }; handle.setPointerCapture(e.pointerId); handle.dataset.dragging = 'true'; e.preventDefault(); });
|
|
56
58
|
handle.addEventListener('pointermove', (e) => { if (!drag || e.pointerId !== drag.id) return; listWidth(e.clientX - document.getElementById('app').getBoundingClientRect().left); });
|
|
57
|
-
const end = (e) => { if (!drag || e.pointerId !== drag.id) return; drag = null; delete handle.dataset.dragging;
|
|
59
|
+
const end = (e) => { if (!drag || e.pointerId !== drag.id) return; drag = null; delete handle.dataset.dragging; chosen = Number(handle.getAttribute('aria-valuenow')); keepWidth(chosen); };
|
|
58
60
|
handle.addEventListener('pointerup', end); handle.addEventListener('pointercancel', end);
|
|
59
|
-
handle.addEventListener('dblclick', () =>
|
|
61
|
+
handle.addEventListener('dblclick', () => { chosen = listWidth(LIST_USUAL); keepWidth(chosen); });
|
|
60
62
|
handle.addEventListener('keydown', (e) => {
|
|
61
63
|
const now = Number(handle.getAttribute('aria-valuenow')) || LIST_USUAL;
|
|
62
64
|
const to = e.key === 'ArrowLeft' ? now - 16 : e.key === 'ArrowRight' ? now + 16 : e.key === 'Home' ? LIST_MIN : e.key === 'End' ? LIST_MAX : e.key === 'Enter' ? LIST_USUAL : null;
|
|
63
65
|
if (to === null) return;
|
|
64
|
-
e.preventDefault();
|
|
66
|
+
e.preventDefault(); chosen = listWidth(to); keepWidth(chosen);
|
|
65
67
|
});
|
|
66
|
-
addEventListener('resize', () => listWidth(
|
|
68
|
+
addEventListener('resize', () => listWidth(chosen));
|
|
67
69
|
})();
|
|
68
70
|
/* On the device page some controls do not exist; what would have been
|
|
69
71
|
done to them is done to a detached element instead, and is lost. */
|
|
@@ -338,9 +340,12 @@
|
|
|
338
340
|
nothing -- so nothing is left blank, and nothing jumps at the end. */
|
|
339
341
|
const sliders = () => ['list', 'nav'].map((id) => $(id)).filter(Boolean);
|
|
340
342
|
const slide = (out, width) => {
|
|
341
|
-
|
|
342
|
-
const
|
|
343
|
-
|
|
343
|
+
/* Quick at first, gentle at the end, both ways (a reversed curve started slowly: it felt late). */
|
|
344
|
+
const how = { duration: 220, easing: 'cubic-bezier(.2, .8, .2, 1)' };
|
|
345
|
+
const away = [{ transform: 'none' }, { transform: 'translateX(-100%)' }];
|
|
346
|
+
const shifted = [{ transform: `translateX(${width}px)` }, { transform: 'none' }];
|
|
347
|
+
const moving = sliders().map((e) => e.animate(out ? away : [...away].reverse(), how));
|
|
348
|
+
moving.push($('room').animate(out ? shifted : [...shifted].reverse(), how));
|
|
344
349
|
return Promise.all(moving.map((a) => a.finished.catch(() => {})));
|
|
345
350
|
};
|
|
346
351
|
const still = () => window.matchMedia?.('(prefers-reduced-motion: reduce)').matches || window.innerWidth <= 700;
|
|
@@ -349,8 +354,9 @@
|
|
|
349
354
|
try { localStorage.setItem('clavarium-list', listFolded ? 'folded' : 'open'); } catch { /* as above */ }
|
|
350
355
|
const folded = listFolded;
|
|
351
356
|
if (still()) { applyFold(folded); fit.fit(); focusTerminal(); return; }
|
|
352
|
-
|
|
357
|
+
/* Measured once it slides: folded, the list has no width until then (the room did not move, then jumped). */
|
|
353
358
|
app.classList.add('sliding');
|
|
359
|
+
const width = $('list').getBoundingClientRect().width;
|
|
354
360
|
if (folded) { applyFold(true); fit.fit(); }
|
|
355
361
|
await slide(folded, width);
|
|
356
362
|
app.classList.remove('sliding');
|
|
@@ -447,6 +453,15 @@
|
|
|
447
453
|
if (box) { if (!touchScreen) box.focus({ preventScroll: true }); return; }
|
|
448
454
|
terminal.focus();
|
|
449
455
|
};
|
|
456
|
+
/* A FIELD THE PERSON IS WRITING IN IS LEFT ALONE by what the page does on its own (a connection opened
|
|
457
|
+
again, a conversation opened): the focus is not taken from it -- on a touch screen that would put the
|
|
458
|
+
keyboard away under the finger (a word being corrected, a name being typed). */
|
|
459
|
+
const writingIn = () => {
|
|
460
|
+
const field = document.activeElement;
|
|
461
|
+
if (!(field instanceof HTMLElement) || field === terminal.textarea || field.getClientRects().length === 0) return false;
|
|
462
|
+
return field.isContentEditable || field.matches('input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=file]), textarea, select');
|
|
463
|
+
};
|
|
464
|
+
const focusTerminalUnasked = () => { if (writingIn()) applyKeyboard(); else focusTerminal(); };
|
|
450
465
|
/* A field the page would like to put the cursor in for the person. With
|
|
451
466
|
the lock on it is only brought into sight: focusing it would raise the
|
|
452
467
|
keyboard the person asked to keep away. A read-only field raises no
|
|
@@ -561,7 +576,7 @@
|
|
|
561
576
|
else later(T.repair, () => void repairTerminal(name));
|
|
562
577
|
later(T.offer, () => void explainMachine(true, true));
|
|
563
578
|
/* Open means the bridge answered, not that the machine is awake yet. */
|
|
564
|
-
mine.onopen = () => { say('opening', 'connecting');
|
|
579
|
+
mine.onopen = () => { say('opening', 'connecting'); focusTerminalUnasked(); };
|
|
565
580
|
mine.onmessage = (event) => {
|
|
566
581
|
/* Binary is terminal output. Text is the bridge talking to the page. */
|
|
567
582
|
if (typeof event.data !== 'string') {
|
|
@@ -1671,7 +1686,7 @@
|
|
|
1671
1686
|
function showTab(which, pick) {
|
|
1672
1687
|
if (which === 'assets') { closePanelZone(); void openRoomAssets(pick); return; }
|
|
1673
1688
|
if (which === 'settings') { closeRoomAssets(); openPanelZone(); return; }
|
|
1674
|
-
if (which === 'lists') { closeRoomAssets(); closePanelZone(); void openRoomLists(); return; }
|
|
1689
|
+
if (which === 'lists') { closeRoomAssets(); closePanelZone(); void openRoomLists(pick); return; }
|
|
1675
1690
|
closeRoomAssets(); closePanelZone(); closeRoomLists();
|
|
1676
1691
|
if ((which === 'chat') !== simple) toggleSimple(); else { paintViews(); if (!simple) focusTerminal(); }
|
|
1677
1692
|
}
|
|
@@ -1697,7 +1712,7 @@
|
|
|
1697
1712
|
}
|
|
1698
1713
|
/* Another conversation, or the same one started again: its first tab, nothing open over it. */
|
|
1699
1714
|
function resetTabs() {
|
|
1700
|
-
if (!DEVICE) nav.cut(nav.first(['tab', 'asset', 'review', 'over']));
|
|
1715
|
+
if (!DEVICE) nav.cut(nav.first(['tab', 'binder', 'asset', 'review', 'over']));
|
|
1701
1716
|
else nav.cut(nav.first(['over']));
|
|
1702
1717
|
closeRoomAssets(); closePanelZone(); closeRoomLists();
|
|
1703
1718
|
$('files').hidden = $('copy').hidden = true;
|
|
@@ -1708,17 +1723,32 @@
|
|
|
1708
1723
|
$('view-terminal').addEventListener('click', () => goTab('terminal'));
|
|
1709
1724
|
$('view-assets').addEventListener('click', () => goTab('assets'));
|
|
1710
1725
|
$('view-lists').addEventListener('click', () => goTab('lists'));
|
|
1711
|
-
/* ITS LISTS: Binder's screen, cut to the lists given to it (read or write).
|
|
1712
|
-
|
|
1726
|
+
/* ITS LISTS: Binder's screen, cut to the lists given to it (read or write). Its binder and
|
|
1727
|
+
card are in the address (?c=coder&binder=batches&card=3): a reload finds them again. */
|
|
1728
|
+
const listsAddress = (p) => {
|
|
1729
|
+
if (DEVICE || !listsShown || place !== 'conversations' || !current) return;
|
|
1730
|
+
const q = new URLSearchParams({ c: current, ...(p?.list ? { binder: p.list } : {}), ...(p?.page === 'card' && p.card ? { card: p.card } : {}) });
|
|
1731
|
+
nav.replace(`?${q}`);
|
|
1732
|
+
};
|
|
1733
|
+
/* A card opened from the batches beside the chat: its way back is the step of the tab. */
|
|
1734
|
+
const tabFromChat = () => nav.top()?.kind === 'tab' && nav.top().home === 'chat';
|
|
1735
|
+
const listsSteps = binderSteps(() => listsView, { address: listsAddress, covered: tabFromChat, fromBack: () => nav.close('tab'), fromClose: () => showTab('chat') });
|
|
1736
|
+
async function openRoomLists(at = null) {
|
|
1713
1737
|
if (DEVICE || !current) return;
|
|
1714
1738
|
listsShown = true; $('clists').hidden = false; paintViews();
|
|
1715
|
-
if (listsView && listsOf === current) { void listsView.refresh(); return; }
|
|
1739
|
+
if (listsView && listsOf === current) { if (at) await listsView.go(at); else void listsView.refresh(); listsAddress(listsView.place); return; }
|
|
1716
1740
|
const name = current; listsOf = name;
|
|
1717
1741
|
listsView = null;
|
|
1718
|
-
const view = await mountBinder($('clists-binder'), (l) => Boolean(l.grants?.[`conversation:${name}`]));
|
|
1742
|
+
const view = await mountBinder($('clists-binder'), (l) => Boolean(l.grants?.[`conversation:${name}`]), { of: () => name, place: at, steps: listsSteps });
|
|
1719
1743
|
if (listsOf === name) listsView = view;
|
|
1720
1744
|
}
|
|
1721
|
-
function closeRoomLists() {
|
|
1745
|
+
function closeRoomLists() {
|
|
1746
|
+
if (!listsShown) return;
|
|
1747
|
+
listsShown = false; $('clists').hidden = true; paintViews();
|
|
1748
|
+
/* Left with a card open (the tab changed, Back to the chat): its binder, the next time. */
|
|
1749
|
+
if (listsView && listsView.place.page !== 'list') void listsView.go({ list: listsView.place.list });
|
|
1750
|
+
if (!DEVICE && place === 'conversations' && current) nav.replace(`?c=${encodeURIComponent(current)}`);
|
|
1751
|
+
}
|
|
1722
1752
|
/* Its last list taken back: its first tab again. */
|
|
1723
1753
|
function leaveLists() {
|
|
1724
1754
|
/* Under a place (Assets, where it was taken back): changed in place, the place left open. */
|
|
@@ -2421,7 +2451,11 @@
|
|
|
2421
2451
|
/* A device not given the chat does not ask for it: the server would refuse. */
|
|
2422
2452
|
if (!current || (DEVICE && deviceParts.chat === null)) { talk = { on: false, messages: [] }; talkOf = current; return talk; }
|
|
2423
2453
|
/* Whether it is on, nothing of the thread: asked every few seconds. */
|
|
2424
|
-
|
|
2454
|
+
/* No answer (the network cut for a moment, the server restarting): what was known is kept. Taken
|
|
2455
|
+
for "off", the chat would be taken down and drawn again -- its box with it, and a tablet's keyboard. */
|
|
2456
|
+
const known = talkOf === current ? talk : null;
|
|
2457
|
+
const off = { on: false, messages: [] };
|
|
2458
|
+
talk = await fetch(talkPath(current, '', { state: 1 })).then((r) => (r.ok ? r.json() : r.status >= 500 ? known ?? off : off)).catch(() => known ?? off);
|
|
2425
2459
|
talkOf = current;
|
|
2426
2460
|
return talk;
|
|
2427
2461
|
}
|
|
@@ -2527,6 +2561,8 @@
|
|
|
2527
2561
|
if (!lists.ok || !Array.isArray(lists.data)) return undefined;
|
|
2528
2562
|
return lists.data.find((l) => !l.archived && l.template === TASKS_TEMPLATE && l.grants?.[`conversation:${name}`]) ?? null;
|
|
2529
2563
|
}
|
|
2564
|
+
/* A card's description, as the panel shows it: plain words, no Markdown signs. */
|
|
2565
|
+
const plainText = (md) => String(md ?? '').replace(/\[([^\]]*)\]\([^)]*\)/g, '$1').replace(/\*\*|__|`/g, '').replace(/^\s*[-*]\s+/gm, '').replace(/\s+/g, ' ').trim();
|
|
2530
2566
|
async function paintTasks(name) {
|
|
2531
2567
|
if (DEVICE || !thread || threadOf !== name) return;
|
|
2532
2568
|
const list = await batchesOf(name);
|
|
@@ -2537,7 +2573,7 @@
|
|
|
2537
2573
|
const states = new Map(shown.data.list.states.map((st) => [st.id, st]));
|
|
2538
2574
|
const nameOf = (id) => binderPeople.find((p) => p.id === id)?.name ?? id.replace(/^[a-z]+:/, '');
|
|
2539
2575
|
const items = shown.data.records.map((r) => ({
|
|
2540
|
-
id: r.id, title: r.title, state: states.get(r.state)?.name ?? '', done: Boolean(states.get(r.state)?.done), checked: r.approved === true,
|
|
2576
|
+
id: r.id, title: r.title, text: plainText(r.description), state: states.get(r.state)?.name ?? '', done: Boolean(states.get(r.state)?.done), checked: r.approved === true,
|
|
2541
2577
|
/* Its own conversation owning it goes without saying. */
|
|
2542
2578
|
owner: r.owners.filter((o) => o !== `conversation:${name}`).map(nameOf).join(', '), tone: TASKS_TONE[r.state] ?? '' }));
|
|
2543
2579
|
thread.side = { onFold: (on) => keepTasksFolded(name, on), title: list.title, items, folded: tasksFolded(name) ?? false,
|
|
@@ -2551,7 +2587,7 @@
|
|
|
2551
2587
|
if (current !== name) return;
|
|
2552
2588
|
goTab('lists');
|
|
2553
2589
|
for (let i = 0; i < 50 && !(listsView && listsOf === name); i++) await new Promise((r) => setTimeout(r, 100));
|
|
2554
|
-
if (listsView && listsOf === name) await listsView.open?.(id);
|
|
2590
|
+
if (listsView && listsOf === name) await listsView.open?.(id, { from: TAB_WORD.chat });
|
|
2555
2591
|
}
|
|
2556
2592
|
/* Read again when the binders changed (a number that moves with each change), and only then. */
|
|
2557
2593
|
function watchTasks() {
|
|
@@ -2668,7 +2704,7 @@
|
|
|
2668
2704
|
if (want !== simple) { simple = want; simpleFilesAt = 0; }
|
|
2669
2705
|
if (!simple) { paintSimple(); return; }
|
|
2670
2706
|
await paintThread();
|
|
2671
|
-
if (talk.on && name === current)
|
|
2707
|
+
if (talk.on && name === current) focusTerminalUnasked();
|
|
2672
2708
|
}
|
|
2673
2709
|
function languageName(tag) { try { return new Intl.DisplayNames(['en'], { type: 'language' }).of(tag.split('-')[0]) ?? tag; } catch { return tag; } }
|
|
2674
2710
|
async function paintTalkBox() {
|
|
@@ -3732,6 +3768,9 @@
|
|
|
3732
3768
|
|
|
3733
3769
|
/* ---- the server's ---- */
|
|
3734
3770
|
let assetOpen = ''; let assetsAdding = ''; let assetsQuery = ''; let remoteShown = ''; let remoteEditing = false; let listOpen = ''; let listsSig = '';
|
|
3771
|
+
/* A binder opened in Assets: its screen, the card of the address (a reload); a card, a step (binderSteps). */
|
|
3772
|
+
let assetsView = null; let assetsAt = null;
|
|
3773
|
+
const assetsSteps = binderSteps(() => assetsView, { address: () => remember() });
|
|
3735
3774
|
/* A list given to a conversation, or taken back: a grant of Binder's. */
|
|
3736
3775
|
const givenTo = (l) => Object.keys(l.grants ?? {}).filter((id) => id.startsWith('conversation:'));
|
|
3737
3776
|
async function grantList(list, name, value) {
|
|
@@ -3864,7 +3903,14 @@
|
|
|
3864
3903
|
open.addEventListener('click', () => { listOpen = listOpen === chosen.key ? '' : chosen.key; void paintAssets(); });
|
|
3865
3904
|
detail.append(chapter('Cards', open), holder);
|
|
3866
3905
|
const id = chosen.list.id;
|
|
3867
|
-
if (listOpen === chosen.key)
|
|
3906
|
+
if (listOpen === chosen.key) {
|
|
3907
|
+
/* Drawn again (the lists changed): on the card it showed, if it showed one; after a reload, the card of the address. */
|
|
3908
|
+
const was = assetsView?.place;
|
|
3909
|
+
const at = assetsAt?.list === id ? assetsAt : was?.list === id && was.page === 'card' ? { list: id, card: was.card } : null;
|
|
3910
|
+
assetsAt = null;
|
|
3911
|
+
void mountBinder(holder, (l) => l.id === id, { place: at, steps: assetsSteps, onLists: (data) => { if (place === 'assets' && binderSig(data) !== listsSig) void paintAssets(); } })
|
|
3912
|
+
.then((view) => { if (view) assetsView = view; });
|
|
3913
|
+
}
|
|
3868
3914
|
}
|
|
3869
3915
|
if (chosen.kind === 'git') {
|
|
3870
3916
|
const holder = el('div', 'as-git'); detail.append(holder);
|
|
@@ -4138,6 +4184,7 @@
|
|
|
4138
4184
|
if (current) q.set('c', current);
|
|
4139
4185
|
if (place !== 'conversations') q.set('open', place);
|
|
4140
4186
|
if (place === 'assets' && assetOpen) q.set('a', assetOpen);
|
|
4187
|
+
if (place === 'assets' && assetOpen && assetOpen === listOpen && assetsView?.place.page === 'card') q.set('card', assetsView.place.card);
|
|
4141
4188
|
if (place === 'access') { q.set('tab', accessTab === 'map' && mapMode === 'flows' ? 'flows' : accessTab); if (accessFor) q.set('for', accessFor); }
|
|
4142
4189
|
const query = q.toString();
|
|
4143
4190
|
return query ? `?${query}` : location.pathname;
|
|
@@ -4212,25 +4259,61 @@
|
|
|
4212
4259
|
}
|
|
4213
4260
|
/* What a page drew from the lists, to know when they changed. */
|
|
4214
4261
|
function binderSig(lists) { return JSON.stringify((Array.isArray(lists) ? lists : []).map((l) => [l.id, l.title, l.archived, l.count, l.grants])); }
|
|
4215
|
-
|
|
4262
|
+
/* `of`: the conversation its cards are of (its Binders tab); else the one the list was given to. */
|
|
4263
|
+
async function mountBinder(holder, keep, { onLists, of, place: at = null, steps = null } = {}) {
|
|
4216
4264
|
binderParts ??= Promise.all([import(new URL('vendor/binder-ui.js', new URL('/', location.href)).href), fetch(`/vendor/binder-${binderLang()}.json`).then((r) => r.json()).catch(() => ({}))]);
|
|
4217
4265
|
const [[{ mount }, words], seen] = await Promise.all([binderParts, getJson('/binder/people', null)]);
|
|
4218
4266
|
if (seen) { binderPeople = seen.people; binderChanges = seen.changes; }
|
|
4219
4267
|
if (!holder.isConnected) return null;
|
|
4268
|
+
let shown = [];
|
|
4269
|
+
const whose = () => {
|
|
4270
|
+
if (of) return of();
|
|
4271
|
+
const given = [...new Set(shown.flatMap((l) => Object.keys(l.grants ?? {})).filter((k) => k.startsWith('conversation:')).map((k) => k.slice('conversation:'.length)))];
|
|
4272
|
+
return given.includes(current) ? current : given[0] ?? '';
|
|
4273
|
+
};
|
|
4220
4274
|
const view = mount(holder, {
|
|
4221
4275
|
words, lang: binderLang(), people: () => binderPeople,
|
|
4222
4276
|
call: async (op, args) => {
|
|
4223
4277
|
const r = await binderCall(op, args);
|
|
4224
|
-
if (op === 'lists' && r.ok && Array.isArray(r.data)) { onLists?.(r.data); r.data = r.data.filter(keep); }
|
|
4278
|
+
if (op === 'lists' && r.ok && Array.isArray(r.data)) { onLists?.(r.data); r.data = r.data.filter(keep); shown = r.data; }
|
|
4225
4279
|
return r;
|
|
4226
4280
|
},
|
|
4227
4281
|
/* A thing attached opens where this page opens it. */
|
|
4228
|
-
openAttached: (a) => {
|
|
4282
|
+
openAttached: (a) => {
|
|
4283
|
+
if (a.kind === 'asset') void openAssetsPlace(a.ref);
|
|
4284
|
+
else if (a.kind === 'message') void openCardMessage(whose(), a.ref);
|
|
4285
|
+
else if (a.kind === 'file') void openCardFile(whose(), a.ref);
|
|
4286
|
+
else if (a.kind === 'link' && /^https?:\/\//i.test(a.ref)) window.open(a.ref, '_blank', 'noopener');
|
|
4287
|
+
},
|
|
4288
|
+
/* Where it is: a step of this page's Back (below). */
|
|
4289
|
+
place: at, onPlace: steps?.onPlace, onBack: steps?.onBack,
|
|
4229
4290
|
});
|
|
4230
4291
|
binderViews.add({ box: holder.firstElementChild, view });
|
|
4231
4292
|
watchBinders();
|
|
4232
4293
|
return view;
|
|
4233
4294
|
}
|
|
4295
|
+
/* A card's thing attached, of its conversation: that conversation shown first (from a place, or another one). */
|
|
4296
|
+
function toConversation(name) {
|
|
4297
|
+
if (!name || !conversations.some((c) => c.name === name)) return false;
|
|
4298
|
+
if (place !== 'conversations') leavePlace();
|
|
4299
|
+
if (current !== name) select(name);
|
|
4300
|
+
return true;
|
|
4301
|
+
}
|
|
4302
|
+
/* A message of its chat: the Chat tab, at that message (Parley's reveal, by its id as read shows it). */
|
|
4303
|
+
async function openCardMessage(name, ref) {
|
|
4304
|
+
if (DEVICE || !toConversation(name)) return;
|
|
4305
|
+
goTab('chat');
|
|
4306
|
+
for (let i = 0; i < 50 && !(thread && threadOf === name); i++) await new Promise((r) => setTimeout(r, 100));
|
|
4307
|
+
if (thread && threadOf === name && current === name && typeof thread.reveal === 'function') await thread.reveal(String(ref ?? '').trim());
|
|
4308
|
+
}
|
|
4309
|
+
/* A file of its shared folders (/work/..., /resources/NAME/...; a path without a folder is of /work): the viewer, as from the chat. */
|
|
4310
|
+
function openCardFile(name, ref) {
|
|
4311
|
+
const path = String(ref ?? '').trim().replace(/^file:/, '');
|
|
4312
|
+
const m = /^\/(work|resources\/[^/]+)\/(.+)$/.exec(path.startsWith('/') ? path : `/work/${path}`);
|
|
4313
|
+
if (DEVICE || !m || m[2].split('/').includes('..') || !toConversation(name)) return;
|
|
4314
|
+
const tab = m[1] === 'work' ? 'work' : m[1].slice('resources/'.length);
|
|
4315
|
+
void preview(tab, m[2], m[2].split('/').pop(), 0);
|
|
4316
|
+
}
|
|
4234
4317
|
function watchBinders() {
|
|
4235
4318
|
if (binderTimer) return;
|
|
4236
4319
|
binderTimer = setInterval(async () => {
|
|
@@ -4243,6 +4326,36 @@
|
|
|
4243
4326
|
if (now.changes !== binderChanges) { binderChanges = now.changes; for (const one of binderViews) void one.view.refresh(); }
|
|
4244
4327
|
}, 4000);
|
|
4245
4328
|
}
|
|
4329
|
+
/* WHERE A BINDER IS, IN THIS PAGE'S BACK: a card (or a binder's settings) is one step over
|
|
4330
|
+
its list; Back, Escape and its "‹" close it, and the list is there again. Another binder
|
|
4331
|
+
picked takes no step. `viewOf()`: the screen shown now (it may be drawn again).
|
|
4332
|
+
`address(place)`: the address of what is shown. `covered()`: a card opened from
|
|
4333
|
+
elsewhere (`from`) whose way back is already a step of this page (the tab it opened);
|
|
4334
|
+
`fromBack()` takes it. `fromClose()`: the step of such a card closed, where it came from shown. */
|
|
4335
|
+
function binderSteps(viewOf, { address = () => {}, covered = () => false, fromBack = () => false, fromClose = () => {} } = {}) {
|
|
4336
|
+
let step = null;
|
|
4337
|
+
return {
|
|
4338
|
+
onPlace(p) {
|
|
4339
|
+
if (p.page === 'list') { if (step) { const s = step; step = null; s.gone = true; nav.drop(s); } }
|
|
4340
|
+
else if (!step && !(p.from && covered())) {
|
|
4341
|
+
const from = p.from;
|
|
4342
|
+
const s = nav.push('binder', ({ quiet }) => {
|
|
4343
|
+
if (s.gone) return;
|
|
4344
|
+
if (step === s) step = null;
|
|
4345
|
+
const view = viewOf();
|
|
4346
|
+
void view?.go({ list: view.place.list }).then(() => { if (!quiet) address(view.place); });
|
|
4347
|
+
if (!quiet && from) fromClose();
|
|
4348
|
+
});
|
|
4349
|
+
step = s;
|
|
4350
|
+
}
|
|
4351
|
+
address(p);
|
|
4352
|
+
},
|
|
4353
|
+
onBack(p) {
|
|
4354
|
+
if (step) { nav.drop(step); return true; }
|
|
4355
|
+
return p.from && covered() ? fromBack() : false;
|
|
4356
|
+
},
|
|
4357
|
+
};
|
|
4358
|
+
}
|
|
4246
4359
|
async function openAccessPage(tab = accessTab, { mode, of, face: shown = 'manage', push = true, pin } = {}) {
|
|
4247
4360
|
if (DEVICE) return;
|
|
4248
4361
|
/* Assets left Access: a conversation's own, or the server's. */
|
|
@@ -4278,6 +4391,9 @@
|
|
|
4278
4391
|
return;
|
|
4279
4392
|
}
|
|
4280
4393
|
/* Assets, a place of its own now (it was a tab of Access); Lists, a kind of asset now. */
|
|
4394
|
+
/* A card of a binder of Assets (?open=assets&a=list:batches&card=3): that binder opened, on it. */
|
|
4395
|
+
const a = q.get('a') ?? ''; const card = q.get('card') ?? '';
|
|
4396
|
+
if (open === 'assets' && a.startsWith('list:') && /^\d{1,9}$/.test(card)) { listOpen = a; assetsAt = { list: a.slice(5), card }; }
|
|
4281
4397
|
if (open === 'assets' || open === 'lists' || (open === 'access' && q.get('tab') === 'assets')) { await openAssetsPlace(q.get('a') ?? undefined, { push: false }); return; }
|
|
4282
4398
|
const former = FORMER[open === 'access' ? (q.get('tab') ?? 'map') : open];
|
|
4283
4399
|
if (former) { await openAccessPage(former[0], { mode: former[1], of: q.get('for') ?? '', push: false }); return; }
|
|
@@ -7735,10 +7851,19 @@
|
|
|
7735
7851
|
if (!home) { view('room'); if (!NAME.test(current)) current = ''; }
|
|
7736
7852
|
enter();
|
|
7737
7853
|
/* Arriving on a conversation: the list is one Back away, as if it had been picked there. */
|
|
7738
|
-
|
|
7854
|
+
const arrived = new URLSearchParams(location.search);
|
|
7855
|
+
if (home && current && !arrived.has('open') && !Number.isInteger(history.state?.nav)) {
|
|
7739
7856
|
history.replaceState(null, '', location.pathname);
|
|
7740
7857
|
nav.push('room', ({ quiet }) => { if (!quiet) select(''); }, { address: `?c=${encodeURIComponent(current)}` });
|
|
7741
7858
|
}
|
|
7859
|
+
/* On one of its binders (a reload): that binder, that card, its first tab one Back away. */
|
|
7860
|
+
if (home && current && !arrived.has('open') && /^[\w-]{1,80}$/.test(arrived.get('binder') ?? '')) {
|
|
7861
|
+
nav.replace(`?c=${encodeURIComponent(current)}`);
|
|
7862
|
+
const card = arrived.get('card') ?? '';
|
|
7863
|
+
/* Its first tab known first (its chat, when it talks): Back comes back to it. */
|
|
7864
|
+
await chatFirst();
|
|
7865
|
+
goTab('lists', { pick: { list: arrived.get('binder'), ...(/^\d{1,9}$/.test(card) ? { card } : {}) } });
|
|
7866
|
+
}
|
|
7742
7867
|
/* Arriving on the address of a place (a reload, a link): it is opened. */
|
|
7743
7868
|
if (home && new URLSearchParams(location.search).has('open')) await followAddress();
|
|
7744
7869
|
}
|
package/web/style.css
CHANGED
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
:root {
|
|
4
4
|
--bg: #0f141a; --bar: #161d26; --panel: #131a22; --line: #2b3745; --ink: #e7edf4; --ink2: #a3b1c2;
|
|
5
5
|
--brass: #d2a94e; --on-brass: #1b1405; --ok: #5fc39d; --warn: #e39a5c; --danger: #ee7f79;
|
|
6
|
+
/* Brass as the colour of text or of a small sign: darker on a light screen, to be read. */
|
|
7
|
+
--brass-ink: #d2a94e;
|
|
6
8
|
--sans: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
7
9
|
}
|
|
8
10
|
/* A light screen, for whoever reads better dark on light. The terminal gets
|
|
9
11
|
colours of its own for it (app.js): a tool's "white" must stay readable. */
|
|
10
12
|
:root[data-theme="light"] {
|
|
11
13
|
--bg: #fbfbfa; --bar: #eef0f3; --panel: #ffffff; --line: #c5cdd8; --ink: #17202b; --ink2: #4f5d6d;
|
|
12
|
-
--brass: #c79a3a; --on-brass: #1b1405; --ok: #1f7a5a; --warn: #a3581a; --danger: #b3261e; --button: #e6eaef;
|
|
14
|
+
--brass: #c79a3a; --on-brass: #1b1405; --ok: #1f7a5a; --warn: #a3581a; --danger: #b3261e; --button: #e6eaef; --brass-ink: #8a5d00;
|
|
13
15
|
}
|
|
14
16
|
* { box-sizing: border-box; }
|
|
15
17
|
/* TEXT IS IN rem: one size at the root (set per device by app.js, as a
|
|
@@ -58,7 +60,7 @@ header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padd
|
|
|
58
60
|
header b { flex: 1 0 auto; min-width: 6ch; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
59
61
|
header button { padding: 5px 9px; white-space: nowrap; }
|
|
60
62
|
#back { font-size: 1.25rem; line-height: 1; padding: 2px 10px; }
|
|
61
|
-
.tag { font-size: .6875rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--brass); color: var(--brass); white-space: nowrap; }
|
|
63
|
+
.tag { font-size: .6875rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--brass); color: var(--brass-ink); white-space: nowrap; }
|
|
62
64
|
#state { font-size: .75rem; color: var(--ink2); white-space: nowrap; }
|
|
63
65
|
#state::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--ink2); }
|
|
64
66
|
#state[data-state="live"]::before { background: var(--ok); }
|
|
@@ -80,7 +82,7 @@ main { position: relative; flex: 1; min-height: 0; }
|
|
|
80
82
|
of 6" with its clock; the step under way large, with its wheel; those
|
|
81
83
|
passed on one small line of checks; those to come dimmed. */
|
|
82
84
|
#notice-head { display: grid; gap: 2px; }
|
|
83
|
-
#notice #notice-title { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
|
|
85
|
+
#notice #notice-title { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-ink); }
|
|
84
86
|
#notice #notice-count { font-size: .9375rem; color: var(--ink2); font-variant-numeric: tabular-nums; }
|
|
85
87
|
#notice-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; max-width: 34rem; font-size: .9375rem; }
|
|
86
88
|
#notice-steps li { color: var(--ink2); }
|
|
@@ -115,6 +117,7 @@ footer button.wide { flex: 1 0 auto; background: var(--brass); border-color: var
|
|
|
115
117
|
#app[data-list="folded"] :is(#list, #nav) { visibility: hidden; }
|
|
116
118
|
/* While it slides: the list keeps its width over the room, the room's far side off the screen. */
|
|
117
119
|
#app.sliding { overflow: hidden; }
|
|
120
|
+
#app.sliding :is(#list, #nav, #room) { will-change: transform; }
|
|
118
121
|
#app.sliding :is(#list, #nav) { visibility: visible; width: var(--list-width, 260px); box-sizing: border-box; position: relative; z-index: 1; }
|
|
119
122
|
}
|
|
120
123
|
@media (max-width: 700px) { #fold { display: none; } }
|
|
@@ -142,7 +145,7 @@ code { font-family: ui-monospace, Menlo, Consolas, monospace; }
|
|
|
142
145
|
#files-rows { display: flex; flex-direction: column; }
|
|
143
146
|
.file { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; background: none; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; text-align: left; font-weight: 400; width: 100%; }
|
|
144
147
|
.file .kind { flex: 0 0 34px; font-size: .625rem; font-weight: 700; text-align: center; padding: 3px 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink2); }
|
|
145
|
-
.file[data-folder="true"] .kind { color: var(--brass); border-color: var(--brass); }
|
|
148
|
+
.file[data-folder="true"] .kind { color: var(--brass-ink); border-color: var(--brass); }
|
|
146
149
|
.file .label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
147
150
|
.file small { color: var(--ink2); white-space: nowrap; }
|
|
148
151
|
.choices button[aria-selected="true"] { border-color: var(--brass); background: rgba(210, 169, 78, .16); }
|
|
@@ -162,7 +165,7 @@ footer#keys { border-top: 0; }
|
|
|
162
165
|
#voice-line[data-state="hearing"]::before { background: var(--danger); }
|
|
163
166
|
#voice-line[data-state="transcribing"]::before, #voice-line[data-state="calibrating"]::before { background: var(--warn); }
|
|
164
167
|
#mic[aria-pressed="true"] { background: var(--danger); border-color: var(--danger); color: #1b0606; }
|
|
165
|
-
#auto[aria-pressed="true"] { border-color: var(--brass); color: var(--brass); }
|
|
168
|
+
#auto[aria-pressed="true"] { border-color: var(--brass); color: var(--brass-ink); }
|
|
166
169
|
#sharing-qr { width: 220px; max-width: 70%; background: #fff; padding: 10px; border-radius: 10px; }
|
|
167
170
|
.link { overflow-wrap: anywhere; user-select: all; font-family: ui-monospace, Menlo, Consolas, monospace; }
|
|
168
171
|
.device { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
|
|
@@ -276,7 +279,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
|
|
|
276
279
|
#share-add button, #share-basket button, .given-row button, .device button { min-height: 40px; }
|
|
277
280
|
.share-foot { position: sticky; bottom: -14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; background: var(--panel); border-top: 1px solid var(--line); }
|
|
278
281
|
.share-foot p { flex: 1 1 260px; margin: 0; }
|
|
279
|
-
#share-who button[aria-checked="true"], #share-filters button[aria-pressed="true"], #share-manage .choices button[aria-pressed="true"] { border-color: var(--brass); color: var(--brass); }
|
|
282
|
+
#share-who button[aria-checked="true"], #share-filters button[aria-pressed="true"], #share-manage .choices button[aria-pressed="true"] { border-color: var(--brass); color: var(--brass-ink); }
|
|
280
283
|
#sharing .levels button[data-rights="rw"][aria-pressed="true"] { border-color: var(--warn); color: var(--warn); }
|
|
281
284
|
#sharing-qr { width: min(280px, 70vw); background: #fff; padding: 10px; border-radius: 8px; }
|
|
282
285
|
#share-waiting { font-size: 1rem; font-weight: 600; margin: 0; }
|
|
@@ -288,7 +291,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
|
|
|
288
291
|
.given-row > span:first-child { flex: 1 1 160px; min-width: 0; }
|
|
289
292
|
.thing { border-top: 1px solid var(--line); padding: 6px 0; }
|
|
290
293
|
.thing > summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
|
|
291
|
-
.item .shared-mark { display: block; color: var(--brass); }
|
|
294
|
+
.item .shared-mark { display: block; color: var(--brass-ink); }
|
|
292
295
|
/* A sheet is open on a small screen: the keys of the terminal are not for it, and would take half the
|
|
293
296
|
screen from it. On a wide screen they stay: taking them away would resize the terminal under the
|
|
294
297
|
sheet each time, and the tool would redraw for nothing (a test caught the screen moving). */
|
|
@@ -317,10 +320,10 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
|
|
|
317
320
|
.asset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 4px 0; }
|
|
318
321
|
.asset-head { flex: 1 1 320px; display: grid; grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.4fr) minmax(120px, 1.4fr); gap: 10px; align-items: center; text-align: left; background: transparent; border: 0; padding: 8px 4px; min-height: 44px; font-weight: 400; }
|
|
319
322
|
.asset-head b { overflow-wrap: anywhere; }
|
|
320
|
-
.asset-head[aria-expanded="true"] b { color: var(--brass); }
|
|
323
|
+
.asset-head[aria-expanded="true"] b { color: var(--brass-ink); }
|
|
321
324
|
/* A card opens: a small arrow says so, turned down when it is open. */
|
|
322
325
|
.asset-head b::before { content: "\25B8"; display: inline-block; width: 1.1em; color: var(--dim); transition: transform .15s; }
|
|
323
|
-
.asset-head[aria-expanded="true"] b::before { transform: rotate(90deg); color: var(--brass); }
|
|
326
|
+
.asset-head[aria-expanded="true"] b::before { transform: rotate(90deg); color: var(--brass-ink); }
|
|
324
327
|
@media (prefers-reduced-motion: reduce) { .asset-head b::before { transition: none; } }
|
|
325
328
|
.asset-inside { flex-basis: 100%; padding: 0 0 8px 12px; display: flex; flex-direction: column; gap: 4px; }
|
|
326
329
|
@media (max-width: 700px) { .asset-head { grid-template-columns: 1fr; gap: 2px; } }
|
|
@@ -374,9 +377,9 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
|
|
|
374
377
|
#answerer-fields label { display: block; margin: .7rem 0 .25rem; }
|
|
375
378
|
#answerer-limit { width: 8rem; }
|
|
376
379
|
#answerer-fields .row { margin-top: .8rem; }
|
|
377
|
-
.needs-mark { display: block; color: var(--brass); font-weight: 700; }
|
|
380
|
+
.needs-mark { display: block; color: var(--brass-ink); font-weight: 700; }
|
|
378
381
|
.answered { border-top: 1px solid var(--line); padding: .4rem 0; }
|
|
379
|
-
.answered[data-outcome="human"] > summary { color: var(--brass); }
|
|
382
|
+
.answered[data-outcome="human"] > summary { color: var(--brass-ink); }
|
|
380
383
|
.answered pre { max-height: 14rem; overflow: auto; font-size: .78rem; }
|
|
381
384
|
|
|
382
385
|
/* Wake-ups. */
|
|
@@ -393,7 +396,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
|
|
|
393
396
|
/* The simple screen lies over the terminal, which stays laid out underneath. */
|
|
394
397
|
#simple { position: absolute; inset: 0; z-index: 1; overflow: auto; background: var(--bg); padding: 14px 16px 24px; }
|
|
395
398
|
#simple-state { margin: 0 0 12px; font-size: 1.05rem; font-weight: 600; }
|
|
396
|
-
#simple-state[data-needs="true"] { color: var(--brass); }
|
|
399
|
+
#simple-state[data-needs="true"] { color: var(--brass-ink); }
|
|
397
400
|
#simple-say label { display: block; font-weight: 700; margin-bottom: 6px; }
|
|
398
401
|
#simple-text { width: 100%; min-height: 4.2rem; resize: vertical; font: inherit; font-size: 1.05rem; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
|
|
399
402
|
#simple-say .row { margin-top: 8px; }
|
|
@@ -509,6 +512,8 @@ footer button[data-keys="backspace"] { display: none; }
|
|
|
509
512
|
footer#keys > #keys-more { flex: 1.3 1 0; }
|
|
510
513
|
footer#keys > button.extra { display: none; }
|
|
511
514
|
footer#keys[data-more="true"] > button.extra:not([hidden]) { display: block; order: 10; flex: 1 1 22%; }
|
|
515
|
+
/* "Copy / paste", the longest of them, takes the room the short ones leave: its words whole. */
|
|
516
|
+
footer#keys[data-more="true"] > #copy-open:not([hidden]) { flex: 2 1 30%; }
|
|
512
517
|
/* The extra keys start a line of their own. */
|
|
513
518
|
footer#keys[data-more="true"]::after { content: ""; order: 9; flex: 0 0 100%; height: 0; }
|
|
514
519
|
/* The row is as wide as the screen: its labels grow with the text only as far as they fit. */
|
|
@@ -727,7 +732,7 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
|
|
|
727
732
|
.lk-job { margin: 0; padding-left: 1.2rem; font-size: .8125rem; }
|
|
728
733
|
.lk-job li[data-state="failed"] { color: var(--danger); }
|
|
729
734
|
.lk-job li[data-state="skipped"] { color: var(--ink2); }
|
|
730
|
-
.lk-job li[data-state="doing"]::marker { color: var(--brass); }
|
|
735
|
+
.lk-job li[data-state="doing"]::marker { color: var(--brass-ink); }
|
|
731
736
|
|
|
732
737
|
.lk-shared { font-size: .75rem; font-weight: 600; color: var(--k-pick); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; }
|
|
733
738
|
.lk-check { margin: 0; padding-left: 1.1rem; font-size: .875rem; }
|
|
@@ -750,7 +755,7 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
|
|
|
750
755
|
/* The bar takes the system's strip at the bottom; where it is not shown, the page keeps it clear. */
|
|
751
756
|
html:has(#nav:not([hidden])):has(#app:is([data-view="list"], [data-place="access"], [data-place="assets"], [data-place="settings"])) body { padding-bottom: 0; }
|
|
752
757
|
#nav button { flex: 1 1 0; flex-direction: column; gap: 2px; min-height: 52px; padding: 4px 2px; font-size: .75rem; text-align: center; justify-content: center; border-radius: 10px; }
|
|
753
|
-
#nav button[aria-current="page"] { box-shadow: none; background: transparent; border-color: transparent; color: var(--brass); }
|
|
758
|
+
#nav button[aria-current="page"] { box-shadow: none; background: transparent; border-color: transparent; color: var(--brass-ink); }
|
|
754
759
|
#nav .nav-ic { width: 24px; height: 24px; }
|
|
755
760
|
#app[data-view="room"][data-place="conversations"] #nav { display: none; }
|
|
756
761
|
#app:has(input:not([type=checkbox]):not([type=radio]):not([type=file]):focus, textarea:not(.xterm-helper-textarea):focus) #nav { display: none; }
|
|
@@ -804,7 +809,7 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
|
|
|
804
809
|
.device.card .device-head { padding: 10px 12px; min-height: 48px; }
|
|
805
810
|
.device.card .device-head b { font-size: 1rem; flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
|
|
806
811
|
.device-sub { flex: 1 1 12rem; font-size: .75rem; }
|
|
807
|
-
.device.card .device-head small.device-count { color: var(--brass); }
|
|
812
|
+
.device.card .device-head small.device-count { color: var(--brass-ink); }
|
|
808
813
|
.card-fold { margin-left: auto; min-height: 32px !important; padding: 3px 9px; font-size: .75rem; color: var(--ink2); background: transparent; }
|
|
809
814
|
.device.card .card-body { background: var(--panel); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding: 4px 12px 10px; display: flex; flex-direction: column; gap: 6px; }
|
|
810
815
|
.device.card .given-row { padding-left: 0; }
|
|
@@ -918,7 +923,7 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
|
|
|
918
923
|
.icon[data-drawn="lucide"] .ext { position: static; }
|
|
919
924
|
.icon.file-ic { width: 22px; height: 22px; flex: none; }
|
|
920
925
|
.icon.file-ic svg { width: 22px; height: 22px; stroke-width: 1.8; fill: none; }
|
|
921
|
-
.icon[data-type="folder"] { color: var(--brass); }
|
|
926
|
+
.icon[data-type="folder"] { color: var(--brass-ink); }
|
|
922
927
|
.icon[data-type="image"] { color: #4fa3e0; }
|
|
923
928
|
.icon[data-type="pdf"] { color: #e5605a; }
|
|
924
929
|
.icon[data-type="code"] { color: #9a86f0; }
|
|
@@ -982,7 +987,7 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
|
|
|
982
987
|
#guide-box { margin: 8px 0 4px; }
|
|
983
988
|
.guide-line { margin: 0; color: var(--ink2); font-size: .8125rem; }
|
|
984
989
|
button.inline { background: none; border: 0; padding: 4px 2px; min-height: 0; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
|
|
985
|
-
button.inline:hover { color: var(--brass); }
|
|
990
|
+
button.inline:hover { color: var(--brass-ink); }
|
|
986
991
|
#guide-shown { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
|
|
987
992
|
#guide-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .75rem/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; max-height: 22rem; overflow: auto; }
|
|
988
993
|
#guide-shown label { font-size: .75rem; color: var(--ink2); }
|
|
@@ -1082,12 +1087,14 @@ header .ic, #folders .ic { width: 18px; height: 18px; fill: none; stroke: curren
|
|
|
1082
1087
|
.as { display: grid; grid-template-columns: minmax(240px, 34%) minmax(0, 1fr); flex: 1 1 auto; min-height: 0; }
|
|
1083
1088
|
.as-list { border-right: 1px solid var(--line); padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
|
|
1084
1089
|
.as-detail { padding: 16px 20px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
1090
|
+
/* The detail scrolls as a whole: nothing in it is squeezed (a branch diagram cut, its buttons over it) when a folder's files open below. */
|
|
1091
|
+
.as-detail > * { flex-shrink: 0; }
|
|
1085
1092
|
#assets-search { width: 100%; padding: 9px 12px; border-radius: 9px; margin-bottom: 4px; }
|
|
1086
1093
|
.as-kind { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
|
|
1087
1094
|
.as-kind-head, .as-chapter { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
1088
1095
|
.as-kind-head h3 { margin: 0; padding: 4px 6px; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
|
|
1089
1096
|
.as-list-top h3 { text-transform: none; letter-spacing: 0; font-size: .8125rem; color: var(--ink); }
|
|
1090
|
-
.as-add { width: 30px; height: 30px; min-height: 0 !important; min-width: 0 !important; padding: 0; border-radius: 50%; font-size: 1.05rem; line-height: 1; color: var(--brass); background: transparent; flex: 0 0 auto; }
|
|
1097
|
+
.as-add { width: 30px; height: 30px; min-height: 0 !important; min-width: 0 !important; padding: 0; border-radius: 50%; font-size: 1.05rem; line-height: 1; color: var(--brass-ink); background: transparent; flex: 0 0 auto; }
|
|
1091
1098
|
.as-add:hover { border-color: var(--brass); }
|
|
1092
1099
|
.as-none { padding: 2px 8px 6px; }
|
|
1093
1100
|
.as-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 9px 10px; font-weight: 400; }
|
|
@@ -1099,7 +1106,7 @@ header .ic, #folders .ic { width: 18px; height: 18px; fill: none; stroke: curren
|
|
|
1099
1106
|
.as-sub.bad { color: var(--danger); }
|
|
1100
1107
|
.as-ic { flex: 0 0 auto; width: 20px; height: 20px; color: var(--ink2); margin-top: 1px; }
|
|
1101
1108
|
.as-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
1102
|
-
.as-ic[data-kind="folder"] { color: var(--brass); }
|
|
1109
|
+
.as-ic[data-kind="folder"] { color: var(--brass-ink); }
|
|
1103
1110
|
.as-badge { font-size: .6875rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; }
|
|
1104
1111
|
.as-badge.write { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
|
|
1105
1112
|
.as-badge.read { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
|
|
@@ -1109,7 +1116,7 @@ header .ic, #folders .ic { width: 18px; height: 18px; fill: none; stroke: curren
|
|
|
1109
1116
|
.as-title h2 .as-ic, .as-title h2 .as-ic svg { width: 24px; height: 24px; }
|
|
1110
1117
|
.as-title h2 .as-badge { font-size: .75rem; }
|
|
1111
1118
|
.as-back { display: none; }
|
|
1112
|
-
.as-link { background: transparent; border: 0; padding: 4px 0; color: var(--brass); font-weight: 600; text-align: left; }
|
|
1119
|
+
.as-link { background: transparent; border: 0; padding: 4px 0; color: var(--brass-ink); font-weight: 600; text-align: left; }
|
|
1113
1120
|
.as-link:disabled { color: var(--ink2); cursor: default; }
|
|
1114
1121
|
.danger-link { color: var(--danger); }
|
|
1115
1122
|
.as-chapter { margin-top: 6px; }
|
|
@@ -1228,7 +1235,7 @@ select.pill { appearance: auto; }
|
|
|
1228
1235
|
:root:not([data-theme="light"]) .rv-diff .d2h-info { background: var(--bar); color: var(--ink2); border-color: var(--line); }
|
|
1229
1236
|
:root:not([data-theme="light"]) .rv-diff .d2h-emptyplaceholder, :root:not([data-theme="light"]) .rv-diff .d2h-code-side-emptyplaceholder { background: var(--bar); border-color: var(--line); }
|
|
1230
1237
|
/* Line numbers in the flow of their row: diff2html places them absolutely, and they slide off their lines when the page scrolls. */
|
|
1231
|
-
.rv-diff .d2h-code-linenumber, .rv-diff .d2h-code-side-linenumber, .ts-diffs .d2h-code-linenumber, .ts-diffs .d2h-code-side-linenumber { position: static; }
|
|
1238
|
+
.rv-diff .d2h-code-linenumber, .rv-diff .d2h-code-side-linenumber, .ts-diffs .d2h-code-linenumber, .ts-diffs .d2h-code-side-linenumber { position: static; display: table-cell; }
|
|
1232
1239
|
.rv-diff .d2h-code-line, .rv-diff .d2h-code-side-line, .ts-diffs .d2h-code-line, .ts-diffs .d2h-code-side-line { padding: 0 .6em; width: auto; }
|
|
1233
1240
|
/* Syntax colours (highlight.js classes), both themes. */
|
|
1234
1241
|
.rv-diff .hljs-keyword, .rv-diff .hljs-selector-tag, .rv-diff .hljs-built_in { color: #d73a49; }
|
|
@@ -1300,7 +1307,7 @@ select.pill { appearance: auto; }
|
|
|
1300
1307
|
#search-field::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); }
|
|
1301
1308
|
.group-head .caret { font-size: 1.1rem; line-height: 1; text-align: center; }
|
|
1302
1309
|
#machine-size[data-waiting] select { color: var(--ink2); border-style: dashed; }
|
|
1303
|
-
#machine-size-wait { color: var(--brass); font-weight: 600; }
|
|
1310
|
+
#machine-size-wait { color: var(--brass-ink); font-weight: 600; }
|
|
1304
1311
|
|
|
1305
1312
|
/* Something is being fetched: a small turning ring before the words (a still ring without motion). */
|
|
1306
1313
|
.busy::before { content: ""; display: inline-block; width: .95em; height: .95em; margin-right: .5em; vertical-align: -.17em; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: var(--brass); }
|
|
@@ -1410,7 +1417,7 @@ button.inline.more-recent { text-decoration: none; }
|
|
|
1410
1417
|
.wifi-join p { margin: 0; }
|
|
1411
1418
|
|
|
1412
1419
|
/* TO SEND: every repository of a conversation, one row each, then one review of those ticked. */
|
|
1413
|
-
.ts-entry .as-ic { color: var(--brass); }
|
|
1420
|
+
.ts-entry .as-ic { color: var(--brass-ink); }
|
|
1414
1421
|
.ts-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
|
|
1415
1422
|
.ts-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1.6fr) max-content minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
|
|
1416
1423
|
.ts-row.off { opacity: .6; }
|
|
@@ -1425,7 +1432,7 @@ button.inline.more-recent { text-decoration: none; }
|
|
|
1425
1432
|
.ts-size { white-space: nowrap; }
|
|
1426
1433
|
.ts-bar button:disabled { opacity: .5; cursor: default; }
|
|
1427
1434
|
.ts-state .quiet { color: var(--ink2); font-weight: 400; }
|
|
1428
|
-
.ts-branch { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--brass); overflow-wrap: anywhere; }
|
|
1435
|
+
.ts-branch { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--brass-ink); overflow-wrap: anywhere; }
|
|
1429
1436
|
.ts-size .plus, .ts-review-head .plus { color: var(--ok); } .ts-size .minus, .ts-review-head .minus { color: var(--danger); }
|
|
1430
1437
|
.ts-state .ok { color: var(--ok); } .ts-state .bad { color: var(--danger); } .ts-state .warn { color: var(--warn); }
|
|
1431
1438
|
.ts-bar { align-items: center; margin-top: 14px; }
|
|
@@ -1697,7 +1704,7 @@ span.callout.confirm { display: inline-flex; justify-content: flex-end; padding:
|
|
|
1697
1704
|
.ts-tree-group .ts-tree-repo::before { content: "▾"; color: var(--ink2); }
|
|
1698
1705
|
.ts-tree-group .ts-tree-repo[aria-expanded="false"]::before { content: "▸"; }
|
|
1699
1706
|
.ts-tree-group .ts-tree-repo b { font-size: .9375rem; }
|
|
1700
|
-
.ts-tree-group .ts-tree-repo code { color: var(--brass); font-size: .8125rem; }
|
|
1707
|
+
.ts-tree-group .ts-tree-repo code { color: var(--brass-ink); font-size: .8125rem; }
|
|
1701
1708
|
.ts-tree-group .ts-tree-repo .plus { color: var(--ok); } .ts-tree-group .ts-tree-repo .minus { color: var(--danger); }
|
|
1702
1709
|
.ts-tree-files { padding: 4px 4px 4px 12px; }
|
|
1703
1710
|
|
|
@@ -1706,8 +1713,12 @@ details.chapter[data-attention] > summary .chapter-title::after, #settings-nav b
|
|
|
1706
1713
|
/* LISTS: Binder's screen, in this page's colours (above Binder's own dark ones, whatever the theme): a conversation's Lists tab, one list of Assets opened.
|
|
1707
1714
|
Lists are made in Assets: Binder's own "+ New list" is not offered here. */
|
|
1708
1715
|
.binder-holder { display: flex; flex-direction: column; min-height: 0; }
|
|
1709
|
-
|
|
1716
|
+
/* Binder's screen keeps its whole height: the holder scrolls (shrunk to it, the last rows were cut off). */
|
|
1717
|
+
.binder-holder > .binder { flex: none; }
|
|
1718
|
+
#clists { padding: 0; background: var(--bg); }
|
|
1710
1719
|
#clists-binder { overflow: auto; padding: 16px 16px 24px; }
|
|
1720
|
+
/* Its whole height: a long card neither runs past its ground nor under what follows it (Assets). */
|
|
1721
|
+
.binder-holder > .binder, .as-binder { flex-shrink: 0; }
|
|
1711
1722
|
body .binder-holder .binder { --binder-bg: var(--bg); --binder-text: var(--ink); --binder-dim: var(--ink2); --binder-line: var(--line); --binder-panel: var(--panel);
|
|
1712
1723
|
--binder-action: var(--brass); --binder-on-action: #1b1405; --binder-ok: var(--ok); --binder-ask: var(--warn); --binder-danger: var(--danger); }
|
|
1713
1724
|
.binder-holder .binder-new-list, .binder-holder .binder-empty .binder-primary { display: none; }
|
|
@@ -1715,7 +1726,8 @@ body .binder-holder .binder { --binder-bg: var(--bg); --binder-text: var(--ink);
|
|
|
1715
1726
|
.as-binder .binder-top { display: none; }
|
|
1716
1727
|
.as-binder { margin-top: 8px; }
|
|
1717
1728
|
/* A box to tick stays a box on a touch screen (buttons are 44px high there), a little larger. */
|
|
1718
|
-
|
|
1729
|
+
.binder-holder .binder-tick { min-height: 0; flex: none; }
|
|
1730
|
+
@media (pointer: coarse) { .binder-holder .binder-tick { width: 1.75rem; height: 1.75rem; } }
|
|
1719
1731
|
/* On the tab, what waits for the owner's tick: the colour of what asks. */
|
|
1720
1732
|
.views #lists-count { background: var(--brass); color: var(--on-brass, #1b1405); font-weight: 700; }
|
|
1721
1733
|
/* A commit with more to its message: a click on its line opens the rest. */
|
|
@@ -1724,5 +1736,38 @@ details.commit > summary { display: flex; flex-wrap: wrap; gap: 4px 10px; align-
|
|
|
1724
1736
|
details.commit > summary::-webkit-details-marker { display: none; }
|
|
1725
1737
|
details.commit > summary::before { content: '▸'; color: var(--ink2); width: 1em; flex: none; }
|
|
1726
1738
|
details.commit[open] > summary::before { content: '▾'; }
|
|
1739
|
+
div.commit { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
|
|
1740
|
+
.commit code, .commit small { color: var(--ink2); }
|
|
1727
1741
|
div.commit::before { content: ''; width: 1em; flex: none; }
|
|
1728
1742
|
details.commit > pre { margin: 6px 0 0 1.6em; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink2); font-size: .85em; }
|
|
1743
|
+
/* A sheet over the terminal (Binders, Assets, Settings): the terminal's typing field (xterm's
|
|
1744
|
+
helpers, z-index 5, at its cursor) stays under it: a tap on a binder there went to the terminal. */
|
|
1745
|
+
#room:has(.sheet:not([hidden])) #terminal .xterm-helpers { pointer-events: none; }
|
|
1746
|
+
|
|
1747
|
+
/* ON A TOUCH SCREEN THE SMALL CONTROLS TOO TAKE A FINGERTIP (last, above the rules that make them small):
|
|
1748
|
+
the back arrow and «, the round "+", a box to tick and its line, an "i" that opens more, "Show more" under Recent. */
|
|
1749
|
+
@media (pointer: coarse) {
|
|
1750
|
+
html:not([data-door="device"]) #room > header :is(#back, #fold) { min-width: 40px; }
|
|
1751
|
+
button.as-add { width: 36px; height: 36px; }
|
|
1752
|
+
:is(input[type=checkbox], input[type=radio]):not(.binder *) { width: 20px; height: 20px; }
|
|
1753
|
+
.ts-row input[type=checkbox] { width: 24px; height: 24px; }
|
|
1754
|
+
label:is(.check, .lk-switch), label:has(> input[type=radio]) { min-height: 32px; }
|
|
1755
|
+
label:has(> input[type=radio]) { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
|
|
1756
|
+
details.more > summary, :is(#assets, #gitview, #panel) details.more > summary { min-height: 32px; }
|
|
1757
|
+
:is(#words-box, #wifi-saved-box, #move-machines-box) > summary { padding-block: 8px; }
|
|
1758
|
+
button.inline.more-recent { min-height: 32px; min-width: 64px; justify-content: center; }
|
|
1759
|
+
button.inline { min-height: 32px; min-width: 32px; }
|
|
1760
|
+
.lk-x { min-width: 36px; min-height: 36px; }
|
|
1761
|
+
}
|
|
1762
|
+
/* A wide touch screen (a tablet held sideways): the same fingertip, and the keys wrap rather than run off its edge. */
|
|
1763
|
+
@media (pointer: coarse) and (min-width: 701px) {
|
|
1764
|
+
button, a.button, .file { min-height: 40px; }
|
|
1765
|
+
footer#keys { flex-wrap: wrap; overflow-x: visible; }
|
|
1766
|
+
}
|
|
1767
|
+
/* Batches beside the chat, on a touch screen: each box to tick and each title take a fingertip, their look unchanged. */
|
|
1768
|
+
@media (pointer: coarse) {
|
|
1769
|
+
#simple-thread :is(.parley-panel-tick, .parley-panel-title) { position: relative; }
|
|
1770
|
+
#simple-thread :is(.parley-panel-tick, .parley-panel-title)::after { content: ""; position: absolute; inset: -6px; }
|
|
1771
|
+
}
|
|
1772
|
+
/* The review on a light screen: line numbers and the "changed" tag readable (diff2html's own greys are too pale). */
|
|
1773
|
+
:root[data-theme="light"] .rv-diff { --d2h-dim-color: #5d6b7a; --d2h-change-label-color: #8a5d00; }
|