modal-comp.scss 1.25 KB


.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;
  @extend .bb;
  width: 555px;
  height: 342px;
  border-radius: 15px;
  background-color: #ffffff;
  padding: 54px 24px 30px;

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

  &-icon-wrap {
    @extend .fcc;
    height: 144px;
  }

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

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

    .btn {
      @include btc2(144px, 43.2px, 16px);
      margin: 36px 12px 0;
      @extend .pointer;
    }
  }
}

.hide {
  display: none;
}

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

  .modal {
    // width: 90%;
    position: absolute;
  }
}


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

    &-title {
      margin-bottom: 12px;
    }

    &-icon-wrap {
      height: 120px;

      img {
        height: 100%;
      }
    }
  }
}