listScreen.sass 2.78 KB
/* pages/tab/learningCenter/components/listScreen/listScreen.wxss */
.confirm-box {
  position: fixed;
  top: 0;
  z-index: 10;
  height: 100vh;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  animation: show-confirm-box .5s forwards;
  .main {
    box-sizing: border-box;
  }
}
@keyframes show-confirm-box {
  0%{
    right: -100%;
  }
  100%{
    right: 0;
  }
}

.box {
  margin: 0 32rpx;
  .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 32rpx;
    font-weight: 500;
    color: #292D33;
    padding: 34rpx 0 30rpx;
    position: sticky;
    left: 0;
    top: 0;
    background: #fff;
    z-index: 2;
    .title-left{
      display: flex;
      align-items: flex-end;
    }
    .title-tips{
      font-size: 22rpx;
      font-weight: 400;
      color: #757980;
      margin-left: 8rpx;
    }
    .collapse-btn{
      width: 48rpx;
      height: 48rpx;
    }
    .collapse-btn.rotate-180{
      transform: rotate(180deg);
    }
  }
  .list-box {
    display: flex;
    border-bottom: 2rpx solid rgba(195, 195, 195, .3);
    flex-wrap: wrap;
    padding-bottom: 20rpx;
    .item {
      width: calc(234 / 750 * 100%);
      min-height: 68rpx;
      border-radius: 4rpx;
      box-sizing: border-box;
      border: 2rpx solid transparent;
      padding: 16rpx 33rpx;
      flex-wrap: wrap;
      font-size: 24rpx;
      text-align: center;
      background-color: #F7F8FA;
      color: #292D33;
      transition: all .2s;
      margin: 0 calc(20 / 750 * 100%) calc(20 / 750 * 100%) 0;
      .text-item{
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      &.active {
        background: rgba(53, 130, 238, 0.08);
        border: 2rpx solid #2C66F7;
        color: #2C66F7;
      }
    }
    .item.custom-time:last-child{
      margin-right: 0;
      margin-left: 20rpx;
    }

    .item:nth-of-type(3n+3) {
      margin-right: 0;
    }
  }
}

.btn-box {
  position: sticky;
  padding: 10rpx 32rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 32rpx;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 9;
  background-color: #fff;
  .btn {
    border-radius: 12rpx;
    box-sizing: border-box;
    height: 80rpx;
  }
  .clear {
    width: 186rpx;
    background: #F4F5F7;
    color: #292D33;
  }
  .done {
    background: #2C66F7;
    color: #fff;
    width: 480rpx;
  }
}

.isFullSucreen-btn {
  padding-bottom: constant(safe-area-inset-bottom) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
}

.text-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-hide {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}