@mistriwork/kit 1.0.0-rc.17 → 1.0.0-rc.19
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/client/components/AppList.js +16 -6
- package/dist/client/components/Chart.css +5 -0
- package/dist/client/components/Chart.d.ts +17 -2
- package/dist/client/components/Chart.js +83 -22
- package/dist/client/components/ChartFigure.d.ts +3 -1
- package/dist/client/components/ChartFigure.js +14 -8
- package/dist/client/components/Content.js +3 -1
- package/dist/client/components/DashHead.d.ts +6 -0
- package/dist/client/components/DashHead.js +20 -0
- package/dist/client/components/Editable.js +1 -1
- package/dist/client/components/Grid.js +33 -4
- package/dist/client/components/JsonPreview.css +29 -0
- package/dist/client/components/JsonPreview.js +1 -1
- package/dist/client/components/JsonView.css +201 -62
- package/dist/client/components/JsonView.d.ts +43 -1
- package/dist/client/components/JsonView.js +320 -55
- package/dist/client/components/LayoutSwitch.d.ts +9 -0
- package/dist/client/components/LayoutSwitch.js +61 -0
- package/dist/client/components/ListEmpty.css +3 -0
- package/dist/client/components/ListFilterBar.js +1 -1
- package/dist/client/components/LiveNotices.css +3 -0
- package/dist/client/components/NewRecord.d.ts +0 -2
- package/dist/client/components/NewRecord.js +61 -17
- package/dist/client/components/PageFields.js +22 -3
- package/dist/client/components/PageHead.js +26 -6
- package/dist/client/components/PageRelated.d.ts +28 -0
- package/dist/client/components/PageRelated.js +50 -3
- package/dist/client/components/PageSectionBox.d.ts +5 -1
- package/dist/client/components/PageSectionBox.js +5 -3
- package/dist/client/components/PageSections.js +26 -13
- package/dist/client/components/PageSkeleton.css +2 -0
- package/dist/client/components/PageSkeleton.js +11 -3
- package/dist/client/components/Palette.js +108 -10
- package/dist/client/components/RecordPicker.d.ts +2 -0
- package/dist/client/components/RecordPicker.js +34 -8
- package/dist/client/components/RecordSummaries.js +6 -1
- package/dist/client/components/Rooms.js +2 -2
- package/dist/client/components/TableRoom.js +15 -5
- package/dist/client/components/TableView.d.ts +2 -0
- package/dist/client/components/Value.js +1 -1
- package/dist/client/components/appListModel.d.ts +4 -0
- package/dist/client/components/appRooms.d.ts +2 -0
- package/dist/client/components/appRooms.js +2 -0
- package/dist/client/components/dashboardModel.d.ts +5 -0
- package/dist/client/components/directoryModel.d.ts +25 -0
- package/dist/client/components/directoryModel.js +88 -0
- package/dist/client/components/gridSizing.d.ts +3 -0
- package/dist/client/components/gridSizing.js +6 -2
- package/dist/client/components/jsonTree.d.ts +54 -0
- package/dist/client/components/jsonTree.js +190 -0
- package/dist/client/components/listSubtitles.d.ts +1 -0
- package/dist/client/components/listSubtitles.js +7 -0
- package/dist/client/components/newMenuModel.d.ts +14 -6
- package/dist/client/components/newMenuModel.js +37 -5
- package/dist/client/components/newRecordModel.d.ts +24 -2
- package/dist/client/components/newRecordModel.js +47 -4
- package/dist/client/components/pageContext.d.ts +2 -0
- package/dist/client/components/pageModel.d.ts +2 -0
- package/dist/client/components/sidebarModel.js +7 -3
- package/dist/client/composedReads.js +3 -1
- package/dist/client/copy/filters/components/ListFilterBar.d.ts +1 -1
- package/dist/client/copy/filters/components/ListFilterBar.js +2 -1
- package/dist/client/copy/lists/components/AppList.d.ts +1 -0
- package/dist/client/copy/lists/components/AppList.js +1 -0
- package/dist/client/copy/lists/components/LayoutSwitch.d.ts +4 -0
- package/dist/client/copy/lists/components/LayoutSwitch.js +6 -0
- package/dist/client/copy/record/components/JsonView.d.ts +22 -0
- package/dist/client/copy/record/components/JsonView.js +19 -0
- package/dist/client/copy/record/components/PageHead.d.ts +1 -0
- package/dist/client/copy/record/components/PageHead.js +2 -0
- package/dist/client/copy/shell/components/Palette.d.ts +11 -0
- package/dist/client/copy/shell/components/Palette.js +14 -0
- package/dist/client/copy/shell/components/TopNav.d.ts +2 -1
- package/dist/client/copy/shell/components/TopNav.js +4 -2
- package/dist/client/copy/shell/components/directoryModel.d.ts +4 -0
- package/dist/client/copy/shell/components/directoryModel.js +6 -0
- package/dist/client/copy/shell/components/sidebarModel.d.ts +1 -0
- package/dist/client/copy/shell/components/sidebarModel.js +1 -0
- package/dist/client/core.d.ts +3 -3
- package/dist/client/core.js +6 -7
- package/dist/client/features.css +67 -7
- package/dist/client/index.html +2 -1
- package/dist/client/insert.js +1 -8
- package/dist/client/locale.d.ts +7 -0
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +12 -13
- package/dist/client/page.css +56 -15
- package/dist/client/palette.d.ts +3 -1
- package/dist/client/palette.js +19 -4
- package/dist/client/paletteRecents.d.ts +25 -0
- package/dist/client/paletteRecents.js +64 -0
- package/dist/client/partsLook.css +32 -3
- package/dist/client/sageLook.css +5 -3
- package/dist/client/shellMode.d.ts +2 -0
- package/dist/client/shellMode.js +1 -0
- package/dist/client/structure.css +201 -1
- package/dist/client/style.css +59 -10
- package/dist/client/themeFamilies.css +37 -0
- package/dist/client/visualThemes.css +12 -0
- package/dist/client/workbenchLook.css +420 -0
- package/dist/client/workshopLook.css +48 -25
- package/package.json +4 -3
|
@@ -29,7 +29,10 @@
|
|
|
29
29
|
) {
|
|
30
30
|
background: var(--nav-current);
|
|
31
31
|
color: var(--nav-on-current, var(--nav-ink));
|
|
32
|
-
|
|
32
|
+
/* The block replaces a look's own mark, but not one the look draws beside any block (`--nav-current-mark`, the
|
|
33
|
+
slot's marker in workshopLook.css), so a theme may tint the current entry and keep the accent's slot, as
|
|
34
|
+
Workshop does. */
|
|
35
|
+
box-shadow: var(--nav-current-mark, none);
|
|
33
36
|
}
|
|
34
37
|
:root[data-nav-current] .app-mode .topbar :is(.tn-item[aria-current='true'], .tn-group.active > .tn-group-button)::after {
|
|
35
38
|
background: transparent;
|
|
@@ -634,6 +637,34 @@
|
|
|
634
637
|
border-bottom: 0;
|
|
635
638
|
}
|
|
636
639
|
}
|
|
640
|
+
/* The inferred record's form (pageAnatomy.ts, inferredSections): the classic form a person works in all day.
|
|
641
|
+
Caption beside value, the caption right-aligned on one track so every value in a column starts on one line;
|
|
642
|
+
two columns where each has 18rem, else one. 18rem is what the main column beside the side menu and the aside
|
|
643
|
+
gives each of two at 1280 (627px): at 21rem that desk drew one column of seven short fields. The track is 8rem,
|
|
644
|
+
or 30% of a narrow column, so a value keeps about 12rem there: at 38% a booked time and an email address broke
|
|
645
|
+
onto a second line. A longer caption wraps under itself rather than taking the value's room. No rule under each row, the shared edge is the order. A value wraps
|
|
646
|
+
and is never cut short; long text spans both columns. A phone keeps the rail's rows (above). */
|
|
647
|
+
@media (min-width: 761px) {
|
|
648
|
+
dl.page-properties.page-classic {
|
|
649
|
+
grid-template-columns: repeat(
|
|
650
|
+
auto-fill,
|
|
651
|
+
minmax(min(100%, max(18rem, (100% - (var(--page-properties-columns, 1) - 1) * 32px) / var(--page-properties-columns, 1))), 1fr)
|
|
652
|
+
);
|
|
653
|
+
}
|
|
654
|
+
dl.page-properties.page-classic > .page-field,
|
|
655
|
+
dl.page-properties.page-classic > .page-field-wide {
|
|
656
|
+
grid-template-columns: min(8rem, 30%) minmax(0, 1fr);
|
|
657
|
+
gap: var(--space-4);
|
|
658
|
+
padding: var(--space-1h) 0;
|
|
659
|
+
border-bottom: 0;
|
|
660
|
+
}
|
|
661
|
+
dl.page-properties.page-classic > .page-field > dt {
|
|
662
|
+
text-align: end;
|
|
663
|
+
}
|
|
664
|
+
dl.page-properties.page-classic > .page-field-wide {
|
|
665
|
+
grid-column: 1 / -1;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
637
668
|
/* The aside's fields: one column beside the record, back into columns when it stacks under it. */
|
|
638
669
|
@media (min-width: 1101px) {
|
|
639
670
|
.page-aside .page-fields .page-field-grid {
|
|
@@ -1309,3 +1340,172 @@
|
|
|
1309
1340
|
.page-tabpanel > .page-section > .page-section-bar {
|
|
1310
1341
|
justify-content: flex-end;
|
|
1311
1342
|
}
|
|
1343
|
+
|
|
1344
|
+
/* The bar in the sidebar (`ui.shell.header: 'sidebar'`, the default; docs/design.md, the shell): a side-placed App
|
|
1345
|
+
draws no band across the window. The sidebar runs the window's height — its head the App's mark and name with New
|
|
1346
|
+
beside them, the search under them; its foot the bell and the account over the workspace and Collapse — and each
|
|
1347
|
+
room's own head row is the content's first line. The header element itself stands in the sidebar
|
|
1348
|
+
(packages/mistri/src/client/sidebarShell.js), still `.topbar`, so a theme's bar recipe dresses the head. Only at a
|
|
1349
|
+
desk and signed in: a phone's drawer, the top placement and public pages keep the bar, and the class is not set
|
|
1350
|
+
there. */
|
|
1351
|
+
@layer structure {
|
|
1352
|
+
body.app-sidebar-shell:not(.sidebar-hidden) .layout > .sidebar,
|
|
1353
|
+
body.app-sidebar-shell:not(.sidebar-hidden) .layout > .sidebar[data-density] {
|
|
1354
|
+
width: 240px;
|
|
1355
|
+
}
|
|
1356
|
+
body.app-sidebar-shell .sidebar > .topbar {
|
|
1357
|
+
display: grid;
|
|
1358
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
1359
|
+
grid-template-rows: 48px auto;
|
|
1360
|
+
grid-template-areas: 'brand new' 'search search';
|
|
1361
|
+
align-items: center;
|
|
1362
|
+
gap: 0 var(--space-2);
|
|
1363
|
+
padding: 0 var(--space-3) var(--space-3);
|
|
1364
|
+
flex: none;
|
|
1365
|
+
/* The bar's own height and inset (style.css, a look's) were a band's. */
|
|
1366
|
+
min-height: 0;
|
|
1367
|
+
height: auto;
|
|
1368
|
+
}
|
|
1369
|
+
body.app-sidebar-shell .sidebar > .topbar > .brand {
|
|
1370
|
+
grid-area: brand;
|
|
1371
|
+
min-width: 0;
|
|
1372
|
+
margin: 0;
|
|
1373
|
+
padding: var(--space-2);
|
|
1374
|
+
justify-self: start;
|
|
1375
|
+
max-width: 100%;
|
|
1376
|
+
}
|
|
1377
|
+
body.app-sidebar-shell .sidebar > .topbar .brand-name {
|
|
1378
|
+
min-width: 0;
|
|
1379
|
+
overflow: hidden;
|
|
1380
|
+
text-overflow: ellipsis;
|
|
1381
|
+
white-space: nowrap;
|
|
1382
|
+
}
|
|
1383
|
+
body.app-sidebar-shell .sidebar > .topbar > #new-menu-host {
|
|
1384
|
+
grid-area: new;
|
|
1385
|
+
display: flex;
|
|
1386
|
+
}
|
|
1387
|
+
/* New is the head's quiet plus, a 28px square: a bordered "+ New" was the one box among marks (as on a phone). */
|
|
1388
|
+
body.app-sidebar-shell .sidebar > .topbar .new-menu-trigger {
|
|
1389
|
+
width: 28px;
|
|
1390
|
+
min-width: 28px;
|
|
1391
|
+
height: 28px;
|
|
1392
|
+
min-height: 28px;
|
|
1393
|
+
padding: 0;
|
|
1394
|
+
justify-content: center;
|
|
1395
|
+
border-color: transparent;
|
|
1396
|
+
background: transparent;
|
|
1397
|
+
box-shadow: none;
|
|
1398
|
+
}
|
|
1399
|
+
@media (hover: hover) {
|
|
1400
|
+
body.app-sidebar-shell .sidebar > .topbar .new-menu-trigger:hover {
|
|
1401
|
+
background: var(--raised);
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
body.app-sidebar-shell .sidebar > .topbar .new-menu-words {
|
|
1405
|
+
display: none;
|
|
1406
|
+
}
|
|
1407
|
+
body.app-sidebar-shell .sidebar > .topbar .new-menu-mark {
|
|
1408
|
+
display: inline;
|
|
1409
|
+
font: 300 calc(22px * var(--type-k)) / 1 var(--sans); /* off-scale: a glyph sized as a mark in its 28px square, not text */
|
|
1410
|
+
color: var(--nav-muted, var(--ink-muted));
|
|
1411
|
+
}
|
|
1412
|
+
body.app-sidebar-shell .sidebar > .topbar > #search-button {
|
|
1413
|
+
grid-area: search;
|
|
1414
|
+
width: 100%;
|
|
1415
|
+
min-width: 0;
|
|
1416
|
+
height: 32px;
|
|
1417
|
+
min-height: 0;
|
|
1418
|
+
box-sizing: border-box;
|
|
1419
|
+
margin: 0;
|
|
1420
|
+
/* In the menu the search is a field on the menu's ground, as the menu's filter is (visualThemes.css): the bar's
|
|
1421
|
+
field takes the page's surface, and the menu's inks there (nav.muted on white under a dark nav) read 1.9:1.
|
|
1422
|
+
Tokens rather than a background, so whatever field a look or an author's parts draw stands on the nav. */
|
|
1423
|
+
--surface: var(--nav-ground, var(--ground));
|
|
1424
|
+
--line: color-mix(in srgb, var(--nav-ink, var(--ink)) 45%, var(--nav-ground, var(--ground)));
|
|
1425
|
+
}
|
|
1426
|
+
/* The foot: the bar's keys (the bell and the account, an authoring badge, the assistant's door) on one row over the
|
|
1427
|
+
workspace's identity and Collapse. */
|
|
1428
|
+
body.app-sidebar-shell .sidebar-account {
|
|
1429
|
+
flex: none;
|
|
1430
|
+
padding: var(--space-2h) var(--space-3);
|
|
1431
|
+
border-top: 1px solid var(--line);
|
|
1432
|
+
}
|
|
1433
|
+
body.app-sidebar-shell .sidebar-account > .topbar-actions {
|
|
1434
|
+
display: flex;
|
|
1435
|
+
flex-wrap: wrap;
|
|
1436
|
+
align-items: center;
|
|
1437
|
+
gap: var(--space-2);
|
|
1438
|
+
margin: 0;
|
|
1439
|
+
min-width: 0;
|
|
1440
|
+
}
|
|
1441
|
+
body.app-sidebar-shell .sidebar-account .account-with-inbox {
|
|
1442
|
+
display: flex;
|
|
1443
|
+
align-items: center;
|
|
1444
|
+
gap: var(--space-2);
|
|
1445
|
+
}
|
|
1446
|
+
body.app-sidebar-shell .sidebar-account button.account {
|
|
1447
|
+
color: var(--ink);
|
|
1448
|
+
}
|
|
1449
|
+
body.app-sidebar-shell .sidebar-account :is(.inbox-trigger, .icon-button) {
|
|
1450
|
+
color: var(--ink-muted);
|
|
1451
|
+
}
|
|
1452
|
+
body.app-sidebar-shell .sidebar-account + #sidebar-app-footer .sidebar-identity {
|
|
1453
|
+
padding-top: var(--space-3);
|
|
1454
|
+
}
|
|
1455
|
+
/* Folded to the rail: the head and the foot stand in one column of marks — the App's mark, New, the search's
|
|
1456
|
+
magnifier; the bell and the avatar. */
|
|
1457
|
+
body.app-sidebar-shell.sidebar-hidden .sidebar > .topbar {
|
|
1458
|
+
grid-template-columns: 1fr;
|
|
1459
|
+
grid-template-rows: 48px auto auto;
|
|
1460
|
+
grid-template-areas: 'brand' 'new' 'search';
|
|
1461
|
+
justify-items: center;
|
|
1462
|
+
row-gap: var(--space-2);
|
|
1463
|
+
padding-inline: var(--space-2);
|
|
1464
|
+
}
|
|
1465
|
+
body.app-sidebar-shell.sidebar-hidden .sidebar > .topbar > .brand {
|
|
1466
|
+
justify-self: center;
|
|
1467
|
+
}
|
|
1468
|
+
body.app-sidebar-shell.sidebar-hidden .sidebar > .topbar .brand-name {
|
|
1469
|
+
display: none;
|
|
1470
|
+
}
|
|
1471
|
+
body.app-sidebar-shell.sidebar-hidden .sidebar > .topbar > #search-button {
|
|
1472
|
+
width: 32px;
|
|
1473
|
+
justify-content: center;
|
|
1474
|
+
padding: 0;
|
|
1475
|
+
}
|
|
1476
|
+
body.app-sidebar-shell.sidebar-hidden .sidebar > .topbar > #search-button :is(.tn-search-hint, .tn-search-key) {
|
|
1477
|
+
display: none;
|
|
1478
|
+
}
|
|
1479
|
+
body.app-sidebar-shell.sidebar-hidden .sidebar-account {
|
|
1480
|
+
padding-inline: var(--space-2);
|
|
1481
|
+
}
|
|
1482
|
+
body.app-sidebar-shell.sidebar-hidden .sidebar-account :is(.topbar-actions, .account-with-inbox) {
|
|
1483
|
+
flex-direction: column;
|
|
1484
|
+
justify-content: center;
|
|
1485
|
+
}
|
|
1486
|
+
body.app-sidebar-shell.sidebar-hidden .sidebar-account .account-caret {
|
|
1487
|
+
display: none;
|
|
1488
|
+
}
|
|
1489
|
+
/* Each room's head row is the content's first line: the trail's bar, a list's or a dashboard's title and verbs —
|
|
1490
|
+
52px at least, on a hairline, where the band stood over them. */
|
|
1491
|
+
body.app-sidebar-shell #content > .crumbs-host:first-child > .crumbs,
|
|
1492
|
+
body.app-sidebar-shell #content > .applist-host:first-child > .applist-head,
|
|
1493
|
+
body.app-sidebar-shell #content > .applist-head:first-child {
|
|
1494
|
+
min-height: 52px;
|
|
1495
|
+
box-sizing: border-box;
|
|
1496
|
+
/* The content pane is a column that scrolls: a floor in place of `auto` let a tall room shrink its head to it. */
|
|
1497
|
+
flex-shrink: 0;
|
|
1498
|
+
}
|
|
1499
|
+
body.app-sidebar-shell #content > .applist-host:first-child > .applist-head,
|
|
1500
|
+
body.app-sidebar-shell #content > .applist-head:first-child {
|
|
1501
|
+
margin-top: 0;
|
|
1502
|
+
padding-block: var(--space-3h);
|
|
1503
|
+
border-bottom: 1px solid var(--line);
|
|
1504
|
+
}
|
|
1505
|
+
body.app-sidebar-shell #content > .applist-host:first-child > .applist-head + .applist-controls {
|
|
1506
|
+
padding-top: var(--space-3);
|
|
1507
|
+
}
|
|
1508
|
+
body.app-sidebar-shell #content > .applist-head:first-child + * {
|
|
1509
|
+
padding-top: var(--space-4);
|
|
1510
|
+
}
|
|
1511
|
+
}
|
package/dist/client/style.css
CHANGED
|
@@ -47,9 +47,10 @@ body {
|
|
|
47
47
|
a popup, a panel and a dialog are as square or as round as the fields
|
|
48
48
|
beside them. They sit here, beside --radius-lg, for the same reason.
|
|
49
49
|
A surface's lift is the scale's (--shadow-pop, --shadow-panel,
|
|
50
|
-
--shadow-modal)
|
|
51
|
-
a
|
|
52
|
-
surface's keeps it,
|
|
50
|
+
--shadow-modal), which the Workbench's own look sets (workbenchLook.css);
|
|
51
|
+
where a surface's lift there is a literal of its own, a rule under
|
|
52
|
+
:where(:root:not([data-visual-theme])) right after the surface's keeps it,
|
|
53
|
+
at the same specificity (test/check-client-shape.mjs). */
|
|
53
54
|
--radius-item: 5px;
|
|
54
55
|
--radius-pop: 8px;
|
|
55
56
|
--radius-panel: 8px;
|
|
@@ -498,7 +499,6 @@ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held)
|
|
|
498
499
|
background: var(--surface); border: 1px solid var(--line);
|
|
499
500
|
box-shadow: var(--shadow-pop);
|
|
500
501
|
}
|
|
501
|
-
:where(:root:not([data-visual-theme])) .zoom-controls { box-shadow: 0 2px 10px rgb(0 0 0 / 0.06); }
|
|
502
502
|
.zoom-controls button { padding: var(--space-1) var(--space-3); font-size: var(--text-sm); }
|
|
503
503
|
.zoom-readout {
|
|
504
504
|
min-width: 3.4rem; text-align: center;
|
|
@@ -586,7 +586,6 @@ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held)
|
|
|
586
586
|
box-shadow: var(--shadow-modal);
|
|
587
587
|
overflow: hidden;
|
|
588
588
|
}
|
|
589
|
-
:where(:root:not([data-visual-theme])) .palette { box-shadow: 0 18px 60px rgb(0 0 0 / 0.28); }
|
|
590
589
|
.palette-input {
|
|
591
590
|
padding: var(--space-4h) var(--space-5);
|
|
592
591
|
border: none; border-bottom: 1px solid var(--line);
|
|
@@ -622,6 +621,35 @@ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held)
|
|
|
622
621
|
.palette-detail { font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
|
|
623
622
|
.palette-empty { padding: var(--space-5); margin: 0; font-size: var(--text-sm); color: var(--ink-muted); }
|
|
624
623
|
|
|
624
|
+
/* An App's palette (Palette.tsx, `palette-grouped`; the Workbench keeps the flat list above): rows in groups under
|
|
625
|
+
quiet headings, each with the mark its room or table has in the menu, the kind said in the line under the name and
|
|
626
|
+
not as a badge, and the keys it answers to in a footer. The list is one height whatever it holds, so typing —
|
|
627
|
+
which empties some groups and fills others — never moves the box the reader's eye is in. */
|
|
628
|
+
.palette-grouped .palette-list { block-size: min(30rem, 56vh); min-block-size: 0; overscroll-behavior: contain; }
|
|
629
|
+
.palette-group-head {
|
|
630
|
+
padding: var(--space-3) var(--space-3h) var(--space-2);
|
|
631
|
+
font: 600 var(--text-xs) var(--sans); color: var(--ink-subtle);
|
|
632
|
+
}
|
|
633
|
+
.palette-group + .palette-group { margin-top: var(--space-2); }
|
|
634
|
+
.palette-grouped .palette-item { grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); }
|
|
635
|
+
.palette-icon { display: grid; place-items: center; color: var(--ink-muted); }
|
|
636
|
+
.palette-item.active .palette-icon { color: var(--ink); }
|
|
637
|
+
.palette-grouped :is(.palette-label, .palette-detail) { font-family: var(--sans); }
|
|
638
|
+
.palette-grouped .palette-label { min-width: 0; font-size: var(--text-md); }
|
|
639
|
+
.palette-grouped .palette-detail { white-space: nowrap; }
|
|
640
|
+
.palette-foot {
|
|
641
|
+
flex: none; display: flex; align-items: center; gap: var(--space-5);
|
|
642
|
+
block-size: 28px; padding: 0 var(--space-5);
|
|
643
|
+
border-top: 1px solid var(--line);
|
|
644
|
+
font: var(--text-xs) var(--sans); color: var(--ink-subtle);
|
|
645
|
+
}
|
|
646
|
+
.palette-hint { display: inline-flex; align-items: center; gap: var(--space-2); }
|
|
647
|
+
.palette-foot kbd {
|
|
648
|
+
display: inline-grid; place-items: center; min-inline-size: 16px; padding: 0 var(--space-1h);
|
|
649
|
+
border: 1px solid var(--line); border-radius: min(3px, var(--radius));
|
|
650
|
+
font: inherit; color: var(--ink-muted);
|
|
651
|
+
}
|
|
652
|
+
|
|
625
653
|
/* ---------- the sidebar toggle ---------- */
|
|
626
654
|
|
|
627
655
|
/* Header controls that are not the primary action: an icon's worth of space
|
|
@@ -646,7 +674,6 @@ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held)
|
|
|
646
674
|
border: 1px solid var(--line-strong); border-radius: var(--radius-pop);
|
|
647
675
|
box-shadow: var(--shadow-pop);
|
|
648
676
|
}
|
|
649
|
-
:where(:root:not([data-visual-theme])) .more-list { box-shadow: 0 10px 34px rgb(0 0 0 / 0.18); }
|
|
650
677
|
.more-item {
|
|
651
678
|
display: grid; grid-template-columns: 1.1rem 1fr auto;
|
|
652
679
|
align-items: baseline; gap: var(--space-3);
|
|
@@ -1109,7 +1136,6 @@ th.align-right:not(:last-child) .th-resizer { width: var(--space-3h); }
|
|
|
1109
1136
|
box-shadow: var(--shadow-pop);
|
|
1110
1137
|
padding: var(--space-2);
|
|
1111
1138
|
}
|
|
1112
|
-
:where(:root:not([data-visual-theme])) .th-menu { box-shadow: 0 6px 20px rgb(0 0 0 / 0.16); }
|
|
1113
1139
|
@media (prefers-reduced-motion: no-preference) {
|
|
1114
1140
|
.th-menu {
|
|
1115
1141
|
transform-origin: top center;
|
|
@@ -1651,6 +1677,24 @@ button.danger { background: var(--status-critical); color: var(--surface); borde
|
|
|
1651
1677
|
.record-summary dl > div { display: flex; align-items: baseline; gap: var(--space-2h); min-width: 0; max-width: 100%; }
|
|
1652
1678
|
.record-summary dt { flex: none; font: 500 var(--text-sm)/1.5 var(--sans); color: var(--ink-muted); }
|
|
1653
1679
|
.record-summary dd { min-width: 0; margin: 0; font: var(--text-md)/1.45 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
1680
|
+
/* In an App a row says each value once and its caption never (design.md, Mobile): the title, then the first values on
|
|
1681
|
+
one line — a status as its dot and word, a person as avatar and name, a date short — and the caption stays for
|
|
1682
|
+
whoever reads by ear, as the grid's header is. Two lines at most: every fact stands in one fixed line box, so the
|
|
1683
|
+
rows are whole and a third line is cut off at a fact's edge, never through one. An empty value is not drawn (it
|
|
1684
|
+
would be a mark with no caption to say what is missing), so the facts after it close up. The Workbench keeps its
|
|
1685
|
+
captions: it is a tool for reading data as stored. */
|
|
1686
|
+
body.app-mode .record-summary dl {
|
|
1687
|
+
--summary-line: calc(var(--text-md) * 1.8);
|
|
1688
|
+
gap: 0 var(--field-gap);
|
|
1689
|
+
max-block-size: calc(var(--summary-line) * 2);
|
|
1690
|
+
overflow: hidden;
|
|
1691
|
+
}
|
|
1692
|
+
body.app-mode .record-summary dl > div { position: relative; block-size: var(--summary-line); align-items: center; overflow: hidden; }
|
|
1693
|
+
body.app-mode .record-summary dl > div[data-empty] { display: none; }
|
|
1694
|
+
body.app-mode .record-summary dt {
|
|
1695
|
+
position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden;
|
|
1696
|
+
clip-path: inset(50%); white-space: nowrap; border: 0;
|
|
1697
|
+
}
|
|
1654
1698
|
/* A dashboard's list stands on its section's edge, where the section's title does. */
|
|
1655
1699
|
.dash-list .record-summaries { padding: 0; }
|
|
1656
1700
|
}
|
|
@@ -1670,7 +1714,6 @@ button.danger { background: var(--status-critical); color: var(--surface); borde
|
|
|
1670
1714
|
box-shadow: var(--shadow-pop);
|
|
1671
1715
|
background: var(--raised); color: var(--ink-muted);
|
|
1672
1716
|
}
|
|
1673
|
-
:where(:root:not([data-visual-theme])) .toast { box-shadow: 0 4px 16px rgb(0 0 0 / 0.12); }
|
|
1674
1717
|
@media (prefers-reduced-motion: no-preference) {
|
|
1675
1718
|
.toast {
|
|
1676
1719
|
/* A transition rather than a keyframe: transitions retarget mid-flight,
|
|
@@ -1692,7 +1735,6 @@ body.app-mode .toast {
|
|
|
1692
1735
|
background: var(--surface); color: var(--ink);
|
|
1693
1736
|
box-shadow: var(--shadow-pop);
|
|
1694
1737
|
}
|
|
1695
|
-
:where(:root:not([data-visual-theme])) body.app-mode .toast { box-shadow: 0 6px 24px rgb(0 0 0 / 0.14); }
|
|
1696
1738
|
body.app-mode .toast-message { flex: 1; min-width: 0; }
|
|
1697
1739
|
body.app-mode .toast-icon {
|
|
1698
1740
|
display: grid; place-items: center; flex: 0 0 22px; height: 22px;
|
|
@@ -2328,7 +2370,6 @@ body.app-mode .page-head.has-record + .page-body { padding-bottom: calc(132px +
|
|
|
2328
2370
|
box-shadow: var(--shadow-pop);
|
|
2329
2371
|
padding: var(--space-2);
|
|
2330
2372
|
}
|
|
2331
|
-
:where(:root:not([data-visual-theme])) .ac { box-shadow: 0 6px 20px rgb(0 0 0 / 0.16); }
|
|
2332
2373
|
.ac[hidden] { display: none; }
|
|
2333
2374
|
@media (prefers-reduced-motion: no-preference) {
|
|
2334
2375
|
.ac {
|
|
@@ -2439,6 +2480,14 @@ body.app-mode .page-head.has-record + .page-body { padding-bottom: calc(132px +
|
|
|
2439
2480
|
/* With a list's verbs at the bar's end, both took an auto margin and split the
|
|
2440
2481
|
free space: Back floated mid-bar. Back keeps the end; the verbs follow it. */
|
|
2441
2482
|
.crumbs .crumb-back + .crumb-tools { margin-left: var(--space-3); }
|
|
2483
|
+
/* In an App the trail is the one way back at a desk: Back said the trail's
|
|
2484
|
+
last step again at the bar's other end (docs/design.md, the trail). A phone
|
|
2485
|
+
keeps it, where the trail is cut to its last crumb. A rule of the width,
|
|
2486
|
+
not of a measurement, so the bar is one shape from its first paint. */
|
|
2487
|
+
@media (min-width: 641px) {
|
|
2488
|
+
body.app-mode .crumbs .crumb-back { display: none; }
|
|
2489
|
+
body.app-mode .crumbs .crumb-back + .crumb-tools { margin-left: auto; }
|
|
2490
|
+
}
|
|
2442
2491
|
|
|
2443
2492
|
.related-item {
|
|
2444
2493
|
display: grid; grid-template-columns: minmax(2.4rem, auto) 1fr;
|
|
@@ -520,6 +520,10 @@
|
|
|
520
520
|
:root[data-type-label~='tracking'] :is(.home-card-label, .table-wrap thead th, .tab, :where(body.app-mode) .page-tab) {
|
|
521
521
|
letter-spacing: var(--type-label-tracking);
|
|
522
522
|
}
|
|
523
|
+
/* A label's own size, a step either side of the base: after the capitals' step, so a size said wins over it. */
|
|
524
|
+
:root[data-type-label~='size'] :is(.home-card-label, .table-wrap thead th, .tab, :where(body.app-mode) .page-tab) {
|
|
525
|
+
font-size: var(--type-label-size);
|
|
526
|
+
}
|
|
523
527
|
:root[data-type-label~='weight'] :is(.home-card-label, .table-wrap thead th, .tab, :where(body.app-mode) .page-tab) {
|
|
524
528
|
font-weight: var(--type-label-weight);
|
|
525
529
|
}
|
|
@@ -691,6 +695,39 @@
|
|
|
691
695
|
font-family: var(--mono);
|
|
692
696
|
}
|
|
693
697
|
|
|
698
|
+
/* ---------- Meaning (recipes.status = dot) ---------- */
|
|
699
|
+
/* A status in a cell or a field is a dot and its word, the word in the ink at the cell's weight: only the dot
|
|
700
|
+
carries the tone, so "Collected" and "Waiting on parts" weigh the same down a column until one needs a hand.
|
|
701
|
+
What asks for attention (warn, bad) says its word in its colour too. This is Lumen's `quiet` (lumenLook.css) for
|
|
702
|
+
every look that draws a dot, and it is only the cell and the field: a lane's head, a board card and a calendar
|
|
703
|
+
card colour their own words. The pill recipes colour the word themselves (sageLook.css, lumenLook.css) and keep
|
|
704
|
+
the base's tone ink, which is why this is a recipe's rule and not the shared layer's. */
|
|
705
|
+
:root[data-look-status='dot'] :is(td, dd) .tone:not(.record-tag, .tone-neutral) {
|
|
706
|
+
color: var(--ink);
|
|
707
|
+
font-weight: 400;
|
|
708
|
+
}
|
|
709
|
+
:root[data-look-status='dot'] :is(td, dd) .tone:not(.record-tag, .tone-neutral)::before {
|
|
710
|
+
background: var(--tone-dot, currentColor);
|
|
711
|
+
}
|
|
712
|
+
:root[data-look-status='dot'] :is(td, dd) .tone-good {
|
|
713
|
+
--tone-dot: var(--status-good);
|
|
714
|
+
}
|
|
715
|
+
:root[data-look-status='dot'] :is(td, dd) .tone-info {
|
|
716
|
+
--tone-dot: var(--status-info);
|
|
717
|
+
}
|
|
718
|
+
:root[data-look-status='dot'] :is(td, dd) .tone-warn:not(.record-tag) {
|
|
719
|
+
--tone-dot: var(--status-warning);
|
|
720
|
+
color: color-mix(in srgb, var(--status-warning) 82%, var(--ink));
|
|
721
|
+
}
|
|
722
|
+
:root[data-look-status='dot'] :is(td, dd) .tone-bad:not(.record-tag) {
|
|
723
|
+
--tone-dot: var(--status-critical);
|
|
724
|
+
color: color-mix(in srgb, var(--status-critical) 82%, var(--ink));
|
|
725
|
+
}
|
|
726
|
+
/* A marked value's icon is its dot, so it takes the dot's colour and not the word's. */
|
|
727
|
+
:root[data-look-status='dot'] :is(td, dd) .tone-marked:not(.record-tag, .tone-neutral) > svg {
|
|
728
|
+
color: var(--tone-dot);
|
|
729
|
+
}
|
|
730
|
+
|
|
694
731
|
/* ---------- The header (recipes.header) ---------- */
|
|
695
732
|
/* `band` lays a record's head and a list's on one strip of the raised ground, edge to edge of the pane: the trail with
|
|
696
733
|
the record's verbs, the eyebrow, the name, its status and facts, or a list's title, tabs and filters, as an object
|
|
@@ -234,6 +234,18 @@
|
|
|
234
234
|
link-blue names under the title read as a row of navigation, not as what the record is (page.css). */
|
|
235
235
|
:root[data-visual-theme] .page-head-facts .page-fact button.ref-jump { color: var(--ink); }
|
|
236
236
|
:root[data-visual-theme] .page-head-facts .page-fact button.ref-jump:hover { color: var(--link); }
|
|
237
|
+
/* In a grid a reference is the cell's own word in the ink, and a link only to the pointer or the keyboard: a column of
|
|
238
|
+
link-blue names beside the plain ones read as the loudest column on the page, and the cell is a door whichever colour
|
|
239
|
+
it wears (the peek opens on hover, the click goes). A record's fields keep the link ink above, where a reference is
|
|
240
|
+
the one thing to follow. Mono's underline stays (themeFamilies.css). */
|
|
241
|
+
:root[data-visual-theme] .app-mode td.reflink { color: var(--ink); }
|
|
242
|
+
:root[data-visual-theme] .app-mode td.reflink:is(:focus-visible, :focus-within) { color: var(--link); }
|
|
243
|
+
@media (hover: hover) {
|
|
244
|
+
:root[data-visual-theme] .app-mode td.reflink:hover { color: var(--link); }
|
|
245
|
+
}
|
|
246
|
+
/* A true flag is a tick in the ink; a false one is an empty cell (Grid.tsx names it "No" for assistive technology), so
|
|
247
|
+
a column of flags shows the rows that are, not a column of crosses. */
|
|
248
|
+
:root[data-visual-theme] .app-mode td.bool .yes { color: var(--ink); }
|
|
237
249
|
|
|
238
250
|
:root[data-visual-theme] .dash-controls { padding-top: 20px; padding-bottom: var(--space-3); gap: var(--space-4); }
|
|
239
251
|
:root[data-visual-theme] .dash-windows { padding: var(--space-1h); gap: var(--space-1); background: var(--raised); border: 1px solid var(--line); border-radius: var(--control-radius, var(--radius)); }
|