|
327 | 327 | pointer-events: none; |
328 | 328 | } |
329 | 329 |
|
| 330 | +/* Neutral elevated surface; the amber status dot is the only color accent so |
| 331 | + the pill reads as quiet system status, not a warning callout. */ |
330 | 332 | .connection-banner__pill { |
331 | 333 | pointer-events: auto; |
332 | 334 | display: inline-flex; |
333 | | - align-items: center; |
334 | | - gap: 10px; |
| 335 | + align-items: stretch; |
335 | 336 | min-width: 0; |
336 | 337 | max-width: 100%; |
337 | | - padding: 6px 6px 6px 14px; |
338 | 338 | border-radius: var(--radius-full); |
339 | | - border: 1px solid color-mix(in srgb, var(--warn) 36%, var(--border)); |
340 | | - background: color-mix( |
341 | | - in srgb, |
342 | | - var(--warn) 10%, |
343 | | - color-mix(in srgb, var(--bg-elevated) 86%, transparent) |
344 | | - ); |
345 | | - backdrop-filter: blur(12px) saturate(1.4); |
346 | | - -webkit-backdrop-filter: blur(12px) saturate(1.4); |
347 | | - box-shadow: var(--shadow-md); |
| 339 | + border: 1px solid var(--border); |
| 340 | + background: color-mix(in srgb, var(--bg-elevated) 92%, transparent); |
| 341 | + backdrop-filter: blur(12px) saturate(1.2); |
| 342 | + -webkit-backdrop-filter: blur(12px) saturate(1.2); |
| 343 | + box-shadow: var(--shadow-lg); |
348 | 344 | font-size: 13px; |
| 345 | + line-height: 1; |
349 | 346 | animation: connection-banner-enter 0.25s var(--ease-out); |
350 | 347 | } |
351 | 348 |
|
|
366 | 363 | } |
367 | 364 | } |
368 | 365 |
|
369 | | -.connection-banner__spinner { |
370 | | - display: inline-flex; |
371 | | - align-items: center; |
372 | | - color: var(--warn); |
373 | | -} |
374 | | - |
375 | | -.connection-banner__spinner svg { |
376 | | - width: 14px; |
377 | | - height: 14px; |
378 | | - fill: none; |
379 | | - stroke: currentColor; |
380 | | - stroke-width: 2; |
381 | | - stroke-linecap: round; |
382 | | - animation: connection-banner-spin 1s linear infinite; |
383 | | -} |
384 | | - |
385 | | -@keyframes connection-banner-spin { |
386 | | - to { |
387 | | - transform: rotate(360deg); |
388 | | - } |
| 366 | +.connection-banner__dot { |
| 367 | + width: 7px; |
| 368 | + height: 7px; |
| 369 | + align-self: center; |
| 370 | + margin-left: 14px; |
| 371 | + border-radius: var(--radius-full); |
| 372 | + background: var(--warn); |
| 373 | + box-shadow: 0 0 8px color-mix(in srgb, var(--warn) 55%, transparent); |
| 374 | + animation: pulse-subtle 2s ease-in-out infinite; |
| 375 | + flex-shrink: 0; |
389 | 376 | } |
390 | 377 |
|
391 | 378 | .connection-banner__title { |
| 379 | + align-self: center; |
| 380 | + margin-left: 9px; |
| 381 | + padding: 10px 0; |
392 | 382 | color: var(--text-strong); |
393 | | - font-weight: 600; |
| 383 | + font-weight: 500; |
394 | 384 | white-space: nowrap; |
395 | 385 | } |
396 | 386 |
|
397 | 387 | .connection-banner__state { |
| 388 | + align-self: center; |
| 389 | + margin-left: 7px; |
398 | 390 | color: var(--muted); |
399 | 391 | white-space: nowrap; |
400 | 392 | } |
|
412 | 404 | white-space: nowrap; |
413 | 405 | } |
414 | 406 |
|
415 | | -.connection-banner .connection-banner__retry { |
416 | | - border-radius: var(--radius-full); |
417 | | - border-color: color-mix(in srgb, var(--warn) 42%, var(--border)); |
| 407 | +/* Text action behind a hairline divider so the pill stays a single surface |
| 408 | + instead of a capsule-inside-a-capsule. */ |
| 409 | +.connection-banner__retry { |
| 410 | + margin-left: 12px; |
| 411 | + padding: 0 14px; |
| 412 | + border: none; |
| 413 | + border-left: 1px solid var(--border); |
| 414 | + border-radius: 0 var(--radius-full) var(--radius-full) 0; |
418 | 415 | background: transparent; |
419 | | - color: var(--text-strong); |
420 | | - font-size: 12px; |
421 | | - padding: 4px 12px; |
| 416 | + color: var(--accent); |
| 417 | + font-size: 12.5px; |
| 418 | + font-weight: 500; |
422 | 419 | white-space: nowrap; |
| 420 | + cursor: pointer; |
| 421 | + transition: background var(--duration-fast) var(--ease-out); |
| 422 | +} |
| 423 | + |
| 424 | +.connection-banner__retry:hover { |
| 425 | + background: color-mix(in srgb, var(--bg-hover) 84%, transparent); |
423 | 426 | } |
424 | 427 |
|
425 | | -.connection-banner .connection-banner__retry:hover:not(:disabled) { |
426 | | - border-color: color-mix(in srgb, var(--warn) 60%, var(--border)); |
427 | | - background: color-mix(in srgb, var(--warn) 14%, transparent); |
| 428 | +.connection-banner__retry:focus-visible { |
| 429 | + outline: none; |
| 430 | + box-shadow: var(--focus-ring); |
428 | 431 | } |
429 | 432 |
|
430 | 433 | @media (max-width: 640px) { |
|
0 commit comments