longCourse.sass 6.78 KB
/* packageStudyCenter/pages/longCourse/longCourse.wxss */
.detail-box {
  position: relative;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  padding: var(--fontSize24) var(--fontSize28);
  .course-detail-box {
    position: relative;
    border-radius: var(--fontSize24);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 var(--fontSize4) var(--fontSize16) 0 #2a61eb1a;
    .course-detail-img-box {
      position: relative;
      width: 100%;
      .course-detail-img {
        width: 100%;
        height: var(--fontSize264);
      }
      .time-limit-tag {
        position: absolute;
        top: 0;
        left: 0;
        width: 122rpx;
        height: 48rpx;
        background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/usedCar/limit-page.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 1;
        color: #fff;
      }
    }
    .course-detail-content {
      padding: var(--fontSize24) var(--fontSize28);
      .course-title {
        font-size: var(--fontSize34);
        color: #292D33;
        margin-bottom: var(--fontSize8);
        font-weight: 500;
      }
      .course-info {
        position: relative;
        display: flex;
        align-items: center;
        font-size: var(--fontSize28);
        &:not(:last-child) {
          margin-bottom: var(--fontSize8);
        }
        .info-label {
          width: var(--fontSize112);
          color: #999EA8;
          margin-right: var(--fontSize24);
        }
        .info-value {
          color: #666666;
        }
        .green {
          display: flex;
          align-items: center;
          color: #2CCA74;
          .dot-value {
            width: var(--fontSize12);
            height: var(--fontSize12);
            border-radius: 50%;
            background: #2CCA74;
            margin-right: var(--fontSize8);
          }
        }
        .info-progress {
          width: var(--fontSize410);
          height: var(--fontSize12);
          background: linear-gradient(128.8deg, rgba(117, 188, 255, .35) 0%, rgba(44, 102, 247, .35) 100%);
          border-radius: var(--fontSize8);
          .info-progress-text {
            color: #3B73FF;
            font-size: var(--fontSize28);
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
          }
          .info-progress-bar {
            height: 100%;
            background: linear-gradient(128.8deg, #75bcff 0%, #2c66f7 100%);
            border-radius: var(--fontSize8);
          }
        }
      }
    }
    .time-limit-countdown {
      position: absolute;
      left: var(--fontSize28);
      top: var(--fontSize202);
      line-height: var(--fontSize48);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: var(--fontSize28);
      z-index: 1;
      .countdown-num {
        display: flex;
        flex-basis: 0;
        color: #B87A11;
        box-sizing: border-box;
        width: var(--fontSize48);
        height: var(--fontSize48);
        line-height: var(--fontSize48);
        border-radius: var(--fontSize8);
        background: #b87a1126;
        margin: 0 var(--fontSize8);
        line-height: normal;
        padding: var(--fontSize4) var(--fontSize8);
      }
      .countdown-separator {
        color: #B87A11;
      }
      .countdown-label,
      .countdown-unit {
        line-height: var(--fontSize48);
        color: #B87A11;
        margin: 0 var(--fontSize4);
      }
    }
  }
  .course-list-box-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 580rpx);
    background-color: #fff;
    margin-top: var(--fontSize20);
  }
  .course-list-box-title {
    font-size: var(--fontSize34);
    color: #292D33;
    font-weight: 500;
    padding: var(--fontSize24) var(--fontSize28) var(--fontSize24) 0;
  }
  .course-list-box {
    padding-bottom: var(--fontSize32);
    .course-list-item-wrapper {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--fontSize16);
      .course-list-item {
        position: relative;
        height: var(--fontSize442);
        border-radius: var(--fontSize24);
        background: #ffffff;
        font-size: 0;
        box-shadow: 0 var(--fontSize4) var(--fontSize16) 0 #2a61eb1a;
        overflow: hidden;
        .course-img {
          width: 100%;
          height: var(--fontSize180);
          border-radius: var(--fontSize24) var(--fontSize24) 0 0;
        }
        .item-content {
          padding: var(--fontSize16) var(--fontSize12);
          .item-title {
            font-size: var(--fontSize28);
            color: #292D33;
            font-weight: 500;
            margin-bottom: var(--fontSize8);
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
          .item-info {
            display: flex;
            margin-bottom: var(--fontSize4);
            font-size: var(--fontSize24);
            height: var(--fontSize36);
            line-height: var(--fontSize36);
            .item-info-label {
              flex-shrink: 0;
              width: var(--fontSize96);
              color: #999EA8;
              margin-right: var(--fontSize24);
            }
            .item-info-value {
              color: #666666;
              display: flex;
              align-items: center;
              justify-content: center;
              .dot-value {
                flex-shrink: 0;
                width: var(--fontSize12);
                height: var(--fontSize12);
                border-radius: 50%;
                margin-right: var(--fontSize8);
              }
              .green {
                background: #2CCA74;
                color: #2CCA74;
              }
              .red {
                background: #EB4E4E;
                color: #EB4E4E;
              }
              .orange {
                background: #F59619;
                color: #F59619;
              }
            }
            .green {
              color: #2CCA74;
            }
            .red {
              color: #EB4E4E;
            }
            .orange {
              color: #F59619;
            }
          }
          .item-btn {
            margin-top: var(--fontSize8);
            width: var(--fontSize307);
            height: var(--fontSize56);
            border-radius: var(--fontSize24);
            background: #F1F7FE;
            font-size: var(--fontSize26);
            color: #2C66F7;
            text-align: center;
            line-height: var(--fontSize56);
          }
          .completed-bg {
            width: var(--fontSize112);
            height: var(--fontSize112);
            position: absolute;
            bottom: var(--fontSize20);
            right: var(--fontSize16);
          }
        }
      }
    }
  }
}