SceneBox.wxss 1.95 KB
/* pages/tab/output/components/sceneBox/sceneBox.wxss */
.flex {
  display: flex;
}

.scene {
  text-align: center;
  width: 100%;
}

.scene-item {
  box-sizing: border-box;
  position: relative;
  width: 25%;
  /* flex: 1; */
  background: #F7F8FC;
  margin-right: 4rpx;
  font-size: 18rpx;
  /* color: #8A8C90; */
  color: #323436;
  padding: 32rpx 0 28rpx;
  border-radius: 12rpx;
  font-weight: 500;
  /* margin-bottom: 20rpx; */
}

.scene-item:last-child {
  margin-right: 0;
}

.scene-title {
  font-size: 24rpx;
  height: 44rpx;
  line-height: 44rpx;
  margin: 10rpx 0 4rpx;
}

/* 已开通 - start */
.open.scene-item {
  background: #F0F7FF;
}

.open-icon {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  right: 0;
  width: 78rpx;
  height: 78rpx;
  /* left: 0.5rpx;
  top: 0.5rpx;
  width: 56rpx;
  height: 32rpx;
  line-height: 24rpx;
  background: #FEEBD6;
  border-radius: 6rpx 0 8rpx 0;
  font-size: 18rpx;
  font-weight: 600;
  color: #EF971E;
  padding: 4rpx; */
}

/* 已开通 - end */

/* 选中 - start */
.active.scene-item {
  background-image: linear-gradient(145deg, #F0F7FF 0%, #FFFFFF 73%);
  border: 2rpx solid #3666FE;
  box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40);
}

.active::after {
  position: absolute;
  left: 50%;
  bottom: -17rpx;
  display: block;
  content: "";
  width: 16rpx;
  height: 16rpx;
  /* border-radius: 4rpx; */
  border-bottom: 1px solid var(--btnColor);
  border-right: 1px solid var(--btnColor);
  transform: rotate(45deg) translateX(-50%);
  background-color: #fff;
}

/* 选中 - end */

.scene-title {
  color: #323436;
}

/* .scene-title.on-open {
  color: #8A8C90;
} */

.no-open-img {
  position: relative;
}

.scene-img {
  width: 56rpx;
  height: 56rpx;
}

.lock-img {
  width: 92rpx;
  height: 64rpx;
}

.total-price {
  height: 40rpx;
  line-height: 40rpx;
  margin-top: 22rpx;
  font-size: 24rpx;
  color: #3666FE;
  font-weight: 600;
}

.notOpened {
  color: #8A8C90;
}