ChannelsModal.scss 3.01 KB
/* pages/tab/index/components/ChannelsModal/ChannelsModal.wxss */
.channels {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 101;

  &-bg {
    width: 100%;
    height: 100%;
    background-color: rgba($color: #000000, $alpha: .5);
  }

  &-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 590rpx;
    background: #8A303A;
    border-radius: 16rpx;
    animation: show-live-box .5s forwards;

    .close {
      position: absolute;
      top: 20rpx;
      right: 20rpx;
      width: 36rpx;
      height: 36rpx;
      z-index: 3;
    }

    .live-box {
      width: 100%;
      min-height: 994rpx;

      .live-view {
        height: 800rpx;
      }

      .live-info {
        font-weight: 500;
        font-size: 24rpx;
        color: #FFFFFF;
        text-align: center;
        padding: 20rpx 55rpx 48rpx;

        .text {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .channels-btn {
          margin: 20rpx auto 0;
        }
      }
    }

    .notice-bg {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
    }

    .notice-box {
      min-height: 892rpx;
      position: relative;
      z-index: 1;

      .notice-title {
        font-weight: 600;
        font-size: 28rpx;
        color: #FFFFFF;
        letter-spacing: 2rpx;
        padding: 24rpx 0;
        text-align: center;
      }

      .notice-head-url {
        width: 486rpx;
        height: 480rpx;
        position: absolute;
        top: 112rpx;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16rpx;
        overflow: hidden;
      }

      .notice-time {
        position: absolute;
        left: 50%;
        bottom: 208rpx;
        transform: translateX(-50%);
        width: 100%;
        font-size: 60rpx;
        color: #8A303A;
        display: flex;
        justify-content: center;
        align-items: baseline;
        line-height: 72rpx;

        .unit {
          font-size: 28rpx;
          margin: 0 10rpx;
          line-height: 40rpx;
        }
      }

      .channels-btn {
        position: absolute;
        left: 50%;
        bottom: 48rpx;
        transform: translateX(-50%);
      }
    }

    .channels-btn {
      width: 264rpx;
      height: 72rpx;
      background-image: radial-gradient(circle at 12% 25%, #FFEDC9 0%, #E7AE6E 98%);
      border-radius: 12rpx;
      font-weight: 600;
      font-size: 28rpx;
      color: #000000;
      letter-spacing: 2rpx;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }


}

.true {
  animation: close-live-box .5s forwards;
  overflow: hidden;
}

@keyframes close-live-box {
  0% {
    opacity: 1;
  }

  100% {
    height: 140rpx;
    opacity: 0;
    top: 35%;
    left: 0;
  }
}

@keyframes show-live-box {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.15);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}