drip-ui
Version:
Lightweight Mobile UI Components built on Vue
50 lines (48 loc) • 767 B
CSS
@import './common/var.css';
.drip-notify {
&--tips {
position: fixed;
width: 750px;
top: 0;
line-height: 40px;
padding: 24px 0;
font-size: 32px;
text-align: center;
color: #fff;
z-index: 2100;
}
&--success {
background-color: $green;
}
&--info {
background-color: $blue;
}
&--error {
background-color: $red;
}
&--warning {
background-color: $orange;
}
}
.fade-enter-active {
animation: enter .3s;
}
.fade-leave-active {
animation: leave .3s;
}
@keyframes enter {
0% {
transform: translate3d(0, -100%, 0);
}
100% {
transform: translate3d(0, 0, 0);
}
}
@keyframes leave {
0% {
transform: translate3d(0, 0, 0);
}
100% {
transform: translate3d(0, -100%, 0);
}
}