@coolms/ui-react 0.1.0-alpha.3 → 0.1.0-alpha.30
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/CHANGELOG.md +265 -4
- package/design-tokens.lock.json +10 -6
- package/dist/components/Call.d.ts +33 -3
- package/dist/components/Collections.d.ts +15 -6
- package/dist/components/Dialogs.d.ts +11 -3
- package/dist/components/Fields.d.ts +48 -4
- package/dist/components/FilePicker.d.ts +91 -0
- package/dist/components/FileViewer.d.ts +106 -0
- package/dist/components/Icon.d.ts +18 -1
- package/dist/components/Notification.d.ts +38 -0
- package/dist/components/PaneToolbar.d.ts +57 -0
- package/dist/components/ScreenShell.d.ts +71 -0
- package/dist/components/SectionHeader.d.ts +42 -0
- package/dist/components/SignIn.d.ts +18 -2
- package/dist/components/State.d.ts +33 -0
- package/dist/components/Status.d.ts +6 -2
- package/dist/components/Structure.d.ts +22 -4
- package/dist/components/Workspace.d.ts +96 -11
- package/dist/components/internal.d.ts +2 -0
- package/dist/components/pull.d.ts +21 -0
- package/dist/index.d.ts +23 -15
- package/dist/index.js +1924 -675
- package/kit.contract.json +13 -4
- package/package.json +9 -5
- package/src/kit.css +290 -22
- package/src/tokens/coolms-tokens.css +24 -0
package/kit.contract.json
CHANGED
|
@@ -10,12 +10,20 @@
|
|
|
10
10
|
"toast": { "implementedBy": "Toast", "states": ["success", "error", "info", "with-action"] },
|
|
11
11
|
"loading": { "implementedBy": "Loading", "states": ["inline", "block"] },
|
|
12
12
|
"empty-state": { "implementedBy": "EmptyState", "states": ["default", "with-action"] },
|
|
13
|
+
"state": { "implementedBy": "State", "states": ["loading", "empty", "error", "denied", "page", "block", "inline", "with-action", "delayed"] },
|
|
13
14
|
"error-banner": { "implementedBy": "ErrorBanner", "states": ["default", "with-retry"] },
|
|
14
15
|
"page-header": { "implementedBy": "PageHeader", "states": ["default", "with-actions", "with-back-link"] },
|
|
16
|
+
"section-header": { "implementedBy": "SectionHeader", "states": ["default", "with-primary", "with-primary-menu", "with-more", "action-disabled", "with-context", "full-width"] },
|
|
15
17
|
"tab-strip": { "implementedBy": "TabStrip", "states": ["default", "active", "with-count"] },
|
|
16
|
-
"list": { "implementedBy": "List", "states": ["loading", "empty", "populated", "selected", "error"] },
|
|
17
|
-
"avatar": { "implementedBy": "Avatar", "states": ["picture", "initials", "presence"] },
|
|
18
|
-
"
|
|
18
|
+
"list": { "implementedBy": "List", "states": ["loading", "empty", "populated", "selected", "error", "pulled"] },
|
|
19
|
+
"avatar": { "implementedBy": "Avatar", "states": ["picture", "initials", "presence", "connection", "deleted"] },
|
|
20
|
+
"filter-chips": { "implementedBy": "FilterChips", "states": ["default", "chosen", "focused", "overflowing"] },
|
|
21
|
+
"screen-shell": { "implementedBy": "ScreenShell", "states": ["root", "nested", "with-filters", "with-primary-action", "with-primary-menu", "pulling", "refreshing", "searching", "bar-hidden"] },
|
|
22
|
+
"context-menu": { "implementedBy": "ContextMenu", "states": ["open", "item-danger", "item-locked", "item-refused", "item-disabled"] },
|
|
23
|
+
"file-viewer": { "implementedBy": "FileViewer", "states": ["loading", "error", "no-preview", "editing", "editing-closing", "editing-conflict", "with-edit", "with-siblings", "with-thumbnails", "with-attachment-strip", "phone"] },
|
|
24
|
+
"file-picker": { "implementedBy": "FilePicker", "states": ["loading", "empty", "error", "denied", "with-selection", "with-budget", "over-budget", "disabled-entry", "paging", "phone"] },
|
|
25
|
+
"notification": { "implementedBy": "Notification", "states": ["unread", "read", "collapsed", "expanded", "with-action", "row-action"] },
|
|
26
|
+
"pane-toolbar": { "implementedBy": "PaneToolbar", "states": ["default", "labels-partly-hidden", "labels-hidden", "overflowing", "menu-open", "with-status", "action-disabled", "action-busy", "phone"] }
|
|
19
27
|
},
|
|
20
28
|
"serverStates": {
|
|
21
29
|
"node-rwx": { "where": "src/server/capability.ts" },
|
|
@@ -29,6 +37,7 @@
|
|
|
29
37
|
"client-version": { "where": "src/server/client-update.ts" }
|
|
30
38
|
},
|
|
31
39
|
"notOffered": {
|
|
32
|
-
"elevation-required": "this kit's clients never elevate: an `elevate` answer is not offered at all (offerFor with elevates: false)"
|
|
40
|
+
"elevation-required": "this kit's clients never elevate: an `elevate` answer is not offered at all (offerFor with elevates: false)",
|
|
41
|
+
"settings-shell": "no screen of this kit's clients draws a settings layout yet: it is offered with the first one (My Profile)"
|
|
33
42
|
}
|
|
34
43
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolms/ui-react",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.30",
|
|
4
4
|
"description": "The CoolMS UI kit for React: the components of the CoolMS UI contract, styled by the CoolMS design tokens",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/coolms/ui-react.git"
|
|
9
|
+
"url": "git+https://github.com/coolms/ui-react.git"
|
|
10
10
|
},
|
|
11
11
|
"engines": {
|
|
12
12
|
"node": "^22.0.0 || ^24.0.0 || ^26.0.0"
|
|
@@ -42,9 +42,11 @@
|
|
|
42
42
|
"demo": "vite --config demo/vite.config.ts",
|
|
43
43
|
"demo:build": "vite build --config demo/vite.config.ts",
|
|
44
44
|
"check:layout": "node tools/check-layout.mjs",
|
|
45
|
-
"verify": "npm run tokens:check && npm run check && npm run typecheck && npm test && npm run build && npm run check:built && npm run demo:build && npm run check:layout",
|
|
45
|
+
"verify": "npm run tokens:check && npm run check && npm run typecheck && npm test && npm run build && npm run check:built && npm run check:types-resolution && npm run check:package && npm run demo:build && npm run check:layout",
|
|
46
46
|
"build": "vite build --config vite.lib.config.ts && tsc -p tsconfig.build.json",
|
|
47
47
|
"check:built": "node tools/check-built.mjs",
|
|
48
|
+
"check:types-resolution": "node tools/check-types-resolution.mjs",
|
|
49
|
+
"check:package": "node tools/check-package.mjs",
|
|
48
50
|
"prepack": "npm run build"
|
|
49
51
|
},
|
|
50
52
|
"peerDependencies": {
|
|
@@ -52,6 +54,7 @@
|
|
|
52
54
|
"react-dom": "^19.2.3"
|
|
53
55
|
},
|
|
54
56
|
"devDependencies": {
|
|
57
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
55
58
|
"@testing-library/jest-dom": "6.9.1",
|
|
56
59
|
"@testing-library/react": "16.3.3",
|
|
57
60
|
"@testing-library/user-event": "14.6.7",
|
|
@@ -59,10 +62,11 @@
|
|
|
59
62
|
"@types/react-dom": "19.2.7",
|
|
60
63
|
"@vitejs/plugin-react": "4.7.0",
|
|
61
64
|
"jsdom": "26.1.0",
|
|
65
|
+
"publint": "0.3.25",
|
|
62
66
|
"react": "19.2.3",
|
|
63
67
|
"react-dom": "19.2.3",
|
|
64
68
|
"typescript": "6.0.3",
|
|
65
|
-
"vite": "6.4.
|
|
66
|
-
"vitest": "
|
|
69
|
+
"vite": "6.4.5",
|
|
70
|
+
"vitest": "5.1.0"
|
|
67
71
|
}
|
|
68
72
|
}
|
package/src/kit.css
CHANGED
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
display: inline-flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
gap: 6px;
|
|
31
|
-
|
|
31
|
+
/* The contract's button height: 40px with a mouse, 44px on a touch screen (the token's coarse-pointer value). */
|
|
32
|
+
min-height: var(--cms-control-height-md);
|
|
32
33
|
padding: 0 12px;
|
|
33
34
|
border: 1px solid var(--cms-btn-border);
|
|
34
35
|
border-radius: var(--cms-radius);
|
|
@@ -64,7 +65,8 @@
|
|
|
64
65
|
.cms-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
|
|
65
66
|
.cms-field__label { color: var(--cms-text); font-weight: 600; }
|
|
66
67
|
.cms-input {
|
|
67
|
-
|
|
68
|
+
/* A text field's and a select's height, as a button's. */
|
|
69
|
+
min-height: var(--cms-control-height-md);
|
|
68
70
|
padding: 0 10px;
|
|
69
71
|
border: 1px solid var(--cms-border-control);
|
|
70
72
|
border-radius: var(--cms-radius);
|
|
@@ -73,6 +75,8 @@
|
|
|
73
75
|
font: inherit;
|
|
74
76
|
}
|
|
75
77
|
.cms-input:focus { border-color: var(--cms-accent); }
|
|
78
|
+
.cms-textarea { padding: 8px 10px; line-height: 1.5; resize: vertical; }
|
|
79
|
+
.cms-input[type="date"], .cms-input[type="time"], .cms-input[type="datetime-local"] { color-scheme: inherit; }
|
|
76
80
|
.cms-input:disabled { background: var(--cms-bg-muted); color: var(--cms-text-muted); cursor: not-allowed; }
|
|
77
81
|
.cms-input:read-only:not(select) { background: var(--cms-surface-muted); }
|
|
78
82
|
.cms-field.is-invalid .cms-input { border-color: var(--cms-danger); }
|
|
@@ -172,6 +176,28 @@
|
|
|
172
176
|
.cms-empty__title { margin: 0 0 4px; color: var(--cms-text); font-weight: 600; }
|
|
173
177
|
.cms-empty__hint { margin: 0; }
|
|
174
178
|
.cms-empty__action { margin-top: 12px; }
|
|
179
|
+
/* The state component: one look for every state instead of content. Each token carries its own value as a fallback
|
|
180
|
+
until the kit pins the design tokens that define it. */
|
|
181
|
+
.cms-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--cms-space-3, 12px); color: var(--cms-text-muted); text-align: center; transition: opacity 120ms; }
|
|
182
|
+
.cms-state--page { flex: 1; min-height: 50vh; padding: var(--cms-space-8, 32px) var(--cms-space-4, 16px); }
|
|
183
|
+
.cms-state--block { flex: 1; box-sizing: border-box; min-height: 100%; padding: var(--cms-space-8, 32px) var(--cms-space-4, 16px); }
|
|
184
|
+
.cms-state--inline { display: inline-flex; flex-direction: row; gap: var(--cms-space-2, 8px); text-align: start; }
|
|
185
|
+
.cms-state__icon { display: inline-flex; color: var(--cms-text-muted); }
|
|
186
|
+
.cms-state.is-waiting > :not(.cms-state__text) { visibility: hidden; }
|
|
187
|
+
.cms-state.is-waiting > .cms-state__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
188
|
+
.cms-state__text { display: flex; flex-direction: column; gap: var(--cms-space-1, 4px); }
|
|
189
|
+
.cms-state--inline .cms-state__text { flex-direction: row; gap: var(--cms-space-2, 8px); }
|
|
190
|
+
.cms-state__title { color: var(--cms-text); font-weight: 600; }
|
|
191
|
+
.cms-state--inline .cms-state__title { font-weight: inherit; }
|
|
192
|
+
.cms-state__description { max-width: 48ch; }
|
|
193
|
+
.cms-state--error > svg { color: var(--cms-danger-text); }
|
|
194
|
+
.cms-state__spinner { width: var(--cms-spinner-size-block, 24px); height: var(--cms-spinner-size-block, 24px); animation: cms-spin var(--cms-spinner-duration, 800ms) linear infinite; }
|
|
195
|
+
.cms-state--page .cms-state__spinner { width: var(--cms-spinner-size-page, 32px); height: var(--cms-spinner-size-page, 32px); }
|
|
196
|
+
.cms-state--inline .cms-state__spinner { width: var(--cms-spinner-size-inline, 16px); height: var(--cms-spinner-size-inline, 16px); }
|
|
197
|
+
.cms-state__track { stroke: var(--cms-spinner-track, var(--cms-border)); stroke-width: var(--cms-spinner-stroke, 2px); vector-effect: non-scaling-stroke; }
|
|
198
|
+
.cms-state__arc { stroke: var(--cms-spinner-color, var(--cms-accent-text)); stroke-width: var(--cms-spinner-stroke, 2px); stroke-linecap: round; vector-effect: non-scaling-stroke; }
|
|
199
|
+
@keyframes cms-state-pulse { 50% { opacity: 0.35; } }
|
|
200
|
+
@media (prefers-reduced-motion: reduce) { .cms-state__spinner { animation: cms-state-pulse calc(2 * var(--cms-spinner-duration, 800ms)) ease-in-out infinite; } }
|
|
175
201
|
.cms-error-banner {
|
|
176
202
|
display: flex;
|
|
177
203
|
align-items: center;
|
|
@@ -186,6 +212,21 @@
|
|
|
186
212
|
|
|
187
213
|
/* Page header */
|
|
188
214
|
.cms-page-header { padding: 16px 0 12px; border-bottom: 1px solid var(--cms-border-light); margin-bottom: 16px; }
|
|
215
|
+
/* section-header: row 1 the title, the primary and More; row 2 the context; no divider lines. */
|
|
216
|
+
.cms-section-header { display: flex; flex-direction: column; background: var(--cms-surface); }
|
|
217
|
+
.cms-section-header--full { padding-inline: var(--cms-space-5); }
|
|
218
|
+
.cms-section-header__row { display: flex; align-items: center; gap: var(--cms-space-2); height: var(--cms-pane-toolbar-height); min-width: 0; white-space: nowrap; }
|
|
219
|
+
.cms-section-header__row > .cms-icon { flex: none; color: var(--cms-text-secondary); }
|
|
220
|
+
.cms-section-header__title { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--cms-font-size-title-md); font-weight: 600; color: var(--cms-text); }
|
|
221
|
+
.cms-section-header__actions { display: flex; align-items: center; gap: var(--cms-space-1); flex: none; }
|
|
222
|
+
.cms-section-header__primary { display: inline-flex; align-items: center; }
|
|
223
|
+
.cms-section-header__primary .cms-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
|
|
224
|
+
.cms-section-header__primary--split > .cms-button:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
|
|
225
|
+
.cms-section-header__split { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: 1px; padding-inline: var(--cms-space-2); }
|
|
226
|
+
.cms-section-header__more { display: inline-flex; align-items: center; justify-content: center; width: var(--cms-control-height-md); height: var(--cms-control-height-md); border: 0; border-radius: var(--cms-radius-md); background: transparent; color: var(--cms-text-muted); cursor: pointer; }
|
|
227
|
+
.cms-section-header__more:hover { background: var(--cms-btn-hover-bg); }
|
|
228
|
+
.cms-section-header__more:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
229
|
+
.cms-section-header__context { display: flex; align-items: center; min-width: 0; height: var(--cms-pane-header-height); }
|
|
189
230
|
.cms-page-header__back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--cms-accent-text); text-decoration: none; }
|
|
190
231
|
.cms-page-header__back:hover { text-decoration: underline; }
|
|
191
232
|
.cms-page-header__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
|
|
@@ -213,13 +254,13 @@
|
|
|
213
254
|
.cms-tab__count { padding: 0 6px; border-radius: 8px; background: var(--cms-bg-muted); color: var(--cms-text-muted); font-size: 0.8125em; }
|
|
214
255
|
|
|
215
256
|
/* List */
|
|
216
|
-
.cms-list { margin: 0; padding: 0; list-style: none;
|
|
257
|
+
.cms-list { margin: 0; padding: 0; list-style: none; background: var(--cms-surface); }
|
|
217
258
|
.cms-list__row {
|
|
218
259
|
display: flex;
|
|
219
260
|
align-items: center;
|
|
220
|
-
gap:
|
|
261
|
+
gap: var(--cms-space-3);
|
|
221
262
|
min-height: var(--cms-row-height-lg);
|
|
222
|
-
padding:
|
|
263
|
+
padding: var(--cms-space-3) var(--cms-space-4);
|
|
223
264
|
border-bottom: 1px solid var(--cms-border-light);
|
|
224
265
|
color: var(--cms-text);
|
|
225
266
|
cursor: pointer;
|
|
@@ -231,6 +272,34 @@
|
|
|
231
272
|
.cms-list__primary, .cms-list__secondary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
232
273
|
.cms-list__secondary { color: var(--cms-text-muted); font-size: 0.875em; }
|
|
233
274
|
.cms-list__meta { flex: none; color: var(--cms-meta-text); font-size: 0.8125em; }
|
|
275
|
+
/* One anatomy for every row (contract list, row): the title semibold while unread; the meta with a count under it. */
|
|
276
|
+
.cms-list__primary.is-unread { font-weight: var(--cms-font-weight-semibold); }
|
|
277
|
+
.cms-list__end { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: var(--cms-space-1); }
|
|
278
|
+
.cms-list__count { min-width: 18px; height: 18px; font-size: var(--cms-font-size-label-sm); }
|
|
279
|
+
.cms-list__pull { display: flex; align-items: center; justify-content: center; gap: var(--cms-space-2); min-height: var(--cms-control-height-sm); overflow: hidden; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
280
|
+
|
|
281
|
+
/* The screen shell (contract screen-shell): one bar, the filters, the content scrolling on its own, the primary floating
|
|
282
|
+
at the bottom right above the section bar. */
|
|
283
|
+
.cms-screen { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--cms-surface); }
|
|
284
|
+
.cms-screen__bar { display: flex; flex: none; align-items: center; gap: var(--cms-space-2); height: var(--cms-topbar-height); padding: 0 var(--cms-space-2); border-bottom: 1px solid var(--cms-border-light); }
|
|
285
|
+
.cms-screen__leading { display: flex; flex: none; align-items: center; max-width: 40%; min-width: 0; }
|
|
286
|
+
.cms-screen__leading:empty { display: none; }
|
|
287
|
+
.cms-screen__back { display: inline-flex; align-items: center; gap: var(--cms-space-1); min-width: 0; height: var(--cms-control-height-md); padding: 0 var(--cms-space-2); border: 0; border-radius: var(--cms-radius-sm); background: transparent; color: var(--cms-text-muted); font: inherit; text-decoration: none; cursor: pointer; }
|
|
288
|
+
.cms-screen__back:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
289
|
+
.cms-screen__back-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
290
|
+
.cms-screen__title { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: var(--cms-font-size-title-md); font-weight: var(--cms-font-weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
|
|
291
|
+
.cms-screen__trailing { display: flex; flex: none; align-items: center; gap: var(--cms-space-1); }
|
|
292
|
+
.cms-screen__search { display: flex; flex: 1 1 auto; min-width: 0; }
|
|
293
|
+
.cms-screen__search > * { flex: 1 1 auto; min-width: 0; }
|
|
294
|
+
.cms-screen__icon { width: var(--cms-control-height-md); height: var(--cms-control-height-md); }
|
|
295
|
+
.cms-screen__filters { flex: none; padding: var(--cms-space-2) var(--cms-space-4); overflow-x: auto; }
|
|
296
|
+
.cms-screen__content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
|
|
297
|
+
.cms-screen__primary { position: absolute; right: var(--cms-space-4); bottom: var(--cms-space-4); z-index: 2; width: calc(var(--cms-control-height-lg) + var(--cms-space-3)); height: calc(var(--cms-control-height-lg) + var(--cms-space-3)); min-height: 0; padding: 0; border-radius: 50%; justify-content: center; box-shadow: var(--cms-shadow-md); }
|
|
298
|
+
/* bar-hidden: the bar and the filters step out of view, collapsed rather than removed, so focus can still reach them
|
|
299
|
+
(and brings them back). */
|
|
300
|
+
.cms-screen[data-bar-hidden] > .cms-screen__bar, .cms-screen[data-bar-hidden] > .cms-screen__filters { height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; overflow: hidden; }
|
|
301
|
+
@media (prefers-reduced-motion: reduce) { .cms-screen__bar, .cms-screen__filters { transition: none; animation: none; } }
|
|
302
|
+
.cms-screen--with-primary .cms-screen__content { padding-bottom: calc(var(--cms-control-height-lg) + var(--cms-space-3) + 2 * var(--cms-space-4)); }
|
|
234
303
|
|
|
235
304
|
/* Avatar */
|
|
236
305
|
.cms-avatar {
|
|
@@ -250,6 +319,10 @@
|
|
|
250
319
|
.cms-avatar__presence.is-online { background: var(--cms-success); }
|
|
251
320
|
.cms-avatar__presence.is-away { background: var(--cms-warning); }
|
|
252
321
|
.cms-avatar__presence.is-offline { background: var(--cms-meta-subtle); }
|
|
322
|
+
.cms-avatar__presence.is-connected { background: var(--cms-success); }
|
|
323
|
+
.cms-avatar__presence.is-reconnecting { background: var(--cms-warning); }
|
|
324
|
+
.cms-avatar__presence.is-disconnected { background: var(--cms-text-muted); }
|
|
325
|
+
.cms-avatar--deleted { background: var(--cms-surface-muted); color: var(--cms-text-muted); }
|
|
253
326
|
.cms-avatar--tint-1 { background: var(--cms-avatar-1-bg); color: var(--cms-avatar-1-fg); }
|
|
254
327
|
.cms-avatar--tint-2 { background: var(--cms-avatar-2-bg); color: var(--cms-avatar-2-fg); }
|
|
255
328
|
.cms-avatar--tint-3 { background: var(--cms-avatar-3-bg); color: var(--cms-avatar-3-fg); }
|
|
@@ -271,17 +344,40 @@
|
|
|
271
344
|
}
|
|
272
345
|
.cms-menu__item { display: flex; align-items: center; gap: 8px; min-height: var(--cms-row-height-sm); padding: 0 10px; border-radius: var(--cms-radius-sm); cursor: pointer; }
|
|
273
346
|
.cms-menu__item:hover, .cms-menu__item:focus { background: var(--cms-hover-bg); outline: none; }
|
|
274
|
-
|
|
347
|
+
/* An item's icon and its words share one line, centred on each other. */
|
|
348
|
+
.cms-menu__label { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
|
|
349
|
+
.cms-menu__label > svg { flex: none; }
|
|
275
350
|
.cms-menu__item.is-danger { color: var(--cms-danger-text); }
|
|
276
351
|
.cms-menu__item.is-refused { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
277
352
|
.cms-menu__refusal { font-size: 0.8125em; }
|
|
278
353
|
|
|
354
|
+
/* One notification: its row (the title, the time, the body in one line until expanded), the chevron beside it, and a
|
|
355
|
+
button action under the text. Unread: the title in weight and a dot. */
|
|
356
|
+
.cms-notification { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: var(--cms-space-1); padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-md); }
|
|
357
|
+
.cms-notification__row { display: flex; align-items: flex-start; gap: var(--cms-space-3); min-width: 0; padding: var(--cms-space-2); border-radius: var(--cms-radius-md); color: var(--cms-text); cursor: pointer; }
|
|
358
|
+
.cms-notification__row:hover { background: var(--cms-hover-bg); }
|
|
359
|
+
.cms-notification__row:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
360
|
+
.cms-notification__leading { flex: none; display: inline-flex; }
|
|
361
|
+
.cms-notification__text { display: flex; flex: 1; flex-direction: column; gap: var(--cms-space-1); min-width: 0; }
|
|
362
|
+
.cms-notification__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--cms-space-2); }
|
|
363
|
+
.cms-notification__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
364
|
+
.cms-notification.is-unread .cms-notification__title { font-weight: var(--cms-font-weight-semibold); }
|
|
365
|
+
.cms-notification__time { flex: none; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
366
|
+
.cms-notification__body { overflow: hidden; color: var(--cms-text-muted); text-overflow: ellipsis; white-space: nowrap; }
|
|
367
|
+
.cms-notification.is-expanded .cms-notification__body { white-space: pre-wrap; overflow-wrap: break-word; }
|
|
368
|
+
.cms-notification__dot { flex: none; width: 8px; height: 8px; margin-top: var(--cms-space-2); border-radius: var(--cms-radius-pill); background: var(--cms-accent); }
|
|
369
|
+
.cms-notification__chevron { display: inline-flex; align-items: center; justify-content: center; width: var(--cms-control-height-md); height: var(--cms-control-height-md); border: 0; border-radius: var(--cms-radius-sm); background: transparent; color: var(--cms-text-muted); cursor: pointer; }
|
|
370
|
+
.cms-notification__chevron:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
371
|
+
.cms-notification.is-expanded .cms-notification__chevron svg { transform: rotate(180deg); }
|
|
372
|
+
.cms-notification__action { grid-column: 1; justify-self: start; margin: 0 0 var(--cms-space-2) var(--cms-space-2); }
|
|
373
|
+
|
|
279
374
|
/*
|
|
280
375
|
* The Workspace: the shell, its lists, chat, the call and sign-in. Same rule as above: only --cms-* tokens. The chrome
|
|
281
376
|
* (the rail, the incoming call, the sign-in brand side) stays navy in both themes.
|
|
282
377
|
*/
|
|
283
378
|
.cms-icon { flex: none; }
|
|
284
|
-
|
|
379
|
+
.cms-icon--blank { display: inline-block; }
|
|
380
|
+
:where(.cms-shell__item, .cms-chip, .cms-mail-row__open, .cms-mail-row__check, .cms-call-button, .cms-call-bar__icon, .cms-composer__send-round, .cms-signin-form__show):focus-visible {
|
|
285
381
|
outline: 2px solid var(--cms-focus-ring);
|
|
286
382
|
outline-offset: 2px;
|
|
287
383
|
}
|
|
@@ -342,7 +438,9 @@
|
|
|
342
438
|
.cms-shell__product { font-size: var(--cms-font-size-title-md); font-weight: var(--cms-font-weight-bold); white-space: nowrap; }
|
|
343
439
|
.cms-shell__search { flex: 1; max-width: 640px; }
|
|
344
440
|
.cms-shell__account { display: flex; align-items: center; gap: var(--cms-space-4); margin-left: auto; }
|
|
345
|
-
|
|
441
|
+
/* The open section's area: a column, so a section given `flex: 1` fills the height under anything above it. */
|
|
442
|
+
.cms-shell__main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
|
|
443
|
+
.cms-shell__main > :only-child { flex: 1; min-height: 0; }
|
|
346
444
|
|
|
347
445
|
.cms-server-switch { display: inline-flex; align-items: center; gap: var(--cms-space-2); height: 36px; padding: 0 var(--cms-space-3); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-pill); background: var(--cms-surface); color: var(--cms-text); font: inherit; cursor: pointer; }
|
|
348
446
|
|
|
@@ -353,7 +451,22 @@
|
|
|
353
451
|
.cms-search__input::placeholder { color: var(--cms-text-muted); }
|
|
354
452
|
|
|
355
453
|
/* Filter chips */
|
|
356
|
-
|
|
454
|
+
/* One line: chips that do not fit scroll sideways, the scrollbar hidden; the clipped edge fades while there is more past
|
|
455
|
+
it (is-past-start, is-past-end, measured from the scroll). The block padding keeps a chip's focus ring inside the
|
|
456
|
+
scroll box, and the margin gives the row its height back. */
|
|
457
|
+
.cms-chips {
|
|
458
|
+
display: flex; flex-wrap: nowrap; gap: var(--cms-space-2); min-width: 0; overflow-x: auto; scrollbar-width: none;
|
|
459
|
+
padding-block: 3px; margin-block: -3px; padding-inline: 3px; margin-inline: -3px;
|
|
460
|
+
}
|
|
461
|
+
.cms-chips::-webkit-scrollbar { display: none; }
|
|
462
|
+
.cms-chips > .cms-chip { flex: none; }
|
|
463
|
+
.cms-chips.is-past-end { mask-image: linear-gradient(to right, #000 calc(100% - var(--cms-space-6)), transparent); }
|
|
464
|
+
.cms-chips.is-past-start { mask-image: linear-gradient(to right, transparent, #000 var(--cms-space-6)); }
|
|
465
|
+
.cms-chips.is-past-start.is-past-end { mask-image: linear-gradient(to right, transparent, #000 var(--cms-space-6), #000 calc(100% - var(--cms-space-6)), transparent); }
|
|
466
|
+
/* Right to left, the start is the right edge. */
|
|
467
|
+
.cms-chips.is-past-end:dir(rtl) { mask-image: linear-gradient(to left, #000 calc(100% - var(--cms-space-6)), transparent); }
|
|
468
|
+
.cms-chips.is-past-start:dir(rtl) { mask-image: linear-gradient(to left, transparent, #000 var(--cms-space-6)); }
|
|
469
|
+
.cms-chips.is-past-start.is-past-end:dir(rtl) { mask-image: linear-gradient(to left, transparent, #000 var(--cms-space-6), #000 calc(100% - var(--cms-space-6)), transparent); }
|
|
357
470
|
.cms-chip { display: inline-flex; align-items: center; gap: var(--cms-space-1); height: 32px; padding: 0 var(--cms-space-4); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-pill); background: var(--cms-surface); color: var(--cms-text-body); font: inherit; font-size: var(--cms-font-size-meta); cursor: pointer; }
|
|
358
471
|
.cms-chip:hover { background: var(--cms-surface-muted); }
|
|
359
472
|
.cms-chip.is-on { border-color: var(--cms-button-chrome-bg); background: var(--cms-button-chrome-bg); color: var(--cms-on-chrome); font-weight: var(--cms-font-weight-semibold); }
|
|
@@ -363,6 +476,13 @@
|
|
|
363
476
|
.cms-panes--two { grid-template-columns: 340px 1fr; }
|
|
364
477
|
.cms-panes--three { grid-template-columns: 240px 380px 1fr; }
|
|
365
478
|
.cms-panes__pane { min-width: 0; min-height: 0; overflow: auto; border-right: 1px solid var(--cms-border); background: var(--cms-surface); }
|
|
479
|
+
.cms-panes--sized { position: relative; }
|
|
480
|
+
.cms-panes--sized.cms-panes--two { grid-template-columns: var(--split-pane-0) minmax(0, 1fr); }
|
|
481
|
+
.cms-panes--sized.cms-panes--three { grid-template-columns: var(--split-pane-0) var(--split-pane-1) minmax(0, 1fr); }
|
|
482
|
+
.cms-panes__splitter { position: absolute; top: 0; bottom: 0; left: calc(var(--split-at) - 4px); z-index: 2; width: 8px; cursor: col-resize; touch-action: none; }
|
|
483
|
+
.cms-panes__splitter:hover, .cms-panes__splitter:focus-visible { background: linear-gradient(to right, transparent 3px, var(--cms-accent) 3px, var(--cms-accent) 5px, transparent 5px); }
|
|
484
|
+
.cms-panes__splitter:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: -2px; }
|
|
485
|
+
.cms-panes.is-resizing { cursor: col-resize; user-select: none; }
|
|
366
486
|
.cms-panes__pane:first-child { background: var(--cms-bg); }
|
|
367
487
|
.cms-panes__pane:last-child { border-right: 0; }
|
|
368
488
|
.cms-panes__back { display: none; align-items: center; gap: var(--cms-space-1); padding: var(--cms-space-3) var(--cms-space-4); border-bottom: 1px solid var(--cms-border); color: var(--cms-text); font-weight: var(--cms-font-weight-semibold); text-decoration: none; }
|
|
@@ -370,9 +490,14 @@
|
|
|
370
490
|
/* Mail row */
|
|
371
491
|
.cms-mail-row {
|
|
372
492
|
display: flex;
|
|
493
|
+
align-items: flex-start;
|
|
373
494
|
gap: var(--cms-space-3);
|
|
495
|
+
box-sizing: border-box;
|
|
374
496
|
width: 100%;
|
|
375
|
-
|
|
497
|
+
/* Three lines at every width (the sender and the time; the subject; the preview), never shorter than the three-line
|
|
498
|
+
token and taller as the text grows. */
|
|
499
|
+
min-height: var(--cms-list-row-height-three-line);
|
|
500
|
+
padding: 10px var(--cms-space-4);
|
|
376
501
|
border: 0;
|
|
377
502
|
border-bottom: 1px solid var(--cms-border-light);
|
|
378
503
|
background: var(--cms-surface);
|
|
@@ -382,14 +507,27 @@
|
|
|
382
507
|
cursor: pointer;
|
|
383
508
|
}
|
|
384
509
|
.cms-mail-row:hover { background: var(--cms-surface-muted); }
|
|
510
|
+
.cms-mail-row__open { display: flex; align-items: flex-start; gap: var(--cms-space-3); flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
|
|
511
|
+
.cms-mail-row__lead { position: relative; flex: none; width: 40px; height: 40px; }
|
|
512
|
+
.cms-mail-row__check {
|
|
513
|
+
appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 50%; opacity: 0; cursor: pointer;
|
|
514
|
+
background: var(--cms-surface) center / 18px 18px no-repeat; box-shadow: inset 0 0 0 2px var(--cms-border);
|
|
515
|
+
}
|
|
516
|
+
.cms-mail-row__check:checked {
|
|
517
|
+
background-color: var(--cms-accent); box-shadow: none;
|
|
518
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m5 12 5 5 9-10%27/%3E%3C/svg%3E");
|
|
519
|
+
}
|
|
520
|
+
.cms-mail-row__check[aria-disabled="true"] { cursor: progress; }
|
|
521
|
+
.cms-mail-row:is(:hover, :focus-within, .is-selecting, .is-checked) .cms-mail-row__check { opacity: 1; }
|
|
522
|
+
.cms-mail-row:is(:hover, :focus-within, .is-selecting, .is-checked) .cms-mail-row__lead > .cms-avatar { visibility: hidden; }
|
|
385
523
|
.cms-mail-row.is-selected { background: var(--cms-row-selected); }
|
|
386
|
-
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
|
|
524
|
+
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.5; }
|
|
387
525
|
.cms-mail-row__line { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
388
|
-
.cms-mail-row__from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); font-size: var(--cms-font-size-body
|
|
526
|
+
.cms-mail-row__from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); font-size: var(--cms-font-size-body); }
|
|
389
527
|
.cms-mail-row__time { color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); white-space: nowrap; }
|
|
390
|
-
.cms-mail-row__subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); }
|
|
391
|
-
.cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); }
|
|
392
|
-
.cms-mail-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
|
|
528
|
+
.cms-mail-row__subject { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); font-size: var(--cms-font-size-meta); }
|
|
529
|
+
.cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); font-size: var(--cms-font-size-label); }
|
|
530
|
+
.cms-mail-row__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
|
|
393
531
|
.cms-mail-row.is-unread .cms-mail-row__from, .cms-mail-row.is-unread .cms-mail-row__subject { font-weight: var(--cms-font-weight-semibold); }
|
|
394
532
|
.cms-mail-row .cms-icon { color: var(--cms-text-muted); }
|
|
395
533
|
|
|
@@ -411,6 +549,7 @@
|
|
|
411
549
|
.cms-composer--reply .cms-composer__title { flex-basis: 100%; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
412
550
|
.cms-composer--reply .cms-composer__input { flex-basis: 100%; padding: var(--cms-space-2) var(--cms-space-3); border-color: transparent; }
|
|
413
551
|
.cms-composer--reply .cms-composer__send { margin-left: auto; }
|
|
552
|
+
.cms-composer--reply .cms-composer__leading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
414
553
|
.cms-composer__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
415
554
|
.cms-composer__send-round { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cms-accent); color: var(--cms-accent-fg); cursor: pointer; }
|
|
416
555
|
.cms-composer__send-round:disabled, .cms-composer__send:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
@@ -463,11 +602,11 @@
|
|
|
463
602
|
.cms-signin-form__title { margin: 0; font-size: var(--cms-font-size-display-sm); font-weight: var(--cms-font-weight-bold); }
|
|
464
603
|
.cms-signin-form__server { display: flex; align-items: center; gap: var(--cms-space-2); margin: 0 0 var(--cms-space-4); color: var(--cms-text-muted); }
|
|
465
604
|
.cms-signin-form__label { margin-top: var(--cms-space-2); font-weight: var(--cms-font-weight-medium); }
|
|
466
|
-
|
|
467
|
-
.cms-
|
|
605
|
+
/* The sign-in form's own inputs: a field's frame (.cms-field) is a different thing, and none of this reaches it. */
|
|
606
|
+
.cms-signin-form__input { height: 44px; margin-bottom: 12px; padding: 0 var(--cms-space-4); border: 1px solid var(--cms-border-input); border-radius: var(--cms-radius-field); background: var(--cms-input-bg); color: var(--cms-text); font: inherit; font-size: var(--cms-font-size-body-lg); }
|
|
607
|
+
.cms-signin-form__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
468
608
|
.cms-signin-form__password { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
|
|
469
|
-
.cms-signin-form__password .cms-
|
|
470
|
-
.cms-signin-form__password .cms-field { flex: 1; padding-right: 64px; }
|
|
609
|
+
.cms-signin-form__password .cms-signin-form__input { flex: 1; margin-bottom: 0; padding-right: 64px; }
|
|
471
610
|
.cms-signin-form__show { position: absolute; top: 50%; line-height: 1; right: var(--cms-space-3); transform: translateY(-50%); border: 0; background: transparent; color: var(--cms-text-body); font: inherit; cursor: pointer; }
|
|
472
611
|
.cms-signin-form__forgot { align-self: flex-end; color: var(--cms-text); }
|
|
473
612
|
.cms-signin-form__error { margin: 0; color: var(--cms-danger-text); }
|
|
@@ -476,6 +615,59 @@
|
|
|
476
615
|
.cms-signin-form__or::before, .cms-signin-form__or::after { content: ''; flex: 1; height: 1px; background: var(--cms-border); }
|
|
477
616
|
.cms-signin-form__create { justify-content: center; height: 48px; border-color: var(--cms-border-input); border-radius: var(--cms-radius-control); color: var(--cms-text); font-weight: var(--cms-font-weight-semibold); text-decoration: none; }
|
|
478
617
|
|
|
618
|
+
/* The file viewer: dark whatever the scheme, covering the page. It never scrolls as a document; its content does. */
|
|
619
|
+
/* One column no wider than the screen: a bar wider than a phone scrolls in its place, it does not widen the viewer. */
|
|
620
|
+
.cms-viewer { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr) auto auto; background: #0e1116; color: #f4f5f7; }
|
|
621
|
+
.cms-viewer:focus { outline: none; }
|
|
622
|
+
.cms-viewer__top { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; padding: 0 var(--cms-space-3); border-bottom: 1px solid #2a2f38; }
|
|
623
|
+
.cms-viewer__badge { flex: none; display: inline-flex; }
|
|
624
|
+
.cms-viewer__name { margin: 0; min-width: 0; font-size: inherit; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
625
|
+
.cms-viewer__position, .cms-viewer__status { flex: none; color: #a8afbb; white-space: nowrap; }
|
|
626
|
+
.cms-viewer__space { flex: 1 1 0; min-width: 0; }
|
|
627
|
+
.cms-viewer__actions { display: inline-flex; gap: var(--cms-space-1); flex: none; }
|
|
628
|
+
.cms-viewer__icon, .cms-viewer__button { display: inline-flex; align-items: center; justify-content: center; gap: var(--cms-space-2); height: 36px; border: 0; border-radius: var(--cms-radius-md); background: transparent; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
|
|
629
|
+
.cms-viewer__icon { flex: none; width: 36px; }
|
|
630
|
+
.cms-viewer__button { flex: none; padding: 0 var(--cms-space-3); }
|
|
631
|
+
.cms-viewer__icon:hover, .cms-viewer__button:hover { background: #262b34; }
|
|
632
|
+
.cms-viewer :focus-visible { outline: 2px solid var(--cms-accent); outline-offset: 2px; }
|
|
633
|
+
.cms-viewer__button--edit, .cms-viewer__button--edit:hover { background: var(--cms-accent); color: #1a1a1a; font-weight: 600; }
|
|
634
|
+
.cms-viewer__more { display: none; position: relative; flex: none; }
|
|
635
|
+
.cms-viewer__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 3; display: flex; flex-direction: column; align-items: stretch; min-width: 200px; padding: var(--cms-space-1); border: 1px solid #2a2f38; border-radius: var(--cms-radius-md); background: #1a1e25; }
|
|
636
|
+
.cms-viewer__menu .cms-viewer__button { justify-content: flex-start; min-height: var(--cms-touch-target-min); }
|
|
637
|
+
.cms-viewer__body { display: flex; min-height: 0; }
|
|
638
|
+
.cms-viewer__thumbnails { flex: none; width: 124px; padding: var(--cms-space-3); overflow: auto; border-right: 1px solid #2a2f38; }
|
|
639
|
+
.cms-viewer__content { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; }
|
|
640
|
+
/* A state instead of the file, in the viewer's own dark colours whatever the page's scheme. */
|
|
641
|
+
.cms-viewer .cms-state { min-height: 100%; color: #a8afbb; }
|
|
642
|
+
.cms-viewer .cms-state__title { color: #f4f5f7; }
|
|
643
|
+
/* The file changed elsewhere while being edited: the question across the top of the content, above the editor. */
|
|
644
|
+
.cms-viewer__conflict { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); margin: 0; padding: var(--cms-space-2) var(--cms-space-3); border-bottom: 1px solid var(--cms-warning); background: #262b34; }
|
|
645
|
+
.cms-viewer__conflict-text { flex: 1 1 16rem; min-width: 0; margin: 0; }
|
|
646
|
+
/* The next arrow stands clear of the content's own vertical scrollbar (at most 20px), down the content's right edge. */
|
|
647
|
+
.cms-viewer__side { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: #262b34; color: inherit; cursor: pointer; }
|
|
648
|
+
.cms-viewer__side--previous { left: var(--cms-space-3); }
|
|
649
|
+
.cms-viewer__side--next { right: calc(var(--cms-space-3) + 20px); }
|
|
650
|
+
.cms-viewer__side--next svg { transform: scaleX(-1); }
|
|
651
|
+
.cms-viewer__strip { display: flex; justify-content: center; gap: var(--cms-space-2); min-width: 0; padding: var(--cms-space-2) var(--cms-space-3); overflow-x: auto; border-top: 1px solid #2a2f38; }
|
|
652
|
+
.cms-viewer__dots { display: none; position: absolute; left: 0; right: 0; bottom: var(--cms-space-2); z-index: 2; justify-content: center; gap: 6px; }
|
|
653
|
+
.cms-viewer__dots i { width: 7px; height: 7px; border-radius: 50%; background: #6c7482; }
|
|
654
|
+
.cms-viewer__dots i.is-current { background: #f4f5f7; }
|
|
655
|
+
.cms-viewer__bar { display: flex; align-items: center; justify-content: safe center; gap: var(--cms-space-1); min-height: 48px; padding: 0 var(--cms-space-2); overflow-x: auto; border-top: 1px solid #2a2f38; color: #d6dae1; white-space: nowrap; }
|
|
656
|
+
@media (max-width: 1199.98px) {
|
|
657
|
+
.cms-viewer__icon, .cms-viewer__button { min-height: var(--cms-touch-target-min); min-width: var(--cms-touch-target-min); }
|
|
658
|
+
}
|
|
659
|
+
@media (max-width: 599.98px) {
|
|
660
|
+
.cms-viewer__top { padding: 0 var(--cms-space-1); gap: var(--cms-space-1); }
|
|
661
|
+
.cms-viewer__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
|
|
662
|
+
.cms-viewer__position, .cms-viewer__actions, .cms-viewer__wide, .cms-viewer__thumbnails, .cms-viewer__side, .cms-viewer__strip { display: none; }
|
|
663
|
+
.cms-viewer__more { display: inline-flex; }
|
|
664
|
+
.cms-viewer__dots { display: flex; }
|
|
665
|
+
.cms-viewer__button--edit { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); padding: 0; }
|
|
666
|
+
.cms-viewer.is-editing .cms-viewer__button--edit { width: auto; padding: 0 var(--cms-space-3); }
|
|
667
|
+
.cms-viewer__status { max-width: 92px; white-space: normal; font-size: var(--cms-font-size-label); line-height: 1.15; }
|
|
668
|
+
}
|
|
669
|
+
@media (prefers-reduced-motion: reduce) { .cms-viewer * { transition: none; animation: none; } }
|
|
670
|
+
|
|
479
671
|
/*
|
|
480
672
|
* The layout's widths, from design-tokens: phone below breakpoint-tablet (600px), tablet from it, desktop from
|
|
481
673
|
* breakpoint-desktop (1200px). A custom property cannot be read in a media query, so the numbers are written here and
|
|
@@ -489,7 +681,7 @@
|
|
|
489
681
|
.cms-shell__item { justify-content: center; min-height: var(--cms-touch-target-min); }
|
|
490
682
|
.cms-shell__top { gap: var(--cms-space-3); padding: 0 var(--cms-space-4); }
|
|
491
683
|
.cms-shell__search { min-width: 0; }
|
|
492
|
-
.cms-
|
|
684
|
+
.cms-chip, .cms-tab, .cms-menu__item, .cms-list__row, .cms-panes__back, .cms-server-switch { min-height: var(--cms-touch-target-min); }
|
|
493
685
|
.cms-icon-button { min-width: var(--cms-touch-target-min); min-height: var(--cms-touch-target-min); }
|
|
494
686
|
.cms-search { height: var(--cms-touch-target-min); }
|
|
495
687
|
.cms-search__input { align-self: stretch; }
|
|
@@ -498,7 +690,8 @@
|
|
|
498
690
|
.cms-call-bar { flex-wrap: wrap; }
|
|
499
691
|
.cms-call-bar__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
|
|
500
692
|
.cms-chip { height: auto; }
|
|
501
|
-
.cms-panes--two, .cms-panes--three { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
|
|
693
|
+
.cms-panes--two, .cms-panes--three, .cms-panes--sized.cms-panes--two, .cms-panes--sized.cms-panes--three { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
|
|
694
|
+
.cms-panes__splitter { display: none; }
|
|
502
695
|
.cms-panes__pane { display: none; }
|
|
503
696
|
.cms-panes__pane[data-offset='0'],
|
|
504
697
|
.cms-panes__pane[data-offset='1'],
|
|
@@ -522,11 +715,86 @@
|
|
|
522
715
|
.cms-shell__items > li { flex: 1; }
|
|
523
716
|
.cms-shell__item { height: var(--cms-tabbar-height); }
|
|
524
717
|
.cms-shell__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
|
|
525
|
-
.cms-panes--two, .cms-panes--three { grid-template-columns: minmax(0, 1fr); }
|
|
718
|
+
.cms-panes--two, .cms-panes--three, .cms-panes--sized.cms-panes--two, .cms-panes--sized.cms-panes--three { grid-template-columns: minmax(0, 1fr); }
|
|
526
719
|
.cms-panes__pane[data-offset='1'],
|
|
527
720
|
.cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: none; }
|
|
528
721
|
.cms-panes:not([data-active='0']) .cms-panes__back { display: flex; }
|
|
529
722
|
.cms-signin { grid-template-columns: minmax(0, 1fr); }
|
|
530
723
|
.cms-signin__brand { display: none; }
|
|
531
724
|
.cms-signin__form { padding: var(--cms-space-6) var(--cms-space-4); }
|
|
725
|
+
/* One header: while a screen shell is drawn, the shell's own top bar gives way to the screen's bar, which carries the
|
|
726
|
+
host's globals (the account, the search). */
|
|
727
|
+
.cms-shell:has(.cms-screen) { grid-template-rows: 0 minmax(0, 1fr) calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px)); }
|
|
728
|
+
.cms-shell:has(.cms-screen) .cms-shell__top { overflow: hidden; border-bottom: 0; }
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/* File picker: a dialog of fixed height whose list scrolls; on a phone the whole screen, its foot kept at the bottom. */
|
|
732
|
+
.cms-modal.cms-file-picker { width: min(640px, 100%); height: min(560px, calc(100vh - 32px)); }
|
|
733
|
+
.cms-file-picker .cms-modal__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--cms-space-2); min-height: 0; overflow: hidden; }
|
|
734
|
+
.cms-file-picker__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); }
|
|
735
|
+
.cms-file-picker__space { flex: none; }
|
|
736
|
+
.cms-file-picker__path { display: flex; flex: 1 1 auto; align-items: center; gap: var(--cms-space-1); min-width: 0; }
|
|
737
|
+
.cms-file-picker__path ol { display: flex; gap: var(--cms-space-1); min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
|
|
738
|
+
.cms-file-picker__path li { display: flex; gap: var(--cms-space-1); min-width: 0; }
|
|
739
|
+
.cms-file-picker__path li + li::before { content: '/'; color: var(--cms-text-muted); }
|
|
740
|
+
.cms-file-picker__crumb { min-width: 0; padding: 0; overflow: hidden; border: 0; background: none; color: var(--cms-accent); font: inherit; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
|
|
741
|
+
.cms-file-picker__crumb[aria-current='location'] { color: var(--cms-text); cursor: default; }
|
|
742
|
+
.cms-file-picker__chip { flex: none; padding: var(--cms-space-1) var(--cms-space-2); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-md); background: var(--cms-surface-muted); color: var(--cms-text); font: inherit; cursor: pointer; }
|
|
743
|
+
.cms-file-picker__chosen { display: flex; flex-direction: column; gap: var(--cms-space-2); max-height: 40%; padding: var(--cms-space-2); overflow: auto; border: 1px solid var(--cms-border-light); border-radius: var(--cms-radius-md); }
|
|
744
|
+
.cms-file-picker__chosen ul { margin: 0; padding: 0; list-style: none; }
|
|
745
|
+
.cms-file-picker__chosen li { display: flex; align-items: center; gap: var(--cms-space-2); }
|
|
746
|
+
.cms-file-picker__chosen .cms-button { align-self: flex-start; }
|
|
747
|
+
.cms-file-picker__list { flex: 1 1 auto; min-height: 0; overflow: auto; border: 1px solid var(--cms-border-light); border-radius: var(--cms-radius-md); }
|
|
748
|
+
.cms-file-picker__entries:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: -2px; }
|
|
749
|
+
.cms-file-picker__entry { display: flex; align-items: center; gap: var(--cms-space-2); min-height: 40px; padding: 0 var(--cms-space-3); border-bottom: 1px solid var(--cms-border-light); cursor: pointer; }
|
|
750
|
+
.cms-file-picker__entry.is-active { background: var(--cms-surface-hover); }
|
|
751
|
+
.cms-file-picker__entry.is-ticked { box-shadow: inset 3px 0 0 var(--cms-accent); }
|
|
752
|
+
.cms-file-picker__entry.is-disabled { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
753
|
+
.cms-file-picker__tick { display: inline-flex; flex: none; width: 16px; color: var(--cms-accent); }
|
|
754
|
+
.cms-file-picker__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
755
|
+
.cms-file-picker__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: var(--cms-space-1) 0; }
|
|
756
|
+
.cms-file-picker__reason { color: var(--cms-text-muted); font-size: 0.875em; }
|
|
757
|
+
.cms-file-picker__size { flex: none; color: var(--cms-text-secondary); font-size: 0.875em; }
|
|
758
|
+
.cms-file-picker__paging { padding: var(--cms-space-2) var(--cms-space-3); }
|
|
759
|
+
.cms-file-picker__foot { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cms-space-2); }
|
|
760
|
+
.cms-file-picker__summary { display: flex; flex-direction: column; color: var(--cms-text-secondary); font-size: 0.875em; }
|
|
761
|
+
.cms-file-picker__summary .is-over { color: var(--cms-danger); }
|
|
762
|
+
.cms-file-picker__actions { display: flex; gap: var(--cms-space-2); margin-left: auto; }
|
|
763
|
+
@media (max-width: 599.98px) {
|
|
764
|
+
.cms-modal-scrim:has(.cms-file-picker) { padding: 0; }
|
|
765
|
+
.cms-modal.cms-file-picker { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
|
|
766
|
+
.cms-file-picker__entry, .cms-file-picker__crumb, .cms-file-picker__chip, .cms-file-picker__space .cms-select { min-height: var(--cms-touch-target-min); }
|
|
767
|
+
.cms-file-picker__actions { width: 100%; }
|
|
768
|
+
.cms-file-picker__actions .cms-button { flex: 1 1 0; }
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/* The row's height is pane-toolbar-height's definition, written out until the token file that defines it is released
|
|
772
|
+
(design-tokens, after both kits implement the entry); then it reads the token. */
|
|
773
|
+
/* The one row of actions at the top of a pane (contract `pane-toolbar`): one height in every pane so the rows line up,
|
|
774
|
+
one line that never wraps, the actions at the start and the status at the end. Labels hide all at once, then actions
|
|
775
|
+
go behind More; the row is fitted by the component to its own width. */
|
|
776
|
+
.cms-pane-toolbar { position: relative; display: flex; align-items: center; column-gap: var(--cms-space-1); height: calc(var(--cms-row-height) + 2 * var(--cms-space-2)); min-width: 0; overflow: hidden; white-space: nowrap; }
|
|
777
|
+
.cms-pane-toolbar__leading, .cms-pane-toolbar__group, .cms-pane-toolbar__group-wrap { display: flex; flex: none; align-items: center; column-gap: var(--cms-space-1); }
|
|
778
|
+
.cms-pane-toolbar__group[hidden] { display: none; }
|
|
779
|
+
.cms-pane-toolbar__separator { flex: none; width: 1px; height: calc(calc(var(--cms-row-height) + 2 * var(--cms-space-2)) - 2 * var(--cms-space-3)); margin: 0 var(--cms-space-1); background: var(--cms-border); }
|
|
780
|
+
.cms-pane-toolbar__action { position: relative; display: inline-flex; flex: none; align-items: center; gap: var(--cms-space-2); height: var(--cms-row-height, 36px); padding: 0 var(--cms-space-3); border: 1px solid transparent; border-radius: var(--cms-radius-control); background: none; color: var(--cms-text); font: inherit; cursor: pointer; }
|
|
781
|
+
.cms-pane-toolbar__action:hover:not([aria-disabled='true']) { background: var(--cms-surface-hover); }
|
|
782
|
+
.cms-pane-toolbar__action:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
783
|
+
.cms-pane-toolbar__action--bare { justify-content: center; width: var(--cms-row-height, 36px); padding: 0; }
|
|
784
|
+
.cms-pane-toolbar__action[hidden] { display: none; }
|
|
785
|
+
.cms-pane-toolbar__action[aria-disabled='true'] { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
786
|
+
.cms-pane-toolbar__action.is-danger { color: var(--cms-danger-text); }
|
|
787
|
+
.cms-pane-toolbar__more { flex: none; }
|
|
788
|
+
.cms-pane-toolbar__status { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: end; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
789
|
+
/* A label hidden: its tooltip on hover and on keyboard focus, never the action's only name. */
|
|
790
|
+
.cms-pane-toolbar__tip { position: absolute; top: calc(100% + var(--cms-space-1)); left: 50%; z-index: 20; display: none; padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-sm); background: var(--cms-text); color: var(--cms-bg-surface); font-size: var(--cms-font-size-meta); transform: translateX(-50%); pointer-events: none; }
|
|
791
|
+
.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip, .cms-pane-toolbar__action:focus-visible > .cms-pane-toolbar__tip, .cms-pane-toolbar__action[data-reason-shown] > .cms-pane-toolbar__tip { display: block; }
|
|
792
|
+
/* The row's tooltips overflow the row: the row clips only its own line, so the tooltip is drawn by a row that lets it. */
|
|
793
|
+
.cms-pane-toolbar:has(.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip), .cms-pane-toolbar:has(.cms-pane-toolbar__action:focus-visible > .cms-pane-toolbar__tip), .cms-pane-toolbar:has(.cms-pane-toolbar__action[data-reason-shown] > .cms-pane-toolbar__tip) { overflow: visible; }
|
|
794
|
+
.cms-pane-toolbar__measure { position: absolute; top: 0; left: 0; display: flex; visibility: hidden; pointer-events: none; }
|
|
795
|
+
.cms-pane-toolbar__measure > span, .cms-pane-toolbar__measure > div { flex: none; }
|
|
796
|
+
/* At tablet and phone widths each action is at least a touch target, in the same row. */
|
|
797
|
+
@media (max-width: 1199.98px) {
|
|
798
|
+
.cms-pane-toolbar__action { min-height: var(--cms-touch-target-min, 44px); }
|
|
799
|
+
.cms-pane-toolbar__action--bare, .cms-pane-toolbar__more { min-width: var(--cms-touch-target-min, 44px); min-height: var(--cms-touch-target-min, 44px); }
|
|
532
800
|
}
|
|
@@ -108,6 +108,11 @@
|
|
|
108
108
|
--cms-row-height: 36px;
|
|
109
109
|
--cms-row-height-sm: 28px;
|
|
110
110
|
--cms-row-height-lg: 48px;
|
|
111
|
+
--cms-list-row-height: 40px;
|
|
112
|
+
--cms-list-row-height-two-line: 52px;
|
|
113
|
+
--cms-list-row-height-phone: 48px;
|
|
114
|
+
--cms-list-row-height-phone-two-line: 60px;
|
|
115
|
+
--cms-list-row-height-three-line: 84px;
|
|
111
116
|
--cms-row-selected: #eef2f7;
|
|
112
117
|
--cms-border-input: #8b929c;
|
|
113
118
|
--cms-success-strong: #15803d;
|
|
@@ -162,7 +167,20 @@
|
|
|
162
167
|
--cms-rail-width-compact: 64px;
|
|
163
168
|
--cms-tabbar-height: 56px;
|
|
164
169
|
--cms-touch-target-min: 44px;
|
|
170
|
+
--cms-control-height-sm: 32px;
|
|
171
|
+
--cms-control-height-md: 40px;
|
|
172
|
+
--cms-control-height-lg: 44px;
|
|
165
173
|
--cms-topbar-height: 64px;
|
|
174
|
+
--cms-pane-toolbar-height: calc(var(--cms-row-height) + 2 * var(--cms-space-2));
|
|
175
|
+
--cms-pane-header-height: calc(var(--cms-row-height) + 2 * var(--cms-space-3));
|
|
176
|
+
--cms-spinner-color: var(--cms-accent-text);
|
|
177
|
+
--cms-spinner-track: var(--cms-border);
|
|
178
|
+
--cms-spinner-size-inline: 16px;
|
|
179
|
+
--cms-spinner-size-block: 24px;
|
|
180
|
+
--cms-spinner-size-page: 32px;
|
|
181
|
+
--cms-spinner-stroke: 2px;
|
|
182
|
+
--cms-spinner-duration: 800ms;
|
|
183
|
+
--cms-state-delay: 300ms;
|
|
166
184
|
}
|
|
167
185
|
|
|
168
186
|
:root[data-theme='dark'] {
|
|
@@ -236,3 +254,9 @@
|
|
|
236
254
|
--cms-avatar-6-bg: #374151;
|
|
237
255
|
--cms-avatar-6-fg: #e5e7eb;
|
|
238
256
|
}
|
|
257
|
+
|
|
258
|
+
@media (pointer: coarse) {
|
|
259
|
+
:root {
|
|
260
|
+
--cms-control-height-md: 44px;
|
|
261
|
+
}
|
|
262
|
+
}
|