index.wxss 1.43 KB
Newer Older
程智春 committed
1 2
/* static/nativeComponents/PhotoGallery/index.wxss */
@import "/static/font/common_icon.wxss";
李嘉林 committed
3
.photo-gallery image{
4 5 6
  width: 100%;
  height: auto;
}
程智春 committed
7 8 9 10 11
.photo-gallery{
  width: 100%;
  font-size: 32rpx;
  box-sizing: border-box;
}
李嘉林 committed
12 13 14 15 16 17
.photo-gallery .show{
  opacity: 1;
}
.photo-gallery .hide{
  opacity: 0;
}
程智春 committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
.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;
41
  /* flex: 1; */
程智春 committed
42
}
李嘉林 committed
43 44 45 46
.isTiled{
  overflow: hidden;
}
.isTiled .li{
李嘉林 committed
47
  /* margin: -1px; */
李嘉林 committed
48
}
程智春 committed
49 50
.ul .li image{
  vertical-align: middle;
程智春 committed
51
  display: inline-block
程智春 committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
}
.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);
李嘉林 committed
71 72 73 74
  transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
chengzhichun committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
}


.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
98
}