@coolms/ui-react 0.1.0-alpha.30 → 0.1.0-alpha.32
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 +25 -0
- package/design-tokens.lock.json +4 -4
- package/dist/components/Button.d.ts +6 -3
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/PaneToolbar.d.ts +21 -1
- package/dist/components/ScreenShell.d.ts +9 -2
- package/dist/components/SectionHeader.d.ts +3 -2
- package/dist/components/Splitter.d.ts +38 -0
- package/dist/components/Workspace.d.ts +18 -12
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1302 -1215
- package/kit.contract.json +4 -3
- package/package.json +1 -1
- package/src/kit.css +66 -49
package/kit.contract.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"kit": "@coolms/ui-react",
|
|
3
3
|
"components": {
|
|
4
|
-
"button": { "implementedBy": "Button", "states": ["default", "primary", "danger", "disabled", "busy", "locked"] },
|
|
4
|
+
"button": { "implementedBy": "Button", "states": ["default", "primary", "danger", "disabled", "busy", "locked", "quiet"] },
|
|
5
5
|
"text-field": { "implementedBy": "TextField", "states": ["default", "focused", "disabled", "read-only", "invalid", "pinned"] },
|
|
6
6
|
"select": { "implementedBy": "Select", "states": ["default", "disabled", "read-only", "invalid", "empty-list"] },
|
|
7
7
|
"toggle": { "implementedBy": "Toggle", "states": ["on", "off", "disabled", "read-only"] },
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"list": { "implementedBy": "List", "states": ["loading", "empty", "populated", "selected", "error", "pulled"] },
|
|
19
19
|
"avatar": { "implementedBy": "Avatar", "states": ["picture", "initials", "presence", "connection", "deleted"] },
|
|
20
20
|
"filter-chips": { "implementedBy": "FilterChips", "states": ["default", "chosen", "focused", "overflowing"] },
|
|
21
|
-
"screen-shell": { "implementedBy": "ScreenShell", "states": ["root", "nested", "with-filters", "with-primary-action", "with-primary-menu", "pulling", "refreshing", "searching", "bar-hidden"] },
|
|
21
|
+
"screen-shell": { "implementedBy": "ScreenShell", "states": ["root", "nested", "with-filters", "with-primary-action", "with-primary-menu", "with-more", "pulling", "refreshing", "searching", "bar-hidden"] },
|
|
22
22
|
"context-menu": { "implementedBy": "ContextMenu", "states": ["open", "item-danger", "item-locked", "item-refused", "item-disabled"] },
|
|
23
23
|
"file-viewer": { "implementedBy": "FileViewer", "states": ["loading", "error", "no-preview", "editing", "editing-closing", "editing-conflict", "with-edit", "with-siblings", "with-thumbnails", "with-attachment-strip", "phone"] },
|
|
24
24
|
"file-picker": { "implementedBy": "FilePicker", "states": ["loading", "empty", "error", "denied", "with-selection", "with-budget", "over-budget", "disabled-entry", "paging", "phone"] },
|
|
25
25
|
"notification": { "implementedBy": "Notification", "states": ["unread", "read", "collapsed", "expanded", "with-action", "row-action"] },
|
|
26
|
-
"pane-toolbar": { "implementedBy": "PaneToolbar", "states": ["default", "labels-partly-hidden", "labels-hidden", "overflowing", "menu-open", "with-status", "action-disabled", "action-busy", "phone"] }
|
|
26
|
+
"pane-toolbar": { "implementedBy": "PaneToolbar", "states": ["default", "labels-partly-hidden", "labels-hidden", "overflowing", "menu-open", "with-status", "action-disabled", "action-busy", "phone"] },
|
|
27
|
+
"splitter": { "implementedBy": "Splitter", "states": ["default", "hover", "dragging", "focused", "at-min", "at-max"] }
|
|
27
28
|
},
|
|
28
29
|
"serverStates": {
|
|
29
30
|
"node-rwx": { "where": "src/server/capability.ts" },
|
package/package.json
CHANGED
package/src/kit.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
min-height: var(--cms-control-height-md);
|
|
33
33
|
padding: 0 12px;
|
|
34
34
|
border: 1px solid var(--cms-btn-border);
|
|
35
|
-
border-radius: var(--cms-radius);
|
|
35
|
+
border-radius: var(--cms-radius-control);
|
|
36
36
|
background: var(--cms-btn-bg);
|
|
37
37
|
color: var(--cms-btn-text);
|
|
38
38
|
font: inherit;
|
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
.cms-button--primary:hover:not(:disabled) { background: var(--cms-accent-hover); border-color: var(--cms-accent-hover); }
|
|
44
44
|
.cms-button--danger { background: var(--cms-danger); border-color: var(--cms-danger); color: var(--cms-text-inverse); }
|
|
45
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; }
|
|
46
48
|
.cms-button:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
47
49
|
.cms-button.is-busy { opacity: 0.8; cursor: progress; }
|
|
48
50
|
.cms-button.is-locked { border-style: dashed; }
|
|
@@ -54,12 +56,11 @@
|
|
|
54
56
|
width: var(--cms-row-height-sm);
|
|
55
57
|
height: var(--cms-row-height-sm);
|
|
56
58
|
border: 0;
|
|
57
|
-
border-radius: var(--cms-radius-
|
|
59
|
+
border-radius: var(--cms-radius-control);
|
|
58
60
|
background: transparent;
|
|
59
61
|
color: var(--cms-text-muted);
|
|
60
62
|
cursor: pointer;
|
|
61
63
|
}
|
|
62
|
-
.cms-icon-button:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
63
64
|
|
|
64
65
|
/* Fields */
|
|
65
66
|
.cms-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
|
|
@@ -223,7 +224,7 @@
|
|
|
223
224
|
.cms-section-header__primary .cms-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
|
|
224
225
|
.cms-section-header__primary--split > .cms-button:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
|
|
225
226
|
.cms-section-header__split { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: 1px; padding-inline: var(--cms-space-2); }
|
|
226
|
-
.cms-section-header__more { display: inline-flex; align-items: center; justify-content: center; width: var(--cms-control-height-md); height: var(--cms-control-height-md); border: 0; border-radius: var(--cms-radius-
|
|
227
|
+
.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; }
|
|
227
228
|
.cms-section-header__more:hover { background: var(--cms-btn-hover-bg); }
|
|
228
229
|
.cms-section-header__more:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
229
230
|
.cms-section-header__context { display: flex; align-items: center; min-width: 0; height: var(--cms-pane-header-height); }
|
|
@@ -266,7 +267,6 @@
|
|
|
266
267
|
cursor: pointer;
|
|
267
268
|
}
|
|
268
269
|
.cms-list__row:last-child { border-bottom: 0; }
|
|
269
|
-
.cms-list__row:hover { background: var(--cms-surface-hover); }
|
|
270
270
|
.cms-list__row.is-selected { background: var(--cms-selected-light); box-shadow: inset 3px 0 0 var(--cms-selected); }
|
|
271
271
|
.cms-list__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
|
|
272
272
|
.cms-list__primary, .cms-list__secondary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -282,17 +282,21 @@
|
|
|
282
282
|
at the bottom right above the section bar. */
|
|
283
283
|
.cms-screen { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--cms-surface); }
|
|
284
284
|
.cms-screen__bar { display: flex; flex: none; align-items: center; gap: var(--cms-space-2); height: var(--cms-topbar-height); padding: 0 var(--cms-space-2); border-bottom: 1px solid var(--cms-border-light); }
|
|
285
|
-
|
|
285
|
+
/* Back gives way before the title: it takes all of the missing width, down to its icon, and only then is the title cut.
|
|
286
|
+
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. */
|
|
287
|
+
.cms-screen__leading { display: flex; flex: 0 1000000 auto; align-items: center; max-width: 40%; min-width: var(--cms-touch-target-min); }
|
|
286
288
|
.cms-screen__leading:empty { display: none; }
|
|
287
|
-
|
|
288
|
-
.
|
|
289
|
-
.cms-screen__back
|
|
289
|
+
/* 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
|
|
290
|
+
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. */
|
|
291
|
+
.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; }
|
|
292
|
+
.cms-screen__back::before { content: ""; width: 0; height: 100%; margin-inline-end: calc(-1 * var(--cms-space-1)); }
|
|
293
|
+
.cms-screen__back-name { flex: 1 1 24px; min-width: 24px; max-width: max-content; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
290
294
|
.cms-screen__title { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: var(--cms-font-size-title-md); font-weight: var(--cms-font-weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
|
|
291
295
|
.cms-screen__trailing { display: flex; flex: none; align-items: center; gap: var(--cms-space-1); }
|
|
292
296
|
.cms-screen__search { display: flex; flex: 1 1 auto; min-width: 0; }
|
|
293
297
|
.cms-screen__search > * { flex: 1 1 auto; min-width: 0; }
|
|
294
298
|
.cms-screen__icon { width: var(--cms-control-height-md); height: var(--cms-control-height-md); }
|
|
295
|
-
.cms-screen__filters { flex: none; padding: var(--cms-space-2) var(--cms-space-4);
|
|
299
|
+
.cms-screen__filters { flex: none; padding: var(--cms-space-2) var(--cms-space-4); }
|
|
296
300
|
.cms-screen__content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
|
|
297
301
|
.cms-screen__primary { position: absolute; right: var(--cms-space-4); bottom: var(--cms-space-4); z-index: 2; width: calc(var(--cms-control-height-lg) + var(--cms-space-3)); height: calc(var(--cms-control-height-lg) + var(--cms-space-3)); min-height: 0; padding: 0; border-radius: 50%; justify-content: center; box-shadow: var(--cms-shadow-md); }
|
|
298
302
|
/* bar-hidden: the bar and the filters step out of view, collapsed rather than removed, so focus can still reach them
|
|
@@ -355,7 +359,6 @@
|
|
|
355
359
|
button action under the text. Unread: the title in weight and a dot. */
|
|
356
360
|
.cms-notification { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: var(--cms-space-1); padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-md); }
|
|
357
361
|
.cms-notification__row { display: flex; align-items: flex-start; gap: var(--cms-space-3); min-width: 0; padding: var(--cms-space-2); border-radius: var(--cms-radius-md); color: var(--cms-text); cursor: pointer; }
|
|
358
|
-
.cms-notification__row:hover { background: var(--cms-hover-bg); }
|
|
359
362
|
.cms-notification__row:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
360
363
|
.cms-notification__leading { flex: none; display: inline-flex; }
|
|
361
364
|
.cms-notification__text { display: flex; flex: 1; flex-direction: column; gap: var(--cms-space-1); min-width: 0; }
|
|
@@ -366,7 +369,7 @@
|
|
|
366
369
|
.cms-notification__body { overflow: hidden; color: var(--cms-text-muted); text-overflow: ellipsis; white-space: nowrap; }
|
|
367
370
|
.cms-notification.is-expanded .cms-notification__body { white-space: pre-wrap; overflow-wrap: break-word; }
|
|
368
371
|
.cms-notification__dot { flex: none; width: 8px; height: 8px; margin-top: var(--cms-space-2); border-radius: var(--cms-radius-pill); background: var(--cms-accent); }
|
|
369
|
-
.cms-notification__chevron { display: inline-flex; align-items: center; justify-content: center; width: var(--cms-control-height-md); height: var(--cms-control-height-md); border: 0; border-radius: var(--cms-radius-
|
|
372
|
+
.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; }
|
|
370
373
|
.cms-notification__chevron:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
371
374
|
.cms-notification.is-expanded .cms-notification__chevron svg { transform: rotate(180deg); }
|
|
372
375
|
.cms-notification__action { grid-column: 1; justify-self: start; margin: 0 0 var(--cms-space-2) var(--cms-space-2); }
|
|
@@ -382,7 +385,7 @@
|
|
|
382
385
|
outline-offset: 2px;
|
|
383
386
|
}
|
|
384
387
|
|
|
385
|
-
.cms-button--chrome { background: var(--cms-button-chrome-bg); border-color: var(--cms-button-chrome-border); color: var(--cms-on-chrome);
|
|
388
|
+
.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); }
|
|
386
389
|
.cms-button--chrome:hover:not(:disabled) { background: var(--cms-sidebar-hover); border-color: var(--cms-button-chrome-border); }
|
|
387
390
|
|
|
388
391
|
/* Badge, pill */
|
|
@@ -442,7 +445,7 @@
|
|
|
442
445
|
.cms-shell__main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
|
|
443
446
|
.cms-shell__main > :only-child { flex: 1; min-height: 0; }
|
|
444
447
|
|
|
445
|
-
.cms-server-switch { display: inline-flex; align-items: center; gap: var(--cms-space-2); height: 36px; padding: 0 var(--cms-space-3); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-
|
|
448
|
+
.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; }
|
|
446
449
|
|
|
447
450
|
/* Search */
|
|
448
451
|
.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); }
|
|
@@ -451,24 +454,12 @@
|
|
|
451
454
|
.cms-search__input::placeholder { color: var(--cms-text-muted); }
|
|
452
455
|
|
|
453
456
|
/* Filter chips */
|
|
454
|
-
/*
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
.cms-chips {
|
|
458
|
-
|
|
459
|
-
padding-block: 3px; margin-block: -3px; padding-inline: 3px; margin-inline: -3px;
|
|
460
|
-
}
|
|
461
|
-
.cms-chips::-webkit-scrollbar { display: none; }
|
|
462
|
-
.cms-chips > .cms-chip { flex: none; }
|
|
463
|
-
.cms-chips.is-past-end { mask-image: linear-gradient(to right, #000 calc(100% - var(--cms-space-6)), transparent); }
|
|
464
|
-
.cms-chips.is-past-start { mask-image: linear-gradient(to right, transparent, #000 var(--cms-space-6)); }
|
|
465
|
-
.cms-chips.is-past-start.is-past-end { mask-image: linear-gradient(to right, transparent, #000 var(--cms-space-6), #000 calc(100% - var(--cms-space-6)), transparent); }
|
|
466
|
-
/* Right to left, the start is the right edge. */
|
|
467
|
-
.cms-chips.is-past-end:dir(rtl) { mask-image: linear-gradient(to left, #000 calc(100% - var(--cms-space-6)), transparent); }
|
|
468
|
-
.cms-chips.is-past-start:dir(rtl) { mask-image: linear-gradient(to left, transparent, #000 var(--cms-space-6)); }
|
|
469
|
-
.cms-chips.is-past-start.is-past-end:dir(rtl) { mask-image: linear-gradient(to left, transparent, #000 var(--cms-space-6), #000 calc(100% - var(--cms-space-6)), transparent); }
|
|
457
|
+
/* Chips are never cut off: those that do not fit the row wrap onto the next line, each chip whole. */
|
|
458
|
+
/* The group keeps its whole width beside what its row holds; a row that wraps puts it on its own line below, where
|
|
459
|
+
its chips wrap in turn. */
|
|
460
|
+
.cms-chips { display: flex; flex: none; flex-wrap: wrap; gap: var(--cms-space-2); max-width: 100%; min-width: 0; }
|
|
461
|
+
.cms-chips > .cms-chip { flex: none; max-width: 100%; }
|
|
470
462
|
.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; }
|
|
471
|
-
.cms-chip:hover { background: var(--cms-surface-muted); }
|
|
472
463
|
.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); }
|
|
473
464
|
|
|
474
465
|
/* Panes */
|
|
@@ -479,9 +470,14 @@
|
|
|
479
470
|
.cms-panes--sized { position: relative; }
|
|
480
471
|
.cms-panes--sized.cms-panes--two { grid-template-columns: var(--split-pane-0) minmax(0, 1fr); }
|
|
481
472
|
.cms-panes--sized.cms-panes--three { grid-template-columns: var(--split-pane-0) var(--split-pane-1) minmax(0, 1fr); }
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
.cms-
|
|
473
|
+
/* The splitter (contract `splitter`): an 8px strip between two columns that draws nothing at rest; on hover and while
|
|
474
|
+
dragged, the accent line down its middle; with keyboard focus, the same line in the focus ring's colour. */
|
|
475
|
+
.cms-splitter { position: relative; z-index: 2; flex: none; align-self: stretch; width: 8px; margin-inline: -4px; cursor: col-resize; touch-action: none; }
|
|
476
|
+
.cms-splitter:hover, .cms-splitter.is-dragging { background: linear-gradient(to right, transparent 3px, var(--cms-accent) 3px, var(--cms-accent) 5px, transparent 5px); }
|
|
477
|
+
/* Keyboard focus is the same one line, in the focus ring's colour: a ring around the 8px strip would draw two. */
|
|
478
|
+
.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); }
|
|
479
|
+
:root:has(.cms-splitter.is-dragging) { cursor: col-resize; user-select: none; }
|
|
480
|
+
.cms-panes__splitter { position: absolute; top: 0; bottom: 0; left: calc(var(--split-at) - 4px); margin: 0; }
|
|
485
481
|
.cms-panes.is-resizing { cursor: col-resize; user-select: none; }
|
|
486
482
|
.cms-panes__pane:first-child { background: var(--cms-bg); }
|
|
487
483
|
.cms-panes__pane:last-child { border-right: 0; }
|
|
@@ -506,7 +502,6 @@
|
|
|
506
502
|
text-align: left;
|
|
507
503
|
cursor: pointer;
|
|
508
504
|
}
|
|
509
|
-
.cms-mail-row:hover { background: var(--cms-surface-muted); }
|
|
510
505
|
.cms-mail-row__open { display: flex; align-items: flex-start; gap: var(--cms-space-3); flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
|
|
511
506
|
.cms-mail-row__lead { position: relative; flex: none; width: 40px; height: 40px; }
|
|
512
507
|
.cms-mail-row__check {
|
|
@@ -518,8 +513,26 @@
|
|
|
518
513
|
background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m5 12 5 5 9-10%27/%3E%3C/svg%3E");
|
|
519
514
|
}
|
|
520
515
|
.cms-mail-row__check[aria-disabled="true"] { cursor: progress; }
|
|
521
|
-
|
|
522
|
-
|
|
516
|
+
/* The checkbox takes the avatar's place while something is selected, on keyboard focus, and under a fine pointer's
|
|
517
|
+
hover (below): a tap leaves neither, so with nothing selected a touch screen shows every avatar. */
|
|
518
|
+
.cms-mail-row:is(.is-selecting, .is-checked, :has(:focus-visible)) .cms-mail-row__check { opacity: 1; }
|
|
519
|
+
.cms-mail-row:is(.is-selecting, .is-checked, :has(:focus-visible)) .cms-mail-row__lead > .cms-avatar { visibility: hidden; }
|
|
520
|
+
/* Hover, only where hover exists: a touch screen keeps a tapped control's hover after the tap (a row's tint, an
|
|
521
|
+
icon button's, a chip's, a toolbar action's tooltip). */
|
|
522
|
+
@media (hover: hover) and (pointer: fine) {
|
|
523
|
+
.cms-list__row:not(.is-selected):hover { background: var(--cms-surface-hover); }
|
|
524
|
+
.cms-notification__row:hover { background: var(--cms-hover-bg); }
|
|
525
|
+
.cms-mail-row:hover { background: var(--cms-surface-muted); }
|
|
526
|
+
.cms-mail-row:hover .cms-mail-row__check { opacity: 1; }
|
|
527
|
+
.cms-mail-row:hover .cms-mail-row__lead > .cms-avatar { visibility: hidden; }
|
|
528
|
+
.cms-icon-button:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
529
|
+
.cms-screen__back:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
|
|
530
|
+
.cms-chip:not(.is-on):hover { background: var(--cms-surface-muted); }
|
|
531
|
+
.cms-pane-toolbar__action:hover:not([aria-disabled='true']) { background: var(--cms-btn-hover-bg); }
|
|
532
|
+
.cms-pane-toolbar__more:hover { background: var(--cms-btn-hover-bg); }
|
|
533
|
+
.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip { display: block; }
|
|
534
|
+
.cms-pane-toolbar:has(.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip) { overflow: visible; }
|
|
535
|
+
}
|
|
523
536
|
.cms-mail-row.is-selected { background: var(--cms-row-selected); }
|
|
524
537
|
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.5; }
|
|
525
538
|
.cms-mail-row__line { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
@@ -551,7 +564,7 @@
|
|
|
551
564
|
.cms-composer--reply .cms-composer__send { margin-left: auto; }
|
|
552
565
|
.cms-composer--reply .cms-composer__leading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
553
566
|
.cms-composer__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
554
|
-
.cms-composer__send-round { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius:
|
|
567
|
+
.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; }
|
|
555
568
|
.cms-composer__send-round:disabled, .cms-composer__send:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
556
569
|
|
|
557
570
|
/* Call */
|
|
@@ -560,7 +573,7 @@
|
|
|
560
573
|
.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); }
|
|
561
574
|
.cms-call-incoming__what { margin: 0; color: var(--cms-sidebar-text); }
|
|
562
575
|
.cms-call-incoming__actions { display: flex; gap: var(--cms-space-12); margin-top: var(--cms-space-6); }
|
|
563
|
-
.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; }
|
|
576
|
+
.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; }
|
|
564
577
|
.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); }
|
|
565
578
|
.cms-call-button.is-pressed .cms-call-button__disc { background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); }
|
|
566
579
|
.cms-call-button--accept .cms-call-button__disc { background: var(--cms-chrome-success); color: var(--cms-chrome-success-fg); }
|
|
@@ -584,7 +597,7 @@
|
|
|
584
597
|
.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; }
|
|
585
598
|
.cms-call-bar__icon[aria-pressed='true'] { background: var(--cms-on-chrome); color: var(--cms-sidebar-bg); }
|
|
586
599
|
.cms-call-bar__icon--hang-up { background: var(--cms-danger); color: var(--cms-text-inverse); }
|
|
587
|
-
.cms-call-bar .cms-button--primary {
|
|
600
|
+
.cms-call-bar .cms-button--primary { font-weight: var(--cms-font-weight-semibold); }
|
|
588
601
|
|
|
589
602
|
/* Sign-in */
|
|
590
603
|
.cms-signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; font-family: var(--cms-font-sans); }
|
|
@@ -607,7 +620,7 @@
|
|
|
607
620
|
.cms-signin-form__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
608
621
|
.cms-signin-form__password { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
|
|
609
622
|
.cms-signin-form__password .cms-signin-form__input { flex: 1; margin-bottom: 0; padding-right: 64px; }
|
|
610
|
-
.cms-signin-form__show { position: absolute; top: 50%; line-height: 1; right: var(--cms-space-3); transform: translateY(-50%); border: 0; background: transparent; color: var(--cms-text-body); font: inherit; cursor: pointer; }
|
|
623
|
+
.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; }
|
|
611
624
|
.cms-signin-form__forgot { align-self: flex-end; color: var(--cms-text); }
|
|
612
625
|
.cms-signin-form__error { margin: 0; color: var(--cms-danger-text); }
|
|
613
626
|
.cms-signin-form__submit { justify-content: center; height: 48px; margin-top: var(--cms-space-4); font-size: var(--cms-font-size-body-lg); }
|
|
@@ -625,7 +638,7 @@
|
|
|
625
638
|
.cms-viewer__position, .cms-viewer__status { flex: none; color: #a8afbb; white-space: nowrap; }
|
|
626
639
|
.cms-viewer__space { flex: 1 1 0; min-width: 0; }
|
|
627
640
|
.cms-viewer__actions { display: inline-flex; gap: var(--cms-space-1); flex: none; }
|
|
628
|
-
.cms-viewer__icon, .cms-viewer__button { display: inline-flex; align-items: center; justify-content: center; gap: var(--cms-space-2); height: 36px; border: 0; border-radius: var(--cms-radius-
|
|
641
|
+
.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; }
|
|
629
642
|
.cms-viewer__icon { flex: none; width: 36px; }
|
|
630
643
|
.cms-viewer__button { flex: none; padding: 0 var(--cms-space-3); }
|
|
631
644
|
.cms-viewer__icon:hover, .cms-viewer__button:hover { background: #262b34; }
|
|
@@ -644,7 +657,7 @@
|
|
|
644
657
|
.cms-viewer__conflict { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); margin: 0; padding: var(--cms-space-2) var(--cms-space-3); border-bottom: 1px solid var(--cms-warning); background: #262b34; }
|
|
645
658
|
.cms-viewer__conflict-text { flex: 1 1 16rem; min-width: 0; margin: 0; }
|
|
646
659
|
/* The next arrow stands clear of the content's own vertical scrollbar (at most 20px), down the content's right edge. */
|
|
647
|
-
.cms-viewer__side { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius:
|
|
660
|
+
.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; }
|
|
648
661
|
.cms-viewer__side--previous { left: var(--cms-space-3); }
|
|
649
662
|
.cms-viewer__side--next { right: calc(var(--cms-space-3) + 20px); }
|
|
650
663
|
.cms-viewer__side--next svg { transform: scaleX(-1); }
|
|
@@ -677,6 +690,8 @@
|
|
|
677
690
|
/* Tablet and phone, the touch widths: an icons-only rail, two panes, touch targets of at least 44px. */
|
|
678
691
|
@media (max-width: 1199.98px) {
|
|
679
692
|
.cms-shell { grid-template-columns: var(--cms-rail-width-compact) minmax(0, 1fr); }
|
|
693
|
+
/* The mail row's checkbox is a touch target: its place is 44px, the 40px avatar centred in it. */
|
|
694
|
+
.cms-mail-row__lead { display: grid; place-items: center; width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); margin: -2px; }
|
|
680
695
|
.cms-shell__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
681
696
|
.cms-shell__item { justify-content: center; min-height: var(--cms-touch-target-min); }
|
|
682
697
|
.cms-shell__top { gap: var(--cms-space-3); padding: 0 var(--cms-space-4); }
|
|
@@ -691,7 +706,7 @@
|
|
|
691
706
|
.cms-call-bar__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
|
|
692
707
|
.cms-chip { height: auto; }
|
|
693
708
|
.cms-panes--two, .cms-panes--three, .cms-panes--sized.cms-panes--two, .cms-panes--sized.cms-panes--three { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
|
|
694
|
-
.cms-
|
|
709
|
+
.cms-splitter { display: none; }
|
|
695
710
|
.cms-panes__pane { display: none; }
|
|
696
711
|
.cms-panes__pane[data-offset='0'],
|
|
697
712
|
.cms-panes__pane[data-offset='1'],
|
|
@@ -737,9 +752,9 @@
|
|
|
737
752
|
.cms-file-picker__path ol { display: flex; gap: var(--cms-space-1); min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
|
|
738
753
|
.cms-file-picker__path li { display: flex; gap: var(--cms-space-1); min-width: 0; }
|
|
739
754
|
.cms-file-picker__path li + li::before { content: '/'; color: var(--cms-text-muted); }
|
|
740
|
-
.cms-file-picker__crumb { min-width: 0; padding: 0; overflow: hidden; border: 0; background: none; color: var(--cms-accent); font: inherit; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
|
|
755
|
+
.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; }
|
|
741
756
|
.cms-file-picker__crumb[aria-current='location'] { color: var(--cms-text); cursor: default; }
|
|
742
|
-
.cms-file-picker__chip { flex: none; padding: var(--cms-space-1) var(--cms-space-2); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-
|
|
757
|
+
.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; }
|
|
743
758
|
.cms-file-picker__chosen { display: flex; flex-direction: column; gap: var(--cms-space-2); max-height: 40%; padding: var(--cms-space-2); overflow: auto; border: 1px solid var(--cms-border-light); border-radius: var(--cms-radius-md); }
|
|
744
759
|
.cms-file-picker__chosen ul { margin: 0; padding: 0; list-style: none; }
|
|
745
760
|
.cms-file-picker__chosen li { display: flex; align-items: center; gap: var(--cms-space-2); }
|
|
@@ -778,19 +793,21 @@
|
|
|
778
793
|
.cms-pane-toolbar__group[hidden] { display: none; }
|
|
779
794
|
.cms-pane-toolbar__separator { flex: none; width: 1px; height: calc(calc(var(--cms-row-height) + 2 * var(--cms-space-2)) - 2 * var(--cms-space-3)); margin: 0 var(--cms-space-1); background: var(--cms-border); }
|
|
780
795
|
.cms-pane-toolbar__action { position: relative; display: inline-flex; flex: none; align-items: center; gap: var(--cms-space-2); height: var(--cms-row-height, 36px); padding: 0 var(--cms-space-3); border: 1px solid transparent; border-radius: var(--cms-radius-control); background: none; color: var(--cms-text); font: inherit; cursor: pointer; }
|
|
781
|
-
.cms-pane-toolbar__action:hover:not([aria-disabled='true']) { background: var(--cms-surface-hover); }
|
|
782
796
|
.cms-pane-toolbar__action:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
|
|
783
797
|
.cms-pane-toolbar__action--bare { justify-content: center; width: var(--cms-row-height, 36px); padding: 0; }
|
|
784
798
|
.cms-pane-toolbar__action[hidden] { display: none; }
|
|
785
799
|
.cms-pane-toolbar__action[aria-disabled='true'] { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
786
800
|
.cms-pane-toolbar__action.is-danger { color: var(--cms-danger-text); }
|
|
801
|
+
.cms-pane-toolbar__action--menu.cms-pane-toolbar__action--bare { width: auto; padding: 0 var(--cms-space-2); gap: 0; }
|
|
802
|
+
.cms-pane-toolbar__chevron { display: inline-flex; flex: none; margin-inline-start: calc(-1 * var(--cms-space-1)); }
|
|
803
|
+
.cms-pane-toolbar__action--bare .cms-pane-toolbar__chevron { margin-inline-start: 0; }
|
|
787
804
|
.cms-pane-toolbar__more { flex: none; }
|
|
788
805
|
.cms-pane-toolbar__status { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: end; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
789
806
|
/* A label hidden: its tooltip on hover and on keyboard focus, never the action's only name. */
|
|
790
807
|
.cms-pane-toolbar__tip { position: absolute; top: calc(100% + var(--cms-space-1)); left: 50%; z-index: 20; display: none; padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-sm); background: var(--cms-text); color: var(--cms-bg-surface); font-size: var(--cms-font-size-meta); transform: translateX(-50%); pointer-events: none; }
|
|
791
|
-
.cms-pane-toolbar__action:
|
|
808
|
+
.cms-pane-toolbar__action:focus-visible > .cms-pane-toolbar__tip, .cms-pane-toolbar__action[data-reason-shown] > .cms-pane-toolbar__tip { display: block; }
|
|
792
809
|
/* The row's tooltips overflow the row: the row clips only its own line, so the tooltip is drawn by a row that lets it. */
|
|
793
|
-
.cms-pane-toolbar:has(.cms-pane-toolbar__action:
|
|
810
|
+
.cms-pane-toolbar:has(.cms-pane-toolbar__action:focus-visible > .cms-pane-toolbar__tip), .cms-pane-toolbar:has(.cms-pane-toolbar__action[data-reason-shown] > .cms-pane-toolbar__tip) { overflow: visible; }
|
|
794
811
|
.cms-pane-toolbar__measure { position: absolute; top: 0; left: 0; display: flex; visibility: hidden; pointer-events: none; }
|
|
795
812
|
.cms-pane-toolbar__measure > span, .cms-pane-toolbar__measure > div { flex: none; }
|
|
796
813
|
/* At tablet and phone widths each action is at least a touch target, in the same row. */
|