Skip to content

Commit 8e3066e

Browse files
fix(web): preserve dark composer pseudo-elements
Co-authored-by: Julius Marminge <[email protected]>
1 parent a44720b commit 8e3066e

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

‎apps/web/src/index.css‎

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -739,10 +739,10 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
739739
border: 1px solid var(--chat-composer-outline);
740740
border-radius: inherit;
741741
content: "";
742+
}
742743

743-
@variant dark {
744-
box-shadow: inset 0 1px var(--chat-composer-highlight);
745-
}
744+
html.dark .chat-composer-glass-host::after {
745+
box-shadow: inset 0 1px var(--chat-composer-highlight);
746746
}
747747

748748
.chat-composer-glass-shell-with-context .chat-composer-glass-host::after {
@@ -775,19 +775,19 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
775775
mask-image: linear-gradient(to bottom, transparent 0 1rem, black 1rem);
776776
box-shadow: 0 12px 28px -18px rgb(0 0 0 / 40%);
777777
content: "";
778+
}
778779

779-
@variant dark {
780-
border-color: rgb(255 255 255 / 7%);
781-
background:
782-
linear-gradient(
783-
to bottom,
784-
transparent 0 1rem,
785-
rgb(0 0 0 / 18%) 1rem,
786-
transparent calc(1rem + 10px)
787-
),
788-
rgb(255 255 255 / 2%);
789-
box-shadow: 0 14px 32px -18px rgb(0 0 0 / 75%);
790-
}
780+
html.dark .chat-composer-context-strip::before {
781+
border-color: rgb(255 255 255 / 7%);
782+
background:
783+
linear-gradient(
784+
to bottom,
785+
transparent 0 1rem,
786+
rgb(0 0 0 / 18%) 1rem,
787+
transparent calc(1rem + 10px)
788+
),
789+
rgb(255 255 255 / 2%);
790+
box-shadow: 0 14px 32px -18px rgb(0 0 0 / 75%);
791791
}
792792

793793
@supports not (clip-path: shape(from 0 0, line to 1px 1px)) {
@@ -805,18 +805,18 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
805805
);
806806
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
807807
backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
808+
}
808809

809-
@variant dark {
810-
background:
811-
linear-gradient(
812-
to bottom,
813-
transparent 0 1rem,
814-
rgb(0 0 0 / 18%) 1rem,
815-
transparent calc(1rem + 10px)
816-
),
817-
linear-gradient(rgb(255 255 255 / 2%), rgb(255 255 255 / 2%)),
818-
color-mix(in srgb, var(--chat-composer-glass-surface) var(--glass-opacity), transparent);
819-
}
810+
html.dark .chat-composer-context-strip::before {
811+
background:
812+
linear-gradient(
813+
to bottom,
814+
transparent 0 1rem,
815+
rgb(0 0 0 / 18%) 1rem,
816+
transparent calc(1rem + 10px)
817+
),
818+
linear-gradient(rgb(255 255 255 / 2%), rgb(255 255 255 / 2%)),
819+
color-mix(in srgb, var(--chat-composer-glass-surface) var(--glass-opacity), transparent);
820820
}
821821
}
822822

0 commit comments

Comments
 (0)