@coolms/ui-react 0.1.0-alpha.2 → 0.1.0-alpha.21
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 +222 -4
- package/design-tokens.lock.json +30 -6
- package/dist/components/Call.d.ts +71 -0
- package/dist/components/Collections.d.ts +14 -5
- package/dist/components/Dialogs.d.ts +11 -3
- package/dist/components/Fields.d.ts +48 -4
- package/dist/components/FilePicker.d.ts +83 -0
- package/dist/components/FileViewer.d.ts +106 -0
- package/dist/components/Icon.d.ts +29 -0
- 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/SignIn.d.ts +46 -0
- package/dist/components/State.d.ts +31 -0
- package/dist/components/Status.d.ts +6 -2
- package/dist/components/Structure.d.ts +24 -4
- package/dist/components/Workspace.d.ts +185 -0
- package/dist/components/internal.d.ts +2 -0
- package/dist/components/pull.d.ts +21 -0
- package/dist/index.d.ts +13 -2
- package/dist/index.js +1889 -374
- package/kit.contract.json +9 -3
- package/package.json +9 -6
- package/src/fonts/OFL.txt +92 -0
- package/src/fonts/inter-cyrillic.woff2 +0 -0
- package/src/fonts/inter-latin-ext.woff2 +0 -0
- package/src/fonts/inter-latin.woff2 +0 -0
- package/src/fonts/inter.css +27 -0
- package/src/kit.css +485 -6
- package/src/tokens/coolms-tokens.css +95 -3
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,27 @@
|
|
|
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.is-waiting > :not(.cms-state__text) { visibility: hidden; }
|
|
186
|
+
.cms-state.is-waiting > .cms-state__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
187
|
+
.cms-state__text { display: flex; flex-direction: column; gap: var(--cms-space-1, 4px); }
|
|
188
|
+
.cms-state--inline .cms-state__text { flex-direction: row; gap: var(--cms-space-2, 8px); }
|
|
189
|
+
.cms-state__title { color: var(--cms-text); font-weight: 600; }
|
|
190
|
+
.cms-state--inline .cms-state__title { font-weight: inherit; }
|
|
191
|
+
.cms-state__description { max-width: 48ch; }
|
|
192
|
+
.cms-state--error > svg { color: var(--cms-danger-text); }
|
|
193
|
+
.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; }
|
|
194
|
+
.cms-state--page .cms-state__spinner { width: var(--cms-spinner-size-page, 32px); height: var(--cms-spinner-size-page, 32px); }
|
|
195
|
+
.cms-state--inline .cms-state__spinner { width: var(--cms-spinner-size-inline, 16px); height: var(--cms-spinner-size-inline, 16px); }
|
|
196
|
+
.cms-state__track { stroke: var(--cms-spinner-track, var(--cms-border)); stroke-width: var(--cms-spinner-stroke, 2px); vector-effect: non-scaling-stroke; }
|
|
197
|
+
.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; }
|
|
198
|
+
@keyframes cms-state-pulse { 50% { opacity: 0.35; } }
|
|
199
|
+
@media (prefers-reduced-motion: reduce) { .cms-state__spinner { animation: cms-state-pulse calc(2 * var(--cms-spinner-duration, 800ms)) ease-in-out infinite; } }
|
|
175
200
|
.cms-error-banner {
|
|
176
201
|
display: flex;
|
|
177
202
|
align-items: center;
|
|
@@ -213,13 +238,13 @@
|
|
|
213
238
|
.cms-tab__count { padding: 0 6px; border-radius: 8px; background: var(--cms-bg-muted); color: var(--cms-text-muted); font-size: 0.8125em; }
|
|
214
239
|
|
|
215
240
|
/* List */
|
|
216
|
-
.cms-list { margin: 0; padding: 0; list-style: none;
|
|
241
|
+
.cms-list { margin: 0; padding: 0; list-style: none; background: var(--cms-surface); }
|
|
217
242
|
.cms-list__row {
|
|
218
243
|
display: flex;
|
|
219
244
|
align-items: center;
|
|
220
|
-
gap:
|
|
245
|
+
gap: var(--cms-space-3);
|
|
221
246
|
min-height: var(--cms-row-height-lg);
|
|
222
|
-
padding:
|
|
247
|
+
padding: var(--cms-space-3) var(--cms-space-4);
|
|
223
248
|
border-bottom: 1px solid var(--cms-border-light);
|
|
224
249
|
color: var(--cms-text);
|
|
225
250
|
cursor: pointer;
|
|
@@ -231,6 +256,33 @@
|
|
|
231
256
|
.cms-list__primary, .cms-list__secondary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
232
257
|
.cms-list__secondary { color: var(--cms-text-muted); font-size: 0.875em; }
|
|
233
258
|
.cms-list__meta { flex: none; color: var(--cms-meta-text); font-size: 0.8125em; }
|
|
259
|
+
/* One anatomy for every row (contract list, row): the title semibold while unread; the meta with a count under it. */
|
|
260
|
+
.cms-list__primary.is-unread { font-weight: var(--cms-font-weight-semibold); }
|
|
261
|
+
.cms-list__end { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: var(--cms-space-1); }
|
|
262
|
+
.cms-list__count { min-width: 18px; height: 18px; font-size: var(--cms-font-size-label-sm); }
|
|
263
|
+
.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); }
|
|
264
|
+
|
|
265
|
+
/* The screen shell (contract screen-shell): one bar, the filters, the content scrolling on its own, the primary floating
|
|
266
|
+
at the bottom right above the section bar. */
|
|
267
|
+
.cms-screen { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--cms-surface); }
|
|
268
|
+
.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); }
|
|
269
|
+
.cms-screen__leading { display: flex; flex: none; align-items: center; max-width: 40%; min-width: 0; }
|
|
270
|
+
.cms-screen__leading:empty { display: none; }
|
|
271
|
+
.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; }
|
|
272
|
+
.cms-screen__back:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
273
|
+
.cms-screen__back-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
274
|
+
.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; }
|
|
275
|
+
.cms-screen__trailing { display: flex; flex: none; align-items: center; gap: var(--cms-space-1); }
|
|
276
|
+
.cms-screen__search { display: flex; flex: 1 1 auto; min-width: 0; }
|
|
277
|
+
.cms-screen__search > * { flex: 1 1 auto; min-width: 0; }
|
|
278
|
+
.cms-screen__icon { width: var(--cms-control-height-md); height: var(--cms-control-height-md); }
|
|
279
|
+
.cms-screen__filters { flex: none; padding: var(--cms-space-2) var(--cms-space-4); overflow-x: auto; }
|
|
280
|
+
.cms-screen__content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
|
|
281
|
+
.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); }
|
|
282
|
+
/* bar-hidden: the bar and the filters step out of view, collapsed rather than removed, so focus can still reach them
|
|
283
|
+
(and brings them back). */
|
|
284
|
+
.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; }
|
|
285
|
+
.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
286
|
|
|
235
287
|
/* Avatar */
|
|
236
288
|
.cms-avatar {
|
|
@@ -250,6 +302,16 @@
|
|
|
250
302
|
.cms-avatar__presence.is-online { background: var(--cms-success); }
|
|
251
303
|
.cms-avatar__presence.is-away { background: var(--cms-warning); }
|
|
252
304
|
.cms-avatar__presence.is-offline { background: var(--cms-meta-subtle); }
|
|
305
|
+
.cms-avatar__presence.is-connected { background: var(--cms-success); }
|
|
306
|
+
.cms-avatar__presence.is-reconnecting { background: var(--cms-warning); }
|
|
307
|
+
.cms-avatar__presence.is-disconnected { background: var(--cms-text-muted); }
|
|
308
|
+
.cms-avatar--deleted { background: var(--cms-surface-muted); color: var(--cms-text-muted); }
|
|
309
|
+
.cms-avatar--tint-1 { background: var(--cms-avatar-1-bg); color: var(--cms-avatar-1-fg); }
|
|
310
|
+
.cms-avatar--tint-2 { background: var(--cms-avatar-2-bg); color: var(--cms-avatar-2-fg); }
|
|
311
|
+
.cms-avatar--tint-3 { background: var(--cms-avatar-3-bg); color: var(--cms-avatar-3-fg); }
|
|
312
|
+
.cms-avatar--tint-4 { background: var(--cms-avatar-4-bg); color: var(--cms-avatar-4-fg); }
|
|
313
|
+
.cms-avatar--tint-5 { background: var(--cms-avatar-5-bg); color: var(--cms-avatar-5-fg); }
|
|
314
|
+
.cms-avatar--tint-6 { background: var(--cms-avatar-6-bg); color: var(--cms-avatar-6-fg); }
|
|
253
315
|
|
|
254
316
|
/* Context menu */
|
|
255
317
|
.cms-menu {
|
|
@@ -265,7 +327,424 @@
|
|
|
265
327
|
}
|
|
266
328
|
.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; }
|
|
267
329
|
.cms-menu__item:hover, .cms-menu__item:focus { background: var(--cms-hover-bg); outline: none; }
|
|
268
|
-
|
|
330
|
+
/* An item's icon and its words share one line, centred on each other. */
|
|
331
|
+
.cms-menu__label { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
|
|
332
|
+
.cms-menu__label > svg { flex: none; }
|
|
269
333
|
.cms-menu__item.is-danger { color: var(--cms-danger-text); }
|
|
270
334
|
.cms-menu__item.is-refused { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
271
335
|
.cms-menu__refusal { font-size: 0.8125em; }
|
|
336
|
+
|
|
337
|
+
/* One notification: its row (the title, the time, the body in one line until expanded), the chevron beside it, and a
|
|
338
|
+
button action under the text. Unread: the title in weight and a dot. */
|
|
339
|
+
.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); }
|
|
340
|
+
.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; }
|
|
341
|
+
.cms-notification__row:hover { background: var(--cms-hover-bg); }
|
|
342
|
+
.cms-notification__row:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
343
|
+
.cms-notification__leading { flex: none; display: inline-flex; }
|
|
344
|
+
.cms-notification__text { display: flex; flex: 1; flex-direction: column; gap: var(--cms-space-1); min-width: 0; }
|
|
345
|
+
.cms-notification__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--cms-space-2); }
|
|
346
|
+
.cms-notification__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
347
|
+
.cms-notification.is-unread .cms-notification__title { font-weight: var(--cms-font-weight-semibold); }
|
|
348
|
+
.cms-notification__time { flex: none; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
349
|
+
.cms-notification__body { overflow: hidden; color: var(--cms-text-muted); text-overflow: ellipsis; white-space: nowrap; }
|
|
350
|
+
.cms-notification.is-expanded .cms-notification__body { white-space: pre-wrap; overflow-wrap: break-word; }
|
|
351
|
+
.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); }
|
|
352
|
+
.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; }
|
|
353
|
+
.cms-notification__chevron:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
354
|
+
.cms-notification.is-expanded .cms-notification__chevron svg { transform: rotate(180deg); }
|
|
355
|
+
.cms-notification__action { grid-column: 1; justify-self: start; margin: 0 0 var(--cms-space-2) var(--cms-space-2); }
|
|
356
|
+
|
|
357
|
+
/*
|
|
358
|
+
* The Workspace: the shell, its lists, chat, the call and sign-in. Same rule as above: only --cms-* tokens. The chrome
|
|
359
|
+
* (the rail, the incoming call, the sign-in brand side) stays navy in both themes.
|
|
360
|
+
*/
|
|
361
|
+
.cms-icon { flex: none; }
|
|
362
|
+
.cms-icon--blank { display: inline-block; }
|
|
363
|
+
:where(.cms-shell__item, .cms-chip, .cms-mail-row, .cms-call-button, .cms-call-bar__icon, .cms-composer__send-round, .cms-signin-form__show):focus-visible {
|
|
364
|
+
outline: 2px solid var(--cms-focus-ring);
|
|
365
|
+
outline-offset: 2px;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.cms-button--chrome { background: var(--cms-button-chrome-bg); border-color: var(--cms-button-chrome-border); color: var(--cms-on-chrome); border-radius: var(--cms-radius-control); font-weight: var(--cms-font-weight-semibold); }
|
|
369
|
+
.cms-button--chrome:hover:not(:disabled) { background: var(--cms-sidebar-hover); border-color: var(--cms-button-chrome-border); }
|
|
370
|
+
|
|
371
|
+
/* Badge, pill */
|
|
372
|
+
.cms-badge {
|
|
373
|
+
display: inline-flex;
|
|
374
|
+
align-items: center;
|
|
375
|
+
justify-content: center;
|
|
376
|
+
min-width: 20px;
|
|
377
|
+
height: 20px;
|
|
378
|
+
padding: 0 var(--cms-space-1);
|
|
379
|
+
border-radius: var(--cms-radius-pill);
|
|
380
|
+
background: var(--cms-accent);
|
|
381
|
+
color: var(--cms-accent-fg);
|
|
382
|
+
font-size: var(--cms-font-size-label);
|
|
383
|
+
font-weight: var(--cms-font-weight-semibold);
|
|
384
|
+
line-height: 1;
|
|
385
|
+
}
|
|
386
|
+
.cms-pill { display: inline-flex; align-items: center; gap: var(--cms-space-1); padding: var(--cms-space-1) var(--cms-space-3); border-radius: var(--cms-radius-pill); font-size: var(--cms-font-size-meta); font-weight: var(--cms-font-weight-medium); }
|
|
387
|
+
.cms-pill--success { background: var(--cms-success-light); color: var(--cms-success-strong); }
|
|
388
|
+
.cms-pill--warning { background: var(--cms-warning-light); color: var(--cms-warning-text); }
|
|
389
|
+
|
|
390
|
+
/* Shell */
|
|
391
|
+
.cms-shell {
|
|
392
|
+
display: grid;
|
|
393
|
+
grid-template-columns: var(--cms-rail-width) 1fr;
|
|
394
|
+
grid-template-rows: var(--cms-topbar-height) 1fr;
|
|
395
|
+
height: 100vh;
|
|
396
|
+
background: var(--cms-bg);
|
|
397
|
+
color: var(--cms-text);
|
|
398
|
+
font-family: var(--cms-font-sans);
|
|
399
|
+
font-size: var(--cms-font-size-body);
|
|
400
|
+
}
|
|
401
|
+
.cms-shell__rail { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: var(--cms-space-3); padding: var(--cms-space-3) 0; background: var(--cms-sidebar-bg); }
|
|
402
|
+
.cms-shell__mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--cms-radius-control); background: var(--cms-accent); color: var(--cms-accent-fg); font-weight: var(--cms-font-weight-bold); font-size: var(--cms-font-size-title-md); }
|
|
403
|
+
.cms-shell__items { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--cms-space-1); width: 100%; margin: 0; padding: 0 var(--cms-space-2); list-style: none; }
|
|
404
|
+
.cms-shell__item {
|
|
405
|
+
display: flex;
|
|
406
|
+
flex-direction: column;
|
|
407
|
+
align-items: center;
|
|
408
|
+
gap: var(--cms-space-1);
|
|
409
|
+
padding: var(--cms-space-2) 0 var(--cms-space-2);
|
|
410
|
+
border-radius: var(--cms-radius-control);
|
|
411
|
+
color: var(--cms-sidebar-text);
|
|
412
|
+
font-size: var(--cms-font-size-label);
|
|
413
|
+
text-decoration: none;
|
|
414
|
+
}
|
|
415
|
+
.cms-shell__item:hover { background: var(--cms-sidebar-hover); color: var(--cms-on-chrome); }
|
|
416
|
+
.cms-shell__item.is-active { background: var(--cms-sidebar-active); color: var(--cms-on-chrome); font-weight: var(--cms-font-weight-semibold); }
|
|
417
|
+
.cms-shell__item.is-active .cms-icon { color: var(--cms-accent); }
|
|
418
|
+
.cms-shell__icon { position: relative; display: inline-flex; }
|
|
419
|
+
.cms-shell__icon .cms-badge { position: absolute; top: calc(-1 * var(--cms-space-2)); right: calc(-1 * var(--cms-space-3)); min-width: 18px; height: 18px; font-size: var(--cms-font-size-label-sm); }
|
|
420
|
+
.cms-shell__top { display: flex; align-items: center; gap: var(--cms-space-4); padding: 0 var(--cms-space-6); border-bottom: 1px solid var(--cms-border); background: var(--cms-surface); }
|
|
421
|
+
.cms-shell__product { font-size: var(--cms-font-size-title-md); font-weight: var(--cms-font-weight-bold); white-space: nowrap; }
|
|
422
|
+
.cms-shell__search { flex: 1; max-width: 640px; }
|
|
423
|
+
.cms-shell__account { display: flex; align-items: center; gap: var(--cms-space-4); margin-left: auto; }
|
|
424
|
+
/* The open section's area: a column, so a section given `flex: 1` fills the height under anything above it. */
|
|
425
|
+
.cms-shell__main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
|
|
426
|
+
.cms-shell__main > :only-child { flex: 1; min-height: 0; }
|
|
427
|
+
|
|
428
|
+
.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; }
|
|
429
|
+
|
|
430
|
+
/* Search */
|
|
431
|
+
.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); }
|
|
432
|
+
.cms-search:focus-within { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
433
|
+
.cms-search__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--cms-text); font: inherit; outline: none; }
|
|
434
|
+
.cms-search__input::placeholder { color: var(--cms-text-muted); }
|
|
435
|
+
|
|
436
|
+
/* Filter chips */
|
|
437
|
+
.cms-chips { display: flex; flex-wrap: wrap; gap: var(--cms-space-2); }
|
|
438
|
+
.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; }
|
|
439
|
+
.cms-chip:hover { background: var(--cms-surface-muted); }
|
|
440
|
+
.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); }
|
|
441
|
+
|
|
442
|
+
/* Panes */
|
|
443
|
+
.cms-panes { display: grid; height: 100%; min-height: 0; }
|
|
444
|
+
.cms-panes--two { grid-template-columns: 340px 1fr; }
|
|
445
|
+
.cms-panes--three { grid-template-columns: 240px 380px 1fr; }
|
|
446
|
+
.cms-panes__pane { min-width: 0; min-height: 0; overflow: auto; border-right: 1px solid var(--cms-border); background: var(--cms-surface); }
|
|
447
|
+
.cms-panes--sized { position: relative; }
|
|
448
|
+
.cms-panes--sized.cms-panes--two { grid-template-columns: var(--split-pane-0) minmax(0, 1fr); }
|
|
449
|
+
.cms-panes--sized.cms-panes--three { grid-template-columns: var(--split-pane-0) var(--split-pane-1) minmax(0, 1fr); }
|
|
450
|
+
.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; }
|
|
451
|
+
.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); }
|
|
452
|
+
.cms-panes__splitter:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: -2px; }
|
|
453
|
+
.cms-panes.is-resizing { cursor: col-resize; user-select: none; }
|
|
454
|
+
.cms-panes__pane:first-child { background: var(--cms-bg); }
|
|
455
|
+
.cms-panes__pane:last-child { border-right: 0; }
|
|
456
|
+
.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; }
|
|
457
|
+
|
|
458
|
+
/* Mail row */
|
|
459
|
+
.cms-mail-row {
|
|
460
|
+
display: flex;
|
|
461
|
+
gap: var(--cms-space-3);
|
|
462
|
+
width: 100%;
|
|
463
|
+
padding: var(--cms-space-4) var(--cms-space-5);
|
|
464
|
+
border: 0;
|
|
465
|
+
border-bottom: 1px solid var(--cms-border-light);
|
|
466
|
+
background: var(--cms-surface);
|
|
467
|
+
color: var(--cms-text-body);
|
|
468
|
+
font: inherit;
|
|
469
|
+
text-align: left;
|
|
470
|
+
cursor: pointer;
|
|
471
|
+
}
|
|
472
|
+
.cms-mail-row:hover { background: var(--cms-surface-muted); }
|
|
473
|
+
.cms-mail-row.is-selected { background: var(--cms-row-selected); }
|
|
474
|
+
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
|
|
475
|
+
.cms-mail-row__line { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
476
|
+
.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-lg); }
|
|
477
|
+
.cms-mail-row__time { color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); white-space: nowrap; }
|
|
478
|
+
.cms-mail-row__subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); }
|
|
479
|
+
.cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); }
|
|
480
|
+
.cms-mail-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
|
|
481
|
+
.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); }
|
|
482
|
+
.cms-mail-row .cms-icon { color: var(--cms-text-muted); }
|
|
483
|
+
|
|
484
|
+
/* Chat */
|
|
485
|
+
.cms-bubble { display: flex; flex-direction: column; gap: var(--cms-space-1); max-width: 72%; }
|
|
486
|
+
.cms-bubble--in { align-self: flex-start; }
|
|
487
|
+
.cms-bubble--out { align-self: flex-end; align-items: flex-end; }
|
|
488
|
+
.cms-bubble__text { padding: var(--cms-space-3) var(--cms-space-4); border-radius: var(--cms-radius-bubble); font-size: var(--cms-font-size-body-lg); line-height: var(--cms-line-height-body); }
|
|
489
|
+
.cms-bubble--in .cms-bubble__text { border: 1px solid var(--cms-border); border-top-left-radius: var(--cms-radius-bubble-tail); background: var(--cms-surface); color: var(--cms-text); }
|
|
490
|
+
.cms-bubble--out .cms-bubble__text { border-top-right-radius: var(--cms-radius-bubble-tail); background: var(--cms-button-chrome-bg); color: var(--cms-on-chrome); }
|
|
491
|
+
.cms-bubble__meta { padding: 0 var(--cms-space-1); color: var(--cms-text-muted); font-size: var(--cms-font-size-label); }
|
|
492
|
+
|
|
493
|
+
/* Composer */
|
|
494
|
+
.cms-composer { display: flex; align-items: center; gap: var(--cms-space-3); }
|
|
495
|
+
.cms-composer__input { flex: 1; min-width: 0; resize: none; 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); }
|
|
496
|
+
.cms-composer--chat .cms-composer__input { padding: var(--cms-space-3) var(--cms-space-4); border-radius: var(--cms-radius-pill); }
|
|
497
|
+
.cms-composer--chat { padding: var(--cms-space-3) var(--cms-space-5); border-top: 1px solid var(--cms-border); background: var(--cms-surface); }
|
|
498
|
+
.cms-composer--reply { flex-wrap: wrap; padding: var(--cms-space-4); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-card); background: var(--cms-surface); }
|
|
499
|
+
.cms-composer--reply .cms-composer__title { flex-basis: 100%; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
500
|
+
.cms-composer--reply .cms-composer__input { flex-basis: 100%; padding: var(--cms-space-2) var(--cms-space-3); border-color: transparent; }
|
|
501
|
+
.cms-composer--reply .cms-composer__send { margin-left: auto; }
|
|
502
|
+
.cms-composer--reply .cms-composer__leading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
503
|
+
.cms-composer__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
504
|
+
.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; }
|
|
505
|
+
.cms-composer__send-round:disabled, .cms-composer__send:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
506
|
+
|
|
507
|
+
/* Call */
|
|
508
|
+
.cms-call-incoming { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: var(--cms-space-2); width: 420px; max-width: 100%; padding: var(--cms-space-10) var(--cms-space-8); border-radius: var(--cms-radius-dialog); background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); box-shadow: var(--cms-shadow-lg); }
|
|
509
|
+
.cms-call-incoming__ring { padding: var(--cms-space-3); border: 2px solid var(--cms-accent); border-radius: 50%; box-shadow: 0 0 0 var(--cms-space-3) var(--cms-sidebar-bg), 0 0 0 calc(var(--cms-space-3) + 1px) var(--cms-accent-text); }
|
|
510
|
+
.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); }
|
|
511
|
+
.cms-call-incoming__what { margin: 0; color: var(--cms-sidebar-text); }
|
|
512
|
+
.cms-call-incoming__actions { display: flex; gap: var(--cms-space-12); margin-top: var(--cms-space-6); }
|
|
513
|
+
.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; }
|
|
514
|
+
.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); }
|
|
515
|
+
.cms-call-button.is-pressed .cms-call-button__disc { background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); }
|
|
516
|
+
.cms-call-button--accept .cms-call-button__disc { background: var(--cms-chrome-success); color: var(--cms-chrome-success-fg); }
|
|
517
|
+
.cms-call-button--hang-up .cms-call-button__disc { background: var(--cms-danger); color: var(--cms-text-inverse); }
|
|
518
|
+
.cms-call-button--hang-up .cms-call-button__label { color: var(--cms-danger); }
|
|
519
|
+
.cms-call-incoming .cms-call-button__label { color: var(--cms-on-chrome); }
|
|
520
|
+
.cms-call-button__label { font-size: var(--cms-font-size-meta); }
|
|
521
|
+
.cms-call-panel { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--cms-space-6); padding: var(--cms-space-6); border-radius: var(--cms-radius-dialog); background: var(--cms-surface); color: var(--cms-text); box-shadow: var(--cms-shadow-md); }
|
|
522
|
+
.cms-call-panel__head { display: flex; align-items: center; gap: var(--cms-space-4); }
|
|
523
|
+
.cms-call-panel__who { flex: 1; }
|
|
524
|
+
.cms-call-panel__name { margin: 0; font-size: var(--cms-font-size-title-lg); font-weight: var(--cms-font-weight-semibold); }
|
|
525
|
+
.cms-call-panel__time { margin: 0; color: var(--cms-text-muted); font-variant-numeric: tabular-nums; }
|
|
526
|
+
.cms-call-panel__you { display: flex; align-items: center; gap: var(--cms-space-3); padding: var(--cms-space-3) var(--cms-space-4); border-radius: var(--cms-radius-card); background: var(--cms-bg); }
|
|
527
|
+
.cms-call-panel__level { width: 24px; height: 14px; margin-left: auto; background: repeating-linear-gradient(90deg, var(--cms-accent) 0 3px, transparent 3px 6px); border-radius: var(--cms-radius-sm); }
|
|
528
|
+
.cms-call-panel__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cms-space-4) var(--cms-space-8); }
|
|
529
|
+
.cms-call-bar { display: flex; align-items: center; gap: var(--cms-space-4); padding: var(--cms-space-3) var(--cms-space-4) var(--cms-space-3) var(--cms-space-6); border-radius: var(--cms-radius-card); background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); }
|
|
530
|
+
.cms-call-bar__live { width: 10px; height: 10px; border-radius: 50%; background: var(--cms-success); }
|
|
531
|
+
.cms-call-bar__name { font-weight: var(--cms-font-weight-semibold); }
|
|
532
|
+
.cms-call-bar__time { color: var(--cms-sidebar-text); font-variant-numeric: tabular-nums; }
|
|
533
|
+
.cms-call-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-3); margin-left: auto; }
|
|
534
|
+
.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; }
|
|
535
|
+
.cms-call-bar__icon[aria-pressed='true'] { background: var(--cms-on-chrome); color: var(--cms-sidebar-bg); }
|
|
536
|
+
.cms-call-bar__icon--hang-up { background: var(--cms-danger); color: var(--cms-text-inverse); }
|
|
537
|
+
.cms-call-bar .cms-button--primary { border-radius: var(--cms-radius-control); font-weight: var(--cms-font-weight-semibold); }
|
|
538
|
+
|
|
539
|
+
/* Sign-in */
|
|
540
|
+
.cms-signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; font-family: var(--cms-font-sans); }
|
|
541
|
+
.cms-signin__brand { display: flex; flex-direction: column; padding: var(--cms-space-12) var(--cms-space-12); background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); }
|
|
542
|
+
.cms-signin__logo { display: flex; align-items: center; gap: var(--cms-space-3); margin: 0; font-size: var(--cms-font-size-title-lg); font-weight: var(--cms-font-weight-bold); }
|
|
543
|
+
.cms-signin__mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--cms-radius-control); background: var(--cms-accent); color: var(--cms-accent-fg); }
|
|
544
|
+
.cms-signin__pitch { margin: auto 0; max-width: 520px; }
|
|
545
|
+
.cms-signin__headline { margin: 0 0 var(--cms-space-4); font-size: var(--cms-font-size-display-lg); font-weight: var(--cms-font-weight-bold); line-height: var(--cms-line-height-tight); }
|
|
546
|
+
.cms-signin__lead { margin: 0 0 var(--cms-space-8); color: var(--cms-sidebar-text); font-size: var(--cms-font-size-body-lg); line-height: var(--cms-line-height-body); }
|
|
547
|
+
.cms-signin__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cms-space-3); margin: 0; padding: 0; list-style: none; }
|
|
548
|
+
.cms-signin__features li { display: flex; align-items: center; gap: var(--cms-space-3); padding: var(--cms-space-3) var(--cms-space-4); border-radius: var(--cms-radius-control); background: var(--cms-sidebar-hover); font-weight: var(--cms-font-weight-medium); }
|
|
549
|
+
.cms-signin__features .cms-icon { color: var(--cms-accent); }
|
|
550
|
+
.cms-signin__form { display: flex; align-items: center; justify-content: center; padding: var(--cms-space-8); background: var(--cms-surface); color: var(--cms-text); }
|
|
551
|
+
.cms-signin-form { display: flex; flex-direction: column; gap: var(--cms-space-2); width: min(380px, 100%); }
|
|
552
|
+
.cms-signin-form__title { margin: 0; font-size: var(--cms-font-size-display-sm); font-weight: var(--cms-font-weight-bold); }
|
|
553
|
+
.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); }
|
|
554
|
+
.cms-signin-form__label { margin-top: var(--cms-space-2); font-weight: var(--cms-font-weight-medium); }
|
|
555
|
+
/* The sign-in form's own inputs: a field's frame (.cms-field) is a different thing, and none of this reaches it. */
|
|
556
|
+
.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); }
|
|
557
|
+
.cms-signin-form__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
558
|
+
.cms-signin-form__password { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
|
|
559
|
+
.cms-signin-form__password .cms-signin-form__input { flex: 1; margin-bottom: 0; padding-right: 64px; }
|
|
560
|
+
.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; }
|
|
561
|
+
.cms-signin-form__forgot { align-self: flex-end; color: var(--cms-text); }
|
|
562
|
+
.cms-signin-form__error { margin: 0; color: var(--cms-danger-text); }
|
|
563
|
+
.cms-signin-form__submit { justify-content: center; height: 48px; margin-top: var(--cms-space-4); font-size: var(--cms-font-size-body-lg); }
|
|
564
|
+
.cms-signin-form__or { display: flex; align-items: center; gap: var(--cms-space-3); margin: var(--cms-space-3) 0 0; color: var(--cms-text-muted); }
|
|
565
|
+
.cms-signin-form__or::before, .cms-signin-form__or::after { content: ''; flex: 1; height: 1px; background: var(--cms-border); }
|
|
566
|
+
.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; }
|
|
567
|
+
|
|
568
|
+
/* The file viewer: dark whatever the scheme, covering the page. It never scrolls as a document; its content does. */
|
|
569
|
+
/* One column no wider than the screen: a bar wider than a phone scrolls in its place, it does not widen the viewer. */
|
|
570
|
+
.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; }
|
|
571
|
+
.cms-viewer:focus { outline: none; }
|
|
572
|
+
.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; }
|
|
573
|
+
.cms-viewer__badge { flex: none; display: inline-flex; }
|
|
574
|
+
.cms-viewer__name { margin: 0; min-width: 0; font-size: inherit; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
575
|
+
.cms-viewer__position, .cms-viewer__status { flex: none; color: #a8afbb; white-space: nowrap; }
|
|
576
|
+
.cms-viewer__space { flex: 1 1 0; min-width: 0; }
|
|
577
|
+
.cms-viewer__actions { display: inline-flex; gap: var(--cms-space-1); flex: none; }
|
|
578
|
+
.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; }
|
|
579
|
+
.cms-viewer__icon { flex: none; width: 36px; }
|
|
580
|
+
.cms-viewer__button { flex: none; padding: 0 var(--cms-space-3); }
|
|
581
|
+
.cms-viewer__icon:hover, .cms-viewer__button:hover { background: #262b34; }
|
|
582
|
+
.cms-viewer :focus-visible { outline: 2px solid var(--cms-accent); outline-offset: 2px; }
|
|
583
|
+
.cms-viewer__button--edit, .cms-viewer__button--edit:hover { background: var(--cms-accent); color: #1a1a1a; font-weight: 600; }
|
|
584
|
+
.cms-viewer__more { display: none; position: relative; flex: none; }
|
|
585
|
+
.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; }
|
|
586
|
+
.cms-viewer__menu .cms-viewer__button { justify-content: flex-start; min-height: var(--cms-touch-target-min); }
|
|
587
|
+
.cms-viewer__body { display: flex; min-height: 0; }
|
|
588
|
+
.cms-viewer__thumbnails { flex: none; width: 124px; padding: var(--cms-space-3); overflow: auto; border-right: 1px solid #2a2f38; }
|
|
589
|
+
.cms-viewer__content { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; }
|
|
590
|
+
/* A state instead of the file, in the viewer's own dark colours whatever the page's scheme. */
|
|
591
|
+
.cms-viewer .cms-state { min-height: 100%; color: #a8afbb; }
|
|
592
|
+
.cms-viewer .cms-state__title { color: #f4f5f7; }
|
|
593
|
+
/* The file changed elsewhere while being edited: the question across the top of the content, above the editor. */
|
|
594
|
+
.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; }
|
|
595
|
+
.cms-viewer__conflict-text { flex: 1 1 16rem; min-width: 0; margin: 0; }
|
|
596
|
+
/* The next arrow stands clear of the content's own vertical scrollbar (at most 20px), down the content's right edge. */
|
|
597
|
+
.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; }
|
|
598
|
+
.cms-viewer__side--previous { left: var(--cms-space-3); }
|
|
599
|
+
.cms-viewer__side--next { right: calc(var(--cms-space-3) + 20px); }
|
|
600
|
+
.cms-viewer__side--next svg { transform: scaleX(-1); }
|
|
601
|
+
.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; }
|
|
602
|
+
.cms-viewer__dots { display: none; position: absolute; left: 0; right: 0; bottom: var(--cms-space-2); z-index: 2; justify-content: center; gap: 6px; }
|
|
603
|
+
.cms-viewer__dots i { width: 7px; height: 7px; border-radius: 50%; background: #6c7482; }
|
|
604
|
+
.cms-viewer__dots i.is-current { background: #f4f5f7; }
|
|
605
|
+
.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; }
|
|
606
|
+
@media (max-width: 1199.98px) {
|
|
607
|
+
.cms-viewer__icon, .cms-viewer__button { min-height: var(--cms-touch-target-min); min-width: var(--cms-touch-target-min); }
|
|
608
|
+
}
|
|
609
|
+
@media (max-width: 599.98px) {
|
|
610
|
+
.cms-viewer__top { padding: 0 var(--cms-space-1); gap: var(--cms-space-1); }
|
|
611
|
+
.cms-viewer__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
|
|
612
|
+
.cms-viewer__position, .cms-viewer__actions, .cms-viewer__wide, .cms-viewer__thumbnails, .cms-viewer__side, .cms-viewer__strip { display: none; }
|
|
613
|
+
.cms-viewer__more { display: inline-flex; }
|
|
614
|
+
.cms-viewer__dots { display: flex; }
|
|
615
|
+
.cms-viewer__button--edit { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); padding: 0; }
|
|
616
|
+
.cms-viewer.is-editing .cms-viewer__button--edit { width: auto; padding: 0 var(--cms-space-3); }
|
|
617
|
+
.cms-viewer__status { max-width: 92px; white-space: normal; font-size: var(--cms-font-size-label); line-height: 1.15; }
|
|
618
|
+
}
|
|
619
|
+
@media (prefers-reduced-motion: reduce) { .cms-viewer * { transition: none; animation: none; } }
|
|
620
|
+
|
|
621
|
+
/*
|
|
622
|
+
* The layout's widths, from design-tokens: phone below breakpoint-tablet (600px), tablet from it, desktop from
|
|
623
|
+
* breakpoint-desktop (1200px). A custom property cannot be read in a media query, so the numbers are written here and
|
|
624
|
+
* tools/check-breakpoints.mjs compares them with the tokens.
|
|
625
|
+
*/
|
|
626
|
+
|
|
627
|
+
/* Tablet and phone, the touch widths: an icons-only rail, two panes, touch targets of at least 44px. */
|
|
628
|
+
@media (max-width: 1199.98px) {
|
|
629
|
+
.cms-shell { grid-template-columns: var(--cms-rail-width-compact) minmax(0, 1fr); }
|
|
630
|
+
.cms-shell__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
631
|
+
.cms-shell__item { justify-content: center; min-height: var(--cms-touch-target-min); }
|
|
632
|
+
.cms-shell__top { gap: var(--cms-space-3); padding: 0 var(--cms-space-4); }
|
|
633
|
+
.cms-shell__search { min-width: 0; }
|
|
634
|
+
.cms-chip, .cms-tab, .cms-menu__item, .cms-list__row, .cms-panes__back, .cms-server-switch { min-height: var(--cms-touch-target-min); }
|
|
635
|
+
.cms-icon-button { min-width: var(--cms-touch-target-min); min-height: var(--cms-touch-target-min); }
|
|
636
|
+
.cms-search { height: var(--cms-touch-target-min); }
|
|
637
|
+
.cms-search__input { align-self: stretch; }
|
|
638
|
+
.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; }
|
|
639
|
+
.cms-signin-form__forgot { display: inline-flex; align-items: center; min-height: var(--cms-touch-target-min); }
|
|
640
|
+
.cms-call-bar { flex-wrap: wrap; }
|
|
641
|
+
.cms-call-bar__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
|
|
642
|
+
.cms-chip { height: auto; }
|
|
643
|
+
.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); }
|
|
644
|
+
.cms-panes__splitter { display: none; }
|
|
645
|
+
.cms-panes__pane { display: none; }
|
|
646
|
+
.cms-panes__pane[data-offset='0'],
|
|
647
|
+
.cms-panes__pane[data-offset='1'],
|
|
648
|
+
.cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: block; }
|
|
649
|
+
.cms-panes--three[data-active='2'] .cms-panes__back { display: flex; }
|
|
650
|
+
.cms-signin__brand { padding: var(--cms-space-8); }
|
|
651
|
+
.cms-signin__features { grid-template-columns: minmax(0, 1fr); }
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/* Phone: a bottom tab bar instead of the rail, one pane at a time with Back, sign-in alone. */
|
|
655
|
+
@media (max-width: 599.98px) {
|
|
656
|
+
.cms-shell {
|
|
657
|
+
grid-template-columns: minmax(0, 1fr);
|
|
658
|
+
grid-template-rows: var(--cms-topbar-height) minmax(0, 1fr) calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px));
|
|
659
|
+
}
|
|
660
|
+
.cms-shell__top { grid-row: 1; grid-column: 1; }
|
|
661
|
+
.cms-shell__main { grid-row: 2; grid-column: 1; }
|
|
662
|
+
.cms-shell__rail { grid-row: 3; grid-column: 1; flex-direction: row; padding: 0 0 env(safe-area-inset-bottom, 0px); }
|
|
663
|
+
.cms-shell__mark, .cms-shell__product, .cms-shell__search { display: none; }
|
|
664
|
+
.cms-shell__items { flex-direction: row; justify-content: space-around; padding: 0; }
|
|
665
|
+
.cms-shell__items > li { flex: 1; }
|
|
666
|
+
.cms-shell__item { height: var(--cms-tabbar-height); }
|
|
667
|
+
.cms-shell__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
|
|
668
|
+
.cms-panes--two, .cms-panes--three, .cms-panes--sized.cms-panes--two, .cms-panes--sized.cms-panes--three { grid-template-columns: minmax(0, 1fr); }
|
|
669
|
+
.cms-panes__pane[data-offset='1'],
|
|
670
|
+
.cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: none; }
|
|
671
|
+
.cms-panes:not([data-active='0']) .cms-panes__back { display: flex; }
|
|
672
|
+
.cms-signin { grid-template-columns: minmax(0, 1fr); }
|
|
673
|
+
.cms-signin__brand { display: none; }
|
|
674
|
+
.cms-signin__form { padding: var(--cms-space-6) var(--cms-space-4); }
|
|
675
|
+
/* One header: while a screen shell is drawn, the shell's own top bar gives way to the screen's bar, which carries the
|
|
676
|
+
host's globals (the account, the search). */
|
|
677
|
+
.cms-shell:has(.cms-screen) { grid-template-rows: 0 minmax(0, 1fr) calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px)); }
|
|
678
|
+
.cms-shell:has(.cms-screen) .cms-shell__top { overflow: hidden; border-bottom: 0; }
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/* File picker: a dialog of fixed height whose list scrolls; on a phone the whole screen, its foot kept at the bottom. */
|
|
682
|
+
.cms-modal.cms-file-picker { width: min(640px, 100%); height: min(560px, calc(100vh - 32px)); }
|
|
683
|
+
.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; }
|
|
684
|
+
.cms-file-picker__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); }
|
|
685
|
+
.cms-file-picker__space { flex: none; }
|
|
686
|
+
.cms-file-picker__path { display: flex; flex: 1 1 auto; align-items: center; gap: var(--cms-space-1); min-width: 0; }
|
|
687
|
+
.cms-file-picker__path ol { display: flex; gap: var(--cms-space-1); min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
|
|
688
|
+
.cms-file-picker__path li { display: flex; gap: var(--cms-space-1); min-width: 0; }
|
|
689
|
+
.cms-file-picker__path li + li::before { content: '/'; color: var(--cms-text-muted); }
|
|
690
|
+
.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; }
|
|
691
|
+
.cms-file-picker__crumb[aria-current='location'] { color: var(--cms-text); cursor: default; }
|
|
692
|
+
.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; }
|
|
693
|
+
.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); }
|
|
694
|
+
.cms-file-picker__chosen ul { margin: 0; padding: 0; list-style: none; }
|
|
695
|
+
.cms-file-picker__chosen li { display: flex; align-items: center; gap: var(--cms-space-2); }
|
|
696
|
+
.cms-file-picker__chosen .cms-button { align-self: flex-start; }
|
|
697
|
+
.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); }
|
|
698
|
+
.cms-file-picker__entries:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: -2px; }
|
|
699
|
+
.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; }
|
|
700
|
+
.cms-file-picker__entry.is-active { background: var(--cms-surface-hover); }
|
|
701
|
+
.cms-file-picker__entry.is-ticked { box-shadow: inset 3px 0 0 var(--cms-accent); }
|
|
702
|
+
.cms-file-picker__entry.is-disabled { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
703
|
+
.cms-file-picker__tick { display: inline-flex; flex: none; width: 16px; color: var(--cms-accent); }
|
|
704
|
+
.cms-file-picker__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
705
|
+
.cms-file-picker__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: var(--cms-space-1) 0; }
|
|
706
|
+
.cms-file-picker__reason { color: var(--cms-text-muted); font-size: 0.875em; }
|
|
707
|
+
.cms-file-picker__size { flex: none; color: var(--cms-text-secondary); font-size: 0.875em; }
|
|
708
|
+
.cms-file-picker__paging { padding: var(--cms-space-2) var(--cms-space-3); }
|
|
709
|
+
.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); }
|
|
710
|
+
.cms-file-picker__summary { display: flex; flex-direction: column; color: var(--cms-text-secondary); font-size: 0.875em; }
|
|
711
|
+
.cms-file-picker__summary .is-over { color: var(--cms-danger); }
|
|
712
|
+
.cms-file-picker__actions { display: flex; gap: var(--cms-space-2); margin-left: auto; }
|
|
713
|
+
@media (max-width: 599.98px) {
|
|
714
|
+
.cms-modal-scrim:has(.cms-file-picker) { padding: 0; }
|
|
715
|
+
.cms-modal.cms-file-picker { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
|
|
716
|
+
.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); }
|
|
717
|
+
.cms-file-picker__actions { width: 100%; }
|
|
718
|
+
.cms-file-picker__actions .cms-button { flex: 1 1 0; }
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/* The row's height is pane-toolbar-height's definition, written out until the token file that defines it is released
|
|
722
|
+
(design-tokens, after both kits implement the entry); then it reads the token. */
|
|
723
|
+
/* The one row of actions at the top of a pane (contract `pane-toolbar`): one height in every pane so the rows line up,
|
|
724
|
+
one line that never wraps, the actions at the start and the status at the end. Labels hide all at once, then actions
|
|
725
|
+
go behind More; the row is fitted by the component to its own width. */
|
|
726
|
+
.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; }
|
|
727
|
+
.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); }
|
|
728
|
+
.cms-pane-toolbar__group[hidden] { display: none; }
|
|
729
|
+
.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); }
|
|
730
|
+
.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; }
|
|
731
|
+
.cms-pane-toolbar__action:hover:not([aria-disabled='true']) { background: var(--cms-surface-hover); }
|
|
732
|
+
.cms-pane-toolbar__action:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
733
|
+
.cms-pane-toolbar__action--bare { justify-content: center; width: var(--cms-row-height, 36px); padding: 0; }
|
|
734
|
+
.cms-pane-toolbar__action[hidden] { display: none; }
|
|
735
|
+
.cms-pane-toolbar__action[aria-disabled='true'] { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
736
|
+
.cms-pane-toolbar__action.is-danger { color: var(--cms-danger-text); }
|
|
737
|
+
.cms-pane-toolbar__more { flex: none; }
|
|
738
|
+
.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); }
|
|
739
|
+
/* A label hidden: its tooltip on hover and on keyboard focus, never the action's only name. */
|
|
740
|
+
.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; }
|
|
741
|
+
.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; }
|
|
742
|
+
/* 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. */
|
|
743
|
+
.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; }
|
|
744
|
+
.cms-pane-toolbar__measure { position: absolute; top: 0; left: 0; display: flex; visibility: hidden; pointer-events: none; }
|
|
745
|
+
.cms-pane-toolbar__measure > span, .cms-pane-toolbar__measure > div { flex: none; }
|
|
746
|
+
/* At tablet and phone widths each action is at least a touch target, in the same row. */
|
|
747
|
+
@media (max-width: 1199.98px) {
|
|
748
|
+
.cms-pane-toolbar__action { min-height: var(--cms-touch-target-min, 44px); }
|
|
749
|
+
.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); }
|
|
750
|
+
}
|