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/button.scss
@use '../../utils/media';
@use '../../utils/variables';

.button {
  display: block;
  padding: 24px 34px;
  text-align: center;
  cursor: pointer;
  width: max-content;
  outline: none;
  border: none;
  position: relative;
  border-radius: 48px;
  transition: .3s ease-in-out;

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

  @include media.breakpoint-down('deskL') {
    padding: 16px 36px;
  }

  @include media.breakpoint-down('tabL') {
    padding: 12px 24px;
  }

  &--graphite {
    color: variables.$white;
    background: variables.$graphite;


    &:hover {
      background: variables.$graphiteHover;
    }

    &.button--loading {
      background: variables.$graphite;
    }
  }

  &--transparent {
    border: 1px solid variables.$primary;
    background: transparent;
    color: variables.$primary;
    padding: 16px 115px;

    @include media.breakpoint-down('deskS') {
      font-size: 18px;
      line-height: 25px;
    }

    @include media.breakpoint-down('deskS') {
      font-size: 16px;
      line-height: 22px;
    }

    &.button--loading {
      background: transparent;

      &:after {
        border: 3px solid variables.$primary;
        border-color: variables.$primary transparent variables.$primary transparent;
      }
    }
  }

  &--red {
    color: variables.$white;
    background: variables.$red;


    &:hover {
      background: variables.$redHover;
    }

    &.button--loading {
      background: variables.$red;
    }
  }
  &--black {
    color: variables.$white;
    background: variables.$black4;


    &:hover {
      background: variables.$black4;
    }

    &.button--loading {
      background: variables.$red;
    }
  }

  &--loading {
    color: transparent !important;
    pointer-events: none;

    &:after {
      position: absolute;
      top: 26%;
      left: 48%;
      content: " ";
      display: block;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 3px solid variables.$white;
      border-color: variables.$white transparent variables.$white transparent;
      animation: lds-dual-ring 1.2s linear infinite;

      @include media.breakpoint-down('tabM') {
        top: 16%;
        left: 44%;
      }
    }
  }
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}