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

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

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

.modal {
  position: relative;
  @extend .bb;
  width: 46.25rem;
  height: 28.5rem;
  border-radius: 1.25rem;
  background-color: #ffffff;
  padding: 4.5rem 2rem 2.5rem;

  &-title {
    margin-bottom: 3rem;
    color: $cOrange;
    font-size: $fontSizeTitle;
    font-weight: bold;
  }

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

  &-content {
    margin-top: 1rem;
    color: $cOrange;
    font-size: $fontSizeTitle;
    font-weight: bold;
  }

  &-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 {
    // width: 90%;
    position: absolute;
  }
}


@media (max-width: 768px) {
  .modal {
    // height: 28.5rem;
     width: 90%;
    height: auto;

    &-title {
      margin-bottom: 1rem;
    }

    &-icon-wrap {
      height: 10rem;
      img{
        height: 100%;
      }
    }
  }
}