summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/styles
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-10-31 11:54:27 -0500
committerAdam <[email protected]>2025-10-31 12:00:44 -0500
commitffc889b99e61c6f21ce68985ee398c3031a5b19b (patch)
treeb4356c27d343f127265ae020b015e8224b658ba4 /packages/ui/src/styles
parent36b48a44ac1f0c9593a4abdf1d21980a2bfaee22 (diff)
downloadopencode-ffc889b99e61c6f21ce68985ee398c3031a5b19b.tar.gz
opencode-ffc889b99e61c6f21ce68985ee398c3031a5b19b.zip
wip: desktop work
Diffstat (limited to 'packages/ui/src/styles')
-rw-r--r--packages/ui/src/styles/animations.css13
-rw-r--r--packages/ui/src/styles/index.css1
-rw-r--r--packages/ui/src/styles/tailwind/index.css2
-rw-r--r--packages/ui/src/styles/utilities.css65
4 files changed, 16 insertions, 65 deletions
diff --git a/packages/ui/src/styles/animations.css b/packages/ui/src/styles/animations.css
new file mode 100644
index 000000000..ba93e65e4
--- /dev/null
+++ b/packages/ui/src/styles/animations.css
@@ -0,0 +1,13 @@
+:root {
+ --animate-pulse: pulse-opacity 2s ease-in-out infinite;
+}
+
+@keyframes pulse-opacity {
+ 0%,
+ 100% {
+ opacity: 0;
+ }
+ 50% {
+ opacity: 1;
+ }
+}
diff --git a/packages/ui/src/styles/index.css b/packages/ui/src/styles/index.css
index 146d957e2..e3cffc6cc 100644
--- a/packages/ui/src/styles/index.css
+++ b/packages/ui/src/styles/index.css
@@ -28,3 +28,4 @@
@import "../components/typewriter.css" layer(components);
@import "./utilities.css" layer(utilities);
+@import "./animations.css" layer(utilities);
diff --git a/packages/ui/src/styles/tailwind/index.css b/packages/ui/src/styles/tailwind/index.css
index 76d8c7d3e..658809df4 100644
--- a/packages/ui/src/styles/tailwind/index.css
+++ b/packages/ui/src/styles/tailwind/index.css
@@ -64,6 +64,8 @@
--shadow-xs: var(--shadow-xs);
--shadow-md: var(--shadow-md);
--shadow-xs-border-selected: var(--shadow-xs-border-selected);
+
+ --animate-pulse: var(--animate-pulse);
}
@import "./colors.css";
diff --git a/packages/ui/src/styles/utilities.css b/packages/ui/src/styles/utilities.css
index 9c6b73f9c..99b7760a0 100644
--- a/packages/ui/src/styles/utilities.css
+++ b/packages/ui/src/styles/utilities.css
@@ -48,71 +48,6 @@
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: scroll-fade linear;
- animation-timeline: scroll(self);
-}
-
-/* Define the keyframes for the mask.
- These percentages now map to scroll positions:
- 0% = Scrolled to the top
- 100% = Scrolled to the bottom
-*/
-@keyframes scroll-fade {
- /* At the very top (0% scroll) */
- 0% {
- mask-image: linear-gradient(
- to bottom,
- black 90%,
- /* Opaque, but start fade to bottom */ transparent 100%
- );
- }
-
- /* A small amount scrolled (e.g., 5%)
- This is where the top fade should be fully visible.
- */
- 5% {
- mask-image: linear-gradient(
- to bottom,
- transparent 0%,
- black 10%,
- /* Fade-in top */ black 90%,
- /* Fade-out bottom */ transparent 100%
- );
- }
-
- /* Nearing the bottom (e.g., 95%)
- The bottom fade should start disappearing.
- */
- 95% {
- mask-image: linear-gradient(
- to bottom,
- transparent 0%,
- black 10%,
- /* Fade-in top */ black 90%,
- /* Fade-out bottom */ transparent 100%
- );
- }
-
- /* At the very bottom (100% scroll) */
- 100% {
- mask-image: linear-gradient(
- to bottom,
- transparent 0%,
- black 10% /* Opaque, but start fade from top */
- );
- }
-}
-
.truncate-start {
text-overflow: ellipsis;
overflow: hidden;