aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/toast/toast.component.css
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-03-31 17:33:04 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-03-31 17:33:04 -0400
commit97c9e1e0bb73c7b08c830c47548ac1c4b5bebd0b (patch)
tree76d437e3349be177d0105b9a7a6bae9b7bd1b33a /ufund-ui/src/app/components/toast/toast.component.css
parentf7a0ce90b0ead17ad4002108d7e868899954c69d (diff)
downloadJellySolutions-97c9e1e0bb73c7b08c830c47548ac1c4b5bebd0b.tar.gz
JellySolutions-97c9e1e0bb73c7b08c830c47548ac1c4b5bebd0b.tar.bz2
JellySolutions-97c9e1e0bb73c7b08c830c47548ac1c4b5bebd0b.zip
TOASTS
Diffstat (limited to 'ufund-ui/src/app/components/toast/toast.component.css')
-rw-r--r--ufund-ui/src/app/components/toast/toast.component.css57
1 files changed, 57 insertions, 0 deletions
diff --git a/ufund-ui/src/app/components/toast/toast.component.css b/ufund-ui/src/app/components/toast/toast.component.css
new file mode 100644
index 0000000..4cd81fe
--- /dev/null
+++ b/ufund-ui/src/app/components/toast/toast.component.css
@@ -0,0 +1,57 @@
+:host {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+@keyframes slideDown {
+ from {transform: translateY(-90px);}
+ to {transform: translateY(0);}
+}
+
+.toast {
+ /*transform: translateY(-90px);*/
+ animation: slideDown .5s ease-in-out;
+ transition: transform .5s;
+ align-self: center;
+ z-index: 3;
+ position: absolute;
+ top: 15px;
+ display: flex;
+ flex-direction: row;
+ padding: 3px 15px;
+ background-color: #3a3a3a;
+ border-radius: 100000px;
+ gap: 10px;
+ align-items: center;
+
+ button {
+ aspect-ratio: 1/1;
+ margin-right: -11px;
+ padding: 8px;
+ display: flex;
+ align-items: center;
+ background-color: transparent;
+ }
+
+ button:hover {
+ background-color: rgba(255, 255, 255, 0.1);
+ }
+}
+
+.toast.hide {
+ transform: translateY(-90px);
+}
+
+.toast.warning {
+ background-color: #ffc500;
+ color: black;
+
+ button {
+ color: black;
+ }
+}
+
+.toast.error {
+ background-color: #d81a1a;
+}