Smooth animations for Toast
parent
35b5433d38
commit
b533785c4c
|
@ -2944,7 +2944,6 @@ body .p-growl .p-growl-item-container.p-growl-message-error .p-growl-icon-close
|
|||
color: #212121;
|
||||
}
|
||||
body .p-toast {
|
||||
top: 70px;
|
||||
opacity: 0.9;
|
||||
filter: alpha(opacity=90);
|
||||
}
|
||||
|
|
|
@ -2944,7 +2944,6 @@ body .p-growl .p-growl-item-container.p-growl-message-error .p-growl-icon-close
|
|||
color: #212121;
|
||||
}
|
||||
body .p-toast {
|
||||
top: 70px;
|
||||
opacity: 0.9;
|
||||
filter: alpha(opacity=90);
|
||||
}
|
||||
|
|
|
@ -2944,7 +2944,6 @@ body .p-growl .p-growl-item-container.p-growl-message-error .p-growl-icon-close
|
|||
color: #212121;
|
||||
}
|
||||
body .p-toast {
|
||||
top: 70px;
|
||||
opacity: 0.9;
|
||||
filter: alpha(opacity=90);
|
||||
}
|
||||
|
|
|
@ -2944,7 +2944,6 @@ body .p-growl .p-growl-item-container.p-growl-message-error .p-growl-icon-close
|
|||
color: #212121;
|
||||
}
|
||||
body .p-toast {
|
||||
top: 70px;
|
||||
opacity: 0.9;
|
||||
filter: alpha(opacity=90);
|
||||
}
|
||||
|
|
|
@ -2944,7 +2944,6 @@ body .p-growl .p-growl-item-container.p-growl-message-error .p-growl-icon-close
|
|||
color: #212121;
|
||||
}
|
||||
body .p-toast {
|
||||
top: 70px;
|
||||
opacity: 0.9;
|
||||
filter: alpha(opacity=90);
|
||||
}
|
||||
|
|
|
@ -2944,7 +2944,6 @@ body .p-growl .p-growl-item-container.p-growl-message-error .p-growl-icon-close
|
|||
color: #212121;
|
||||
}
|
||||
body .p-toast {
|
||||
top: 70px;
|
||||
opacity: 0.9;
|
||||
filter: alpha(opacity=90);
|
||||
}
|
||||
|
|
|
@ -2944,7 +2944,6 @@ body .p-growl .p-growl-item-container.p-growl-message-error .p-growl-icon-close
|
|||
color: #212121;
|
||||
}
|
||||
body .p-toast {
|
||||
top: 70px;
|
||||
opacity: 0.9;
|
||||
filter: alpha(opacity=90);
|
||||
}
|
||||
|
|
|
@ -2944,7 +2944,6 @@ body .p-growl .p-growl-item-container.p-growl-message-error .p-growl-icon-close
|
|||
color: #212121;
|
||||
}
|
||||
body .p-toast {
|
||||
top: 120px;
|
||||
opacity: 0.9;
|
||||
filter: alpha(opacity=90);
|
||||
}
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
}
|
||||
|
||||
.p-toast-item-container {
|
||||
position:relative;
|
||||
margin:0 0 10px 0;
|
||||
position: relative;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.p-toast-item {
|
||||
|
@ -86,11 +86,16 @@
|
|||
.p-toast-message-leave-to {
|
||||
max-height: 0;
|
||||
opacity: 0;
|
||||
margin-bottom: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.p-toast-message-enter-active,
|
||||
.p-toast-message-enter-active {
|
||||
-webkit-transition: transform .3s, opacity .3s;
|
||||
transition: transform .3s, opacity .3s;
|
||||
}
|
||||
|
||||
.p-toast-message-leave-active {
|
||||
-webkit-transition: all .3s;
|
||||
transition: all .3s;
|
||||
-webkit-transition: max-height .45s cubic-bezier(0, 1, 0, 1), opacity .3s, margin-bottom .3s;
|
||||
transition: max-height .45s cubic-bezier(0, 1, 0, 1), opacity .3s, margin-bottom .3s;
|
||||
}
|
|
@ -103,7 +103,7 @@ button.p-button {
|
|||
}
|
||||
|
||||
.p-toast.p-toast-topright,
|
||||
.p-toast.p-toast-left {
|
||||
.p-toast.p-toast-topleft {
|
||||
top: 100px;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue