modal-protocol-comp.scss 1.79 KB
@import '@/styles/_support';

.comp {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000;
  width: 100%;
  height: 100%;
  @extend .fcc;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba($color: #000000, $alpha: 0.7);
}

.modal {
  position: relative;
  width: 60rem;
  min-height: 18.25rem;
  border-radius: $borderRadius;
  background-color: #ffffff;
  height: 70vh;

  &-title {
    position: relative;
    @extend .bb;
    @include border-top-radius($borderRadius);
    @include ellipsis(1);
    font-size: $fontSizeTitle;
    height: 5rem;
    line-height: 5rem;
    background-color: #f2f2f2;
    text-align: left;
    padding: 0 2.75rem;

    .close-btn {
      position: absolute;
      top: 2rem;
      right: 2rem;
    }
  }

  &-icon-wrap {
    @extend .fcc;
    height: 12rem;
  }

  &-content {
    position: relative;
    @extend .bb;
    font-size: $fontSize;
    padding: $marginMedium-M 1rem $marginMedium-M 2rem;
    height: 62vh;

    &-desc {
      text-align: left;
      height: 100%;
      overflow-y: scroll;
      line-height: 2;
      padding-right: 16px;

      .t1 {
        font-weight: bold;
      }
    }

    &-desc :lang(zh) {
      letter-spacing: 1.2px;
    }
  }

  &-btn-wrap {
    display: flex;
    justify-content: center;

    .btn {
      @include btc2(12rem, 3.6rem, 16px);
      margin: 3rem 1rem 0;
      @extend .pointer;
    }
  }
}

.hide {
  display: none;
}

@media (max-width: 1200px) {
  .comp {
    position: fixed;
  }

  .modal {
    position: absolute;
  }
}


@media (max-width: 768px) {
  .modal {

    width: 90%;
    height: auto;

    &-title {}

    &-icon-wrap {
      height: 10rem;

      img {
        height: 100%;
      }
    }

    &-content {
      height: 70vh;
    }
  }
}