index.wxss 1.2 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
/* static/nativeComponents/PhotoGallery/index.wxss */
@import "/static/font/common_icon.wxss";
.photo-gallery{
  width: 100%;
  font-size: 32rpx;
  box-sizing: border-box;
}
.textH{
  text-align: center;
  font-weight: bold;
}
.imgcontent{
  width: 100%;
  text-align: center;
}
.imgcontent image{
  width: 100%;
  display: block;
}

.across {
  position: relative;
}
.ul{
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
}
.ul .li{
  display: inline-block;
31
  /* flex: 1; */
程智春 committed
32
}
李嘉林 committed
33 34 35 36
.isTiled{
  overflow: hidden;
}
.isTiled .li{
李嘉林 committed
37
  /* margin: -1px; */
李嘉林 committed
38
}
程智春 committed
39 40
.ul .li image{
  vertical-align: middle;
程智春 committed
41
  display: inline-block
程智春 committed
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
}
.prev-btn,.next-btn{
  width: 60rpx;
    height: 60rpx;
    position: absolute;
    top: 50%;
    margin-top: -30rpx;
    z-index: 99;
    opacity: .3;
}
.prev-btn i,.next-btn i {
  font-size: 60rpx;
}
.next-btn{
  right:10rpx;
}
.prev-btn{
  left:10rpx;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg)
chengzhichun committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
}


.waterfall{
  overflow: hidden;
  padding: 0 10px;
}

.waterfall-l{
  width: 50%;
  float: left;
  box-sizing: border-box;
  padding-right: 4px;
}
.waterfall-r{
  width: 50%;
  float: right;
  box-sizing: border-box;
  padding-left: 4px;
}

.waterfall .item{
  margin-bottom: 8px;
程智春 committed
85
}