index.scss 3.7 KB
.content {
  .van-notice-bar {
    margin: 0 20px 16px;
    padding: 0 5px;
    border-radius: 8px;
  }
  .box {
    margin-bottom: 20px;
    padding-bottom: 20px;
    background-color: #fff;
    .bar_title{
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      &>span{
        color: #F2C446;
        border: 1px solid #F2C446;
        border-radius: 10px;
        border-radius: 10px;
        padding: 0px 12px;
        margin-left: 10px;
      }
      &:after{
        content: '';
        flex: 1;
        height: 1px;
        background-color: #F2C446;
      }
    }
    .title {
      font-size: 18px;
      color: #2c2c2c;
      display: flex;
      justify-content: space-between;
      font-weight: 700;
      padding: 10px 20px;
      margin-bottom: 14px;
      .more {
        font-weight: normal;
        font-size: 14px;
        display: flex;
        align-items: center;
        .icon-more {
          margin-left: 7px;
        }
      }
    }
    .sub-title {
      font-size: 17px;
      color: #333333;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 46px 0 5px;
      &::before,
      &::after {
        display: block;
        content: '';
        background: #FADFB8;
        width: 72px;
        height: 2px;
      }
      &::before {
        margin-right: 20px;
      }
      &::after {
        margin-left: 20px;
      }
    }
    .partner {
      margin: 0 auto;
    }
    .items {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      &.items_5_1 {
        grid-template-columns: repeat(5, 1fr);
        .item{
          margin-bottom: 10px;
        }
        .item-des{
          font-size: 10px;
          color: #B2B2B2;
        }
      }
      .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        color: #999999;
        .sprite-icon {
          margin-bottom: 4px;
        }
        &-name {
          font-size: 12px;
          color: #2c2c2c;
        }
      }
    }
    .scroll-items {
      overflow-x: scroll;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      padding: 0 20px;
      display: flex;
      .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        color: #999999;
        .sprite-icon {
          margin-bottom: 4px;
          margin-right: 10px;
        }
        &-name {
          font-size: 14px;
          color: #2c2c2c;
        }
        &-name,
        &-description {
          transform: translateX(-5px);
        }
      }
      .item:last-of-type {
        .sprite-icon {
          margin-right: 20px;
        }
        .item-name,
        .item-description {
          transform: translateX(-10px);
        }
      }
      &::-webkit-scrollbar {
        display: none;
        height: 0;
        opacity: 0;
        width: 0;
      }
    }
    .gas-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      .item {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 6px;
        .sprite-icon {
          margin-right: 10px;
          position: relative;
          .sub-icon {
            position: absolute;
            left: 0;
            bottom: -6px;
            transform: translateY(100%);
          }
        }
      }
    }
    .tab_list{
      white-space: nowrap;
      &>li{
        display: inline-block;
        font-size: 16px;
        margin: 5px 10px;
        padding: 2px 0;
        &:first-child{
          margin-left: 0;
        }
        &:last-child{
          margin-right: 0;
        }
        &.active{
          border-bottom: 2px solid #008FFF;
        }
      }
    }
  }
}