Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.0.16 Disable Function : 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, Directory : /var/www/etiqa/html/scss/components/ |
/* Toggle Switch */
.toggle-switch {
position: relative;
display: inline-block;
width: 45px;
height: 23px;
.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: $toggle-switch-bg;
-webkit-transition: .4s;
transition: .4s;
border-radius: 34px;
border: 1px solid $border-color;
&:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 2px;
bottom: 2px;
background-color: $white;
-webkit-transition: .4s;
transition: .4s;
border-radius: 50%;
}
}
input {
visibility: hidden;
&:checked {
+.toggle-slider {
background-color: theme-color(primary);
&:before {
-webkit-transform: translateX(21px);
-ms-transform: translateX(21px);
transform: translateX(21px);
}
}
}
}
}
.text-active {
color: theme-color(dark);
}
/* Rounded sliders */