ant-design-vue/components/vc-dialog/assets/index/Mask.less

66 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-03-05 19:05:23 +08:00
.@{prefixCls} {
&-mask {
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
background-color: rgb(55, 55, 55);
background-color: rgba(55, 55, 55, 0.6);
height: 100%;
filter: alpha(opacity=50);
z-index: 1050;
&-hidden {
display: none;
}
}
.fade-effect() {
animation-duration: 0.3s;
animation-fill-mode: both;
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
}
2019-01-12 11:33:27 +08:00
&-fade-enter,
&-fade-appear {
2018-03-05 19:05:23 +08:00
opacity: 0;
.fade-effect();
animation-play-state: paused;
}
&-fade-leave {
.fade-effect();
animation-play-state: paused;
}
2019-01-12 11:33:27 +08:00
&-fade-enter&-fade-enter-active,
&-fade-appear&-fade-appear-active {
2018-03-05 19:05:23 +08:00
animation-name: rcDialogFadeIn;
animation-play-state: running;
}
&-fade-leave&-fade-leave-active {
animation-name: rcDialogFadeOut;
animation-play-state: running;
}
@keyframes rcDialogFadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes rcDialogFadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
}