about summary refs log tree commit diff
path: root/src/style.css
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-07-31 10:15:35 -0500
committerGitHub <noreply@github.com>2025-07-31 10:15:35 -0500
commit3bcfcba6d8176bac03202b496110915da748b0f1 (patch)
tree68c75c7c80945a8a5f5a32522dd9aa29f119e02a /src/style.css
parent33e071494881b13696e24b334857e594f29a4b1d (diff)
downloadvoidsky-3bcfcba6d8176bac03202b496110915da748b0f1.tar.zst
Some toasts cleanup and reorg (#8748)
* Reorg

* Move animation into css file

* Update style comment

* Extract core component, use platform-specific wrappers

* Pull out platform specific styles

* Just move styles into Toast component itself

* Rename cleanup

* Update API

* Add duration optional prop

* Add some type docs

* add exp eased slide aniamtions

* Make toasts full width on mobile web

---------

Co-authored-by: Samuel Newman <mozzius@protonmail.com>
Diffstat (limited to 'src/style.css')
-rw-r--r--src/style.css20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/style.css b/src/style.css
index 35ffe0d3a..4c5677fbf 100644
--- a/src/style.css
+++ b/src/style.css
@@ -369,3 +369,23 @@ input[type='range'][orient='vertical']::-moz-range-thumb {
     transform: translateY(0);
   }
 }
+
+/*
+ * #/components/Toast/index.web.tsx
+ */
+@keyframes toastFadeIn {
+  from {
+    opacity: 0;
+  }
+  to {
+    opacity: 1;
+  }
+}
+@keyframes toastFadeOut {
+  from {
+    opacity: 1;
+  }
+  to {
+    opacity: 0;
+  }
+}