clay-server 5.6.0-beta.1 → 5.6.0-beta.3

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.
@@ -1,10 +1,9 @@
1
- /* One translucent material for navigation and pane chrome. Keep the filter on
1
+ /* Shared backing layers for navigation and pane chrome. Keep the filter on
2
2
  a backing layer so fixed-position controls retain their original viewport. */
3
3
  :root {
4
4
  --chrome-material-blur: 14px;
5
5
  --chrome-material-saturation: 1.08;
6
6
  --chrome-material-tint: 74%;
7
- --topbar-material-tint: 88%;
8
7
  }
9
8
 
10
9
  :is(#top-bar, :where(#navigation-island) > #icon-strip, #sidebar-column, #mate-sidebar-column, .title-bar-content,
@@ -27,10 +26,16 @@
27
26
  --chrome-material-solid: var(--sidebar-bg);
28
27
  }
29
28
 
30
- /* Keep the global menu quieter and denser than the navigation/pane glass. */
29
+ /* Navigation alone uses a softly blurred backing. */
30
+ :is(:where(#navigation-island) > #icon-strip, #sidebar-column, #mate-sidebar-column) {
31
+ --chrome-material-tint: 90%;
32
+ --chrome-material-blur: 24px;
33
+ --chrome-material-saturation: 1.04;
34
+ }
35
+
36
+ /* The global menu stays fully opaque, independently of navigation glass. */
31
37
  #top-bar {
32
38
  --chrome-material-solid: var(--sidebar-bg);
33
- --chrome-material-tint: var(--topbar-material-tint);
34
39
  /* Preserve the toolbar popover layer above chat and below contextual Clay. */
35
40
  z-index: 150;
36
41
  }
@@ -69,9 +74,7 @@ body.mate-workspace-active :is(#sidebar-column, .title-bar-content) {
69
74
  }
70
75
 
