From 545f34584847e3216ecf95ab493dacac282ec465 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Tue, 28 Oct 2025 15:29:11 -0500 Subject: wip: desktop work --- packages/ui/src/styles/utilities.css | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'packages/ui/src/styles') diff --git a/packages/ui/src/styles/utilities.css b/packages/ui/src/styles/utilities.css index 99b7760a0..85b901566 100644 --- a/packages/ui/src/styles/utilities.css +++ b/packages/ui/src/styles/utilities.css @@ -48,6 +48,35 @@ border-width: 0; } +.scroller { + --fade-height: 1.5rem; + + --mask-top: linear-gradient(to bottom, transparent, black var(--fade-height)); + --mask-bottom: linear-gradient(to top, transparent, black var(--fade-height)); + + mask-image: var(--mask-top), var(--mask-bottom); + mask-repeat: no-repeat; + + mask-size: 100% var(--fade-height); + + animation: adjust-masks linear; + animation-timeline: scroll(self); +} + +@keyframes adjust-masks { + from { + mask-position: + 0 calc(0% - var(--fade-height)), + 0 100%; + } + + to { + mask-position: + 0 0, + 0 calc(100% + var(--fade-height)); + } +} + .truncate-start { text-overflow: ellipsis; overflow: hidden; -- cgit v1.2.3