<commit_before>
.radio__input {
    @include sr-only;
}

// use pixels here because otherwise the icon in the :after
// could not have a smaller fontsize
$checkbox-size: 20px;

.radio__text {
    display: block;
    padding-left: $checkbox-size + 7px;

    position: relative;

    &:before,
    &:after {
        content: "";
    }

    &:before {
        position: absolute;
        top: 0;
        left: 0;

        width: $checkbox-size;
        height: $checkbox-size;

        background-color: $bg-secondary;
        border: 1px solid $border-color;
        border-radius: $checkbox-size / 2;
    }

    &:after {
        transition: transform 0.3s, opacity 0.3s;
        transform: scale(1.3);
        opacity: 0;
    }
}

.radio__input:checked + .radio__text:after {
    content: '\f00c';
    font-family: 'FontAwesome';
    color: contrast-color($brand-primary);
    text-align: center;
    font-size: $font-size-sm;

    width: $checkbox-size;
    height: $checkbox-size;
    padding-top: 2px;

    position: absolute;
    left: 0;
    top: 0;

    background-color: $brand-primary;
    border-radius: $checkbox-size / 2;

    transform: scale(1);
    opacity: 1;
}

.radio__input:focus + .radio__text:before {
    @include fake-focus-shadow;
}<commit_msg>style disabled radio buttons<commit_after>
.radio__input {
    @include sr-only;
}

// use pixels here because otherwise the icon in the :after
// could not have a smaller fontsize
$checkbox-size: 20px;

.radio__text {
    display: block;
    padding-left: $checkbox-size + 7px;

    position: relative;

    &:before,
    &:after {
        content: "";
    }

    &:before {
        position: absolute;
        top: 0;
        left: 0;

        width: $checkbox-size;
        height: $checkbox-size;

        background-color: $bg-secondary;
        border: 1px solid $border-color;
        border-radius: $checkbox-size / 2;
    }

    &:after {
        transition: transform 0.3s, opacity 0.3s;
        transform: scale(1.3);
        opacity: 0;
    }
}

.radio__input:checked + .radio__text:after {
    content: '\f00c';
    font-family: 'FontAwesome';
    color: contrast-color($brand-primary);
    text-align: center;
    font-size: $font-size-sm;

    width: $checkbox-size;
    height: $checkbox-size;
    padding-top: 2px;

    position: absolute;
    left: 0;
    top: 0;

    background-color: $brand-primary;
    border-radius: $checkbox-size / 2;

    transform: scale(1);
    opacity: 1;
}

.radio__input:focus + .radio__text:before {
    @include fake-focus-shadow;
}

.radio__input:disabled + .radio__text {
    &:before,
    &:after {
        background-color: $border-color;
        cursor: not-allowed;
    }
}
{'fraction_non_alphanumeric': 0.13316023738872404, 'fraction_numerical': 0.016320474777448073, 'mean_word_length': 2.30920245398773, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1780253', 'n_tokens_mistral': 940, 'n_tokens_neox': 882, 'n_words': 211}