HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode/one-time-popup/src/scss/components/popup-form/modal.scss
@use '../../utils/media';
@use '../../utils/variables';

.modal {
  background: variables.$primary065;
  backdrop-filter: blur(15px);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease-in-out;

  .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  &.active {
    opacity: 1;
    pointer-events: all;
  }

  &__content {
    position: relative;
    width: 600px;
    padding: 55px 35px;
    background-color: variables.$white;
    border-radius: 16px;

    @include media.breakpoint-down('tabM') {
      padding: 40px 25px;
    }
  }

  &__close {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;

    @include media.breakpoint-down('tabM') {
      top: 16px;
      right: 16px;
    }
  }
}

.modal-gallery {
  background: variables.$primary065;
  backdrop-filter: blur(15px);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease-in-out;

  @include media.breakpoint-down('tabM') {
    display: none;
  }

  &__close {
    position: absolute;
    right: 0;
    top: -125px;

    @include media.breakpoint-down('deskL') {
      top: -133px;
    }

    @include media.breakpoint-down('deskM') {
      top: -65px;
    }

    @include media.breakpoint-down('deskS') {
      top: 0;
    }

    img {
      transition: 0.4s ease-in-out;
      will-change: transform;
    }

    &:hover {
      img {
        transform: scale(1.1);
      }
    }
  }

  &__content {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    .container {
      height: 61%;

      @include media.breakpoint-down('deskL') {
        max-height: 521px;
        height: 100%;
      }

      @include media.breakpoint-down('deskS') {
        max-height: 341px;
        position: unset;
      }
    }
  }

  &--active {
    opacity: 1;
    pointer-events: all;
  }

  &__swiper {
    height: 100%;
  }
}

.modal-video {
  background: variables.$primary065;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease-in-out;

  &::before {
    display: block;
    content: '';
    width: 100%;
    height: 100%;
    backdrop-filter: blur(15px);
    position: absolute;
    top: 0;
    left: 0;
  }

  @include media.breakpoint-down('tabM') {
    display: none;
  }

  &__close {
    position: absolute;
    right: 0;
    top: -125px;

    @include media.breakpoint-down('deskL') {
      top: -133px;
    }

    @include media.breakpoint-down('deskM') {
      top: -65px;
    }

    @include media.breakpoint-down('deskS') {
      top: 0;
    }

    img {
      transition: 0.4s ease-in-out;
      will-change: transform;
    }

    &:hover {
      img {
        transform: scale(1.1);
      }
    }
  }

  &__content {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    .container {
      height: 61%;

      @include media.breakpoint-down('deskL') {
        max-height: 521px;
        height: 100%;
      }

      @include media.breakpoint-down('deskS') {
        max-height: 341px;
        position: unset;
      }
    }
  }

  &--active {
    opacity: 1;
    pointer-events: all;
  }
}

.modal-once {
  background: variables.$primary2;
  position: fixed;
  display: grid;
  align-items: center;
  justify-content: center;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease-in-out;
  overflow-y: auto;

  &::-webkit-scrollbar {
    width: 0;
  }

  &__container {
    display: flex;
    align-items: center;
    justify-content: center;
    // height: auto;
    width: 893px;
    margin: 10px 0;

    @include media.breakpoint-complex-up('deskM', 'deskL') {
      width: 1232px;
      height: auto;
    }

    @include media.breakpoint-down('tabL') {
      width: 750px;
    }

    @include media.breakpoint-down('tabM') {
      max-width: 359px;
      margin: auto;
      width: 100%;
    }

    &._success,
    &._error {
      width: auto;

      .modal-once__content-left {
        display: none;
      }

      .modal-once__content-right {
        border: none;
        width: 100%;
      }

      .modal-once__content {
        padding: 0;
        overflow: visible;
      }

      .modal-once__close {
        top: -52px;
        right: 3px;
        width: 25px;
        height: 25px;
        overflow: hidden;

        @include media.breakpoint-down('tabM') {
          top: -32px;
          transform: scale(0.7);
          transform-origin: right center;
        }

        svg {
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);

          path {
            fill: #fff;
          }
        }
      }

      // @include media.breakpoint-down('tabM') {
      //   .modal-once__close {
      //     top: 14px;
      //     right: 14px;
      //   }
      // }
    }
  }

  &.active {
    opacity: 1;
    pointer-events: all;
  }

  &__content {
    background: variables.$white;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 36px 7px 44px 39px;
    border-radius: 20px;
    overflow: hidden;

    @include media.breakpoint-complex-up('deskM', 'deskL') {
      padding: 65px 7px 65px 63px;
      border-radius: 30px;
    }

    @include media.breakpoint-down('tabL') {
      padding: 37px 10px 32px 39px;
    }
    @include media.breakpoint-down('tabM') {
      padding: 39px 22px 25px;
    }

    &-left {
      // position: relative;
      width: 50%;
      align-items: center;
      display: flex;
      justify-content: center;

      img {
        position: absolute;
        top: 60px;
        left: 27px;
        width: 100%;
        max-width: 405px;
        height: auto;
      }

      @include media.breakpoint-complex-up('deskM', 'deskL') {
        width: 48%;

        img {
          top: 64px;
          left: 63px;
          width: 115%;
          max-width: 513px;
        }
      }

      @include media.breakpoint-down('tabL') {
        padding-right: 20px;

        img {
          top: 89px;
          left: 40px;
          width: 100%;
          max-width: 312px;
        }
      }
      @include media.breakpoint-down('tabM') {
        display: none;
      }
    }
    &-right {
      width: 53%;
      border-left: thin solid variables.$black;
      padding-top: 9px;

      @include media.breakpoint-complex-up('deskM', 'deskL') {
        padding-top: 0;
      }

      @include media.breakpoint-down('tabL') {
        padding-top: 0;
        width: 52%;
      }
      @include media.breakpoint-down('tabM') {
        width: 100%;
        border: none;
      }
    }
  }

  &__close {
    position: absolute;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: transparent !important;
    z-index: 2;
    width: 43px;
    height: 44px;
    top: 20px;
    right: 20px;

    @include media.breakpoint-complex-up('deskM', 'deskL') {
      top: 35px;
      right: 35px;
    }

    @include media.breakpoint-down('tabL') {
      width: 22px;
      height: 22px;
      top: 18px;
      right: 18px;
    }
    @include media.breakpoint-down('tabM') {
      top: 23px;
      right: 23px;
    }
  }
}