GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improve composer glass fallbacks (#4406) · NeilTheFisher/t3code@171ed2c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src
    • index.css
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/index.css‎

Copy file name to clipboardExpand all lines: apps/web/src/index.css
+34-1Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
453453
inset: 0;
454454
border: 1px solid var(--chat-composer-outline);
455455
border-radius: inherit;
456+
content: "";
457+
}
458+
459+
.chat-composer-glass-shell-with-context .chat-composer-glass-host::after {
456460
/* Keep the attachment seam open; the strip continues the outer outline below. */
457461
clip-path: polygon(
458462
0 0,
@@ -464,7 +468,6 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
464468
22px 100%,
465469
0 100%
466470
);
467-
content: "";
468471
}
469472

470473
.chat-composer-context-strip {
@@ -512,6 +515,36 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
512515
box-shadow: 0 14px 32px -18px rgb(0 0 0 / 75%);
513516
}
514517

518+
@supports not (clip-path: shape(from 0 0, line to 1px 1px)) {
519+
.chat-composer-glass-shell-with-context::before {
520+
inset-block-end: var(--chat-composer-context-extension);
521+
border-radius: 22px;
522+
clip-path: none;
523+
}
524+
525+
.chat-composer-context-strip::before {
526+
background: color-mix(
527+
in srgb,
528+
var(--chat-composer-glass-surface) var(--glass-opacity),
529+
transparent
530+
);
531+
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
532+
backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
533+
}
534+
535+
.dark .chat-composer-context-strip::before {
536+
background:
537+
linear-gradient(
538+
to bottom,
539+
transparent 0 1rem,
540+
rgb(0 0 0 / 18%) 1rem,
541+
transparent calc(1rem + 10px)
542+
),
543+
linear-gradient(rgb(255 255 255 / 2%), rgb(255 255 255 / 2%)),
544+
color-mix(in srgb, var(--chat-composer-glass-surface) var(--glass-opacity), transparent);
545+
}
546+
}
547+
515548
.alert-glass {
516549
--alert-glass-tint: transparent;
517550

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.