@mistriwork/kit 1.0.0-rc.58 → 1.0.0-rc.60
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/app.js +16 -3
- package/dist/client/audience.d.ts +1 -0
- package/dist/client/audience.js +10 -0
- package/dist/client/brandLook.css +49 -1
- package/dist/client/components/AppColumnMenuPopups.js +46 -11
- package/dist/client/components/AppList.d.ts +3 -1
- package/dist/client/components/AppList.js +92 -19
- package/dist/client/components/CardsList.js +14 -1
- package/dist/client/components/Chart.css +4 -0
- package/dist/client/components/Chart.d.ts +4 -4
- package/dist/client/components/Chart.js +30 -9
- package/dist/client/components/Content.js +4 -2
- package/dist/client/components/DateField.css +1 -1
- package/dist/client/components/DateField.js +1 -0
- package/dist/client/components/DefinedFields.js +2 -2
- package/dist/client/components/Diagram.css +82 -0
- package/dist/client/components/Diagram.d.ts +1 -0
- package/dist/client/components/Diagram.js +1 -0
- package/dist/client/components/Dressed.js +1 -1
- package/dist/client/components/Editable.js +7 -3
- package/dist/client/components/Export.js +1 -1
- package/dist/client/components/FilterBoxes.js +2 -2
- package/dist/client/components/FilterRail.css +1 -1
- package/dist/client/components/FilterRail.js +6 -4
- package/dist/client/components/Gallery.css +171 -0
- package/dist/client/components/Gallery.d.ts +1 -0
- package/dist/client/components/Gallery.js +1 -0
- package/dist/client/components/Grid.d.ts +2 -1
- package/dist/client/components/Grid.js +78 -24
- package/dist/client/components/GridCellEditor.js +4 -2
- package/dist/client/components/GridSelection.d.ts +4 -7
- package/dist/client/components/GridSelection.js +45 -3
- package/dist/client/components/LandingSurface.css +2 -2
- package/dist/client/components/LayoutBuilder.css +225 -0
- package/dist/client/components/LayoutBuilder.d.ts +1 -0
- package/dist/client/components/LayoutBuilder.js +1 -0
- package/dist/client/components/ListColumns.d.ts +12 -0
- package/dist/client/components/ListColumns.js +61 -0
- package/dist/client/components/ListFilterBar.css +43 -16
- package/dist/client/components/ListFilterBar.js +45 -23
- package/dist/client/components/MultiStepForm.css +22 -22
- package/dist/client/components/NewRecord.js +120 -104
- package/dist/client/components/Notes.css +9 -0
- package/dist/client/components/Notes.d.ts +6 -2
- package/dist/client/components/Notes.js +10 -6
- package/dist/client/components/OverflowMenu.js +16 -11
- package/dist/client/components/PageFields.js +19 -4
- package/dist/client/components/PageRelated.d.ts +8 -1
- package/dist/client/components/PageRelated.js +46 -33
- package/dist/client/components/PageSections.js +18 -5
- package/dist/client/components/Palette.js +1 -1
- package/dist/client/components/Prefs.d.ts +10 -0
- package/dist/client/components/Prefs.js +33 -23
- package/dist/client/components/PresentationSwitch.js +4 -0
- package/dist/client/components/Prompt.js +4 -4
- package/dist/client/components/RecordGone.js +4 -4
- package/dist/client/components/RecordPicker.js +24 -6
- package/dist/client/components/RecordSummaries.js +31 -5
- package/dist/client/components/RecordTrailNav.js +4 -0
- package/dist/client/components/RichTextEditor.css +2 -2
- package/dist/client/components/RichTextEditor.js +18 -19
- package/dist/client/components/Rooms.js +27 -6
- package/dist/client/components/SectionPeriod.css +1 -1
- package/dist/client/components/SetFieldDialog.js +1 -1
- package/dist/client/components/Sidebar.js +15 -5
- package/dist/client/components/SuggestBox.js +2 -2
- package/dist/client/components/TableRoom.d.ts +5 -1
- package/dist/client/components/TableRoom.js +29 -10
- package/dist/client/components/TableView.js +6 -2
- package/dist/client/components/ThMenu.js +26 -15
- package/dist/client/components/Tour.css +96 -0
- package/dist/client/components/Tour.d.ts +1 -0
- package/dist/client/components/Tour.js +1 -0
- package/dist/client/components/TreePicker.css +1 -1
- package/dist/client/components/TreePicker.js +27 -20
- package/dist/client/components/Value.js +4 -1
- package/dist/client/components/WorkflowStatus.js +8 -4
- 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/boardNew.d.ts +5 -0
- package/dist/client/components/boardNew.js +5 -0
- package/dist/client/components/conditionWords.d.ts +10 -0
- package/dist/client/components/conditionWords.js +20 -0
- package/dist/client/components/dashboardModel.d.ts +8 -0
- package/dist/client/components/dashboardModel.js +28 -1
- package/dist/client/components/editInteraction.d.ts +1 -1
- package/dist/client/components/editInteraction.js +1 -1
- package/dist/client/components/gridSizing.d.ts +14 -20
- package/dist/client/components/gridSizing.js +147 -108
- package/dist/client/components/pageContext.d.ts +3 -2
- package/dist/client/components/pageModel.d.ts +2 -0
- package/dist/client/components/pickerStaleness.d.ts +11 -1
- package/dist/client/components/pickerStaleness.js +12 -2
- package/dist/client/components/rowTitle.d.ts +2 -0
- package/dist/client/components/rowTitle.js +10 -0
- package/dist/client/components/textMeasure.js +72 -3
- package/dist/client/components/useConditionWords.d.ts +5 -0
- package/dist/client/components/useConditionWords.js +3 -1
- package/dist/client/components/useGridKeyboard.js +5 -0
- package/dist/client/components/useMediaQuery.d.ts +2 -0
- package/dist/client/components/useMediaQuery.js +2 -0
- package/dist/client/components/valueModel.d.ts +1 -0
- package/dist/client/components/valueModel.js +39 -4
- package/dist/client/composer.css +2 -2
- package/dist/client/copy/es.js +3 -3
- package/dist/client/copy/filters/components/ListFilterBar.d.ts +1 -0
- package/dist/client/copy/filters/components/ListFilterBar.js +1 -0
- package/dist/client/copy/forms/components/DateField.d.ts +2 -0
- package/dist/client/copy/forms/components/DateField.js +2 -0
- package/dist/client/copy/forms/components/NewRecord.d.ts +8 -0
- package/dist/client/copy/forms/components/NewRecord.js +2 -0
- package/dist/client/copy/lists/components/AppList.d.ts +2 -0
- package/dist/client/copy/lists/components/AppList.js +2 -0
- package/dist/client/copy/lists/components/GridSelection.d.ts +1 -0
- package/dist/client/copy/lists/components/GridSelection.js +1 -0
- package/dist/client/copy/lists/components/ListColumns.d.ts +5 -0
- package/dist/client/copy/lists/components/ListColumns.js +7 -0
- package/dist/client/copy/lists/components/TableRoom.d.ts +3 -1
- package/dist/client/copy/lists/components/TableRoom.js +3 -1
- package/dist/client/copy/record/components/PageHistory.d.ts +2 -2
- package/dist/client/copy/record/components/PageHistory.js +4 -2
- package/dist/client/copy/record/components/WorkflowStatus.d.ts +1 -0
- package/dist/client/copy/record/components/WorkflowStatus.js +1 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +1 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.js +2 -0
- package/dist/client/core.d.ts +2 -1
- package/dist/client/core.js +46 -2
- package/dist/client/customThemes.css +3 -3
- package/dist/client/dom.js +5 -5
- package/dist/client/features.css +220 -356
- package/dist/client/fonts/Manrope-OFL.txt +93 -0
- package/dist/client/fonts/faces.css +10 -1
- package/dist/client/fonts/manrope-latin.woff2 +0 -0
- package/dist/client/formControls.css +4 -4
- package/dist/client/help.css +2 -2
- package/dist/client/ledgerLook.css +28 -0
- package/dist/client/locale.d.ts +2 -10
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +295 -105
- package/dist/client/manropeFace.css +32 -0
- package/dist/client/messages.d.ts +3 -3
- package/dist/client/messages.js +3 -3
- package/dist/client/navigationHold.d.ts +9 -0
- package/dist/client/navigationHold.js +46 -3
- package/dist/client/page.css +107 -357
- package/dist/client/palette.js +31 -6
- package/dist/client/partsLook.css +60 -60
- package/dist/client/sageLook.css +101 -32
- package/dist/client/shellHost.d.ts +2 -2
- package/dist/client/shellHost.js +2 -2
- package/dist/client/shellMode.d.ts +9 -0
- package/dist/client/shellMode.js +2 -0
- package/dist/client/structure.css +282 -201
- package/dist/client/style.css +75 -224
- package/dist/client/themeFamilies.css +471 -66
- package/dist/client/tilesLook.css +502 -0
- package/dist/client/visualTheme.js +5 -2
- package/dist/client/visualThemes.css +38 -34
- package/dist/client/workbenchLook.css +12 -12
- package/dist/client/workshopLook.css +3 -8
- package/dist/vite.d.ts +1 -20
- package/dist/vite.js +33 -3
- package/package.json +8 -7
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
:root[data-theme-style] .applist-title { font-size: var(--type-list-title); line-height: 1.2; font-weight: var(--heading-weight); letter-spacing: var(--track-title); }
|
|
54
54
|
:root[data-theme-style] :is(.root-current, .dash-head .applist-title) { font-size: var(--type-record-title); line-height: 1.2; font-weight: var(--heading-weight); letter-spacing: var(--track-display); }
|
|
55
55
|
:root[data-theme-style] :is(.page-field > dt, .applist-field-label) { font: 500 var(--text-sm) var(--sans); text-transform: none; letter-spacing: normal; color: var(--ink-muted); }
|
|
56
|
-
:root[data-theme-style] :is(.page-section-head, .page-section-title
|
|
56
|
+
:root[data-theme-style] :is(.page-section-head, .page-section-title) { font: 600 var(--text-md) var(--sans); text-transform: none; letter-spacing: normal; color: var(--ink); }
|
|
57
57
|
/* A dashboard section's own title (a list's, a board's) is in the look's heading face, as it always showed. */
|
|
58
58
|
:root[data-theme-style] .page-section-title { font-family: var(--heading-font, var(--sans)); }
|
|
59
59
|
/* Over a record's name, its kind is a label, not a second heading: at 14px
|
|
60
60
|
in bold capitals "ISSUE" weighed as much as the sections under it. */
|
|
61
|
-
:root[data-theme-style] .page-head.has-record :is(.page-title, .page-title-pick
|
|
61
|
+
:root[data-theme-style] .page-head.has-record :is(.page-title, .page-title-pick [data-slot='select-value']) { font: 600 var(--text-xs) var(--sans); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--ink-muted); }
|
|
62
62
|
|
|
63
63
|
/* A section's note ("Nothing to count yet.") starts on the section's own
|
|
64
64
|
edge, under its heading, at a size a sentence can be read in: the
|
|
@@ -77,8 +77,19 @@
|
|
|
77
77
|
border-top-width: var(--rules-weight, 2px);
|
|
78
78
|
border-top-color: var(--rules-section, var(--ink));
|
|
79
79
|
}
|
|
80
|
+
/* An open table's head stands on what the table stands on, and in the pane that is the surface: on the window's
|
|
81
|
+
ground it was a band behind the head row in every look whose ground is not its surface. Opaque still, since
|
|
82
|
+
the rows scroll under it. */
|
|
83
|
+
:root[data-look-table='open'] body.app-sidebar-shell .content th:where(:not([data-slot])) {
|
|
84
|
+
background: var(--surface);
|
|
85
|
+
}
|
|
80
86
|
/* `rules: 'hairline'`: a record's sections keep their rules, softened from the ink to the hairline. `double` keeps
|
|
81
87
|
that and adds its own (ledgerLook.css). */
|
|
88
|
+
/* A look that rules in ink and rules its bar rules the pane's bar in it too (structure.css): the one line the
|
|
89
|
+
whole room hangs from. A printed page (Atelier) rules its sections in ink under a bar on a hairline. */
|
|
90
|
+
:root[data-theme-style][data-look-bar='ruled']:not([data-look-rules='hairline'], [data-look-rules='double']) {
|
|
91
|
+
--pane-rule: 2px solid var(--ink);
|
|
92
|
+
}
|
|
82
93
|
:root:is([data-look-rules='hairline'], [data-look-rules='double']) .page-section {
|
|
83
94
|
border-top-width: 1px;
|
|
84
95
|
border-top-color: var(--line);
|
|
@@ -118,17 +129,17 @@
|
|
|
118
129
|
:root[data-theme-style] .table-wrap { padding: 0; }
|
|
119
130
|
/* The weight and the cells' padding are the kit's (600; 10px): these rules once said 500 and 11px/14px
|
|
120
131
|
and lost to the kit on specificity, so they never showed. They say what ships. */
|
|
121
|
-
:root[data-theme-style] th { background: var(--ground); font: 600 var(--text-base) var(--sans); color: var(--ink-muted); text-transform: none; letter-spacing: normal; border-bottom: var(--rules-weight, 2px) solid var(--rules-head, var(--ink)); }
|
|
132
|
+
:root[data-theme-style] th:where(:not([data-slot])) { background: var(--ground); font: 600 var(--text-base) var(--sans); color: var(--ink-muted); text-transform: none; letter-spacing: normal; border-bottom: var(--rules-weight, 2px) solid var(--rules-head, var(--ink)); }
|
|
122
133
|
/* A row's own head (a matrix's "Closed won") is a th in the body: it takes
|
|
123
134
|
the row's hairline, not the header's rule, or every row read as underlined. */
|
|
124
|
-
:root[data-theme-style] tbody th { border-bottom: 1px solid var(--line); background: transparent; }
|
|
135
|
+
:root[data-theme-style] tbody th:where(:not([data-slot])) { border-bottom: 1px solid var(--line); background: transparent; }
|
|
125
136
|
/* Where the ground is a panel's — a peek, a dialog — the header takes it. */
|
|
126
|
-
:root[data-theme-style] :is(.peekpanel,
|
|
137
|
+
:root[data-theme-style] :is(.peekpanel,[data-slot='dialog-content'][data-kind='modal']) th { background: var(--surface); }
|
|
127
138
|
/* A form's lines are a form, not a data table: their head is the grid's own quiet caption row (FormLines.css), on
|
|
128
139
|
whatever ground the form stands. Without this the head took the page's ground, a grey band across a white form. */
|
|
129
140
|
:root[data-theme-style] .form-lines-grid th { background: none; font: 500 var(--text-sm) var(--sans); border-bottom: 1px solid var(--line); }
|
|
130
|
-
:root[data-theme-style] td { border-bottom: 1px solid var(--line); }
|
|
131
|
-
:root[data-theme-style] tbody tr:hover td { background: var(--raised); }
|
|
141
|
+
:root[data-theme-style] td:where(:not([data-slot])) { border-bottom: 1px solid var(--line); }
|
|
142
|
+
:root[data-theme-style] tbody tr:hover td:where(:not([data-slot])) { background: var(--raised); }
|
|
132
143
|
:root[data-theme-style] .grid-totals td { background: var(--ground); border-top: 1px solid var(--ink); }
|
|
133
144
|
|
|
134
145
|
/* A board's lanes stand under a rule in the ink instead of in a box, and a
|
|
@@ -152,7 +163,7 @@
|
|
|
152
163
|
:root[data-theme-style] .triage-lane-count.is-over { color: var(--status-warning); }
|
|
153
164
|
/* A board's card is a card: a theme that names its panel corner (shape.radius.panel) rounds it with its panels and stat
|
|
154
165
|
cards; a look that names none keeps its control's corner on a card this small (design.md, Shape). */
|
|
155
|
-
:root[data-theme-style] :is(.board-card, .triage-card) { background: var(--surface); border: 1px solid var(--line); border-radius: var(--panel-radius, var(--radius)); padding: var(--space-4) var(--space-4h); gap: var(--space-2h); }
|
|
166
|
+
:root[data-theme-style] :is(.board-card, .triage-card) { background: var(--surface); border: 1px solid var(--line); border-radius: var(--panel-radius, var(--radius)); --card-pad: var(--space-4h); padding: var(--space-4) var(--space-4h); gap: var(--space-2h); }
|
|
156
167
|
:root[data-theme-style] .triage-card.has-menu { padding-right: var(--space-7); }
|
|
157
168
|
:root[data-theme-style] :is(.board-card, .triage-card):hover { border-color: var(--line-strong); }
|
|
158
169
|
:root[data-theme-style] .triage-card.is-selected { border-color: var(--accent); }
|
|
@@ -197,8 +208,10 @@
|
|
|
197
208
|
:root[data-theme-style] .app-mode .content { background: var(--ground); }
|
|
198
209
|
:root[data-theme-style] .app-mode .topbar { border-bottom: 1px solid var(--nav-line); }
|
|
199
210
|
:root[data-theme-style] .app-mode .topbar :is(.tn-group.active > .tn-group-button, .tn-item[aria-current="true"]) { background: color-mix(in srgb, var(--nav-ink) 8%, transparent); color: var(--nav-ink); border-radius: var(--radius); }
|
|
200
|
-
:root[data-theme-style] td { font-size: var(--text-md); }
|
|
201
|
-
:
|
|
211
|
+
:root[data-theme-style] td:where(:not([data-slot])) { font-size: var(--text-md); }
|
|
212
|
+
/* The row's name anchors it, in every look: its first column a step heavier than the rest, so the eye has somewhere
|
|
213
|
+
to land before it reads across (a row's tick, where it has one, stands before it). */
|
|
214
|
+
:root[data-theme-style] .app-mode td:is(:first-child:not(.row-host), .row-host + td) { font-weight: 600; }
|
|
202
215
|
:root[data-theme-style] td.num { font-weight: 500; }
|
|
203
216
|
/* List tabs are pills here: the current one filled in the accent. */
|
|
204
217
|
:root[data-theme-style] .tabs { border-bottom: 0; gap: var(--space-2); padding-top: var(--space-4); }
|
|
@@ -210,11 +223,18 @@
|
|
|
210
223
|
sets its own label below. */
|
|
211
224
|
:root[data-theme-style] :is(.tab, :where(body.app-mode) .page-tab) { border: 0; border-radius: var(--radius); padding: var(--space-2) var(--space-4); font: 500 var(--text-base) var(--sans); text-transform: none; letter-spacing: normal; color: var(--ink-muted); }
|
|
212
225
|
:root[data-theme-style] :is(.tab, :where(body.app-mode) .page-tab)[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-bottom-width: 0; }
|
|
213
|
-
|
|
226
|
+
/* A tab drawn as a box is a control in the list's toolbar: the toolbar's height, so it stands level with the filters
|
|
227
|
+
beside it (a 24px pill stood beside 30px filters), and the control's corner, so a look whose buttons are pills has
|
|
228
|
+
pill tabs. The height is the line's, not a box's, so a count beside the name keeps its baseline. */
|
|
229
|
+
:root[data-theme-style]:is([data-look-tabs='pill'], [data-look-tabs='tint'], [data-look-tabs='inverted']) :is(.tab, :where(body.app-mode) .page-tab) { line-height: calc(var(--control-h-sm) - 2 * var(--space-2)); border-radius: var(--control-radius, var(--radius)); }
|
|
230
|
+
/* The chosen pill is a soft one in the ink with an edge of its own: filled in the accent, as the primary button
|
|
231
|
+
is, it read as a second primary over every list and on every record. */
|
|
232
|
+
html:root[data-theme-style][data-look-tabs='pill'] :is(.tab, :where(body.app-mode) .page-tab)[aria-selected='true'] { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
|
|
233
|
+
:root[data-theme-style] .tab .tab-count { font-size: var(--text-sm); line-height: 1; }
|
|
214
234
|
:root[data-theme-style] button.ghost:not(.fav-star, .dash-open, .account, .live-act, .pager *) { border-color: var(--line); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-control); }
|
|
215
235
|
:root[data-theme-style] button.ghost:not(.fav-star, .dash-open, .account, .live-act, .pager *):hover:not(:disabled) { background: var(--raised); }
|
|
216
236
|
/* A secondary Button that is a toggle says it is on: the ink's edge on the tinted ground, in every look. */
|
|
217
|
-
:root[data-theme-style] button
|
|
237
|
+
:root[data-theme-style] button[data-slot='button']:not([data-variant])[aria-pressed="true"] { border-color: var(--ink); background: var(--raised); color: var(--ink); }
|
|
218
238
|
/* A list's New is its one primary action, filled in the accent as a record's
|
|
219
239
|
first action is (in the look's primary-action color, `--primary`). Drawn as a quiet outline it weighed the same as Export
|
|
220
240
|
beside it, and a list offered no obvious first thing to do. */
|
|
@@ -222,7 +242,7 @@
|
|
|
222
242
|
:root[data-theme-style] .app-mode button.ghost.applist-new:hover:not(:disabled) { background: color-mix(in srgb, var(--primary, var(--accent)) 86%, var(--ink)); border-color: transparent; }
|
|
223
243
|
/* A field's edge is the look's control border (3:1, docs/design.md Access), not its hairline, which was 1.3:1. A
|
|
224
244
|
form's picker is the quiet form's well instead (formDress.css): the id in this list outranks any class there. */
|
|
225
|
-
:root[data-theme-style] :is(.applist-quick-text, .applist-field
|
|
245
|
+
:root[data-theme-style] :is(.applist-quick-text, .applist-field [data-slot='select-trigger'], .picker:not(:is(.form-page, .command-form, .insert-form-app) .picker:not(.form-lines .picker)), .page-field-edit .cell-edit, .root-current .cell-edit, .page-field-edit .record-picker-trigger, #table-filter) {
|
|
226
246
|
background: var(--surface); border-color: var(--line-control); border-radius: var(--field-radius); box-shadow: var(--shadow-control);
|
|
227
247
|
}
|
|
228
248
|
/* The search is a field on the page's surface whatever the bar's ground, so it reads in the page's ink: in the
|
|
@@ -260,6 +280,8 @@
|
|
|
260
280
|
/* The palette: a search field over grouped results, the current one tinted. */
|
|
261
281
|
:root[data-theme-style] .palette-input { padding: var(--space-4h) var(--space-5); font: calc(15px * var(--type-k)) var(--sans); }
|
|
262
282
|
:root[data-theme-style] .palette-input:focus { border-bottom-color: var(--line); }
|
|
283
|
+
/* Its magnifier's room, said after the padding above so the placeholder starts clear of the mark. */
|
|
284
|
+
:root[data-theme-style] .palette-glyph + .palette-input { padding-inline-start: calc(var(--space-5) + 16px + var(--space-3)); }
|
|
263
285
|
:root[data-theme-style] .palette-item.active { background: var(--raised); }
|
|
264
286
|
:root[data-theme-style] .palette-item.active .palette-label { color: var(--ink); }
|
|
265
287
|
:root[data-theme-style] :is(.palette-kind, .palette-detail) { font-family: var(--sans); }
|
|
@@ -440,6 +462,27 @@
|
|
|
440
462
|
box-shadow: none;
|
|
441
463
|
background: var(--surface);
|
|
442
464
|
}
|
|
465
|
+
/* A record's summary in an App wears the frame its dashboard's figures do, a figure to a box: loose on the page
|
|
466
|
+
under the workflow they were three small values, read as fields and not as what the record is worth. */
|
|
467
|
+
:root[data-look-stat='framed'] body.app-mode:not(.public-visitor) .page-field-grid.page-field-summary {
|
|
468
|
+
gap: var(--space-4);
|
|
469
|
+
padding-block: 0;
|
|
470
|
+
}
|
|
471
|
+
:root[data-look-stat='framed'] body.app-mode:not(.public-visitor) .page-field-summary > .page-field {
|
|
472
|
+
align-self: stretch;
|
|
473
|
+
padding: var(--space-4h) var(--space-5) var(--space-5);
|
|
474
|
+
border: 1px solid var(--ink);
|
|
475
|
+
border-radius: var(--radius-lg);
|
|
476
|
+
background: var(--surface);
|
|
477
|
+
}
|
|
478
|
+
:root[data-look-stat='framed'] body.app-mode:not(.public-visitor) .page-field-summary > .page-field:not(.page-field-prose) > dd {
|
|
479
|
+
font-size: var(--text-xl);
|
|
480
|
+
font-weight: 600;
|
|
481
|
+
letter-spacing: -0.012em;
|
|
482
|
+
}
|
|
483
|
+
:root[data-look-stat='framed'] body.app-mode:not(.public-visitor) .workflow-status + .page-field-grid.page-field-summary {
|
|
484
|
+
margin-top: var(--space-3);
|
|
485
|
+
}
|
|
443
486
|
/* type.roles.figure: a stat's figure. Its tabular figures stay (themeType.ts adds tnum to what a theme says). Over
|
|
444
487
|
the stat recipes' own figure (lumenLook.css's divided and icon, later in `look` and as specific): a role is said,
|
|
445
488
|
a recipe's figure is the look's default. */
|
|
@@ -461,6 +504,14 @@
|
|
|
461
504
|
html:root[data-type-figure~='features'] .home-card .home-card-value {
|
|
462
505
|
font-feature-settings: var(--type-figure-features);
|
|
463
506
|
}
|
|
507
|
+
/* A step's count is a figure too, at its own size: in the figure's face and weight, so a breakdown under a strip
|
|
508
|
+
of figures is set in one hand (a serif 46 over a bold sans 3 read as two pages). */
|
|
509
|
+
html:root[data-type-figure~='face'] .dash-step-figure {
|
|
510
|
+
font-family: var(--type-figure-font);
|
|
511
|
+
}
|
|
512
|
+
html:root[data-type-figure~='weight'] .dash-step-figure {
|
|
513
|
+
font-weight: var(--type-figure-weight);
|
|
514
|
+
}
|
|
464
515
|
/* By night the ink is white, and three white frames on black outweighed
|
|
465
516
|
everything under them: the frame is half the ink there. */
|
|
466
517
|
@media (prefers-color-scheme: dark) {
|
|
@@ -500,10 +551,14 @@
|
|
|
500
551
|
:root[data-look-links='underline']
|
|
501
552
|
:is(
|
|
502
553
|
td.reflink,
|
|
503
|
-
:is(:is(.page-field, .page-sheet-row, .page-properties) dd, .page-fact) button.ref-jump,
|
|
554
|
+
:is(:is(.page-field, .page-sheet-row, .page-properties, .page-card-fact) dd, .page-fact) button.ref-jump,
|
|
504
555
|
button.ref-jump:is(.page-card-name, .page-card-more),
|
|
505
556
|
.front-more a
|
|
506
|
-
)
|
|
557
|
+
),
|
|
558
|
+
/* `name`: a list's row is opened by its name, which is the one thing underlined in it; what the row and a record's
|
|
559
|
+
facts refer to read as text, and the line that goes on to another record ("View home") keeps its underline. */
|
|
560
|
+
:root[data-look-links='name'] .app-mode .applist-room td:is(:first-child:not(.row-host), .row-host + td),
|
|
561
|
+
:root[data-look-links='name'] :is(button.ref-jump.page-card-more, .front-more a) {
|
|
507
562
|
text-decoration: underline;
|
|
508
563
|
text-decoration-thickness: 1px;
|
|
509
564
|
text-underline-offset: 2px;
|
|
@@ -523,18 +578,56 @@
|
|
|
523
578
|
letter-spacing: var(--type-label-tracking, var(--track-caps));
|
|
524
579
|
font-size: var(--text-xs);
|
|
525
580
|
}
|
|
526
|
-
/*
|
|
527
|
-
|
|
581
|
+
/* Where the chosen tab is an inverted block the tabs are words to choose between, and the block already says which:
|
|
582
|
+
the text face in sentence case, not the label's capitals, which made a row of five read as a table's head. */
|
|
583
|
+
:root[data-look-tabs='inverted'][data-type-label~='upper'] :is(.tab, :where(body.app-mode) .page-tab) {
|
|
584
|
+
font-family: var(--sans);
|
|
585
|
+
font-size: var(--text-base);
|
|
586
|
+
text-transform: none;
|
|
587
|
+
letter-spacing: 0;
|
|
588
|
+
}
|
|
589
|
+
/* Heads in tracked capitals are wider than the same words in sentence case, and a list of ten columns lost a
|
|
590
|
+
name's last letters to them at a desk: where the heads are capitals a cell keeps a step less before its words.
|
|
591
|
+
Before only: a head's far side is where its sort ends and its resizer begins (e2e/apps.spec.ts holds the two
|
|
592
|
+
apart), and a value keeps the edge its head has. */
|
|
593
|
+
/* An open table (Atelier) sets its words a size up from the platform's, which costs a ten-column list the same few
|
|
594
|
+
pixels: it keeps the same step less. */
|
|
595
|
+
:root:is([data-type-label~='upper'], [data-look-table='open']) .app-mode .applist-room :is(td, th):where(:not([data-slot], :first-child, :last-child)) {
|
|
596
|
+
padding-inline-start: var(--space-3);
|
|
597
|
+
}
|
|
598
|
+
/* A look that is both (a ledger: capitals over cells in the figures' face) or sets its words a size up over an
|
|
599
|
+
open table keeps one step less again: its ten columns were still a few pixels short of a name. */
|
|
600
|
+
:root:is([data-look-table='open'], [data-look-rules='double'][data-type-label~='upper']) .app-mode .applist-room :is(td, th):where(:not([data-slot], :first-child, :last-child)) {
|
|
601
|
+
padding-inline-start: var(--space-2h);
|
|
602
|
+
}
|
|
603
|
+
/* A record's summary names its figures as a stat names its own, so the role reaches those names too: sentence
|
|
604
|
+
case over a framed figure, under a strip in capitals on the list before it, read as two kinds of box. */
|
|
605
|
+
:root[data-type-label~='face'] :where(body.app-mode) .page-field-summary .page-field > dt {
|
|
606
|
+
font-family: var(--type-label-font);
|
|
607
|
+
}
|
|
608
|
+
:root[data-type-label~='upper'] :where(body.app-mode) .page-field-summary .page-field > dt {
|
|
609
|
+
text-transform: uppercase;
|
|
610
|
+
letter-spacing: var(--type-label-tracking, var(--track-caps));
|
|
611
|
+
font-size: var(--text-xs);
|
|
612
|
+
}
|
|
613
|
+
/* Small capitals on a stat's label and a column's heads: tracked capitals at label size, which reads as small
|
|
614
|
+
capitals in any face, shipped or not. Asked of the face itself (`all-small-caps`), a face with none drew some
|
|
615
|
+
letters as shrunk capitals and left others as they were, a label at two heights. */
|
|
528
616
|
:root[data-type-label~='small-caps'] .home-card-label {
|
|
529
|
-
font-
|
|
617
|
+
font-size: var(--text-xs);
|
|
618
|
+
font-weight: 600;
|
|
619
|
+
text-transform: uppercase;
|
|
530
620
|
letter-spacing: var(--type-label-tracking, var(--track-caps));
|
|
531
621
|
}
|
|
532
|
-
:root[data-type-label~='small-caps'] thead th {
|
|
622
|
+
:root[data-type-label~='small-caps'] thead th:where(:not([data-slot])) {
|
|
533
623
|
font: 600 var(--text-xs) var(--type-label-font, var(--sans));
|
|
534
624
|
text-transform: uppercase;
|
|
535
625
|
letter-spacing: var(--type-label-tracking, var(--track-caps));
|
|
536
626
|
}
|
|
537
|
-
|
|
627
|
+
/* Small capitals reach a figure's label and a column's heads, never a tab, so their tracking stays with them: a
|
|
628
|
+
tab in sentence case set at a capital's spacing read as letters drifting apart. */
|
|
629
|
+
:root[data-type-label~='tracking'] :is(.home-card-label, .table-wrap thead th),
|
|
630
|
+
:root[data-type-label~='tracking']:not([data-type-label~='small-caps']) :is(.tab, :where(body.app-mode) .page-tab) {
|
|
538
631
|
letter-spacing: var(--type-label-tracking);
|
|
539
632
|
}
|
|
540
633
|
/* A label's own size, a step either side of the base: after the capitals' step, so a size said wins over it. */
|
|
@@ -551,8 +644,8 @@
|
|
|
551
644
|
font-feature-settings: var(--type-label-features);
|
|
552
645
|
}
|
|
553
646
|
/* nav: the menu's entries, in the bar and down the side, and the bar's groups. The side menu answers
|
|
554
|
-
data-type-nav-side, which
|
|
555
|
-
|
|
647
|
+
data-type-nav-side, which says the same role: a look's own (Mono's mono capitals) dresses its menu wherever
|
|
648
|
+
the menu stands. */
|
|
556
649
|
:root[data-type-nav~='face'] :is(.tn-group-button, .topbar .tn-item),
|
|
557
650
|
:root[data-type-nav-side~='face'] :where(body.app-mode) .sidebar li:not(.nav-group) > :is(a, button) {
|
|
558
651
|
font-family: var(--type-nav-font);
|
|
@@ -632,32 +725,32 @@
|
|
|
632
725
|
}
|
|
633
726
|
/* section: a section's title on a record and a dashboard. Its face, case and features reach every section's
|
|
634
727
|
head, as the headings recipe they replace did; its size, weight and tracking reach a dashboard's section title,
|
|
635
|
-
as the scale they replace did, so every section head
|
|
728
|
+
as the scale they replace did, so every section head is one role at one size (a card's caption is a label over its name, not a head: page.css). Over the sheets'
|
|
636
729
|
sentence case by one more element in the selector, as both stand in `look`. */
|
|
637
|
-
html:root[data-type-section~='face'] :is(.page-section-head, .page-section-title
|
|
730
|
+
html:root[data-type-section~='face'] :is(.page-section-head, .page-section-title) {
|
|
638
731
|
font-family: var(--type-section-font);
|
|
639
732
|
}
|
|
640
|
-
:root[data-type-section~='size'] :is(.page-section-title, .page-section-head
|
|
733
|
+
:root[data-type-section~='size'] :is(.page-section-title, .page-section-head) {
|
|
641
734
|
font-size: var(--type-section-size);
|
|
642
735
|
}
|
|
643
|
-
:root[data-type-section~='weight'] :is(.page-section-title, .page-section-head
|
|
736
|
+
:root[data-type-section~='weight'] :is(.page-section-title, .page-section-head) {
|
|
644
737
|
font-weight: var(--type-section-weight);
|
|
645
738
|
}
|
|
646
|
-
:root[data-type-section~='tracking'] :is(.page-section-title, .page-section-head
|
|
739
|
+
:root[data-type-section~='tracking'] :is(.page-section-title, .page-section-head) {
|
|
647
740
|
letter-spacing: var(--type-section-tracking);
|
|
648
741
|
}
|
|
649
|
-
html:root[data-type-section~='upper'] :is(.page-section-head, .page-section-title
|
|
742
|
+
html:root[data-type-section~='upper'] :is(.page-section-head, .page-section-title) {
|
|
650
743
|
text-transform: uppercase;
|
|
651
744
|
letter-spacing: var(--type-section-tracking, var(--track-caps));
|
|
652
745
|
}
|
|
653
|
-
html:root[data-type-section~='small-caps'] :is(.page-section-head, .page-section-title
|
|
746
|
+
html:root[data-type-section~='small-caps'] :is(.page-section-head, .page-section-title) {
|
|
654
747
|
font-variant-caps: all-small-caps;
|
|
655
748
|
letter-spacing: var(--type-section-tracking, var(--track-caps));
|
|
656
749
|
}
|
|
657
|
-
html:root[data-type-section~='numeric'] :is(.page-section-head, .page-section-title
|
|
750
|
+
html:root[data-type-section~='numeric'] :is(.page-section-head, .page-section-title) {
|
|
658
751
|
font-variant-numeric: var(--type-section-numeric);
|
|
659
752
|
}
|
|
660
|
-
html:root[data-type-section~='features'] :is(.page-section-head, .page-section-title
|
|
753
|
+
html:root[data-type-section~='features'] :is(.page-section-head, .page-section-title) {
|
|
661
754
|
font-feature-settings: var(--type-section-features);
|
|
662
755
|
}
|
|
663
756
|
/* display: a landing's headline; its size is --type-display. */
|
|
@@ -696,31 +789,51 @@
|
|
|
696
789
|
:root[data-type-data~='features'] .table-wrap td {
|
|
697
790
|
font-feature-settings: var(--type-data-features);
|
|
698
791
|
}
|
|
699
|
-
/* data's reach.
|
|
700
|
-
|
|
701
|
-
`reach: 'figures'` keeps the face to figures, keys and dates everywhere — a table's, a field's, a header's — and
|
|
702
|
-
a name, a status or a sentence is read in the interface face (columns.js identifierLike says which text is a
|
|
792
|
+
/* data's reach. `reach: 'figures'` keeps the face to figures, keys and dates — a table's and a field's — and a
|
|
793
|
+
name, a status or a sentence is read in the interface face (columns.js identifierLike says which text is a
|
|
703
794
|
key). One element more than the looks' own table and field rules, as both stand in `look`. */
|
|
704
|
-
.app-mode .page-head-facts :is(.num-value, .date-value, .id-value) {
|
|
705
|
-
font-family: var(--mono);
|
|
706
|
-
font-variant-numeric: tabular-nums;
|
|
707
|
-
}
|
|
708
795
|
html:root[data-type-data~='figures'] .app-mode :is(table, .page-field > dd, .ref-jump) {
|
|
709
796
|
font-family: var(--sans);
|
|
710
797
|
}
|
|
711
|
-
|
|
798
|
+
|
|
799
|
+
/* The figures face stands where values are compared down a column, and nowhere else: a table's cells. A single
|
|
800
|
+
value beside words (a record's field, a side card's fact, a phone row, a worklist's amount) is read as part of
|
|
801
|
+
its sentence, in the text face with tabular digits; three reports of "two fonts" were each a lone figure here. */
|
|
802
|
+
html:root[data-type-data~='figures'] .app-mode td:is(.mono, :has(> .num-value, > .date-value, > .id-value)),
|
|
803
|
+
html:root[data-type-data~='figures'] .app-mode td :is(.num-value, .date-value, .id-value) {
|
|
712
804
|
font-family: var(--mono);
|
|
713
805
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
806
|
+
html:root[data-type-data~='figures'] .app-mode :is(.num-value, .date-value, .id-value) {
|
|
807
|
+
font-variant-numeric: tabular-nums;
|
|
808
|
+
}
|
|
809
|
+
/* A record's summary figures are the strip's figures a size down: in the stat's hand (`type.roles.figure`, else the
|
|
810
|
+
interface face a stat is set in), not the column's data face, and a toned one in the same hand as its neighbours:
|
|
811
|
+
"$1,502.50" owed in one face beside "$8,477.50" charged in another read as two kinds of value. */
|
|
812
|
+
html:root:root[data-theme-style] .app-mode .page-field-summary .page-field > dd:has(> .num-value, > .tone-figure),
|
|
813
|
+
html:root:root[data-theme-style] .app-mode .page-field-summary .page-field > dd > :is(.num-value, .tone-figure) {
|
|
814
|
+
font-family: var(--type-figure-font, var(--sans));
|
|
815
|
+
font-weight: var(--type-figure-weight, 600);
|
|
816
|
+
}
|
|
817
|
+
/* A record header's facts are read, not compared: a start date and a rent beside the name are a sentence about the
|
|
818
|
+
record, so they stay in the head's own face under either reach, their digits tabular so a date keeps its width
|
|
819
|
+
as the record changes. The data face is for where values stand in a column: a table, a field, the summary. */
|
|
820
|
+
html:root .app-mode .page-head-facts :is(.num-value, .date-value, .id-value) {
|
|
821
|
+
font-family: inherit;
|
|
822
|
+
font-variant-numeric: tabular-nums;
|
|
823
|
+
}
|
|
824
|
+
/* A figures face, where a look names one (Plex Mono in five of the built-in looks): the figures, dates and keys of a
|
|
825
|
+
record's fields. A table's cells are set in the data face with the rest of the row, their digits
|
|
826
|
+
tabular (`td.mono`, Grid.tsx): a column of codes and dates in a second face read as a second table inside the
|
|
827
|
+
first. Words, headings and a stat's hero figure keep their theme's faces. A theme whose data face reaches figures says its own, above; one that names a figures face (`fonts.figures`, which follows its data face when it names none) wears it as `--figures-face`. */
|
|
717
828
|
.app-mode {
|
|
718
829
|
--figures: var(--figures-face, 'IBM Plex Mono', 'IBM Plex Mono Fallback', var(--code));
|
|
719
830
|
}
|
|
720
|
-
.app-mode
|
|
721
|
-
.app-mode :is(.page-field > dd, .page-head-facts) :is(.num-value, .date-value, .id-value) {
|
|
831
|
+
.app-mode .page-field > dd :is(.num-value, .date-value, .id-value) {
|
|
722
832
|
font-family: var(--figures);
|
|
723
833
|
}
|
|
834
|
+
.app-mode td.mono {
|
|
835
|
+
font-variant-numeric: tabular-nums;
|
|
836
|
+
}
|
|
724
837
|
|
|
725
838
|
/* ---------- Meaning (recipes.status = dot) ---------- */
|
|
726
839
|
/* 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
|
|
@@ -732,6 +845,10 @@
|
|
|
732
845
|
:root[data-look-status='dot'] :is(td, dd) .tone:not(.record-tag, .tone-neutral) {
|
|
733
846
|
color: var(--ink);
|
|
734
847
|
font-weight: 400;
|
|
848
|
+
/* A word with no pill round it has nothing to be clipped to: the pill's box cut the last letter's edge
|
|
849
|
+
(lumenLook.css). */
|
|
850
|
+
overflow: visible;
|
|
851
|
+
border-radius: 0;
|
|
735
852
|
}
|
|
736
853
|
:root[data-look-status='dot'] :is(td, dd) .tone:not(.record-tag, .tone-neutral)::before {
|
|
737
854
|
background: var(--tone-dot, currentColor);
|
|
@@ -755,6 +872,124 @@
|
|
|
755
872
|
color: var(--tone-dot);
|
|
756
873
|
}
|
|
757
874
|
|
|
875
|
+
/* ---------- A workflow in order (recipes.workflow = markers) ---------- */
|
|
876
|
+
/* Where the steps are an order (`ordered`), the strip is a way travelled: a numbered mark for each step and a rule
|
|
877
|
+
to the next, the label under its mark. A step walked is the ink, its number a check and its rule the ink; the
|
|
878
|
+
current one is the accent on its soft ground; one the record's actions can reach now is ringed in the accent;
|
|
879
|
+
a step ahead is hollow. The number is the order written down, so a set of states with no order keeps the plain
|
|
880
|
+
track (page.css), where a 1, 2, 3 would claim one. The marks are drawn by the marker's own box, so a step's words
|
|
881
|
+
stay the item's text and nothing a reader hears changes. This is the `markers` recipe, every look's but the
|
|
882
|
+
two that say `pills` (lumenLook.css); with no look at all the strip is the plain track (page.css). */
|
|
883
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] {
|
|
884
|
+
gap: var(--space-3h) 0;
|
|
885
|
+
counter-reset: workflow-step;
|
|
886
|
+
}
|
|
887
|
+
/* Each step but the last keeps room after it: the rule stops short of the next mark, and a label never runs
|
|
888
|
+
into the next one where the strip is narrow. */
|
|
889
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li {
|
|
890
|
+
counter-increment: workflow-step;
|
|
891
|
+
padding-inline-end: var(--space-4h);
|
|
892
|
+
font-weight: 500;
|
|
893
|
+
}
|
|
894
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li:last-child {
|
|
895
|
+
flex: 0 0 auto;
|
|
896
|
+
padding-inline-end: 0;
|
|
897
|
+
}
|
|
898
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] .workflow-marker,
|
|
899
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li:is([data-passed], [aria-current='step'], [data-reachable]) .workflow-marker {
|
|
900
|
+
display: flex;
|
|
901
|
+
align-items: center;
|
|
902
|
+
gap: var(--space-4h);
|
|
903
|
+
height: auto;
|
|
904
|
+
border-radius: 0;
|
|
905
|
+
background: none;
|
|
906
|
+
outline: 0;
|
|
907
|
+
}
|
|
908
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] .workflow-marker::before {
|
|
909
|
+
content: counter(workflow-step);
|
|
910
|
+
flex: none;
|
|
911
|
+
box-sizing: border-box;
|
|
912
|
+
display: grid;
|
|
913
|
+
place-items: center;
|
|
914
|
+
width: 22px;
|
|
915
|
+
height: 22px;
|
|
916
|
+
border: 1.5px solid var(--line-control);
|
|
917
|
+
border-radius: 999px;
|
|
918
|
+
color: var(--ink-muted);
|
|
919
|
+
font: 700 var(--text-xs)/1 var(--sans);
|
|
920
|
+
font-variant-numeric: tabular-nums;
|
|
921
|
+
}
|
|
922
|
+
/* Two pixels: a rule of one and a half is drawn as one sharp row and one grey one. */
|
|
923
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] .workflow-marker::after {
|
|
924
|
+
content: '';
|
|
925
|
+
flex: 1 1 auto;
|
|
926
|
+
height: 2px;
|
|
927
|
+
background: var(--line-strong);
|
|
928
|
+
}
|
|
929
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li:last-child .workflow-marker::after {
|
|
930
|
+
content: none;
|
|
931
|
+
}
|
|
932
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li[data-passed] {
|
|
933
|
+
color: var(--ink);
|
|
934
|
+
}
|
|
935
|
+
/* The check is cut out of the filled mark, so it is the ground behind the strip in every theme and mode. */
|
|
936
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li[data-passed] .workflow-marker::before {
|
|
937
|
+
content: '';
|
|
938
|
+
border-color: var(--ink);
|
|
939
|
+
background: var(--ink);
|
|
940
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath fill-rule='evenodd' d='M0 0h22v22H0z M5.6 11.3l1.3-1.3 2.7 2.7 5.5-6.2 1.4 1.2-6.8 7.7z'/%3E%3C/svg%3E")
|
|
941
|
+
center / 100% 100% no-repeat;
|
|
942
|
+
}
|
|
943
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li[data-passed] .workflow-marker::after {
|
|
944
|
+
background: var(--ink);
|
|
945
|
+
}
|
|
946
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li[aria-current='step'] {
|
|
947
|
+
font-weight: 600;
|
|
948
|
+
}
|
|
949
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li[aria-current='step'] .workflow-marker::before {
|
|
950
|
+
border-color: var(--accent);
|
|
951
|
+
background: var(--accent-soft);
|
|
952
|
+
color: var(--accent-ink);
|
|
953
|
+
}
|
|
954
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li[data-reachable] .workflow-marker::before {
|
|
955
|
+
border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
|
|
956
|
+
color: var(--ink);
|
|
957
|
+
}
|
|
958
|
+
@media (forced-colors: active) {
|
|
959
|
+
:root[data-look-workflow='markers'] .workflow-steps[data-ordered] li[data-passed] .workflow-marker::before {
|
|
960
|
+
mask: none;
|
|
961
|
+
background: CanvasText;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/* ---------- The record head's status ---------- */
|
|
966
|
+
/* Beside a record's name the status is a small ruled pill: a label on the name, at a label's size, and not a
|
|
967
|
+
second word in the title's line. The dot keeps the tone and the word the ink it has. A look that says status
|
|
968
|
+
with a pill draws its own there; a theme's pill corner is put on it as on every pill (structure.css). */
|
|
969
|
+
html:root[data-visual-theme]:not([data-look-status^='pill']) .page-head-status > .tone:not(.record-tag) {
|
|
970
|
+
padding: var(--space-1) var(--space-3h) var(--space-1) var(--space-3);
|
|
971
|
+
border: 1px solid var(--line-strong);
|
|
972
|
+
border-radius: 999px;
|
|
973
|
+
font-size: var(--text-sm);
|
|
974
|
+
font-weight: 600;
|
|
975
|
+
line-height: 1.5;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/* ---------- The aside's heads ---------- */
|
|
979
|
+
/* Beside a record the aside is a rail of what belongs to it, and a section's head there is a label on the rail,
|
|
980
|
+
set as a card's caption is (page.css): the text face, sentence case, whatever the look's section role says,
|
|
981
|
+
so "Home", "Resident" and "History" are one kind of label down the rail. At the section role's size they
|
|
982
|
+
outweighed the sections of the page they stand beside. A public page's aside is the offer, and keeps its
|
|
983
|
+
heads. */
|
|
984
|
+
html:root[data-visual-theme] body.app-mode:not(.public-visitor) .page-aside .page-section-head:not(.page-fold-head) {
|
|
985
|
+
margin-bottom: var(--space-4);
|
|
986
|
+
font: 600 var(--text-sm)/1.4 var(--sans);
|
|
987
|
+
font-variant-caps: normal;
|
|
988
|
+
letter-spacing: 0;
|
|
989
|
+
text-transform: none;
|
|
990
|
+
color: var(--ink-muted);
|
|
991
|
+
}
|
|
992
|
+
|
|
758
993
|
/* ---------- The header (recipes.header) ---------- */
|
|
759
994
|
/* `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
|
|
760
995
|
the record's verbs, the eyebrow, the name, its status and facts, or a list's title, tabs and filters, as an object
|
|
@@ -773,9 +1008,8 @@
|
|
|
773
1008
|
.content:has(.page-head.has-record.is-room, > .applist-host > .applist-controls)
|
|
774
1009
|
> .crumbs-host
|
|
775
1010
|
> .crumbs,
|
|
776
|
-
:root:is([data-look-header='band'], [data-look-header='hero']) .app-mode .content > .applist-host > .applist-head,
|
|
777
|
-
:root:is([data-look-header='band'], [data-look-header='hero']) .app-mode .page-head.has-record.is-room
|
|
778
|
-
:root:is([data-look-header='band'], [data-look-header='hero']) .app-mode .content > .applist-host > .applist-controls {
|
|
1011
|
+
:root:is([data-look-header='band'], [data-look-header='hero']) .app-mode .content > :is(.applist-host, .landing-host) > .applist-head,
|
|
1012
|
+
:root:is([data-look-header='band'], [data-look-header='hero']) .app-mode .page-head.has-record.is-room {
|
|
779
1013
|
--raised: color-mix(in oklab, var(--head-band), var(--ink) 7%);
|
|
780
1014
|
/* What a fade at a strip's edge fades into (structure.css, a phone's tabs). */
|
|
781
1015
|
--strip-ground: var(--head-band);
|
|
@@ -784,7 +1018,7 @@
|
|
|
784
1018
|
}
|
|
785
1019
|
:root:is([data-look-header='band'], [data-look-header='hero'])
|
|
786
1020
|
.app-mode
|
|
787
|
-
.content:has(.page-head.has-record.is-room
|
|
1021
|
+
.content:has(.page-head.has-record.is-room)
|
|
788
1022
|
> .crumbs-host
|
|
789
1023
|
> .crumbs {
|
|
790
1024
|
border-bottom-color: transparent;
|
|
@@ -795,25 +1029,13 @@
|
|
|
795
1029
|
border-image: linear-gradient(to top, var(--head-band-edge) 1px, var(--head-band) 1px) fill 0 / 0 / 48px 100vmax 0;
|
|
796
1030
|
padding-bottom: 20px;
|
|
797
1031
|
}
|
|
798
|
-
/* A list's
|
|
799
|
-
|
|
1032
|
+
/* A list's is its heading row: its name and its verbs on the band, its tabs and filters under it on the page's
|
|
1033
|
+
ground, where they are read with the rows they refine; a dashboard's head is the same row (it stood bare on
|
|
1034
|
+
the white, the one room of a banded look that began without its band). Under a trail the bar is the band, and its own rule
|
|
1035
|
+
closes it. */
|
|
1036
|
+
:root:is([data-look-header='band'], [data-look-header='hero']) .app-mode .content > :is(.applist-host, .landing-host) > .applist-head:not(.in-crumbs) {
|
|
800
1037
|
border-image: linear-gradient(to top, var(--head-band-edge) 1px, var(--head-band) 1px) fill 0 / 0 / 0 100vmax;
|
|
801
1038
|
}
|
|
802
|
-
:root:is([data-look-header='band'], [data-look-header='hero']) .app-mode .content > .applist-host > .applist-controls::after {
|
|
803
|
-
background: linear-gradient(to right, transparent, var(--head-band));
|
|
804
|
-
}
|
|
805
|
-
/* Raised buttons draw a list's search on the raised ground (lumenLook.css), which on the band is the step above: a
|
|
806
|
-
ground no palette colour is, so `check` passed what grade then read there, Lumen's own placeholder at 4.05:1 and
|
|
807
|
-
its edge at 2.67:1 (a field report's theme the same). On the band the search is a field on the surface, as it
|
|
808
|
-
is in focus, and its words, mark and edge are the pairs check measures. */
|
|
809
|
-
:root:is([data-look-header='band'], [data-look-header='hero'])[data-look-buttons='raised']
|
|
810
|
-
.app-mode
|
|
811
|
-
.content
|
|
812
|
-
> .applist-host
|
|
813
|
-
> .applist-controls
|
|
814
|
-
.applist-search-input {
|
|
815
|
-
background: var(--surface);
|
|
816
|
-
}
|
|
817
1039
|
/* `hero` is the band with the record's avatar large beside its name, the head's words a column to its right; on a
|
|
818
1040
|
phone it stands over the eyebrow. The room is kept from the first paint wherever the resource says its records
|
|
819
1041
|
have an avatar (`has-avatar`, PageHead.tsx), before the name it is drawn from has arrived. A record without one
|
|
@@ -849,4 +1071,187 @@
|
|
|
849
1071
|
(components/CalendarList.css draws the rest of it). Read off the section recipe, so it is here with the recipes,
|
|
850
1072
|
and it answers every look and none, as the open section does. */
|
|
851
1073
|
:root:not([data-look-section='card'], [data-look-section='panel']) .page-section .calendar-grid { border: 0; border-radius: 0; background: none; }
|
|
1074
|
+
|
|
1075
|
+
/* ---------- Parts that meet ----------
|
|
1076
|
+
A pairing of two parts' values that are two look sheets' is said here, in the first sheet: neither sheet may
|
|
1077
|
+
name the other's value (test/theme-recipes.test.ts), and each is fetched only where its own is worn. */
|
|
1078
|
+
/* A record's blocks agree with each other and with a dashboard's. Where a look holds a dashboard's sections in panels
|
|
1079
|
+
or cards (`blocks: panel`, `tile`, `card`), the lists a record relates and its history are held the same way: they
|
|
1080
|
+
stood open on the ground beside the reference cards of the side column, one page in two languages. A summary's
|
|
1081
|
+
few facts still read on the page (sageLook.css says why). The side column's cards take the panel's corner and
|
|
1082
|
+
lift, which the dashboard's panels have. */
|
|
1083
|
+
:root:is([data-look-section='panel'], [data-look-section='card'])
|
|
1084
|
+
:is(.page-body:not(.dash-body) > .page-section, .page-tabpanel > .page-tab-sections > .page-section):is(.page-list, .page-history) {
|
|
1085
|
+
background: var(--surface);
|
|
1086
|
+
border: var(--panel-border-width, 1px) solid var(--line);
|
|
1087
|
+
border-radius: var(--radius-lg);
|
|
1088
|
+
/* The inset a dashboard's panel has (sageLook.css), said once: the table in the panel reaches out by it (below). */
|
|
1089
|
+
--panel-pad-inline: 18px;
|
|
1090
|
+
padding: var(--space-5) var(--panel-pad-inline);
|
|
1091
|
+
box-shadow: var(--shadow-card);
|
|
1092
|
+
}
|
|
1093
|
+
/* The head covers the rows that scroll under it, in the panel's ground or in the band a look draws its heads on. */
|
|
1094
|
+
:root:is([data-look-section='panel'], [data-look-section='card'])
|
|
1095
|
+
:is(.page-body:not(.dash-body) > .page-section, .page-tabpanel > .page-tab-sections > .page-section):is(.page-list, .page-history)
|
|
1096
|
+
th {
|
|
1097
|
+
background: var(--table-head-ground, var(--surface));
|
|
1098
|
+
}
|
|
1099
|
+
/* The table in such a panel reaches both of the panel's edges, as a dashboard's does in its panel (sageLook.css): a
|
|
1100
|
+
section's table reaches out on its start side alone (page.css), which in a box left its rules a hair from one edge
|
|
1101
|
+
and a field's width from the other. The edge cells take the panel's inset, so the first column still starts on
|
|
1102
|
+
the heading's line. */
|
|
1103
|
+
:root:is([data-look-section='panel'], [data-look-section='card'])
|
|
1104
|
+
:is(.page-body:not(.dash-body) > .page-section, .page-tabpanel > .page-tab-sections > .page-section).page-list
|
|
1105
|
+
.table-wrap {
|
|
1106
|
+
margin-inline: calc(-1 * var(--panel-pad-inline));
|
|
1107
|
+
max-width: none;
|
|
1108
|
+
}
|
|
1109
|
+
:root:is([data-look-section='panel'], [data-look-section='card'])
|
|
1110
|
+
:is(.page-body:not(.dash-body) > .page-section, .page-tabpanel > .page-tab-sections > .page-section).page-list
|
|
1111
|
+
.table-wrap
|
|
1112
|
+
:is(th, td):first-child {
|
|
1113
|
+
padding-inline-start: var(--panel-pad-inline);
|
|
1114
|
+
}
|
|
1115
|
+
:root:is([data-look-section='panel'], [data-look-section='card'])
|
|
1116
|
+
:is(.page-body:not(.dash-body) > .page-section, .page-tabpanel > .page-tab-sections > .page-section).page-list
|
|
1117
|
+
.table-wrap
|
|
1118
|
+
:is(th, td):last-child {
|
|
1119
|
+
padding-inline-end: var(--panel-pad-inline);
|
|
1120
|
+
}
|
|
1121
|
+
:root:is([data-look-section='panel'], [data-look-section='card']) .page-card {
|
|
1122
|
+
border-radius: var(--radius-lg);
|
|
1123
|
+
box-shadow: var(--shadow-card);
|
|
1124
|
+
}
|
|
1125
|
+
/* Cards beside panels need no rule between them: the ground is the gap. */
|
|
1126
|
+
:root:is([data-look-section='panel'], [data-look-section='card']) .page-layout > .page-aside {
|
|
1127
|
+
border-inline-start-color: transparent;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/* A strip of figures where sections are cards and a figure is a panel (`blocks: 'card'`, Graphite's pairing): one
|
|
1131
|
+
card ruled into cells, the readings of one instrument, where a card each read as four things. A cell's rule is
|
|
1132
|
+
drawn at its left and its top and cut off at the card's edge, so it holds however the cells wrap (two to a row on
|
|
1133
|
+
a phone, a lone first one a row of its own), and the focus ring stands inside the cell for the same edge. A cell
|
|
1134
|
+
has no mark and its label the whole width: beside a mark, a label in tracked capitals ("Vacant or turning over")
|
|
1135
|
+
wrapped where its neighbours' did not and set its figure a line under theirs. A figure is never broken
|
|
1136
|
+
(docs/design.md, Truncation), a monospace one is a step smaller on a phone (structure.css), and a note stands at
|
|
1137
|
+
the cell's foot, where its neighbour's trend is. */
|
|
1138
|
+
:root[data-look-section='card'][data-look-stat='panel'] .dash-strip {
|
|
1139
|
+
--stat-mark-room: 0px;
|
|
1140
|
+
--stat-figure-phone: var(--text-xl);
|
|
1141
|
+
}
|
|
1142
|
+
:root[data-look-section='card'][data-look-stat='panel'] .dash-strip .home-cards {
|
|
1143
|
+
gap: 0;
|
|
1144
|
+
overflow: hidden;
|
|
1145
|
+
background: var(--surface);
|
|
1146
|
+
border: var(--panel-border-width, 1px) solid var(--line);
|
|
1147
|
+
border-radius: var(--radius-lg);
|
|
1148
|
+
box-shadow: var(--shadow-card);
|
|
1149
|
+
}
|
|
1150
|
+
:root[data-look-section='card'][data-look-stat='panel'] .dash-strip .home-card:nth-child(n) {
|
|
1151
|
+
background: none;
|
|
1152
|
+
border: 0;
|
|
1153
|
+
border-radius: 0;
|
|
1154
|
+
box-shadow:
|
|
1155
|
+
-1px 0 0 var(--line),
|
|
1156
|
+
0 -1px 0 var(--line);
|
|
1157
|
+
outline-offset: -2px;
|
|
1158
|
+
}
|
|
1159
|
+
:root[data-look-section='card'][data-look-stat='panel'] .dash-strip .home-card-label .dash-section-icon {
|
|
1160
|
+
display: none;
|
|
1161
|
+
}
|
|
1162
|
+
:root[data-look-section='card'][data-look-stat='panel'] .dash-strip .home-card-value {
|
|
1163
|
+
white-space: nowrap;
|
|
1164
|
+
}
|
|
1165
|
+
:root[data-look-section='card'][data-look-stat='panel'] .dash-strip .home-card > .dash-fixed {
|
|
1166
|
+
margin-top: auto;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
/* Tinted steps in a section panel (Bloom's): the panel's sheet draws steps as cells parted by hairlines, which is
|
|
1170
|
+
right for plain steps and was a rule between cards for tiles. A tile keeps its ground, edge and corner and
|
|
1171
|
+
stands a little apart. The room is each step's padding, not the grid's gap: the columns are counted from the
|
|
1172
|
+
row's width, and a gap took one away. */
|
|
1173
|
+
:root[data-look-section='panel'][data-look-steps='tinted'] .dash-steps {
|
|
1174
|
+
clip-path: none;
|
|
1175
|
+
margin: calc(-1 * var(--space-2));
|
|
1176
|
+
}
|
|
1177
|
+
:root[data-look-section='panel'][data-look-steps='tinted'] .dash-steps > .dash-step {
|
|
1178
|
+
box-shadow: none;
|
|
1179
|
+
padding: var(--space-2);
|
|
1180
|
+
}
|
|
1181
|
+
:root[data-look-section='panel'][data-look-steps='tinted'] .dash-steps > .dash-step > .dash-step-card {
|
|
1182
|
+
border: var(--panel-border-width, 1px) solid color-mix(in srgb, var(--step-ink, var(--accent)) 16%, var(--line));
|
|
1183
|
+
border-radius: var(--radius-panel);
|
|
1184
|
+
background: color-mix(in srgb, var(--step-ink, var(--accent)) 5%, var(--surface));
|
|
1185
|
+
padding: var(--space-5);
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
@layer structure {
|
|
1189
|
+
/* The figures of a row stand on one line and a trend stands beside its figure, in every look that sets the label
|
|
1190
|
+
over the figure (said here and not in structure.css: a rule that names a treatment lives where the menu's test
|
|
1191
|
+
looks for it). Under the figure, the trend made its tile a line taller than the rest and the row as tall as
|
|
1192
|
+
that tile: a well of white under every figure that had no trend. The figure takes the width it needs and the
|
|
1193
|
+
trend what is left, at most 112px. One treatment places a tile's parts itself: `icon`, whose mark is a circle
|
|
1194
|
+
beside the label. */
|
|
1195
|
+
:root[data-theme-style]:not([data-look-stat='icon']) .dash-strip .home-card {
|
|
1196
|
+
display: grid;
|
|
1197
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
1198
|
+
align-content: start;
|
|
1199
|
+
column-gap: var(--space-5);
|
|
1200
|
+
}
|
|
1201
|
+
:root[data-theme-style]:not([data-look-stat='icon']) .dash-strip .home-card > * {
|
|
1202
|
+
grid-column: 1 / -1;
|
|
1203
|
+
}
|
|
1204
|
+
:root[data-theme-style]:not([data-look-stat='icon']) .dash-strip .home-card > .home-card-label {
|
|
1205
|
+
grid-row: 1;
|
|
1206
|
+
}
|
|
1207
|
+
:root[data-theme-style]:not([data-look-stat='icon']) .dash-strip .home-card > .home-card-value {
|
|
1208
|
+
grid-row: 2;
|
|
1209
|
+
grid-column: 1;
|
|
1210
|
+
white-space: nowrap;
|
|
1211
|
+
}
|
|
1212
|
+
:root[data-theme-style]:not([data-look-stat='icon']) .dash-strip .home-card > .spark-host {
|
|
1213
|
+
grid-row: 2;
|
|
1214
|
+
grid-column: 2;
|
|
1215
|
+
align-self: center;
|
|
1216
|
+
justify-self: end;
|
|
1217
|
+
width: 100%;
|
|
1218
|
+
max-width: 112px;
|
|
1219
|
+
height: 28px;
|
|
1220
|
+
margin: 0;
|
|
1221
|
+
padding: 0;
|
|
1222
|
+
}
|
|
1223
|
+
:root[data-theme-style]:not([data-look-stat='icon']) .dash-strip .home-card > .spark-host .spark {
|
|
1224
|
+
display: block;
|
|
1225
|
+
height: 28px;
|
|
1226
|
+
}
|
|
1227
|
+
/* Half a phone's row is too narrow for a figure and a trend side by side: there the trend is under the figure, at
|
|
1228
|
+
the tile's width, and the pair of a row stand as tall as each other. */
|
|
1229
|
+
@media (max-width: 700px) {
|
|
1230
|
+
:root[data-theme-style]:not([data-look-stat='icon']) .dash-strip .home-card > .spark-host {
|
|
1231
|
+
grid-row: 3;
|
|
1232
|
+
grid-column: 1 / -1;
|
|
1233
|
+
max-width: none;
|
|
1234
|
+
justify-self: stretch;
|
|
1235
|
+
height: 20px;
|
|
1236
|
+
}
|
|
1237
|
+
:root[data-theme-style]:not([data-look-stat='icon']) .dash-strip .home-card > .spark-host .spark {
|
|
1238
|
+
height: 20px;
|
|
1239
|
+
}
|
|
1240
|
+
/* A figure too long for half a phone breaks where it must, as it did: held to one line it left its tile. */
|
|
1241
|
+
:root[data-theme-style]:not([data-look-stat='icon']) .dash-strip .home-card > .home-card-value {
|
|
1242
|
+
grid-column: 1 / -1;
|
|
1243
|
+
white-space: normal;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
@layer look {
|
|
1248
|
+
/* Figures with no box round them (plain, ruled, topline) have only the gap to part them: at a box's gap one tile's
|
|
1249
|
+
mark stood against the next tile's label. */
|
|
1250
|
+
:root[data-visual-theme]:is([data-look-stat='plain'], [data-look-stat='ruled'], [data-look-stat='topline']) .dash-strip .home-cards {
|
|
1251
|
+
gap: var(--space-4) var(--space-6);
|
|
1252
|
+
}
|
|
1253
|
+
/* `filters: 'dashed'`, where a theme asks for it by name: the edge alone (the rest is ListFilterBar.css). */
|
|
1254
|
+
:root[data-look-filters='dashed'] .applist-add {
|
|
1255
|
+
border-style: dashed;
|
|
1256
|
+
}
|
|
852
1257
|
}
|