File size: 1,225 Bytes
181e22f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | .container
position fixed
top 0px
left 50%
transform translateX(-50%)
z-index 1000
.toast
min-height 38px
width 260px
margin-top 10px
display flex
box-shadow rgba(0, 0, 0, 0.176) 0px 3px 8px
border-radius 4px
.icon-wrapper
text-align center
padding-top 8px
width 26px
flex-shrink 0
color white
border-top-left-radius 4px
border-bottom-left-radius 4px
&.success
background #37B47E
&.error
background #da4a4a
&.info
background #2684FF
.content
flex 1
padding 8px 12px
border-top-right-radius 4px
border-bottom-right-radius 4px
&.success
background #E3FCEF
color #006644
&.error
color #ad0101
background #efb7b7
&.info
color #2684FF
background white
:global(.toast-animation-enter)
transform translate3D(0, -120%, 0)
:global(.toast-animation-enter):global(.toast-animation-enter-active)
transform translate3D(0, 0, 0)
transition transform 100ms cubic-bezier(0.2, 0, 0, 1)
:global(.toast-animation-exit)
transform scale(0.66)
opacity 0
transition transform 100ms cubic-bezier(0.2, 0, 0, 1), opacity 220ms ease 0s
:global(.toast-animation-exit):global(.toast-animation-exit-active)
transform scale(0.66)
opacity 0
|