@coolms/ui-react 0.1.0-alpha.4 → 0.1.0-alpha.42
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 +379 -4
- package/design-tokens.lock.json +14 -6
- package/dist/components/Button.d.ts +6 -3
- package/dist/components/Call.d.ts +3 -1
- package/dist/components/Collections.d.ts +27 -7
- package/dist/components/Column.d.ts +21 -0
- package/dist/components/Dialogs.d.ts +6 -2
- package/dist/components/Fields.d.ts +59 -4
- package/dist/components/FilePicker.d.ts +91 -0
- package/dist/components/FileViewer.d.ts +106 -0
- package/dist/components/FilterMenu.d.ts +51 -0
- package/dist/components/Icon.d.ts +18 -1
- package/dist/components/ListHead.d.ts +15 -0
- package/dist/components/Notification.d.ts +38 -0
- package/dist/components/PaneToolbar.d.ts +83 -0
- package/dist/components/ScreenShell.d.ts +110 -0
- package/dist/components/SectionHeader.d.ts +95 -0
- package/dist/components/SignIn.d.ts +1 -1
- package/dist/components/Splitter.d.ts +38 -0
- package/dist/components/State.d.ts +38 -0
- package/dist/components/Status.d.ts +7 -2
- package/dist/components/Structure.d.ts +34 -4
- package/dist/components/Workspace.d.ts +84 -20
- package/dist/components/pull.d.ts +21 -0
- package/dist/components/tipDismissal.d.ts +14 -0
- package/dist/index.d.ts +27 -15
- package/dist/index.js +2531 -747
- package/kit.contract.json +15 -5
- package/package.json +10 -5
- package/src/kit.css +406 -45
- package/src/tokens/coolms-tokens.css +41 -0
package/src/kit.css
CHANGED
|
@@ -28,10 +28,11 @@
|
|
|
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
|
-
border-radius: var(--cms-radius);
|
|
35
|
+
border-radius: var(--cms-radius-control);
|
|
35
36
|
background: var(--cms-btn-bg);
|
|
36
37
|
color: var(--cms-btn-text);
|
|
37
38
|
font: inherit;
|
|
@@ -42,6 +43,8 @@
|
|
|
42
43
|
.cms-button--primary:hover:not(:disabled) { background: var(--cms-accent-hover); border-color: var(--cms-accent-hover); }
|
|
43
44
|
.cms-button--danger { background: var(--cms-danger); border-color: var(--cms-danger); color: var(--cms-text-inverse); }
|
|
44
45
|
.cms-button--danger:hover:not(:disabled) { background: var(--cms-danger-text); border-color: var(--cms-danger-text); }
|
|
46
|
+
.cms-button--quiet { background: transparent; border-color: transparent; }
|
|
47
|
+
.cms-button--quiet:hover:not(:disabled) { background: var(--cms-btn-hover-bg); border-color: transparent; }
|
|
45
48
|
.cms-button:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
46
49
|
.cms-button.is-busy { opacity: 0.8; cursor: progress; }
|
|
47
50
|
.cms-button.is-locked { border-style: dashed; }
|
|
@@ -53,18 +56,18 @@
|
|
|
53
56
|
width: var(--cms-row-height-sm);
|
|
54
57
|
height: var(--cms-row-height-sm);
|
|
55
58
|
border: 0;
|
|
56
|
-
border-radius: var(--cms-radius-
|
|
59
|
+
border-radius: var(--cms-radius-control);
|
|
57
60
|
background: transparent;
|
|
58
61
|
color: var(--cms-text-muted);
|
|
59
62
|
cursor: pointer;
|
|
60
63
|
}
|
|
61
|
-
.cms-icon-button:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
62
64
|
|
|
63
65
|
/* Fields */
|
|
64
66
|
.cms-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
|
|
65
67
|
.cms-field__label { color: var(--cms-text); font-weight: 600; }
|
|
66
68
|
.cms-input {
|
|
67
|
-
|
|
69
|
+
/* A text field's and a select's height, as a button's. */
|
|
70
|
+
min-height: var(--cms-control-height-md);
|
|
68
71
|
padding: 0 10px;
|
|
69
72
|
border: 1px solid var(--cms-border-control);
|
|
70
73
|
border-radius: var(--cms-radius);
|
|
@@ -73,6 +76,8 @@
|
|
|
73
76
|
font: inherit;
|
|
74
77
|
}
|
|
75
78
|
.cms-input:focus { border-color: var(--cms-accent); }
|
|
79
|
+
.cms-textarea { padding: 8px 10px; line-height: 1.5; resize: vertical; }
|
|
80
|
+
.cms-input[type="date"], .cms-input[type="time"], .cms-input[type="datetime-local"] { color-scheme: inherit; }
|
|
76
81
|
.cms-input:disabled { background: var(--cms-bg-muted); color: var(--cms-text-muted); cursor: not-allowed; }
|
|
77
82
|
.cms-input:read-only:not(select) { background: var(--cms-surface-muted); }
|
|
78
83
|
.cms-field.is-invalid .cms-input { border-color: var(--cms-danger); }
|
|
@@ -168,10 +173,33 @@
|
|
|
168
173
|
/* Loading, empty, error */
|
|
169
174
|
.cms-loading { display: inline-flex; align-items: center; gap: 8px; color: var(--cms-text-muted); }
|
|
170
175
|
.cms-loading--block { display: flex; justify-content: center; padding: 32px 16px; }
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
.cms-
|
|
174
|
-
|
|
176
|
+
/* The state component: one look for every state instead of content. Each token carries its own value as a fallback
|
|
177
|
+
until the kit pins the design tokens that define it. */
|
|
178
|
+
.cms-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--cms-state-gap); color: var(--cms-state-description-color); text-align: center; transition: opacity 120ms; }
|
|
179
|
+
/* A pane or a page: fills the free area it stands in and is centred both ways there. */
|
|
180
|
+
.cms-state--page { flex: 1 1 auto; box-sizing: border-box; min-height: 100%; padding: var(--cms-state-page-padding-block) var(--cms-state-page-padding-inline); }
|
|
181
|
+
/* A section inside a card: one muted line, aligned with the card's text; an action is a link beside it. */
|
|
182
|
+
.cms-state--block { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: var(--cms-space-2); text-align: start; color: var(--cms-state-block-color); font-size: var(--cms-state-block-size); }
|
|
183
|
+
.cms-state--block[data-kind='error'] { color: var(--cms-danger-text); }
|
|
184
|
+
.cms-state--block .cms-state__action { min-height: 0; padding: 0; color: var(--cms-accent-text); text-decoration: underline; }
|
|
185
|
+
.cms-state--inline { display: inline-flex; flex-direction: row; gap: var(--cms-space-2); text-align: start; }
|
|
186
|
+
.cms-state__icon { display: inline-flex; color: var(--cms-state-icon-color); }
|
|
187
|
+
.cms-state--page .cms-state__icon svg { width: var(--cms-state-icon-size-page); height: var(--cms-state-icon-size-page); }
|
|
188
|
+
.cms-state.is-waiting > :not(.cms-state__text) { visibility: hidden; }
|
|
189
|
+
.cms-state.is-waiting > .cms-state__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
190
|
+
.cms-state__text { display: flex; flex-direction: column; gap: var(--cms-state-text-gap); }
|
|
191
|
+
.cms-state--inline .cms-state__text, .cms-state--block .cms-state__text { flex-direction: row; gap: var(--cms-space-2); }
|
|
192
|
+
.cms-state__title { color: var(--cms-state-title-color); font-size: var(--cms-state-title-size); font-weight: var(--cms-state-title-weight); }
|
|
193
|
+
.cms-state--inline .cms-state__title, .cms-state--block .cms-state__title { color: inherit; font-size: inherit; font-weight: inherit; }
|
|
194
|
+
.cms-state__description { max-width: var(--cms-state-measure); color: var(--cms-state-description-color); font-size: var(--cms-state-description-size); }
|
|
195
|
+
.cms-state--error > svg { color: var(--cms-danger-text); }
|
|
196
|
+
.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; }
|
|
197
|
+
.cms-state--page .cms-state__spinner { width: var(--cms-spinner-size-page, 32px); height: var(--cms-spinner-size-page, 32px); }
|
|
198
|
+
.cms-state--inline .cms-state__spinner, .cms-state--block .cms-state__spinner { width: var(--cms-spinner-size-inline, 16px); height: var(--cms-spinner-size-inline, 16px); align-self: center; }
|
|
199
|
+
.cms-state__track { stroke: var(--cms-spinner-track, var(--cms-border)); stroke-width: var(--cms-spinner-stroke, 2px); vector-effect: non-scaling-stroke; }
|
|
200
|
+
.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; }
|
|
201
|
+
@keyframes cms-state-pulse { 50% { opacity: 0.35; } }
|
|
202
|
+
@media (prefers-reduced-motion: reduce) { .cms-state__spinner { animation: cms-state-pulse calc(2 * var(--cms-spinner-duration, 800ms)) ease-in-out infinite; } }
|
|
175
203
|
.cms-error-banner {
|
|
176
204
|
display: flex;
|
|
177
205
|
align-items: center;
|
|
@@ -186,6 +214,45 @@
|
|
|
186
214
|
|
|
187
215
|
/* Page header */
|
|
188
216
|
.cms-page-header { padding: 16px 0 12px; border-bottom: 1px solid var(--cms-border-light); margin-bottom: 16px; }
|
|
217
|
+
/* section-header: row 1 the title, the primary and More; row 2 the context; no divider lines. */
|
|
218
|
+
.cms-section-header { display: flex; flex-direction: column; background: var(--cms-surface); }
|
|
219
|
+
.cms-section-header--full { padding-inline: var(--cms-space-5); }
|
|
220
|
+
.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; }
|
|
221
|
+
.cms-section-header__row > .cms-icon { flex: none; color: var(--cms-text-secondary); }
|
|
222
|
+
.cms-section-header__row { position: relative; }
|
|
223
|
+
.cms-section-header__title { flex: 0 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); }
|
|
224
|
+
.cms-section-header__description { flex: none; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
225
|
+
.cms-section-header__meta { display: inline-flex; flex: none; align-items: center; min-width: 0; }
|
|
226
|
+
/* The last step: the chips that are the only place their fact appears are cut, the last first, each its whole text kept. */
|
|
227
|
+
.cms-section-header__row--chips-cut .cms-section-header__meta { overflow: hidden; text-overflow: ellipsis; }
|
|
228
|
+
.cms-section-header__actions { display: flex; align-items: center; gap: var(--cms-space-1); flex: none; margin-inline-start: auto; }
|
|
229
|
+
.cms-section-header__secondary { gap: var(--cms-space-1); }
|
|
230
|
+
.cms-section-header__secondary--bare, .cms-section-header__primary--bare { padding-inline: var(--cms-space-2); }
|
|
231
|
+
/* Its contents fade, not the button: the reason drawn inside it keeps its full contrast. */
|
|
232
|
+
.cms-section-header__secondary[aria-disabled="true"] { cursor: not-allowed; }
|
|
233
|
+
.cms-section-header__secondary[aria-disabled="true"] > :not(.cms-section-header__tip) { opacity: .55; }
|
|
234
|
+
/* The parts measured out of sight, in a box of no size: each keeps its own width, and the page none of it. */
|
|
235
|
+
.cms-section-header__measure { position: absolute; top: 0; left: 0; display: flex; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
|
|
236
|
+
.cms-section-header__measure > span { flex: none; display: inline-flex; }
|
|
237
|
+
/* On a touch screen (a coarse pointer) an action shown as its icon is at least a touch target; a desktop browser in a
|
|
238
|
+
narrow window keeps desktop-size buttons. */
|
|
239
|
+
@media (pointer: coarse) {
|
|
240
|
+
.cms-section-header__secondary--bare, .cms-section-header__primary--bare, .cms-section-header__more { min-width: var(--cms-touch-target-min, 44px); min-height: var(--cms-touch-target-min, 44px); }
|
|
241
|
+
}
|
|
242
|
+
.cms-section-header__primary { display: inline-flex; align-items: center; }
|
|
243
|
+
/* A refused action's reason, drawn under the row at its end (the row is its box, so it never leaves the column, however
|
|
244
|
+
narrow): shown on hover, on keyboard focus and after a press. */
|
|
245
|
+
.cms-section-header__tip { position: absolute; top: calc(100% + var(--cms-space-1)); inset-inline-end: 0; z-index: 20; display: none; width: max-content; max-width: min(18rem, 100%); 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); font-weight: 400; line-height: 1.4; text-align: start; white-space: normal; pointer-events: none; }
|
|
246
|
+
/* Escape hides it, whichever showed it, until the pointer and the focus have left (data-tip-dismissed). */
|
|
247
|
+
.cms-section-header__secondary:not([data-tip-dismissed]):focus-visible > .cms-section-header__tip, .cms-section-header__secondary:not([data-tip-dismissed])[data-reason-shown] > .cms-section-header__tip,
|
|
248
|
+
.cms-section-header__primary > .cms-button:not([data-tip-dismissed]):focus-visible ~ .cms-section-header__tip, .cms-section-header__primary > .cms-button:not([data-tip-dismissed])[data-reason-shown] ~ .cms-section-header__tip { display: block; }
|
|
249
|
+
.cms-section-header__primary .cms-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
|
|
250
|
+
.cms-section-header__primary--split > .cms-button:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
|
|
251
|
+
.cms-section-header__split { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: 1px; padding-inline: var(--cms-space-2); }
|
|
252
|
+
.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-control); background: transparent; color: var(--cms-text-muted); cursor: pointer; }
|
|
253
|
+
.cms-section-header__more:hover { background: var(--cms-btn-hover-bg); }
|
|
254
|
+
.cms-section-header__more:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
255
|
+
.cms-section-header__context { display: flex; align-items: center; min-width: 0; height: var(--cms-pane-header-height); }
|
|
189
256
|
.cms-page-header__back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--cms-accent-text); text-decoration: none; }
|
|
190
257
|
.cms-page-header__back:hover { text-decoration: underline; }
|
|
191
258
|
.cms-page-header__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
|
|
@@ -213,24 +280,75 @@
|
|
|
213
280
|
.cms-tab__count { padding: 0 6px; border-radius: 8px; background: var(--cms-bg-muted); color: var(--cms-text-muted); font-size: 0.8125em; }
|
|
214
281
|
|
|
215
282
|
/* List */
|
|
216
|
-
.cms-list { margin: 0; padding: 0; list-style: none;
|
|
283
|
+
.cms-list { margin: 0; padding: 0; list-style: none; background: var(--cms-surface); }
|
|
217
284
|
.cms-list__row {
|
|
218
285
|
display: flex;
|
|
219
286
|
align-items: center;
|
|
220
|
-
gap:
|
|
287
|
+
gap: var(--cms-space-3);
|
|
221
288
|
min-height: var(--cms-row-height-lg);
|
|
222
|
-
padding:
|
|
289
|
+
padding: var(--cms-space-3) var(--cms-space-4);
|
|
223
290
|
border-bottom: 1px solid var(--cms-border-light);
|
|
224
291
|
color: var(--cms-text);
|
|
225
292
|
cursor: pointer;
|
|
226
293
|
}
|
|
227
294
|
.cms-list__row:last-child { border-bottom: 0; }
|
|
228
|
-
.cms-list__row:hover { background: var(--cms-surface-hover); }
|
|
229
295
|
.cms-list__row.is-selected { background: var(--cms-selected-light); box-shadow: inset 3px 0 0 var(--cms-selected); }
|
|
230
296
|
.cms-list__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
|
|
231
297
|
.cms-list__primary, .cms-list__secondary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
232
298
|
.cms-list__secondary { color: var(--cms-text-muted); font-size: 0.875em; }
|
|
233
299
|
.cms-list__meta { flex: none; color: var(--cms-meta-text); font-size: 0.8125em; }
|
|
300
|
+
/* One anatomy for every row (contract list, row): the title semibold while unread; the meta with a count under it. */
|
|
301
|
+
.cms-list__primary.is-unread { font-weight: var(--cms-font-weight-semibold); }
|
|
302
|
+
.cms-list__end { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: var(--cms-space-1); }
|
|
303
|
+
.cms-list__count { min-width: 18px; height: 18px; font-size: var(--cms-font-size-label-sm); }
|
|
304
|
+
.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); }
|
|
305
|
+
|
|
306
|
+
/* The screen shell (contract screen-shell): one bar, the content scrolling on its own, the primary floating
|
|
307
|
+
at the bottom right above the section bar. */
|
|
308
|
+
.cms-screen { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--cms-surface); }
|
|
309
|
+
.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); }
|
|
310
|
+
/* Back gives way before the title: it takes all of the missing width, down to its icon, and only then is the title cut.
|
|
311
|
+
The weight is large enough that the title's own share rounds to nothing: a share of a hundredth of a pixel would cut it. */
|
|
312
|
+
.cms-screen__leading { display: flex; flex: 0 1000000 auto; align-items: center; max-width: 40%; min-width: var(--cms-touch-target-min); }
|
|
313
|
+
.cms-screen__leading:empty { display: none; }
|
|
314
|
+
/* Back is one row: the strut makes it the full height, so a name with no room for a readable piece wraps under it and is
|
|
315
|
+
not drawn. The name stays in the text, so Back is still named by it. Clipped, not scrolled: a find in the page moves nothing. */
|
|
316
|
+
.cms-screen__back { display: inline-flex; flex-wrap: wrap; align-content: flex-start; align-items: center; overflow: hidden; overflow: clip; 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-control); background: transparent; color: var(--cms-text-muted); font: inherit; text-decoration: none; cursor: pointer; }
|
|
317
|
+
.cms-screen__back::before { content: ""; width: 0; height: 100%; margin-inline-end: calc(-1 * var(--cms-space-1)); }
|
|
318
|
+
.cms-screen__back-name { flex: 1 1 24px; min-width: 24px; max-width: max-content; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
319
|
+
.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; }
|
|
320
|
+
/* The title with the filter's choice: the place's name gives way first, down to 24px of it; with less it is not drawn,
|
|
321
|
+
nor its dot, and the choice has the whole title, cut last. The title is one line: the place and its dot wrap under it
|
|
322
|
+
and are clipped there, so they stay in the text. Their share of the line is theirs up to what they need. */
|
|
323
|
+
.cms-screen__title--filtered { display: flex; flex-wrap: wrap-reverse; align-content: flex-end; height: 1lh; overflow: hidden; overflow: clip; }
|
|
324
|
+
.cms-screen__title-place { display: flex; flex: 1 1 40px; min-width: 0; max-width: max-content; }
|
|
325
|
+
.cms-screen__title-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
326
|
+
.cms-screen__title-dot { flex: none; white-space: pre; }
|
|
327
|
+
.cms-screen__title-choice { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
|
|
328
|
+
/* The place's name and the choice's whole, measured and not drawn: it takes no room and reaches past nothing. */
|
|
329
|
+
.cms-screen__ruler { position: absolute; width: 0; height: 0; overflow: hidden; font-size: var(--cms-font-size-title-md); font-weight: var(--cms-font-weight-semibold); visibility: hidden; }
|
|
330
|
+
.cms-screen__ruler > span { display: inline-block; white-space: pre; }
|
|
331
|
+
.cms-screen__trailing { display: flex; flex: none; align-items: center; gap: var(--cms-space-1); }
|
|
332
|
+
.cms-screen__search { display: flex; flex: 1 1 auto; min-width: 0; }
|
|
333
|
+
.cms-screen__search > * { flex: 1 1 auto; min-width: 0; }
|
|
334
|
+
.cms-screen__icon { width: var(--cms-control-height-md); height: var(--cms-control-height-md); }
|
|
335
|
+
/* More while the filter in it is not the default one; its hover keeps the accent. */
|
|
336
|
+
.cms-icon-button.cms-screen__icon.cms-screen__icon--active { background: var(--cms-accent-light); color: var(--cms-accent-text); }
|
|
337
|
+
.cms-screen__content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
|
|
338
|
+
.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); }
|
|
339
|
+
/* A refused primary stays, greyed as a whole, as the header's does: a wash of the surface over the button and its icon,
|
|
340
|
+
under the reason drawn above it, which keeps its full contrast (an opacity on the button would fade the reason too). */
|
|
341
|
+
.cms-screen__primary[aria-disabled="true"] { cursor: not-allowed; }
|
|
342
|
+
.cms-screen__primary[aria-disabled="true"]::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--cms-surface); opacity: .45; pointer-events: none; }
|
|
343
|
+
/* Its reason, above the button at its end, never wider than the screen: shown on keyboard focus and after a press (on
|
|
344
|
+
hover too, below), until Escape. */
|
|
345
|
+
.cms-screen__tip { position: absolute; bottom: calc(100% + var(--cms-space-2)); inset-inline-end: 0; z-index: 20; display: none; width: max-content; max-width: min(18rem, calc(100vw - 2 * var(--cms-space-4))); 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); font-weight: 400; line-height: 1.4; text-align: start; white-space: normal; pointer-events: none; }
|
|
346
|
+
.cms-screen__primary:not([data-tip-dismissed]):focus-visible > .cms-screen__tip, .cms-screen__primary:not([data-tip-dismissed])[data-reason-shown] > .cms-screen__tip { display: block; }
|
|
347
|
+
/* bar-hidden: the bar steps out of view, collapsed rather than removed, so focus can still reach it
|
|
348
|
+
(and brings it back). */
|
|
349
|
+
.cms-screen[data-bar-hidden] > .cms-screen__bar { height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; overflow: hidden; }
|
|
350
|
+
@media (prefers-reduced-motion: reduce) { .cms-screen__bar { transition: none; animation: none; } }
|
|
351
|
+
.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
352
|
|
|
235
353
|
/* Avatar */
|
|
236
354
|
.cms-avatar {
|
|
@@ -250,6 +368,10 @@
|
|
|
250
368
|
.cms-avatar__presence.is-online { background: var(--cms-success); }
|
|
251
369
|
.cms-avatar__presence.is-away { background: var(--cms-warning); }
|
|
252
370
|
.cms-avatar__presence.is-offline { background: var(--cms-meta-subtle); }
|
|
371
|
+
.cms-avatar__presence.is-connected { background: var(--cms-success); }
|
|
372
|
+
.cms-avatar__presence.is-reconnecting { background: var(--cms-warning); }
|
|
373
|
+
.cms-avatar__presence.is-disconnected { background: var(--cms-text-muted); }
|
|
374
|
+
.cms-avatar--deleted { background: var(--cms-surface-muted); color: var(--cms-text-muted); }
|
|
253
375
|
.cms-avatar--tint-1 { background: var(--cms-avatar-1-bg); color: var(--cms-avatar-1-fg); }
|
|
254
376
|
.cms-avatar--tint-2 { background: var(--cms-avatar-2-bg); color: var(--cms-avatar-2-fg); }
|
|
255
377
|
.cms-avatar--tint-3 { background: var(--cms-avatar-3-bg); color: var(--cms-avatar-3-fg); }
|
|
@@ -271,22 +393,49 @@
|
|
|
271
393
|
}
|
|
272
394
|
.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
395
|
.cms-menu__item:hover, .cms-menu__item:focus { background: var(--cms-hover-bg); outline: none; }
|
|
274
|
-
|
|
396
|
+
/* An item's icon and its words share one line, centred on each other. */
|
|
397
|
+
.cms-menu__label { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
|
|
398
|
+
.cms-menu__label > svg { flex: none; }
|
|
399
|
+
/* A single choice's mark: its place is kept on every choice, so the labels line up. */
|
|
400
|
+
.cms-menu__check { display: inline-flex; flex: none; width: 16px; color: var(--cms-accent-text); }
|
|
401
|
+
/* A group of choices among other items: a line before it, its name over it. */
|
|
402
|
+
.cms-menu__separator { height: 1px; margin: var(--cms-space-1) 0; background: var(--cms-border); }
|
|
403
|
+
.cms-menu__group { padding: var(--cms-space-1) 10px; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
275
404
|
.cms-menu__item.is-danger { color: var(--cms-danger-text); }
|
|
276
405
|
.cms-menu__item.is-refused { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
277
406
|
.cms-menu__refusal { font-size: 0.8125em; }
|
|
278
407
|
|
|
408
|
+
/* One notification: its row (the title, the time, the body in one line until expanded), the chevron beside it, and a
|
|
409
|
+
button action under the text. Unread: the title in weight and a dot. */
|
|
410
|
+
.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); }
|
|
411
|
+
.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; }
|
|
412
|
+
.cms-notification__row:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
413
|
+
.cms-notification__leading { flex: none; display: inline-flex; }
|
|
414
|
+
.cms-notification__text { display: flex; flex: 1; flex-direction: column; gap: var(--cms-space-1); min-width: 0; }
|
|
415
|
+
.cms-notification__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--cms-space-2); }
|
|
416
|
+
.cms-notification__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
417
|
+
.cms-notification.is-unread .cms-notification__title { font-weight: var(--cms-font-weight-semibold); }
|
|
418
|
+
.cms-notification__time { flex: none; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
419
|
+
.cms-notification__body { overflow: hidden; color: var(--cms-text-muted); text-overflow: ellipsis; white-space: nowrap; }
|
|
420
|
+
.cms-notification.is-expanded .cms-notification__body { white-space: pre-wrap; overflow-wrap: break-word; }
|
|
421
|
+
.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); }
|
|
422
|
+
.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-control); background: transparent; color: var(--cms-text-muted); cursor: pointer; }
|
|
423
|
+
.cms-notification__chevron:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
424
|
+
.cms-notification.is-expanded .cms-notification__chevron svg { transform: rotate(180deg); }
|
|
425
|
+
.cms-notification__action { grid-column: 1; justify-self: start; margin: 0 0 var(--cms-space-2) var(--cms-space-2); }
|
|
426
|
+
|
|
279
427
|
/*
|
|
280
428
|
* The Workspace: the shell, its lists, chat, the call and sign-in. Same rule as above: only --cms-* tokens. The chrome
|
|
281
429
|
* (the rail, the incoming call, the sign-in brand side) stays navy in both themes.
|
|
282
430
|
*/
|
|
283
431
|
.cms-icon { flex: none; }
|
|
284
|
-
|
|
432
|
+
.cms-icon--blank { display: inline-block; }
|
|
433
|
+
:where(.cms-shell__item, .cms-filter-menu, .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
434
|
outline: 2px solid var(--cms-focus-ring);
|
|
286
435
|
outline-offset: 2px;
|
|
287
436
|
}
|
|
288
437
|
|
|
289
|
-
.cms-button--chrome { background: var(--cms-button-chrome-bg); border-color: var(--cms-button-chrome-border); color: var(--cms-on-chrome);
|
|
438
|
+
.cms-button--chrome { background: var(--cms-button-chrome-bg); border-color: var(--cms-button-chrome-border); color: var(--cms-on-chrome); font-weight: var(--cms-font-weight-semibold); }
|
|
290
439
|
.cms-button--chrome:hover:not(:disabled) { background: var(--cms-sidebar-hover); border-color: var(--cms-button-chrome-border); }
|
|
291
440
|
|
|
292
441
|
/* Badge, pill */
|
|
@@ -346,7 +495,7 @@
|
|
|
346
495
|
.cms-shell__main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
|
|
347
496
|
.cms-shell__main > :only-child { flex: 1; min-height: 0; }
|
|
348
497
|
|
|
349
|
-
.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-
|
|
498
|
+
.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-control); background: var(--cms-surface); color: var(--cms-text); font: inherit; cursor: pointer; }
|
|
350
499
|
|
|
351
500
|
/* Search */
|
|
352
501
|
.cms-search { display: flex; align-items: center; gap: var(--cms-space-2); height: 40px; padding: 0 var(--cms-space-4); border-radius: var(--cms-radius-pill); background: var(--cms-surface-muted); color: var(--cms-text-muted); }
|
|
@@ -354,27 +503,59 @@
|
|
|
354
503
|
.cms-search__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--cms-text); font: inherit; outline: none; }
|
|
355
504
|
.cms-search__input::placeholder { color: var(--cms-text-muted); }
|
|
356
505
|
|
|
357
|
-
/*
|
|
358
|
-
|
|
359
|
-
.cms-
|
|
360
|
-
.cms-
|
|
361
|
-
.cms-
|
|
506
|
+
/* The filter (contract filter-menu): on the default choice the funnel alone, on any other the choice's name in the
|
|
507
|
+
accent: whole, up to the button's most width, then cut with an ellipsis, so a very long one leaves the list's name room. */
|
|
508
|
+
.cms-filter-menu { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: var(--cms-space-1); box-sizing: border-box; width: var(--cms-control-height-md); height: var(--cms-control-height-md); padding: 0; border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-muted); font: inherit; white-space: nowrap; cursor: pointer; }
|
|
509
|
+
.cms-filter-menu--active { background: var(--cms-accent-light); color: var(--cms-accent-text); }
|
|
510
|
+
.cms-filter-menu--named { width: auto; max-width: 176px; padding: 0 var(--cms-space-2) 0 var(--cms-space-3); }
|
|
511
|
+
.cms-filter-menu__choice { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
512
|
+
|
|
513
|
+
/* A list's second row: the name gives way, the filter keeps its place and its whole width. */
|
|
514
|
+
.cms-list-head { display: flex; align-items: center; gap: var(--cms-space-2); box-sizing: border-box; width: 100%; min-width: 0; height: var(--cms-pane-header-height); min-height: var(--cms-pane-header-height); }
|
|
515
|
+
.cms-list-head__leading { display: inline-flex; flex: none; align-items: center; }
|
|
516
|
+
.cms-list-head__name { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; color: var(--cms-text); font-size: var(--cms-font-size-title-sm); font-weight: var(--cms-font-weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
|
|
362
517
|
|
|
363
518
|
/* Panes */
|
|
364
519
|
.cms-panes { display: grid; height: 100%; min-height: 0; }
|
|
365
520
|
.cms-panes--two { grid-template-columns: 340px 1fr; }
|
|
366
521
|
.cms-panes--three { grid-template-columns: 240px 380px 1fr; }
|
|
367
|
-
.cms-panes__pane { min-width: 0; min-height: 0; overflow: auto; border-right: 1px solid var(--cms-border); background: var(--cms-surface); }
|
|
522
|
+
.cms-panes__pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; border-right: 1px solid var(--cms-border); background: var(--cms-surface); }
|
|
523
|
+
/* A column (contract split-panes, grid: each pane has exactly one scroll region): its head stays at the top and its body
|
|
524
|
+
scrolls on its own, filling the rest of the pane, the screen shell or any box of a definite height. */
|
|
525
|
+
.cms-column { display: flex; flex-direction: column; flex: 1 1 auto; height: 100%; min-width: 0; min-height: 0; }
|
|
526
|
+
.cms-column__head { flex: none; }
|
|
527
|
+
.cms-column__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
|
528
|
+
/* In a screen shell (a phone) the shell's bar is the head that stays and its content the one scroll region, which pull
|
|
529
|
+
to refresh reads: a column there grows with its list and does not scroll on its own. */
|
|
530
|
+
.cms-screen__content .cms-column { flex: none; height: auto; }
|
|
531
|
+
.cms-screen__content .cms-column__body { overflow-y: visible; }
|
|
532
|
+
.cms-panes--sized { position: relative; }
|
|
533
|
+
.cms-panes--sized.cms-panes--two { grid-template-columns: var(--split-pane-0) minmax(0, 1fr); }
|
|
534
|
+
.cms-panes--sized.cms-panes--three { grid-template-columns: var(--split-pane-0) var(--split-pane-1) minmax(0, 1fr); }
|
|
535
|
+
/* The splitter (contract `splitter`): an 8px strip between two columns that draws nothing at rest; on hover and while
|
|
536
|
+
dragged, the accent line down its middle; with keyboard focus, the same line in the focus ring's colour. */
|
|
537
|
+
.cms-splitter { position: relative; z-index: 2; flex: none; align-self: stretch; width: 8px; margin-inline: -4px; cursor: col-resize; touch-action: none; }
|
|
538
|
+
.cms-splitter:hover, .cms-splitter.is-dragging { background: linear-gradient(to right, transparent 3px, var(--cms-accent) 3px, var(--cms-accent) 5px, transparent 5px); }
|
|
539
|
+
/* Keyboard focus is the same one line, in the focus ring's colour: a ring around the 8px strip would draw two. */
|
|
540
|
+
.cms-splitter:focus-visible { outline: none; background: linear-gradient(to right, transparent 3px, var(--cms-focus-ring) 3px, var(--cms-focus-ring) 5px, transparent 5px); }
|
|
541
|
+
:root:has(.cms-splitter.is-dragging) { cursor: col-resize; user-select: none; }
|
|
542
|
+
.cms-panes__splitter { position: absolute; top: 0; bottom: 0; left: calc(var(--split-at) - 4px); margin: 0; }
|
|
543
|
+
.cms-panes.is-resizing { cursor: col-resize; user-select: none; }
|
|
368
544
|
.cms-panes__pane:first-child { background: var(--cms-bg); }
|
|
369
545
|
.cms-panes__pane:last-child { border-right: 0; }
|
|
370
|
-
.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; }
|
|
546
|
+
.cms-panes__back { display: none; flex: 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; }
|
|
371
547
|
|
|
372
548
|
/* Mail row */
|
|
373
549
|
.cms-mail-row {
|
|
374
550
|
display: flex;
|
|
551
|
+
align-items: flex-start;
|
|
375
552
|
gap: var(--cms-space-3);
|
|
553
|
+
box-sizing: border-box;
|
|
376
554
|
width: 100%;
|
|
377
|
-
|
|
555
|
+
/* Three lines at every width (the sender and the time; the subject; the preview), never shorter than the three-line
|
|
556
|
+
token and taller as the text grows. */
|
|
557
|
+
min-height: var(--cms-list-row-height-three-line);
|
|
558
|
+
padding: 10px var(--cms-space-4);
|
|
378
559
|
border: 0;
|
|
379
560
|
border-bottom: 1px solid var(--cms-border-light);
|
|
380
561
|
background: var(--cms-surface);
|
|
@@ -383,15 +564,46 @@
|
|
|
383
564
|
text-align: left;
|
|
384
565
|
cursor: pointer;
|
|
385
566
|
}
|
|
386
|
-
.cms-mail-
|
|
567
|
+
.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; }
|
|
568
|
+
.cms-mail-row__lead { position: relative; flex: none; width: 40px; height: 40px; }
|
|
569
|
+
.cms-mail-row__check {
|
|
570
|
+
appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 50%; opacity: 0; cursor: pointer;
|
|
571
|
+
background: var(--cms-surface) center / 18px 18px no-repeat; box-shadow: inset 0 0 0 2px var(--cms-border);
|
|
572
|
+
}
|
|
573
|
+
.cms-mail-row__check:checked {
|
|
574
|
+
background-color: var(--cms-accent); box-shadow: none;
|
|
575
|
+
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");
|
|
576
|
+
}
|
|
577
|
+
.cms-mail-row__check[aria-disabled="true"] { cursor: progress; }
|
|
578
|
+
/* The checkbox takes the avatar's place while something is selected, on keyboard focus, and under a fine pointer's
|
|
579
|
+
hover (below): a tap leaves neither, so with nothing selected a touch screen shows every avatar. */
|
|
580
|
+
.cms-mail-row:is(.is-selecting, .is-checked, :has(:focus-visible)) .cms-mail-row__check { opacity: 1; }
|
|
581
|
+
.cms-mail-row:is(.is-selecting, .is-checked, :has(:focus-visible)) .cms-mail-row__lead > .cms-avatar { visibility: hidden; }
|
|
582
|
+
/* Hover, only where hover exists: a touch screen keeps a tapped control's hover after the tap (a row's tint, an
|
|
583
|
+
icon button's, a filter's, a toolbar action's tooltip). */
|
|
584
|
+
@media (hover: hover) and (pointer: fine) {
|
|
585
|
+
.cms-list__row:not(.is-selected):hover { background: var(--cms-surface-hover); }
|
|
586
|
+
.cms-notification__row:hover { background: var(--cms-hover-bg); }
|
|
587
|
+
.cms-mail-row:hover { background: var(--cms-surface-muted); }
|
|
588
|
+
.cms-mail-row:hover .cms-mail-row__check { opacity: 1; }
|
|
589
|
+
.cms-mail-row:hover .cms-mail-row__lead > .cms-avatar { visibility: hidden; }
|
|
590
|
+
.cms-icon-button:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
591
|
+
.cms-screen__back:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
592
|
+
.cms-filter-menu:not(.cms-filter-menu--active):hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
593
|
+
.cms-pane-toolbar__action:hover:not([aria-disabled='true']) { background: var(--cms-btn-hover-bg); }
|
|
594
|
+
.cms-pane-toolbar__more:hover { background: var(--cms-btn-hover-bg); }
|
|
595
|
+
.cms-pane-toolbar__action:not([data-tip-dismissed]):hover > .cms-pane-toolbar__tip { display: block; }
|
|
596
|
+
.cms-screen__primary:not([data-tip-dismissed]):hover > .cms-screen__tip, .cms-section-header__secondary:not([data-tip-dismissed]):hover > .cms-section-header__tip, .cms-section-header__primary > .cms-button:not([data-tip-dismissed]):hover ~ .cms-section-header__tip { display: block; }
|
|
597
|
+
.cms-pane-toolbar:has(.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip) { overflow: visible; }
|
|
598
|
+
}
|
|
387
599
|
.cms-mail-row.is-selected { background: var(--cms-row-selected); }
|
|
388
|
-
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
|
|
600
|
+
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.5; }
|
|
389
601
|
.cms-mail-row__line { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
390
|
-
.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
|
|
602
|
+
.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); }
|
|
391
603
|
.cms-mail-row__time { color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); white-space: nowrap; }
|
|
392
|
-
.cms-mail-row__subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); }
|
|
393
|
-
.cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); }
|
|
394
|
-
.cms-mail-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
|
|
604
|
+
.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); }
|
|
605
|
+
.cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); font-size: var(--cms-font-size-label); }
|
|
606
|
+
.cms-mail-row__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
|
|
395
607
|
.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); }
|
|
396
608
|
.cms-mail-row .cms-icon { color: var(--cms-text-muted); }
|
|
397
609
|
|
|
@@ -413,8 +625,9 @@
|
|
|
413
625
|
.cms-composer--reply .cms-composer__title { flex-basis: 100%; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
414
626
|
.cms-composer--reply .cms-composer__input { flex-basis: 100%; padding: var(--cms-space-2) var(--cms-space-3); border-color: transparent; }
|
|
415
627
|
.cms-composer--reply .cms-composer__send { margin-left: auto; }
|
|
628
|
+
.cms-composer--reply .cms-composer__leading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
416
629
|
.cms-composer__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
417
|
-
.cms-composer__send-round { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius:
|
|
630
|
+
.cms-composer__send-round { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--cms-radius-control); background: var(--cms-accent); color: var(--cms-accent-fg); cursor: pointer; }
|
|
418
631
|
.cms-composer__send-round:disabled, .cms-composer__send:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
419
632
|
|
|
420
633
|
/* Call */
|
|
@@ -423,7 +636,7 @@
|
|
|
423
636
|
.cms-call-incoming__name { margin: var(--cms-space-4) 0 0; font-size: var(--cms-font-size-title-lg); font-weight: var(--cms-font-weight-bold); }
|
|
424
637
|
.cms-call-incoming__what { margin: 0; color: var(--cms-sidebar-text); }
|
|
425
638
|
.cms-call-incoming__actions { display: flex; gap: var(--cms-space-12); margin-top: var(--cms-space-6); }
|
|
426
|
-
.cms-call-button { display: inline-flex; flex-direction: column; align-items: center; gap: var(--cms-space-2); border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
|
|
639
|
+
.cms-call-button { display: inline-flex; flex-direction: column; align-items: center; gap: var(--cms-space-2); border: 0; border-radius: var(--cms-radius-control); background: transparent; color: inherit; font: inherit; cursor: pointer; }
|
|
427
640
|
.cms-call-button__disc { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--cms-surface-muted); color: var(--cms-text); }
|
|
428
641
|
.cms-call-button.is-pressed .cms-call-button__disc { background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); }
|
|
429
642
|
.cms-call-button--accept .cms-call-button__disc { background: var(--cms-chrome-success); color: var(--cms-chrome-success-fg); }
|
|
@@ -447,7 +660,7 @@
|
|
|
447
660
|
.cms-call-bar__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--cms-radius-control); background: var(--cms-sidebar-active); color: var(--cms-on-chrome); cursor: pointer; }
|
|
448
661
|
.cms-call-bar__icon[aria-pressed='true'] { background: var(--cms-on-chrome); color: var(--cms-sidebar-bg); }
|
|
449
662
|
.cms-call-bar__icon--hang-up { background: var(--cms-danger); color: var(--cms-text-inverse); }
|
|
450
|
-
.cms-call-bar .cms-button--primary {
|
|
663
|
+
.cms-call-bar .cms-button--primary { font-weight: var(--cms-font-weight-semibold); }
|
|
451
664
|
|
|
452
665
|
/* Sign-in */
|
|
453
666
|
.cms-signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; font-family: var(--cms-font-sans); }
|
|
@@ -465,12 +678,12 @@
|
|
|
465
678
|
.cms-signin-form__title { margin: 0; font-size: var(--cms-font-size-display-sm); font-weight: var(--cms-font-weight-bold); }
|
|
466
679
|
.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); }
|
|
467
680
|
.cms-signin-form__label { margin-top: var(--cms-space-2); font-weight: var(--cms-font-weight-medium); }
|
|
468
|
-
|
|
469
|
-
.cms-
|
|
681
|
+
/* The sign-in form's own inputs: a field's frame (.cms-field) is a different thing, and none of this reaches it. */
|
|
682
|
+
.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); }
|
|
683
|
+
.cms-signin-form__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
470
684
|
.cms-signin-form__password { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
|
|
471
|
-
.cms-signin-form__password .cms-
|
|
472
|
-
.cms-signin-
|
|
473
|
-
.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; }
|
|
685
|
+
.cms-signin-form__password .cms-signin-form__input { flex: 1; margin-bottom: 0; padding-right: 64px; }
|
|
686
|
+
.cms-signin-form__show { position: absolute; top: 50%; line-height: 1; right: var(--cms-space-3); transform: translateY(-50%); border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-body); font: inherit; cursor: pointer; }
|
|
474
687
|
.cms-signin-form__forgot { align-self: flex-end; color: var(--cms-text); }
|
|
475
688
|
.cms-signin-form__error { margin: 0; color: var(--cms-danger-text); }
|
|
476
689
|
.cms-signin-form__submit { justify-content: center; height: 48px; margin-top: var(--cms-space-4); font-size: var(--cms-font-size-body-lg); }
|
|
@@ -478,6 +691,59 @@
|
|
|
478
691
|
.cms-signin-form__or::before, .cms-signin-form__or::after { content: ''; flex: 1; height: 1px; background: var(--cms-border); }
|
|
479
692
|
.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; }
|
|
480
693
|
|
|
694
|
+
/* The file viewer: dark whatever the scheme, covering the page. It never scrolls as a document; its content does. */
|
|
695
|
+
/* One column no wider than the screen: a bar wider than a phone scrolls in its place, it does not widen the viewer. */
|
|
696
|
+
.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; }
|
|
697
|
+
.cms-viewer:focus { outline: none; }
|
|
698
|
+
.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; }
|
|
699
|
+
.cms-viewer__badge { flex: none; display: inline-flex; }
|
|
700
|
+
.cms-viewer__name { margin: 0; min-width: 0; font-size: inherit; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
701
|
+
.cms-viewer__position, .cms-viewer__status { flex: none; color: #a8afbb; white-space: nowrap; }
|
|
702
|
+
.cms-viewer__space { flex: 1 1 0; min-width: 0; }
|
|
703
|
+
.cms-viewer__actions { display: inline-flex; gap: var(--cms-space-1); flex: none; }
|
|
704
|
+
.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-control); background: transparent; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
|
|
705
|
+
.cms-viewer__icon { flex: none; width: 36px; }
|
|
706
|
+
.cms-viewer__button { flex: none; padding: 0 var(--cms-space-3); }
|
|
707
|
+
.cms-viewer__icon:hover, .cms-viewer__button:hover { background: #262b34; }
|
|
708
|
+
.cms-viewer :focus-visible { outline: 2px solid var(--cms-accent); outline-offset: 2px; }
|
|
709
|
+
.cms-viewer__button--edit, .cms-viewer__button--edit:hover { background: var(--cms-accent); color: #1a1a1a; font-weight: 600; }
|
|
710
|
+
.cms-viewer__more { display: none; position: relative; flex: none; }
|
|
711
|
+
.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; }
|
|
712
|
+
.cms-viewer__menu .cms-viewer__button { justify-content: flex-start; min-height: var(--cms-touch-target-min); }
|
|
713
|
+
.cms-viewer__body { display: flex; min-height: 0; }
|
|
714
|
+
.cms-viewer__thumbnails { flex: none; width: 124px; padding: var(--cms-space-3); overflow: auto; border-right: 1px solid #2a2f38; }
|
|
715
|
+
.cms-viewer__content { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; }
|
|
716
|
+
/* A state instead of the file, in the viewer's own dark colours whatever the page's scheme. */
|
|
717
|
+
.cms-viewer .cms-state { min-height: 100%; color: #a8afbb; }
|
|
718
|
+
.cms-viewer .cms-state__title { color: #f4f5f7; }
|
|
719
|
+
/* The file changed elsewhere while being edited: the question across the top of the content, above the editor. */
|
|
720
|
+
.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; }
|
|
721
|
+
.cms-viewer__conflict-text { flex: 1 1 16rem; min-width: 0; margin: 0; }
|
|
722
|
+
/* The next arrow stands clear of the content's own vertical scrollbar (at most 20px), down the content's right edge. */
|
|
723
|
+
.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: var(--cms-radius-control); background: #262b34; color: inherit; cursor: pointer; }
|
|
724
|
+
.cms-viewer__side--previous { left: var(--cms-space-3); }
|
|
725
|
+
.cms-viewer__side--next { right: calc(var(--cms-space-3) + 20px); }
|
|
726
|
+
.cms-viewer__side--next svg { transform: scaleX(-1); }
|
|
727
|
+
.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; }
|
|
728
|
+
.cms-viewer__dots { display: none; position: absolute; left: 0; right: 0; bottom: var(--cms-space-2); z-index: 2; justify-content: center; gap: 6px; }
|
|
729
|
+
.cms-viewer__dots i { width: 7px; height: 7px; border-radius: 50%; background: #6c7482; }
|
|
730
|
+
.cms-viewer__dots i.is-current { background: #f4f5f7; }
|
|
731
|
+
.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; }
|
|
732
|
+
@media (max-width: 1199.98px) {
|
|
733
|
+
.cms-viewer__icon, .cms-viewer__button { min-height: var(--cms-touch-target-min); min-width: var(--cms-touch-target-min); }
|
|
734
|
+
}
|
|
735
|
+
@media (max-width: 599.98px) {
|
|
736
|
+
.cms-viewer__top { padding: 0 var(--cms-space-1); gap: var(--cms-space-1); }
|
|
737
|
+
.cms-viewer__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
|
|
738
|
+
.cms-viewer__position, .cms-viewer__actions, .cms-viewer__wide, .cms-viewer__thumbnails, .cms-viewer__side, .cms-viewer__strip { display: none; }
|
|
739
|
+
.cms-viewer__more { display: inline-flex; }
|
|
740
|
+
.cms-viewer__dots { display: flex; }
|
|
741
|
+
.cms-viewer__button--edit { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); padding: 0; }
|
|
742
|
+
.cms-viewer.is-editing .cms-viewer__button--edit { width: auto; padding: 0 var(--cms-space-3); }
|
|
743
|
+
.cms-viewer__status { max-width: 92px; white-space: normal; font-size: var(--cms-font-size-label); line-height: 1.15; }
|
|
744
|
+
}
|
|
745
|
+
@media (prefers-reduced-motion: reduce) { .cms-viewer * { transition: none; animation: none; } }
|
|
746
|
+
|
|
481
747
|
/*
|
|
482
748
|
* The layout's widths, from design-tokens: phone below breakpoint-tablet (600px), tablet from it, desktop from
|
|
483
749
|
* breakpoint-desktop (1200px). A custom property cannot be read in a media query, so the numbers are written here and
|
|
@@ -487,24 +753,26 @@
|
|
|
487
753
|
/* Tablet and phone, the touch widths: an icons-only rail, two panes, touch targets of at least 44px. */
|
|
488
754
|
@media (max-width: 1199.98px) {
|
|
489
755
|
.cms-shell { grid-template-columns: var(--cms-rail-width-compact) minmax(0, 1fr); }
|
|
756
|
+
/* The mail row's checkbox is a touch target: its place is 44px, the 40px avatar centred in it. */
|
|
757
|
+
.cms-mail-row__lead { display: grid; place-items: center; width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); margin: -2px; }
|
|
490
758
|
.cms-shell__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
491
759
|
.cms-shell__item { justify-content: center; min-height: var(--cms-touch-target-min); }
|
|
492
760
|
.cms-shell__top { gap: var(--cms-space-3); padding: 0 var(--cms-space-4); }
|
|
493
761
|
.cms-shell__search { min-width: 0; }
|
|
494
|
-
.cms-
|
|
495
|
-
.cms-icon-button { min-width: var(--cms-touch-target-min); min-height: var(--cms-touch-target-min); }
|
|
762
|
+
.cms-tab, .cms-menu__item, .cms-list__row, .cms-panes__back, .cms-server-switch { min-height: var(--cms-touch-target-min); }
|
|
763
|
+
.cms-icon-button, .cms-filter-menu { min-width: var(--cms-touch-target-min); min-height: var(--cms-touch-target-min); }
|
|
496
764
|
.cms-search { height: var(--cms-touch-target-min); }
|
|
497
765
|
.cms-search__input { align-self: stretch; }
|
|
498
766
|
.cms-signin-form__show { display: inline-flex; align-items: center; justify-content: center; min-width: var(--cms-touch-target-min); min-height: var(--cms-touch-target-min); right: 0; }
|
|
499
767
|
.cms-signin-form__forgot { display: inline-flex; align-items: center; min-height: var(--cms-touch-target-min); }
|
|
500
768
|
.cms-call-bar { flex-wrap: wrap; }
|
|
501
769
|
.cms-call-bar__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
|
|
502
|
-
.cms-
|
|
503
|
-
.cms-
|
|
770
|
+
.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); }
|
|
771
|
+
.cms-splitter { display: none; }
|
|
504
772
|
.cms-panes__pane { display: none; }
|
|
505
773
|
.cms-panes__pane[data-offset='0'],
|
|
506
774
|
.cms-panes__pane[data-offset='1'],
|
|
507
|
-
.cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display:
|
|
775
|
+
.cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: flex; }
|
|
508
776
|
.cms-panes--three[data-active='2'] .cms-panes__back { display: flex; }
|
|
509
777
|
.cms-signin__brand { padding: var(--cms-space-8); }
|
|
510
778
|
.cms-signin__features { grid-template-columns: minmax(0, 1fr); }
|
|
@@ -524,11 +792,104 @@
|
|
|
524
792
|
.cms-shell__items > li { flex: 1; }
|
|
525
793
|
.cms-shell__item { height: var(--cms-tabbar-height); }
|
|
526
794
|
.cms-shell__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
|
|
527
|
-
.cms-panes--two, .cms-panes--three { grid-template-columns: minmax(0, 1fr); }
|
|
795
|
+
.cms-panes--two, .cms-panes--three, .cms-panes--sized.cms-panes--two, .cms-panes--sized.cms-panes--three { grid-template-columns: minmax(0, 1fr); }
|
|
528
796
|
.cms-panes__pane[data-offset='1'],
|
|
529
797
|
.cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: none; }
|
|
530
798
|
.cms-panes:not([data-active='0']) .cms-panes__back { display: flex; }
|
|
531
799
|
.cms-signin { grid-template-columns: minmax(0, 1fr); }
|
|
532
800
|
.cms-signin__brand { display: none; }
|
|
533
801
|
.cms-signin__form { padding: var(--cms-space-6) var(--cms-space-4); }
|
|
802
|
+
/* One header: while a screen shell is drawn, the shell's own top bar gives way to the screen's bar, which carries the
|
|
803
|
+
host's globals (the account, the search). */
|
|
804
|
+
.cms-shell:has(.cms-screen) { grid-template-rows: 0 minmax(0, 1fr) calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px)); }
|
|
805
|
+
.cms-shell:has(.cms-screen) .cms-shell__top { overflow: hidden; border-bottom: 0; }
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/* File picker: a dialog of fixed height whose list scrolls; on a phone the whole screen, its foot kept at the bottom. */
|
|
809
|
+
.cms-modal.cms-file-picker { width: min(640px, 100%); height: min(560px, calc(100vh - 32px)); }
|
|
810
|
+
.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; }
|
|
811
|
+
.cms-file-picker__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); }
|
|
812
|
+
.cms-file-picker__space { flex: none; }
|
|
813
|
+
.cms-file-picker__path { display: flex; flex: 1 1 auto; align-items: center; gap: var(--cms-space-1); min-width: 0; }
|
|
814
|
+
.cms-file-picker__path ol { display: flex; gap: var(--cms-space-1); min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
|
|
815
|
+
.cms-file-picker__path li { display: flex; gap: var(--cms-space-1); min-width: 0; }
|
|
816
|
+
.cms-file-picker__path li + li::before { content: '/'; color: var(--cms-text-muted); }
|
|
817
|
+
.cms-file-picker__crumb { min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--cms-radius-control); background: none; color: var(--cms-accent); font: inherit; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
|
|
818
|
+
.cms-file-picker__crumb[aria-current='location'] { color: var(--cms-text); cursor: default; }
|
|
819
|
+
.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-control); background: var(--cms-surface-muted); color: var(--cms-text); font: inherit; cursor: pointer; }
|
|
820
|
+
.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); }
|
|
821
|
+
.cms-file-picker__chosen ul { margin: 0; padding: 0; list-style: none; }
|
|
822
|
+
.cms-file-picker__chosen li { display: flex; align-items: center; gap: var(--cms-space-2); }
|
|
823
|
+
.cms-file-picker__chosen .cms-button { align-self: flex-start; }
|
|
824
|
+
.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); }
|
|
825
|
+
.cms-file-picker__entries:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: -2px; }
|
|
826
|
+
.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; }
|
|
827
|
+
.cms-file-picker__entry.is-active { background: var(--cms-surface-hover); }
|
|
828
|
+
.cms-file-picker__entry.is-ticked { box-shadow: inset 3px 0 0 var(--cms-accent); }
|
|
829
|
+
.cms-file-picker__entry.is-disabled { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
830
|
+
.cms-file-picker__tick { display: inline-flex; flex: none; width: 16px; color: var(--cms-accent); }
|
|
831
|
+
.cms-file-picker__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
832
|
+
.cms-file-picker__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: var(--cms-space-1) 0; }
|
|
833
|
+
.cms-file-picker__reason { color: var(--cms-text-muted); font-size: 0.875em; }
|
|
834
|
+
.cms-file-picker__size { flex: none; color: var(--cms-text-secondary); font-size: 0.875em; }
|
|
835
|
+
.cms-file-picker__paging { padding: var(--cms-space-2) var(--cms-space-3); }
|
|
836
|
+
.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); }
|
|
837
|
+
.cms-file-picker__summary { display: flex; flex-direction: column; color: var(--cms-text-secondary); font-size: 0.875em; }
|
|
838
|
+
.cms-file-picker__summary .is-over { color: var(--cms-danger); }
|
|
839
|
+
.cms-file-picker__actions { display: flex; gap: var(--cms-space-2); margin-left: auto; }
|
|
840
|
+
@media (max-width: 599.98px) {
|
|
841
|
+
.cms-modal-scrim:has(.cms-file-picker) { padding: 0; }
|
|
842
|
+
.cms-modal.cms-file-picker { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
|
|
843
|
+
.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); }
|
|
844
|
+
.cms-file-picker__actions { width: 100%; }
|
|
845
|
+
.cms-file-picker__actions .cms-button { flex: 1 1 0; }
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/* The row's height is pane-toolbar-height's definition, written out until the token file that defines it is released
|
|
849
|
+
(design-tokens, after both kits implement the entry); then it reads the token. */
|
|
850
|
+
/* The one row of actions at the top of a pane (contract `pane-toolbar`): one height in every pane so the rows line up,
|
|
851
|
+
one line that never wraps, the actions at the start and the status at the end. Labels hide all at once, then actions
|
|
852
|
+
go behind More; the row is fitted by the component to its own width. */
|
|
853
|
+
.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; }
|
|
854
|
+
.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); }
|
|
855
|
+
.cms-pane-toolbar__group[hidden] { display: none; }
|
|
856
|
+
.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); }
|
|
857
|
+
.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; }
|
|
858
|
+
.cms-pane-toolbar__action:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
859
|
+
.cms-pane-toolbar__action--bare { justify-content: center; width: var(--cms-row-height, 36px); padding: 0; }
|
|
860
|
+
.cms-pane-toolbar__action[hidden] { display: none; }
|
|
861
|
+
.cms-pane-toolbar__action[aria-disabled='true'] { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
862
|
+
.cms-pane-toolbar__action.is-danger { color: var(--cms-danger-text); }
|
|
863
|
+
.cms-pane-toolbar__action--menu.cms-pane-toolbar__action--bare { width: auto; padding: 0 var(--cms-space-2); gap: 0; }
|
|
864
|
+
.cms-pane-toolbar__chevron { display: inline-flex; flex: none; margin-inline-start: calc(-1 * var(--cms-space-1)); }
|
|
865
|
+
.cms-pane-toolbar__action--bare .cms-pane-toolbar__chevron { margin-inline-start: 0; }
|
|
866
|
+
.cms-pane-toolbar__more { flex: none; }
|
|
867
|
+
.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); }
|
|
868
|
+
/* A label hidden: its tooltip on hover and on keyboard focus, never the action's only name. */
|
|
869
|
+
.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; }
|
|
870
|
+
/* Escape hides it, whichever showed it, until the pointer and the focus have left (data-tip-dismissed). */
|
|
871
|
+
.cms-pane-toolbar__action:not([data-tip-dismissed]):focus-visible > .cms-pane-toolbar__tip, .cms-pane-toolbar__action:not([data-tip-dismissed])[data-reason-shown] > .cms-pane-toolbar__tip { display: block; }
|
|
872
|
+
/* 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. */
|
|
873
|
+
.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; }
|
|
874
|
+
.cms-pane-toolbar__measure { position: absolute; top: 0; left: 0; display: flex; visibility: hidden; pointer-events: none; }
|
|
875
|
+
.cms-pane-toolbar__measure > span, .cms-pane-toolbar__measure > div { flex: none; }
|
|
876
|
+
/* On a touch screen (a coarse pointer) each action is at least a touch target, in the same row; a desktop browser in a
|
|
877
|
+
narrow window keeps desktop-size buttons. */
|
|
878
|
+
@media (pointer: coarse) {
|
|
879
|
+
.cms-pane-toolbar__action { min-height: var(--cms-touch-target-min, 44px); }
|
|
880
|
+
.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); }
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/* A password field's show and hide button: an eye at the field's end, the field's text kept clear of it. */
|
|
884
|
+
.cms-input-reveal { position: relative; display: flex; align-items: center; }
|
|
885
|
+
/* The button is as wide as the field is high, and fills its height: the control height, which the tokens raise from 40px
|
|
886
|
+
to 44px under a coarse pointer, so on a touch screen it is a full touch target. */
|
|
887
|
+
.cms-input-reveal .cms-input { flex: 1; min-width: 0; padding-inline-end: calc(var(--cms-control-height-md) + 2px); }
|
|
888
|
+
.cms-input-reveal__button {
|
|
889
|
+
position: absolute; inset-block: 1px; inset-inline-end: 1px; width: var(--cms-control-height-md);
|
|
890
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
891
|
+
border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-muted); cursor: pointer;
|
|
534
892
|
}
|
|
893
|
+
.cms-input-reveal__button:hover:not(:disabled) { color: var(--cms-text); }
|
|
894
|
+
.cms-input-reveal__button:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: -2px; }
|
|
895
|
+
.cms-input-reveal__button:disabled { cursor: not-allowed; }
|