From: Louis Chemineau Date: Thu, 12 May 2022 12:53:48 +0000 (+0200) Subject: Use toast.scss from @nextcloud/dialogs X-Git-Tag: v25.0.0beta1~429^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2b685c0e9af055658c5cde4337c0143fcef4f977;p=nextcloud-server.git Use toast.scss from @nextcloud/dialogs Signed-off-by: Louis Chemineau --- diff --git a/core/css/server.scss b/core/css/server.scss index 1d4a79f6cf8..bc77042e468 100644 --- a/core/css/server.scss +++ b/core/css/server.scss @@ -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 index 0ab797ad432..00000000000 --- a/core/css/toast.scss +++ /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); -}