Newer
Older
KaiFengH5 / src / assets / less / global.less
@鲁yixuan 鲁yixuan on 9 Jul 3 KB update
.van-pull-refresh {
  padding: 20px;

  .van-loading__text {
    color: #1f89ad;
  }
}

.van-empty {
  padding: 0px !important;
}

.van-ellipsis {
  overflow: inherit;
}

.van-tabs {
  .van-tabs__wrap {
    box-shadow: 0px 10px 30px 0px rgba(18, 18, 18, 0.2);
  }
}

// 超出省略号
.ellipsis {
  width: 100%;
  overflow: hidden; //超出隐藏
  white-space: nowrap; //不折行
  text-overflow: ellipsis; //溢出显示省略号
}

// 详情
.contentDetail {
  padding: 20px;
  color: #585858;

  .part {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #ececec;
    padding: 20px 10px;

    .title {
      width: 180px;
      font-weight: bold;
      font-size: 26px;
      color: #333333;
      font-family: PingFang SC;
    }

    .cont {
      font-size: 24px;
      line-height: 30px;

      .van-image {
        width: 150px;
        height: 150px;
        margin-right: 10px;
        margin-top: 20px;
      }
    }
  }
}

.tabsChange {
  width: 100%;

  .topTabs {
    width: 100%;
    height: 100px;
    background: #ffffff;
    box-shadow: 0px 12px 31px 0px rgba(18, 69, 101, 0.1);
    border-radius: 0px 0px 0px 0px;
    opacity: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-end;
    flex-direction: row;
    border-top: 1px solid #eee;


    .tabsList {
      font-weight: 500;
      color: #585858;
      height: 60px;
      font-size: 25px;
      font-family: PingFang SC;
      font-weight: bold;
      color: #9f9f9f;
      margin: 15px 30px;

    }

    .tabsListActive {
      font-size: 30px;
      font-family: Source Han Sans CN-Regular, Source Han Sans CN;
      font-weight: bold;
      color: #000000;
      position: relative;

      &:after {
        content: '';
        display: block;
        position: absolute;
        bottom: 5px;
        left: 49%;
        transform: translate(-50%);
        width: 50px;
        height: 5px;
        background: #121212;
        opacity: 1;
        border-radius: 2px;
      }
    }
  }
}

// 头部封装
.publicTabNF {
  width: 100%;

  //页面布局样式
  .topTabsNF {
    width: 100%;
    height: 87px;
    background: #ffffff;
    box-shadow: 0px 12px 31px 0px rgba(18, 69, 101, 0.1);
    border-radius: 0px 0px 0px 0px;
    opacity: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-end;
    flex-direction: row;

    .tabsList {
      font-weight: 500;
      color: #585858;
      height: 60px;
      font-size: 25px;
      font-family: PingFang SC;
      font-weight: bold;
      color: #9f9f9f;
      margin: 0px 30px;

      .van-badge__wrapper {
        .van-badge--fixed {
          top: 0px !important;
          background: #ff5757 !important;
        }
      }
    }

    .tabsListActive {
      font-size: 30px;
      font-family: Source Han Sans CN-Regular, Source Han Sans CN;
      font-weight: bold;
      color: #000000;
      position: relative;

      &:after {
        content: '';
        display: block;
        position: absolute;
        bottom: 5px;
        left: 49%;
        transform: translate(-50%);
        width: 50px;
        height: 3px;
        background: #121212;
        opacity: 1;
        border-radius: 2px;
      }
    }
  }

  .tabsListTB {
    height: 100px;
    width: 85px;
    position: absolute;
    left: 650px;
    top: 20px;

    img {
      height: 50px;
      width: 50px;
    }
  }

  .searchBox {
    background: #ffffff;
    opacity: 1;
    height: 125px;
    width: 100%;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    padding: 22px 30px 30px 30px;

    .searchInput {
      width: 100%;
      box-sizing: border-box;
      padding: 0 36px 0 20px;
      height: 73px;
      background: #ecedef;
      border-radius: 10px;
      border: none;
    }

    .SearchIcon {
      width: 32px;
      height: 32px;
      position: absolute;
      right: 56px;
      top: 45px;
    }
  }
}