/* pages/cart/index.wxss */ .cart-group { border-radius: 8rpx; .promotion-wrap { display: flex; justify-content: space-between; align-items: center; padding: 0rpx 24rpx 32rpx 36rpx; background-color: #ffffff; font-size: 24rpx; line-height: 36rpx; color: #222427; .promotion-title { font-weight: bold; flex: auto; overflow: hidden; margin-right: 20rpx; display: flex; align-items: center; .promotion-icon { flex: none; font-weight: normal; display: inline-block; padding: 0 8rpx; color: #ffffff; background: #fa4126; font-size: 20rpx; height: 32rpx; line-height: 32rpx; margin-right: 16rpx; border-radius: 16rpx; } .promotion-text { flex: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } .promotion-action { flex: none; color: #333333; } } .promotion-line-wrap { background-color: #fff; height: 2rpx; display: flex; justify-content: flex-end; .promotion-line { width: 684rpx; height: 2rpx; background-color: #e6e6e6; } } .goods-item { padding-top: 40rpx; padding-bottom: 40rpx; position: relative; // &:nth-child(1) { // padding-top: 0; // &::after { // background-color: transparent; // } // } &::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background-color: #eee; } } .goods-item-info { display: flex; background-color: #fff; align-items: center; .check-wrap { padding: 0 20rpx; .unCheck-icon { box-sizing: border-box; width: 36rpx; height: 36rpx; border-radius: 20rpx; background: #f5f5f5; border: 2rpx solid #bbbbbb; } } .goods-sku-info { padding: 0; flex-grow: 1; display: flex; .imageWrap { position: relative; } .imgfix { clear: both; image { float: left; } } .stock-mask { position: absolute; color: #fff; font-size: 24rpx; bottom: 0rpx; background-color: rgba(0, 0, 0, 0.5); width: 100%; height: 40rpx; line-height: 40rpx; text-align: center; } .goods-stepper { position: absolute; right: 34rpx; bottom: 0rpx; .stepper-tip { position: absolute; top: -36rpx; right: 0; height: 28rpx; color: #ff2525; font-size: 20rpx; line-height: 28rpx; } } } } } .action-btn { display: flex; align-items: center; .action-btn-arrow { font-size: 20rpx; margin-left: 8rpx; } } .action-btn--active { opacity: 0.5; } .swiper-right-del { height: 100%; width: 144rpx; background-color: #fa4126; font-size: 28rpx; color: white; display: flex; justify-content: center; align-items: center; } .goods-stepper { .stepper { border: none; border-radius: 0; height: auto; width: 168rpx; overflow: visible; .stepper__minus { width: 44rpx; height: 44rpx; background-color: #f5f5f5; position: relative; .wr-icon { font-size: 24rpx; } &::after { position: absolute; display: block; content: ' '; left: -20rpx; right: -5rpx; top: -20rpx; bottom: -20rpx; background-color: transparent; } } .stepper__plus { width: 44rpx; height: 44rpx; background-color: #f5f5f5; position: relative; .wr-icon { font-size: 24rpx; } &::after { position: absolute; display: block; content: ' '; left: -5rpx; right: -20rpx; top: -20rpx; bottom: -20rpx; background-color: transparent; } } .stepper__minus--hover { background-color: #f5f5f5; } .stepper__plus--hover { background-color: #f5f5f5; } .stepper__input { width: 72rpx; height: 44rpx; background-color: #f5f5f5; font-size: 24rpx; color: #222427; font-weight: 600; border-left: none; border-right: none; min-height: 40rpx; margin: 0 4rpx; display: flex; align-items: center; } } } .thumb { //21.6:14.6 width: 207rpx; height: 140rpx; } .thumb-title { text-overflow: ellipsis; white-space: nowrap; align-items: stretch; overflow: hidden; width: calc(100vw - 330rpx); } .thumb-tag { border: 1px solid #d3d3d3; color: #555; font-size: 22rpx; font-weight: lighter; display: inline-flex; padding: 4rpx 10rpx; align-items: center; border-radius: 4rpx; } .swipeitem { padding-top: 30rpx; } .linkbtn { color: #555; border-left: 1px solid #eee; padding-left: 16rpx; &-active { color: #000; } }