index.sass 3.36 KB
/* pages/tabRepairOrder/components/Screening/index.wxss */
@keyframes show-confirm-box {
  0% {
    right: -100%;
  }

  100% {
    right: 0;
  }
}

.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;
  }

  .box {
    margin: 0 var(--fontSize32);

    .title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: var(--fontSize32);
      font-weight: 500;
      color: #292D33;
      padding: var(--fontSize34) 0 var(--fontSize30);
      position: sticky;
      left: 0;
      top: 0;
      background: #fff;
      z-index: 2;

      .title-left {
        display: flex;
        align-items: flex-end;
      }

      .collapse-btn {
        width: var(--fontSize48);
        height: var(--fontSize48);

        &.rotate-180 {
          transform: rotate(180deg);
        }
      }
    }

    .list-box {
      display: flex;
      border-bottom: var(--fontSize2) solid rgba(195, 195, 195, .3);
      flex-wrap: wrap;
      padding-bottom: var(--fontSize20);

      .item {
        width: calc(234 / 750 * 100%);
        min-height: var(--fontSize68);
        border-radius: var(--fontSize4);
        box-sizing: border-box;
        border: var(--fontSize2) solid transparent;
        padding: var(--fontSize16) var(--fontSize33);
        flex-wrap: wrap;
        font-size: var(--fontSize24);
        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;
        }

        .inline-block {
          display: inline-block;
        }

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

      .active {
        background: rgba(53, 130, 238, 0.08);
        border: var(--fontSize2) solid #347BFF;
        color: #347BFF;
      }

      .grey {
        color: #999EA8;
      }

      .custom-time {
        width: calc(316 / 750 * 100%);
        margin-bottom: 0;

        &:last-child {
          margin-right: 0;
          margin-left: var(--fontSize20);
        }
      }

      .calendar {
        .item {
          margin-right: 0;
        }
      }
    }

    .endbox {
      border: none;
    }
  }
}

.btn-box {
  position: sticky;
  padding: var(--fontSize10) var(--fontSize32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fontSize28);
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 9;
  background-color: #fff;

  .btn {
    border-radius: var(--fontSize12);
    border: var(--fontSize2) solid #0075F9;
    box-sizing: border-box;
    height: var(--fontSize80);
  }

  .clear {
    border: var(--fontSize2) solid #DEE0E3;
    width: var(--fontSize186);
    color: #292D33;
  }

  .done {
    background: #347BFF;
    color: #fff;
    width: var(--fontSize480);
  }
}

.isFullSucreen-btn {
  padding-bottom: var(--fontSize68);
}

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

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