UNPKG

1.05 kBSCSSView Raw
1.#{$rt-namespace}__toast {
2 position: relative;
3 min-height: var(--toastify-toast-min-height);
4 box-sizing: border-box;
5 margin-bottom: 1rem;
6 padding: 8px;
7 border-radius: 4px;
8 box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);
9 display: flex;
10 justify-content: space-between;
11 max-height: var(--toastify-toast-max-height);
12 overflow: hidden;
13 font-family: var(--toastify-font-family);
14 cursor: pointer;
15 direction: ltr;
16 &--rtl {
17 direction: rtl;
18 }
19 &-body {
20 margin: auto 0;
21 flex: 1 1 auto;
22 padding: 6px;
23 display: flex;
24 align-items: center;
25 & > div:last-child {
26 flex: 1;
27 }
28 }
29 &-icon {
30 margin-inline-end: 10px;
31 width: 20px;
32 flex-shrink: 0;
33 display: flex;
34 }
35}
36
37.#{$rt-namespace}--animate {
38 animation-fill-mode: both;
39 animation-duration: 0.7s;
40}
41
42.#{$rt-namespace}--animate-icon {
43 animation-fill-mode: both;
44 animation-duration: 0.3s;
45}
46
47@media #{$rt-mobile} {
48 .#{$rt-namespace}__toast {
49 margin-bottom: 0;
50 border-radius: 0;
51 }
52}