@ohu-mobile/core
Version:
65 lines • 1.24 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: 36px;
}
.ohu-skeleton__content {
flex-grow: 1;
padding-top: 6px;
}
.ohu-skeleton.is-circle {
border-radius: 50%;
}
.ohu-skeleton.is-avatar {
width: 88px;
height: 88px;
}
.ohu-skeleton.is-title {
height: 36px;
}
.ohu-skeleton.is-title + .is-row {
margin-top: 32px;
}
.ohu-skeleton.is-row {
height: 28px;
}
.ohu-skeleton.is-row + .is-row {
margin-top: 24px;
}
.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;
}