]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use toast.scss from @nextcloud/dialogs 32359/head
authorLouis Chemineau <louis@chmn.me>
Thu, 12 May 2022 12:53:48 +0000 (14:53 +0200)
committerLouis Chemineau <louis@chmn.me>
Thu, 12 May 2022 12:53:48 +0000 (14:53 +0200)
Signed-off-by: Louis Chemineau <louis@chmn.me>
core/css/server.scss
core/css/toast.scss [deleted file]

index 1d4a79f6cf8b30e40bc236f0c06513c5789253cb..bc77042e46888cbfb2ca381fa6eb35c2442a47e8 100644 (file)
@@ -7,5 +7,5 @@
 @import 'fixes.scss';
 @import 'mobile.scss';
 @import 'tooltip.scss';
-@import 'toast.scss';
+@import '../../node_modules/@nextcloud/dialogs/styles/toast.scss';
 @import 'public.scss';
diff --git a/core/css/toast.scss b/core/css/toast.scss
deleted file mode 100644 (file)
index 0ab797a..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-.toastify.toast {
-       min-width: 200px;
-       background: none;
-       background-color: var(--color-main-background);
-       color: var(--color-main-text);
-       box-shadow: 0 0 6px 0 var(--color-box-shadow);
-       padding: 12px;
-       padding-right: 34px;
-       margin-top: 45px;
-       position: fixed;
-       z-index: 9000;
-       border-radius: var(--border-radius);
-
-       .toast-close {
-               position: absolute;
-               top: 0;
-               right: 0;
-               width: 38px;
-               opacity: 0.4;
-               padding: 12px;
-               @include icon-color('close', 'actions', $color-black, 2, true);
-               background-position: center;
-               background-repeat: no-repeat;
-               text-indent: 200%;
-               white-space: nowrap;
-               overflow: hidden;
-
-               &:hover, &:focus, &:active {
-                       cursor: pointer;
-                       opacity: 1;
-               }
-       }
-}
-.toastify.toastify-top {
-       right: 10px;
-}
-
-.toast-error {
-       border-left: 3px solid var(--color-error);
-}
-.toast-info {
-       border-left: 3px solid var(--color-primary);
-}
-.toast-warning {
-       border-left: 3px solid var(--color-warning);
-}
-.toast-success {
-       border-left: 3px solid var(--color-success);
-}