HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
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/compelsupport/wp-content/themes/compel/assets/scss/_switch.scss
//
// Switch
// 


.custom-switch {
  &.switch-primary{
    // .custom-control-input:checked~.custom-control-label::after {
    //   background-color: $white;
    //   transform: translateX(.75rem);
    // }
    .custom-control-input:checked~.custom-control-label::before {
      color: $white;
      border-color: $primary;
      background-color: $primary;
    }
    .custom-control-input:focus~.custom-control-label::before {
      box-shadow: 0 0 0 0.110px rgba($primary,.25);
    }
    .custom-control-input:focus:not(:checked)~.custom-control-label::before {
      border-color: rgba($gray-500,.7);
    }
  }

  // Switch Secondary

  &.switch-secondary{
    .custom-control-input:checked~.custom-control-label::before {
      color: $white;
      border-color: $secondary;
      background-color: $secondary;
    }
    .custom-control-input:focus~.custom-control-label::before {
      box-shadow: 0 0 0 0.110px rgba($secondary,.25);
    }
    .custom-control-input:focus:not(:checked)~.custom-control-label::before {
      border-color: rgba($gray-500,.7);
    }
  }


  // Switch Success

  &.switch-success{
    .custom-control-input:checked~.custom-control-label::before {
      color: $white;
      border-color: $success;
      background-color: $success;
    }
    .custom-control-input:focus~.custom-control-label::before {
      box-shadow: 0 0 0 0.110px rgba($success,.25);
    }
    .custom-control-input:focus:not(:checked)~.custom-control-label::before {
      border-color: rgba($gray-500,.7);
    }
  }


  
  // Switch Warning

  &.switch-warning{
    .custom-control-input:checked~.custom-control-label::before {
      color: $white;
      border-color: $warning;
      background-color: $warning;
    }
    .custom-control-input:focus~.custom-control-label::before {
      box-shadow: 0 0 0 0.110px rgba($warning,.25);
    }
    .custom-control-input:focus:not(:checked)~.custom-control-label::before {
      border-color: rgba($gray-500,.7);
    }
  }

  // Switch Info

  &.switch-info{
    .custom-control-input:checked~.custom-control-label::before {
      color: $white;
      border-color: $info;
      background-color: $info;
    }
    .custom-control-input:focus~.custom-control-label::before {
      box-shadow: 0 0 0 0.110px rgba($info,.25);
    }
    .custom-control-input:focus:not(:checked)~.custom-control-label::before {
      border-color: rgba($gray-500,.7);
    }
  }

  // Switch Danger

  &.switch-danger{
    .custom-control-input:checked~.custom-control-label::before {
      color: $white;
      border-color: $danger;
      background-color: $danger;
    }
    .custom-control-input:focus~.custom-control-label::before {
      box-shadow: 0 0 0 0.110px rgba($danger,.25);
    }
    .custom-control-input:focus:not(:checked)~.custom-control-label::before {
      border-color: rgba($gray-500,.7);
    }
  }

  // Switch Dark

  &.switch-dark{
    .custom-control-input:checked~.custom-control-label::before {
      color: $white;
      border-color: $dark;
      background-color: $dark;
    }
    .custom-control-input:focus~.custom-control-label::before {
      box-shadow: 0 0 0 0.110px rgba($dark,.25);
    }
    .custom-control-input:focus:not(:checked)~.custom-control-label::before {
      border-color: rgba($gray-500,.7);
    }
  }

  // Switch Purple

  &.switch-purple{
    .custom-control-input:checked~.custom-control-label::before {
      color: $white;
      border-color: $purple;
      background-color: $purple;
    }
    .custom-control-input:focus~.custom-control-label::before {
      box-shadow: 0 0 0 0.110px rgba($purple,.25);
    }
    .custom-control-input:focus:not(:checked)~.custom-control-label::before {
      border-color: rgba($gray-500,.7);
    }
  }

  // Switch Pink

  &.switch-pink{
    .custom-control-input:checked~.custom-control-label::before {
      color: $white;
      border-color: $pink;
      background-color: $pink;
    }
    .custom-control-input:focus~.custom-control-label::before {
      box-shadow: 0 0 0 0.110px rgba($pink,.25);
    }
    .custom-control-input:focus:not(:checked)~.custom-control-label::before {
      border-color: rgba($gray-500,.7);
    }
  }

   // Switch Blue

   &.switch-blue{
    .custom-control-input:checked~.custom-control-label::before {
      color: $white;
      border-color: $blue;
      background-color: $blue;
    }
    .custom-control-input:focus~.custom-control-label::before {
      box-shadow: 0 0 0 0.110px rgba($blue,.25);
    }
    .custom-control-input:focus:not(:checked)~.custom-control-label::before {
      border-color: rgba($gray-500,.7);
    }
  }

}