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/design.system/src/molecules/Inputs/Checkbox/Checkbox.module.scss
.root {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: default;

    &.disabled {
        cursor: default;
        pointer-events: none;

        .wrapper {
            &::before {
                background-color: var(--backgroundDisabledPrimary);
            }

            &::after {
                background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.3333 1L5 8.33333L1.66667 5' stroke='%239495A3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
            }
        }

        .input:checked + .wrapper {
            &::before {
                background-color: var(--backgroundDisabledPrimary);
            }
        }

        .label {
            color: var(--textDisabledPrimary);
        }

        .description {
            color: var(--textDisabledSecondary);
        }
    }
}

.input {
    position: absolute;
    opacity: 0;
    left: 0;
    top: 0;
    margin: 0;
    z-index: 1;
}

.wrapper {
    width: max-content;
    min-height: 22px;
    display: flex;
    position: relative;
    padding-left: 28px;
    z-index: 0;

    &:hover {
        &::before {
            background-color: var(--backgroundBrandTertiaryHover);
        }
    }

    &::before {
        content: '';
        position: absolute;
        top: 3px;
        left: 0;
        width: 16px;
        height: 16px;
        background-color: var(--backgroundBrandTertiary);
        border-radius: var(--radius100);
        z-index: 0;
    }

    &::after {
        content: '';
        position: absolute;
        top: 3px;
        left: 0;
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.3333 1L5 8.33333L1.66667 5' stroke='%23EBF2FF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
        background-repeat: no-repeat;
        background-position: 50% 50%;
        opacity: 0;
        z-index: 1;
    }
}

.input:checked + .wrapper {
    &::before {
        background-color: var(--backgroundBrandPrimary);
    }

    &::after {
        opacity: 1;
    }

    &:hover {
        &::before {
            background-color: var(--backgroundBrandPrimaryHover);
        }
    }
}

.label {
    color: var(--textDefaultPrimary);
}

.description {
    padding-left: 28px;
    color: var(--textDefaultSecondary);
}