aboutsummaryrefslogtreecommitdiff
path: root/src/app/css/toasts.css
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-05-20 23:06:25 +0200
committer0neGal <mail@0negal.com>2022-05-20 23:21:36 +0200
commitcdab6e7d543b90cf1e60c74f8d38767bbce7f3a7 (patch)
treef1ea945b1bc35de4c9efa7516068816881a3d248 /src/app/css/toasts.css
parent2ee3f1cf7eb7159ce80ac561318eeff8a0229ef9 (diff)
downloadViper-cdab6e7d543b90cf1e60c74f8d38767bbce7f3a7.tar.gz
Viper-cdab6e7d543b90cf1e60c74f8d38767bbce7f3a7.zip
split main.css into multiple files
This is easier to manage, and a lot less annoying to navigate, having to scroll through many lines of code is annoying, categorizing makes it easier, I also overall improved the layout of many of the CSS files.
Diffstat (limited to 'src/app/css/toasts.css')
-rw-r--r--src/app/css/toasts.css52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/app/css/toasts.css b/src/app/css/toasts.css
new file mode 100644
index 0000000..57ba055
--- /dev/null
+++ b/src/app/css/toasts.css
@@ -0,0 +1,52 @@
+@import "theming.css";
+
+#toasts {
+ position: fixed;
+ z-index: 100000;
+ right: calc(var(--padding) * 1.5);
+ bottom: calc(var(--padding) * 1.5);
+}
+
+@keyframes bodyfadeaway {
+ 0% {opacity: 0.0; transform: scale(0.95)}
+ 100% {opacity: 1.0; transform: scale(1.0)}
+}
+
+#toasts .toast {
+ width: 300px;
+ opacity: 0.0;
+ cursor: pointer;
+ overflow: hidden;
+ max-height: 100vh;
+ background: #FFFFFF;
+ transform: scale(0.95);
+ transition: 0.2s ease-in-out;
+ padding: calc(var(--padding) / 2);
+ margin-top: calc(var(--padding) / 2);
+ border-radius: calc(var(--padding) / 2.5);
+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
+
+ animation-duration: 0.2s;
+ animation-iteration-count: 1;
+ animation-name: bodyfadeaway;
+ animation-fill-mode: forwards;
+ animation-timing-function: ease-in-out;
+}
+
+#toasts .toast.hidden {
+ margin-top: 0px;
+ max-height: 0px;
+ padding-top: 0px;
+ padding-bottom: 0px;
+ filter: opacity(0.0);
+ transform: scale(0.95);
+}
+
+#toasts .toast:not(.hidden):hover {filter: opacity(0.9)}
+#toasts .toast:not(.hidden):active {filter: opacity(0.8)}
+
+.toast .description {
+ opacity: 0.8;
+ font-size: 0.8em;
+ font-weight: 600;
+}