71
76
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (background: color-mix(in srgb, black 74%, transparent)) {
72
- :is(#top-bar, :where(#navigation-island) > #icon-strip, #sidebar-column, #mate-sidebar-column, .title-bar-content,
73
- .split-pane-header, .tool-pane-header, .terminal-header,
74
- .file-viewer-tabbar, .shared-browser-header, .dm-header-bar, #contextual-clay > header) {
77
+ :is(:where(#navigation-island) > #icon-strip, #sidebar-column, #mate-sidebar-column) {
75
78
  --chrome-material-fill: color-mix(in srgb, var(--chrome-material-solid) var(--chrome-material-tint), transparent);
76
79
  --chrome-material-filter: blur(var(--chrome-material-blur)) saturate(var(--chrome-material-saturation));
77
80
  }
@@ -80,6 +83,9 @@ body.mate-workspace-active :is(#sidebar-column, .title-bar-content) {
80
83
  /* The mobile drawer owns its existing fixed positioning and touch behavior. */
81
84
  @media (max-width: 768px) {
82
85
  #sidebar {
86
+ --chrome-material-tint: 90%;
87
+ --chrome-material-blur: 24px;
88
+ --chrome-material-saturation: 1.04;
83
89
  --chrome-material-solid: var(--sidebar-bg);
84
90
  --chrome-material-fill: var(--chrome-material-solid);
85
91
  --chrome-material-filter: none;
@@ -132,51 +138,11 @@ body.mate-workspace-active :is(#sidebar-column, .title-bar-content) {
132
138
  /* Browser tabs live inside the shared header, rather than its content body. */
133
139
  .tool-pane-material > .tool-pane-header > .shared-browser-tabs { background: transparent; }
134
140
 
135
- /* Reading glass is denser and more diffuse than navigation. The iframe face
136
- samples the parent workspace; embedded documents must not paint it again. */
137
- :root {
138
- --chat-material-fill: var(--bg);
139
- --chat-material-filter: none;
140
- }
141
- html:has(> body.pane-mode),
142
- body.pane-mode,
143
- body.pane-mode :is(#layout, #layout-body, #main-area, #main-column, #main-panels, #app) {
144
- background: transparent;
145
- }
146
-
147
- @media (min-width: 769px) {
148
- body:not(.pane-mode) #app {
149
- isolation: isolate;
150
- background: transparent;
151
- }
152
- body:not(.pane-mode) #app::before {
153
- content: "";
154
- position: absolute;
155
- inset: 0;
156
- z-index: -1;
157
- border-radius: inherit;
158
- background: var(--chat-material-fill);
159
- -webkit-backdrop-filter: var(--chat-material-filter);
160
- backdrop-filter: var(--chat-material-filter);
161
- pointer-events: none;
162
- }
163
- body:not(.pane-mode) .split-pane-frame {
164
- background: var(--chat-material-fill);
165
- -webkit-backdrop-filter: var(--chat-material-filter);
166
- backdrop-filter: var(--chat-material-filter);
167
- }
168
- @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (background: color-mix(in srgb, black 90%, transparent)) {
169
- :root {
170
- --chat-material-fill: color-mix(in srgb, var(--bg) 90%, transparent);
171
- --chat-material-filter: blur(24px) saturate(1.04);
172
- }
173
- }
174
- }
175
-
176
- /* Preserve solid reading surfaces for accessibility and unsupported browsers. */
177
- @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
178
- :root {
179
- --chat-material-fill: var(--bg);
180
- --chat-material-filter: none;
181
- }
141
+ /* Reading surfaces stay opaque in project, embedded and native Mate chats.
142
+ Pane headers also stay opaque; navigation retains its glass backing. */
143
+ #app,
144
+ .split-pane-frame {
145
+ background: var(--bg);
146
+ -webkit-backdrop-filter: none;
147
+ backdrop-filter: none;
182
148
  }
@@ -259,3 +259,175 @@ body.projects-active:not(.projects-shell) #layout-body {
259
259
  #terminal-toggle-btn #terminal-count.hidden,
260
260
  #sticky-notes-toggle-btn .sticky-notes-count.hidden,
261
261
  #notif-center-btn .notif-badge.hidden { display: none; }
262
+
263
+ /* Sidebar controls share the navigation face without bright floating tiles. */
264
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar, #icon-strip) {
265
+ --navigation-face: color-mix(in srgb, var(--brand-paper) 7%, transparent);
266
+ --navigation-hover: color-mix(in srgb, var(--text) 5%, var(--navigation-face));
267
+ --navigation-inset: color-mix(in srgb, var(--text) 7%, transparent);
268
+ }
269
+ :is(#sidebar-column, #mate-sidebar-column) .palette-tile > .lucide,
270
+ body.mate-workspace-active #sidebar-column .palette-tile:not(:hover):not(.active) > .lucide,
271
+ body.clay-workspace-active #sidebar-column #you-button.palette-tile > .lucide {
272
+ background: transparent;
273
+ box-shadow: none;
274
+ }
275
+ :is(#sidebar-column, #mate-sidebar-column) .palette-tile:hover > .lucide,
276
+ body.mate-workspace-active #sidebar-column .palette-tile:hover > .lucide,
277
+ body.clay-workspace-active #sidebar-column #you-button.palette-tile:hover > .lucide {
278
+ background: var(--navigation-hover);
279
+ box-shadow: none;
280
+ }
281
+ :is(#sidebar-column, #mate-sidebar-column) .palette-tile.active > .lucide,
282
+ body.mate-workspace-active #sidebar-column .palette-tile.active > .lucide,
283
+ body.clay-workspace-active #sidebar-column #you-button.palette-tile.active > .lucide {
284
+ background: color-mix(in srgb, var(--accent) 8%, var(--navigation-face));
285
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 48%, var(--border));
286
+ }
287
+ :is(#sidebar-column, #mate-sidebar-column) .palette-tile:active > .lucide {
288
+ transform: translateY(1px);
289
+ }
290
+ :is(#sidebar-column, #mate-sidebar-column) .sidebar-badge {
291
+ background: var(--navigation-inset);
292
+ color: var(--text-muted);
293
+ box-shadow: inset 0 1px 1px rgba(var(--shadow-rgb), .08);
294
+ }
295
+ #sidebar-column #sticky-notes-sidebar-count:hover {
296
+ background: var(--accent);
297
+ color: #fff;
298
+ }
299
+ #icon-strip :is(.icon-strip-item, .icon-strip-home)::before,
300
+ #icon-strip .icon-strip-filter-face,
301
+ #icon-strip .icon-strip-hint {
302
+ background: var(--navigation-face);
303
+ box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .04);
304
+ }
305
+ #icon-strip :is(.icon-strip-item, .icon-strip-home):hover::before,
306
+ #icon-strip .icon-strip-filter-knob:hover .icon-strip-filter-face,
307
+ #icon-strip .icon-strip-hint:hover {
308
+ background: var(--navigation-hover);
309
+ box-shadow: 0 1px 3px rgba(var(--shadow-rgb), .07);
310
+ }
311
+ #icon-strip :is(.icon-strip-item, .icon-strip-home).active::before {
312
+ background: color-mix(in srgb, var(--accent) 7%, var(--navigation-face));
313
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, var(--border)),
314
+ 0 1px 3px rgba(var(--shadow-rgb), .07);
315
+ }
316
+ /* Unread colors remain semantic; only the bright surrounding rim is softened. */
317
+ #icon-strip :is(.icon-strip-project-badge, .icon-strip-user-badge) {
318
+ box-shadow: 0 0 0 2px var(--navigation-face);
319
+ }
320
+ #sidebar-column .git-placard {
321
+ background: var(--navigation-face);
322
+ }
323
+ #sidebar-column :is(.git-placard-more, .git-placard-badge) {
324
+ background: var(--navigation-inset);
325
+ }
326
+
327
+ /* Navigation foregrounds stay readable over the composited glass. */
328
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar, #icon-strip) {
329
+ --navigation-foreground: color-mix(in srgb, var(--text) 88%, var(--sidebar-bg));
330
+ --navigation-secondary: color-mix(in srgb, var(--text) 80%, var(--sidebar-bg));
331
+ }
332
+ :is(#sidebar-column, #mate-sidebar-column) .palette-tile:not(:disabled):not(#you-button),
333
+ :is(#sidebar-column, #mate-sidebar-column) .palette-tile:not(:disabled):not(#you-button) > .lucide,
334
+ :is(#sidebar-column, #mate-sidebar-column) .session-folder-toggle:not(:disabled) {
335
+ color: var(--navigation-foreground);
336
+ }
337
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) :is(.session-folder-count,
338
+ .session-date-group-count, .session-group-header-label, .session-folder-empty,
339
+ .session-favorites-empty, .session-item-age, .sidebar-badge),
340
+ #sidebar-column :is(.git-placard-branch, .git-placard-remote,
341
+ .git-placard-stat:not(.git-placard-stat-warn)),
342
+ #sidebar-column .git-placard-more:not(:disabled) {
343
+ color: var(--navigation-secondary);
344
+ }
345
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) :is(.session-folder-empty,
346
+ .session-favorites-empty) {
347
+ opacity: 1;
348
+ }
349
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) :is(.session-folder-tool,
350
+ .session-group-clear-btn, .session-search-clear):not(:disabled):not(.is-create):not([aria-expanded="true"]) {
351
+ color: var(--navigation-secondary);
352
+ }
353
+ #icon-strip :is(.icon-strip-filter-label, .icon-strip-hint) {
354
+ color: var(--navigation-secondary);
355
+ }
356
+ #icon-strip .icon-strip-hint { opacity: 1; }
357
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) .session-folder-tool {
358
+ white-space: nowrap;
359
+ }
360
+ /* Layer darker translucent faces onto navigation instead of outlining tiles. */
361
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar, #icon-strip) {
362
+ --navigation-layer: rgba(0, 0, 0, .08);
363
+ --navigation-layer-hover: rgba(0, 0, 0, .14);
364
+ --navigation-card: rgba(0, 0, 0, .05);
365
+ }
366
+ .dark-theme :is(#sidebar-column, #mate-sidebar-column, #sidebar, #icon-strip) {
367
+ --navigation-layer: rgba(0, 0, 0, .24);
368
+ --navigation-layer-hover: rgba(0, 0, 0, .36);
369
+ --navigation-card: rgba(0, 0, 0, .18);
370
+ }
371
+ #icon-strip .icon-strip-item[data-slug]:not(:has(.project-emoji, img)) {
372
+ color: var(--text);
373
+ }
374
+ #icon-strip .icon-strip-item[data-slug]:not(:has(.project-emoji, img)):not(.active)::before {
375
+ background: var(--navigation-layer);
376
+ box-shadow: none;
377
+ }
378
+ #icon-strip .icon-strip-item[data-slug]:not(:has(.project-emoji, img)):hover:not(.active)::before {
379
+ background: var(--navigation-layer-hover);
380
+ }
381
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) :is(.session-folder-tool,
382
+ .session-folder-new-btn, #mate-new-session-btn):not(:disabled):not(.is-create) {
383
+ background: var(--navigation-layer);
384
+ color: var(--text);
385
+ }
386
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) :is(.session-folder-tool,
387
+ .session-folder-new-btn, #mate-new-session-btn):hover:not(:disabled):not(.is-create) {
388
+ background: var(--navigation-layer-hover);
389
+ }
390
+ #sidebar-column .git-placard {
391
+ background: var(--navigation-card);
392
+ border-color: transparent;
393
+ }
394
+ #sidebar-column .git-placard-more:not(:disabled) {
395
+ background: var(--navigation-layer);
396
+ border-color: transparent;
397
+ color: var(--text);
398
+ }
399
+ #sidebar-column .git-placard-more:hover {
400
+ background: var(--navigation-layer-hover);
401
+ color: var(--text);
402
+ }
403
+ #sidebar-column .git-placard-badge:not(.git-placard-badge-warn) {
404
+ border-color: transparent;
405
+ color: var(--navigation-secondary);
406
+ }
407
+
408
+ /* Compact row actions share the navigation's filled layers. */
409
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) :is(.session-folder-star-btn, .session-close-btn:not(.armed)) {
410
+ background: var(--navigation-layer);
411
+ color: var(--text);
412
+ border-radius: 5px;
413
+ padding: 0;
414
+ }
415
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) :is(.session-item, .session-loop-child):is(:hover, :focus-within) :is(.session-folder-star-btn, .session-close-btn) {
416
+ opacity: 1;
417
+ }
418
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) .session-folder-star-btn:is(:hover, :focus-visible, .is-favorite) {
419
+ background: color-mix(in srgb, var(--accent) 16%, var(--navigation-layer));
420
+ color: var(--accent);
421
+ }
422
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) .session-close-btn:not(.armed):is(:hover, :focus-visible) {
423
+ background: var(--navigation-layer-hover);
424
+ color: var(--text);
425
+ }
426
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) .session-close-btn:focus-visible {
427
+ outline: 2px solid var(--accent);
428
+ outline-offset: 1px;
429
+ }
430
+
431
+ :is(#sidebar-column, #mate-sidebar-column, #sidebar) .session-item:not(:hover):not(:focus-within):not(:has(.session-unread-badge.has-unread)) .session-item-age {
432
+ opacity: 1;
433
+ }