Blame view

src/components/modal-comp/modal-comp.scss 1.29 KB
simon committed
1
@import '@/styles/_support';
simon committed
2 3

.comp {
simon committed
4 5 6
  position: fixed;
  top: 0;
  left: 0;
simon committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
  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;
simon committed
24 25
  width: 46.25rem;
  height: 28.5rem;
simon committed
26 27 28 29 30 31 32
  border-radius: 1.25rem;
  background-color: #ffffff;
  padding: 4.5rem 2rem 2.5rem;

  &-title {
    margin-bottom: 3rem;
    color: $cOrange;
simon committed
33
    font-size: $fontSizeTitle;
simon committed
34 35 36 37 38
    font-weight: bold;
  }

  &-icon-wrap {
    @extend .fcc;
simon committed
39
    height: 12rem;
simon committed
40 41 42
  }

  &-content {
simon committed
43
    margin-top: 1rem;
simon committed
44
    color: $cOrange;
simon committed
45
    font-size: $fontSizeTitle;
simon committed
46 47 48 49 50 51 52 53 54
    font-weight: bold;
  }

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

    .btn {
      @include btc2(12rem, 3.6rem, 16px);
simon committed
55
      margin: 3rem 1rem 0;
simon committed
56 57 58 59 60
      @extend .pointer;
    }
  }
}

simon committed
61
.hide {
simon committed
62 63
  display: none;
}
simon committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94

@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%;
      }
    }
  }
}