vant/packages/skeleton/index.less
2019-05-10 19:42:58 +08:00

55 lines
798 B
Plaintext

@import '../style/var';
.van-skeleton {
display: flex;
padding: 0 15px;
&__avatar {
flex-shrink: 0;
margin-right: 15px;
background-color: @skeleton-avatar-background-color;
&--round {
border-radius: 100%;
}
}
&__content {
width: 100%;
}
&__avatar + &__content {
padding-top: 8px;
}
&__row,
&__title {
height: @skeleton-row-height;
background-color: @skeleton-row-background-color;
}
&__title {
margin: 0;
}
&__row {
&:not(:first-child) {
margin-top: @skeleton-row-margin-top;
}
}
&__title + &__row {
margin-top: 20px;
}
&--animate {
animation: van-skeleton-blink @skeleton-animation-duration ease-in-out infinite;
}
}
@keyframes van-skeleton-blink {
50% {
opacity: .6;
}
}