index.scss 5.22 KB
@import '../../assets/scss/mixins';
@import '../../assets/scss/utils';

.page {
  $contentWidth: 730px;
  padding-bottom: $pageBottom;

  color: #333333;
  font-weight: bold;

  .bgc {
    background-color: #efefef;
  }

  .bg {}

  .main {
    .top-space {
      height: 0px;
    }

    .banner {
      position: relative;
      line-height: 0px;
      $swiperHei: 320px;

      .swiper {
        width: 750px;
        height: $swiperHei;
        margin: 0 auto;

        .swiper-image {
          width: 750px;
          height: $swiperHei;
        }
      }

      .tit {
        position: absolute;
        bottom: 0px;
        width: 750px;
        height: 110px;
        line-height: 80px;
        left: 0;
        right: 0;
        margin: 0 auto;
        text-align: center;
        color: #ffffff;
        font-size: 36px;
        font-weight: bold;
        @include ellipsis(1);
      }

      .tit-bg {
        opacity: .6;
        height: 80px;
        color: #ffffff;
        position: absolute;
        width: 100%;
        height: 110px;
        bottom: 0;
        background-image: linear-gradient(to top, #000000, #999999);
      }
    }

    .content {
      position: relative;
      padding-top: 10px;

    }

    .list {
      position: relative;
      margin: 0 auto;
      width: $contentWidth;

      // 拜年祝福item
      &-bless-item {
        display: flex;
        justify-content: space-between;
        border-bottom: solid 2px #dfdfdf;
        padding: 24px 0;
        position: relative;

        .desc-wrap {
          position: relative;
          @extend .bb;
          padding: 8px 14px;
          height: 180px;
          flex: 1;
        }

        .tit {
          font-size: 36px;
          @include ellipsis(3);
          color: #fc464a;
        }

        .scene {
          position: absolute;
          font-size: 36px;
          bottom: 12px;
          left: 14px;
          @include ellipsis(1);
        }

        .poster {
          width: 350px;
          height: 180px;
          border-radius: 8px;
        }
      }

      // 视频item
      &-item {
        // @extend .shadow;
        box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.6);
        @include border-top-radius(16px);
        position: relative;
        background-color: #ffffff;
        border-radius: 16px;
        margin: 24px auto;

        &-video {
          display: flex;
          justify-content: center;
          position: relative;
          width: $contentWidth;
          background-color: #dddddd;
          @include border-top-radius(16px);

          .img {
            width: $contentWidth;
            height: 320px;
            @include border-top-radius(16px);
          }

          .vid {
            @include border-top-radius(16px);
            width: $contentWidth;
            pointer-events: none;
          }

          .tit {
            font-size: 40px;
            max-height: 120px;
            color: #ffffff;
            padding: 4px 0;
            position: absolute;
            width: 100%;
            bottom: 0;
            @include ellipsis(2);

            .tit-t1 {
              @extend .bb;
              padding: 0 24px;
              position: relative;
            }

          }

          .tit-bg {
            opacity: .6;
            height: 120px;
            color: #ffffff;
            position: absolute;
            width: 100%;
            bottom: 0;
            @include border-top-radius(8px);
            background-image: linear-gradient(to top, #000000, #999999);
          }

          .play {
            @extend .fcc;
            width: 100px;
            height: 100px;
            border-radius: 100px;
            border: solid #ffffff 6px;
            font-weight: normal;
            position: absolute;
            left: 0;
            right: 0;
            top: 48px;
            margin: 0 auto;
            text-align: center;
            font-weight: bold;
            background-color: rgba($color: #000000, $alpha: 0.4);

            .iconfont {
              font-size: 48px;
              color: #ffffff;
              margin-left: 12px;
            }
          }

        }

        &-func {
          @extend .bb;
          padding: 12px 24px;
          // height: 120px;
          display: flex;
          justify-content: space-between;
          align-items: center;

          .user {
            display: flex;
            align-items: center;

            .portrait {
              width: 72px;
              height: 72px;
              border-radius: 48px;
            }

            .name {
              padding-left: 24px;
              font-size: 32px;

              @include ellipsis(1);
            }
          }

          .share {
            font-size: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 52px;
            border-radius: 52px;
            color: #ffffff;
            background-color: #3ec03c;
            margin: 0;
            font-weight: normal;

            .iconfont {
              font-size: 40px;
            }

            .t1 {
              padding: 0 6px;
            }
          }
        }

      }
    }
  }


  .van-tab--active {
    color: #fc464a !important;
  }

  .van-hairline--top-bottom:after {
    border-width: 0;
  }
}