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/Radio/Radio.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);
            }
        }

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

            &::after {
                background-color: var(--iconDisabledOnDisabledPrimary);
            }
        }

        .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(--radiusFull);
        z-index: 0;
    }

    &::after {
        content: '';
        position: absolute;
        top: 6px;
        left: 3px;
        width: 10px;
        height: 10px;
        background-color: var(--backgroundBrandPrimary);
        border-radius: var(--radiusFull);
        opacity: 0;
        z-index: 1;
    }
}

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

    &::after {
        opacity: 1;
    }

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

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

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

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