Popup.wxss 1.8 KB
/* tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.wxss */
@import "/assets/style/common.wxss";
.popup {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 998;
}

.popup-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, .6);
}

.text-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  position: absolute;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-radius: 20rpx 20rpx 0 0;
  animation: show-popup .2s forwards;
  box-sizing: border-box;
}

.popup-content.close {
  animation: hide-popup-box .5s forwards;
}

.popup-title {
  height: 98rpx;
  font-size: 32rpx;
  color: #333333;
  border-bottom: 2rpx solid #EBEDF0;
}

.popup-slot {
  height: calc(100% - 200rpx - var(--constantSafeAreaInsetBottom));
  height: calc(100% - 200rpx - var(--envSafeAreaInsetBottom));
}


.popup-slot.notitle {
  height: calc(100% - 158rpx - var(--constantSafeAreaInsetBottom));
  height: calc(100% - 158rpx - var(--envSafeAreaInsetBottom));
}

.popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10rpx 32rpx;
  position: relative;
  background-color: #fff;
  z-index: 2;
}


.popup-footer .btn {
  width: 330rpx;
  height: 80rpx;
  box-sizing: border-box;
  border-radius: 20rpx;
  font-size: 28rpx;
}

.popup-footer .doubtn {
  width: 670rpx;
  height: 80rpx;
  box-sizing: border-box;
  border-radius: 12rpx;
  font-size: 28rpx;
}

.popup-footer .cancel {
  color: #323233;
  border: 2rpx solid #DCDEE0;
}

.popup-footer .confirm {
  background: var(--btnColor);
  color: #fff;
}

@keyframes show-popup {
  0% {
    bottom: -100%;
  }

  100% {
    bottom: 0;
  }
}

@keyframes hide-popup-box {
  0% {
    bottom: 0;
  }

  100% {
    bottom: -100%;
  }
}