index.wxss 1.08 KB
Newer Older
程智春 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
/* static/nativeComponents/module/SkeletonBlock/index.wxss */
.SkeletonBlock{
  position: relative;
}
.SkeletonBlock .SkeletonItem{
  width: 100%;
  margin-bottom: 32rpx;
  padding-top: 30%;
  background-color: #f2f3f5;
  border-radius: 8rpx;
}
.SkeletonBlock .skeleton-animate{
  animation: skeleton-blink 1.2s ease-in-out infinite;
}
@keyframes skeleton-blink {
    50% {
      opacity: 0.6;
    }
  }

.SkeletonRow .SkeletonItem{
  width: 100%;
  box-sizing: border-box
}

.SkeletonCol{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.SkeletonFlow{
  padding: 0;
  height: 620rpx;
}
.SkeletonFlow .SkeletonItem{
  position: absolute;
  top: 0;
  margin-top: 0;
}

.SkeletonFlow .SkeletonItem:nth-child(2n){
    position: absolute;
    left: 52%;
  }
 .SkeletonFlow  .SkeletonItem:nth-child(1){
    height: 360rpx;
  }
 .SkeletonFlow .SkeletonItem:nth-child(2){
    height: 280rpx;
  }
  .SkeletonFlow .SkeletonItem:nth-child(3){
    top: calc(360rpx + 32rpx);
    height: 240rpx;
  }
 .SkeletonFlow  .SkeletonItem:nth-child(4){
    top: calc(280rpx + 32rpx);
    height: 32r0px;
  }