UNPKG

@shopware-ag/meteor-component-library

Version:

The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).

162 lines (160 loc) 3.75 kB
.mt-toast-notification { &[data-v-16c30a4e] { position: absolute; bottom: 0; border-radius: 4px; margin-bottom: 17px; display: flex; flex-direction: column; height: var(--scale-size-56); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 2px 1px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.08); outline: none; } &:hover { .mt-toast-notification__timer-loader[data-v-16c30a4e] { animation-play-state: paused; } } &[data-v-16c30a4e]:focus-visible { outline: 2px solid var(--color-border-brand-default); border: 2px solid #fff; } } .mt-toast-notification__content { &[data-v-16c30a4e] { height: 100%; display: flex; align-items: center; } &.mt-icon > svg[data-v-16c30a4e] { fill: black; width: var(--scale-size-20) !important; height: var(--scale-size-20) !important; } } .mt-toast-notification__content-left[data-v-16c30a4e] { display: flex; flex: 1; justify-content: flex-start; margin-left: var(--scale-size-16); align-items: center; } .mt-toast-notification__content-right[data-v-16c30a4e] { display: flex; justify-content: flex-end; margin-right: var(--scale-size-16); align-items: center; } .mt-toast-notification__timer[data-v-16c30a4e] { height: 3px; width: 100%; border-radius: 0 0 4px 4px; background-color: #fff; } .mt-toast-notification__timer-loader[data-v-16c30a4e] { top: 0; left: 100%; width: 100%; height: 100%; background-color: #fff; transform-origin: 0% 0%; animation: shrink-16c30a4e 10s forwards linear 0.5s; } @keyframes shrink-16c30a4e { from { transform: scaleX(1); } to { transform: scaleX(0); } } .mt-toast-notification__message[data-v-16c30a4e] { max-width: 200px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .mt-toast-notification__message-space[data-v-16c30a4e] { padding-left: var(--scale-size-8); } .mt-toast-notification__content { &[data-v-16c30a4e] { height: 100%; display: flex; align-items: center; } &.mt-icon > svg[data-v-16c30a4e] { fill: #000; width: var(--scale-size-20) !important; height: var(--scale-size-20) !important; } } .mt-toast-notification__content-left[data-v-16c30a4e] { display: flex; flex: 1; justify-content: flex-start; margin-left: var(--scale-size-16); align-items: center; } .mt-toast-notification__content-right[data-v-16c30a4e] { display: flex; justify-content: flex-end; margin-right: var(--scale-size-16); align-items: center; } .mt-toast-notification--positive { &[data-v-16c30a4e] { border: 1px solid #37d046; background-color: #37d046; } & .mt-toast-notification__close-action[data-v-16c30a4e] { border-left: 1px solid #16b320; } & .mt-toast-notification__timer[data-v-16c30a4e] { background-color: #16b320; } } .mt-toast-notification__close-action { &[data-v-16c30a4e] { margin-left: auto; height: 100%; display: flex; padding: var(--scale-size-12); justify-content: flex-end; align-items: center; cursor: pointer; color: #fff; transition: color 0.2s ease; } &[data-v-16c30a4e]:hover { color: #e0e6eb; box-shadow: 0 0 4px 0 rgba(24, 158, 255, 0.3); } } .mt-toast-notification--critical { &[data-v-16c30a4e] { border: 1px solid #de294c; background-color: #de294c; } & .mt-toast-notification__close-action[data-v-16c30a4e] { border-left: 1px solid #c80f24; } & .mt-toast-notification__timer[data-v-16c30a4e] { background-color: #c80f24; } } .mt-toast-notification--informal { &[data-v-16c30a4e] { border: 1px solid #1f262e; background-color: #1f262e; } & .mt-toast-notification__close-action[data-v-16c30a4e] { border-left: 1px solid #0a0d0f; } & .mt-toast-notification__timer[data-v-16c30a4e] { background-color: #0a0d0f; } }