Stepper.wxss 1.16 KB
/* components/Stepper/Stepper.wxss */
@import "/assets/style/common.wxss";


.stepper-box {
  display: flex;
  align-items: center;
}

.stepper-box .count-box {
  width: 52rpx;
  height: 52rpx;
  background: #F0F0F0;
  margin-left: 7rpx;
  font-size: 26rpx;
  text-align: center;
  color: #323233;
  font-weight: normal;
  position: relative;
}

.stepper-box .count-box.opacity::after ,.stepper-box .count-box.opacity::before{
  opacity: .25;
}

.stepper-box .minus {
  border-radius: 7rpx 0 0 7rpx;
  background: transparent;
}

.stepper-box .num {
  width: 72rpx;
  box-sizing: border-box;
  padding: 0 4rpx;
  border-radius: 8rpx;
  font-size: 26rpx;
  height: 48rpx;
  background: #F0F0F0;
  text-align: center;
}

.stepper-box .add {
  border-radius: 0 7rpx 7rpx 0;
  background: transparent;
}

.stepper-box .add::before,
.stepper-box .add::after,
.stepper-box .minus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  content: '';
  background-color: #2C2C2C;
  border-radius: 2rpx;
}

.stepper-box .add::before,.stepper-box .minus::after  {
  width: 25rpx;
  height: 2rpx;
  
  
}
.stepper-box .add::after{
  width: 2rpx;
  height: 25rpx;
}