ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
40 lines (33 loc) • 592 B
text/less
nz-alert {
display: block;
}
.@{alert-prefix-cls} {
&-icon {
line-height: 1;
}
&-marquee {
display: flex;
flex: 1;
min-width: 0;
overflow: hidden;
&-track {
display: flex;
flex: 0 0 auto;
align-items: center;
min-width: 100%;
white-space: nowrap;
animation: alertMarquee 20s linear infinite;
}
&.ant-alert-marquee-pause-on-hover:hover &-track {
animation-play-state: paused;
}
}
}
@keyframes alertMarquee {
from {
transform: translateX(0%);
}
to {
transform: translateX(-100%);
}
}