LiveBox.scss 3.99 KB
/* pages/crowdfunding/components/LiveBox/LiveBox.wxss */
@import "../../assets/css/index.wxss";

.movable {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100%;
  z-index: 7;
  pointer-events: none;
}


.small-box {
  position: fixed;
  top: 20%;
  right: 0;
  z-index: 10;

  width: 52px;
  height: 21px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  pointer-events: all;

  .icon-small-live {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px 0 0 10px;
    // object-fit: cover;
  }

  .small-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 9;
    line-height: 21px;
    // padding-left: 5px;
    // padding: ;
    justify-content: center;
    // overflow: hidden;
    border-radius: 0 0 10px 10px;
    // padding: ;
    text-align: right;

    .live-replayIcon {
      position: absolute;
      left: 4px;
      top: 2px;
      display: inline-block;
      width: 10px;
      height: 10px;
      z-index: 9;
    }

    .text {
      z-index: 40;
      margin-left: 15px;
      font-size: 12px;
    }
  }
}

.live-box {
  box-sizing: border-box;
  position: relative;
  // top: 23%;
  // left: calc(98% - 86px);
  // left: 0;
  z-index: 7;
  width: 82.5px;
  height: 150px;
  border-radius: 4px;
  overflow: hidden;
  user-select: auto;
  pointer-events: all;

  // transition: width 0.1s ease, height 0.1s ease;
  .icon-live-close {
    position: absolute;
    top: 2px;
    right: 2px;
    // left: -100px;
    z-index: 3;
  }

  .mask {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    border: 2px solid #f95d35;
    border-radius: 4px;
    box-sizing: border-box;

    .coverGif {
      object-fit: contain;
      height: 126px;
    }

    .status {
      position: absolute;
      left: -2px;
      bottom: -2px;
      width: 104%;
      height: 18px;
      background: linear-gradient(291deg, #f6542b 0%, #ff6c47 100%), linear-gradient(270deg, rgba(255, 57, 0, 0) 0%, #ff3900 33%, #fd466f 100%);
      font-size: 12px;
      font-weight: 500;
      color: #ffffff;
      box-sizing: border-box;
      padding: 0 10px;

      .live-replayIcon {
        display: inline-block;
        width: 10px;
        height: 10px;
      }

      .text {
        margin-left: auto;
      }
    }
  }

  .video {
    width: 100%;
    height: 100%;
    // video {
    //   object-fit: cover !important;
    // }
  }

  video .vjs-control-bar {
    bottom: 20px;
  }

  .fullscreen-btn {
    display: none;
    position: absolute;
    left: 12px;
    top: 5%;
    width: 54px;
    height: 48px;
    z-index: 2;
    animation: xing ease-in-out 2s infinite;
  }

  @keyframes xing {
    0% {
      transform: scale(0.85);
    }

    25% {
      transform: scale(1);
    }

    50% {
      transform: scale(0.85);
    }

    75% {
      transform: scale(1);
    }

    100% {
      transform: scale(0.85);
    }
  }

  .poster-btn {
    display: none;
    position: absolute;
    right: 12px;
    top: 18px;
    width: 60px;
    height: 88px;
    z-index: 2;
  }

  // /deep/.vjs-control-bar {
  //   opacity: 0;
  // }
}

.videoFullscreen {
  // position: relative;
  width: 100vw !important;
  height: 100% !important;
  // left: 0 !important;
  // top: 0 !important;
  // right: 0 !important;
  // bottom: 0 !important;
  border: none !important;
  background: #000000;
  overflow-y: hidden;

  .videoShort {
    // height: calc(100% - 13.333vh) !important;
    height: 100%;
  }

  .mask {
    display: none;
  }

  .fullscreen-btn,
  .poster-btn {
    display: block;
  }

  // /deep/.vjs-control-bar {
  //   opacity: 1 !important;
  //   // bottom: 10vh;
  //   background: none !important;
  //   // background-color: rgba(0, 0, 0, 0.3);
  // }
  .BgAction {
    // 80%,80%, rgba(0, 0, 0, 0.4),
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(225, 225, 225, 0));
    /* 标准的语法(必须放在最后) */
  }
}

.Im {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
}