@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/).
102 lines (99 loc) • 3.25 kB
CSS
.mt-toast[data-v-49c93b73] {
display: flex;
position: fixed;
justify-content: center;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
}
.mt-toast--bottom-left[data-v-49c93b73] {
flex: 1;
}
.mt-toast--bottom-center[data-v-49c93b73] {
flex: 1;
display: flex;
justify-content: center;
}
.mt-toast--bottom-center .mt-toast-notification[data-v-49c93b73] {
display: flex;
z-index: 1600;
position: absolute;
height: 51px;
color: white;
text-align: center;
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);
}
.mt-toast--bottom-center .quick-toasts-enter-active[data-v-49c93b73],
.mt-toast--bottom-center .quick-toasts-leave-active[data-v-49c93b73] {
transition: opacity 0.5s ease;
}
.mt-toast--bottom-center .quick-toasts-enter-from[data-v-49c93b73],
.mt-toast--bottom-center .quick-toasts-leave-to[data-v-49c93b73] {
opacity: 0;
}
.mt-toast--bottom-center .quick-toasts-enter-active[data-v-49c93b73] {
transition-delay: 0.5s;
}
.mt-toast--bottom-right[data-v-49c93b73] {
flex: 1;
display: flex;
justify-content: flex-end;
padding-right: var(--scale-size-16);
}
.mt-toast--bottom-right .mt-toast-notification[data-v-49c93b73] {
display: flex;
transition: all 0.7s ease;
z-index: 1600;
position: absolute;
height: 51px;
color: white;
width: 376px;
text-align: center;
transform: translateY(0);
}
.mt-toast--bottom-right .toasts-enter-from[data-v-49c93b73] {
transform: translateY(50px) ;
opacity: 0;
z-index: 0;
}
.mt-toast--bottom-right .toasts-leave-to[data-v-49c93b73] {
transform: scale(0.9, 0.4) ;
transform-origin: top;
opacity: 0;
z-index: 0;
}
.mt-toast--bottom-right .toasts-enter-active[data-v-49c93b73],
.mt-toast--bottom-right .toasts-leave-active[data-v-49c93b73] {
transition: all 0.7s ease;
}
.mt-toast--expanded .mt-toast--bottom-right .mt-toast-notification[data-v-49c93b73]:nth-child(n + 2) {
transform: translateY(calc(var(--num) * -68px));
}
.mt-toast--collapsed .mt-toast--bottom-right .mt-toast-notification[data-v-49c93b73]:nth-child(1) {
z-index: 1599;
}
.mt-toast--collapsed .mt-toast--bottom-right .mt-toast-notification[data-v-49c93b73]:nth-child(2) {
transform: translateY(-33px) scale(0.95, 0.18);
border-top-left-radius: calc(4px / 0.95) calc(4px / 0.18);
border-top-right-radius: calc(4px / 0.95) calc(4px / 0.18);
border-bottom-left-radius: calc(2px / 0.95) calc(2px / 0.18);
border-bottom-right-radius: calc(2px / 0.95) calc(2px / 0.18);
}
.mt-toast--collapsed .mt-toast--bottom-right .mt-toast-notification[data-v-49c93b73]:nth-child(3) {
transform: translateY(-45px) scale(0.9, 0.18);
border-top-left-radius: calc(4px / 0.9) calc(4px / 0.18);
border-top-right-radius: calc(4px / 0.9) calc(4px / 0.18);
border-bottom-left-radius: calc(2px / 0.9) calc(2px / 0.18);
border-bottom-right-radius: calc(2px / 0.9) calc(2px / 0.18);
}
.mt-toast--collapsed .mt-toast--bottom-right .mt-toast-notification[data-v-49c93b73]:nth-child(n + 4) {
transform: translateY(-58px) scale(0.8, 0.1);
opacity: 0;
}
.mt-toast--collapsed .mt-toast-notification:nth-child(n + 2) .mt-toast-notification__content {
opacity: 0;
}