@ohu-mobile/core
Version:
65 lines • 1.28 kB
CSS
@keyframes skeleton-scan-loading {
0% {
background-position: 100% 0;
}
100% {
background-position: -100% 0;
}
}
@keyframes skeleton-blink-loading {
0% {
background: #e8e8e8;
}
50% {
background: #f5f5f5;
}
100% {
background: #e8e8e8;
}
}
.ohu-skeleton {
display: block;
background: #f5f5f5;
}
.ohu-skeletons {
display: flex;
flex-flow: row nowrap;
}
.ohu-skeleton ~ .ohu-skeleton__content {
margin-left: 0.48rem;
}
.ohu-skeleton__content {
flex-grow: 1;
padding-top: 0.08rem;
}
.ohu-skeleton.is-circle {
border-radius: 50%;
}
.ohu-skeleton.is-avatar {
width: 1.17333rem;
height: 1.17333rem;
}
.ohu-skeleton.is-title {
height: 0.48rem;
}
.ohu-skeleton.is-title + .is-row {
margin-top: 0.42667rem;
}
.ohu-skeleton.is-row {
height: 0.37333rem;
}
.ohu-skeleton.is-row + .is-row {
margin-top: 0.32rem;
}
.ohu-skeleton.is-scan {
background-image: linear-gradient(90deg, #f5f5f5 8%, #fdfdfd 28%, #f5f5f5 50%);
background-size: 200% 100%;
animation-name: skeleton-scan-loading;
animation-iteration-count: infinite;
animation-timing-function: easing(in-cubic);
}
.ohu-skeleton.is-blink {
animation-name: skeleton-blink-loading;
animation-timing-function: ease-out;
animation-iteration-count: infinite;
}