index.wxss 4.23 KB
Newer Older
李嘉林 committed
1 2 3
/* static/nativeComponents/FloatButton/index.wxss */
@import '../../nicon/iconfont.wxss';
@import "/static/font/common_icon.wxss";
李嘉林 committed
4 5 6
.time-limited-discount {
  background: var(--backgroundColor);
  font-size: 32rpx;
李嘉林 committed
7 8 9 10 11
  border-radius: 10px;
}
.time-limited-discount2{
  padding: 0!important;
  margin: 10px;
李嘉林 committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
}
.tops {
  padding: 8rpx 0;
}

.hideCountDown {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topInfo {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-content: center;
}
.topInfo .title {
  font-size: 38rpx;
  color: #333;
  font-weight: bold;
  text-align: left;
李嘉林 committed
33 34 35
  flex: 1;
  margin-right: 4rpx;

李嘉林 committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
}
.topInfo .subheading {
  position: relative;
  display: flex;
  align-items: center;
}
.subheading.countDown {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.endTime {
  padding: 4rpx 10rpx;
  border-radius: 6rpx;
  background: #6a6b6b;
  color: #fff;
  font-weight: bold;
李嘉林 committed
53
  font-size: 13px;
李嘉林 committed
54 55 56 57 58 59
  -webkit-border-radius: 6rpx;
  -moz-border-radius: 6rpx;
  -ms-border-radius: 6rpx;
  -o-border-radius: 6rpx;
}
.endTimedot {
李嘉林 committed
60
  padding-right: 10rpx;
李嘉林 committed
61
}
李嘉林 committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
.style2 {
  padding: 14px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.style2 .topInfo .title{
  color: #fff;
}
.style2 .endTime{
  background: #fff;
  color: var(--titleBackgroundColor);
}
.style2 .subheading .endTimedot{
  color: #fff;
}
李嘉林 committed
77 78 79 80 81 82
.goods {
  width: 100%;
}
.goodsList {
  display: flex;
  align-items: flex-start;
李嘉林 committed
83
  flex-wrap: wrap;
李嘉林 committed
84 85 86 87 88 89 90 91
}
.goodsItem {
  box-sizing: border-box;
}
.goods-item-child {
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
李嘉林 committed
92
  margin: 20rpx 10rpx 0;
李嘉林 committed
93 94
}

李嘉林 committed
95 96
.goods-item-child .info,
.goods-item .info {
李嘉林 committed
97 98
  padding: 10rpx 20rpx 12rpx;
}
李嘉林 committed
99 100
.goods-item-child .info .name,
.goods-item .info .name {
李嘉林 committed
101 102 103 104 105 106 107 108
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 44rpx;
  font-size: 32rpx;
李嘉林 committed
109
  height: 46rpx;
李嘉林 committed
110
}
李嘉林 committed
111 112
.goods-item-child .info .allPrice,
.goods-item .info .allPrice{
李嘉林 committed
113 114
  display: flex;
  justify-content: space-between;
李嘉林 committed
115
  align-items: flex-end;
李嘉林 committed
116 117 118 119
}
.price {
  font-weight: 600;
  margin-top: 10rpx;
李嘉林 committed
120 121
  color: #333;
  font-size: 28rpx;
李嘉林 committed
122 123 124 125 126 127
}
.delPrice {
  text-decoration: line-through;
  margin-top: 10rpx;
  color: #999;
}
李嘉林 committed
128 129
.goods-item-child .info .allPrice .btn,
.goods1 .goods-item .info .btn {
李嘉林 committed
130
  font-size: 24rpx;
李嘉林 committed
131
  /* background: var(--main-color); */
李嘉林 committed
132 133 134 135 136 137 138
  color: #fff;
  border-radius: 10rpx;
  -webkit-border-radius: 10rpx;
  -moz-border-radius: 10rpx;
  -ms-border-radius: 10rpx;
  -o-border-radius: 10rpx;
}
李嘉林 committed
139 140
.goods-item-child .info .allPrice .btn .antt,
.goods1 .goods-item .info .btn .antt{
李嘉林 committed
141 142 143 144 145 146 147
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    background: var(--main-color);
}
李嘉林 committed
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
.goods-item-child-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.imgBox {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 40vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imgBox .goodsPicture{
  width: 100%;
}
.goods-item-child-flex .imgBox {
  width: 30%;
  padding-bottom: 30%;
}
.goods-item-child-flex .info {
  width: 70%;
}
.goodsPicture .whiteBg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(#fff, 0.7);
}
.goodsPicture .whiteBg .cover {
  position: absolute;
  top: 40rpx;
  left: 40rpx;
  right: 40rpx;
  bottom: 40rpx;
  display: flex;
  background: rgba(#333, 0.6);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
.goodsPicture .whiteBg .cover text {
  color: #fff;
  font-weight: bold;
  letter-spacing: 6rpx;
  text-align: center;
}
.goods1 {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* ios5+ */
李嘉林 committed
204
  padding: 20rpx;
李嘉林 committed
205 206 207 208 209 210
}
.goods1 .goods-item {
  display: inline-block;
  vertical-align: top;
  white-space: initial;
  margin-right: 20rpx;
李嘉林 committed
211
  width: 26%;
李嘉林 committed
212 213 214 215 216 217 218
}
.goods1 .goods-item .items {
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
}
.goods1 .goods-item .slidebox2 {
李嘉林 committed
219
  height: 22vw;
李嘉林 committed
220 221 222 223
  box-sizing: border-box;
  -moz-box-sizing: border-box; /* Firefox */
  -webkit-box-sizing: border-box; /* Safari */
}