<commit_before>@checkboxWidth: 16px;
@checkboxHeight: 16px;

.umb-form-check {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    padding: 0;
    margin: 0;
    min-height: 22px;
    line-height: 22px;
    cursor: pointer !important;

    &__text {
        margin: 0 0 0 26px;
        position: relative;
        top: 0;
        user-select: none;
    }

    &__input {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        
        &:hover ~ .umb-form-check__state .umb-form-check__check {
            border-color: @inputBorderFocus;
        }
        &:checked ~ .umb-form-check__state .umb-form-check__check {
            border-color: @ui-option-type;
        }
        &:checked:hover ~ .umb-form-check__state .umb-form-check__check {
            &::before {
                background: @ui-option-type-hover;
            }
        }
        
        &:checked ~ .umb-form-check__state {
            .umb-form-check__check {
                // This only happens if the state has a radiobutton modifier
                .umb-form-check--radiobutton & {
                    &:before {
                        opacity: 1;
                        transform: scale(1);
                    }
                }
                // This only happens if state has the checkbox modifier
                .umb-form-check--checkbox & {
                    &:before {
                        width: @checkboxWidth;
                        height: @checkboxHeight;
                    }
                }
            }
            // This only happens if state has the checkbox modifier
            .umb-form-check--checkbox & {
                .umb-form-check__icon {
                    opacity: 1;
                }
            }
        }
    }
    
    
    .tabbing-active &.umb-form-check--radiobutton &__input:focus ~ .umb-form-check__state .umb-form-check__check {
        //outline: 2px solid @inputBorderTabFocus;
        border: 2px solid @inputBorderTabFocus;
        margin: -1px;
    }
    .tabbing-active &.umb-form-check--checkbox &__input:focus ~ .umb-form-check__state .umb-form-check__check {
        outline: 2px solid @inputBorderTabFocus;
        border-color: white;
    }

    &__state {
        display: flex;
        height: 18px;
        margin-top: 2px;
        position: absolute;
        top: 0;
        left: 0;
    }

    &__check {
        display: flex;
        position: relative;
        background: @white;
        border: 1px solid @inputBorder;
        width: @checkboxWidth;
        height: @checkboxHeight;

        &:before {
            content: "";
            background: @ui-option-type;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            margin: auto;
        }
        // This only happens if state has the radiobutton modifier
        .umb-form-check--radiobutton & {
            border-radius: 100%;

            &:before {
                width: 10px;
                height: 10px;
                border-radius: 100%;
                opacity: 0;
                transform: scale(0);
                transition: .15s ease-out;
            }
        }
        // This only happens if state has the checkbox modifier
        .umb-form-check--checkbox & {
            &:before {
                width: 0;
                height: 0;
                transition: .05s ease-out;
            }
        }
    }

    &__icon {
        color: @white;
        text-align: center;
        font-size: 12px;
        opacity: 0;
        transition: .2s ease-out;

        &:before {
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            margin: auto;
        }
    }

    &.umb-form-check--disabled {
        cursor: not-allowed !important;
        opacity: 0.5;
    }
}
<commit_msg>only remove gray border when checked.<commit_after>@checkboxWidth: 16px;
@checkboxHeight: 16px;

.umb-form-check {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    padding: 0;
    margin: 0;
    min-height: 22px;
    line-height: 22px;
    cursor: pointer !important;

    &__text {
        margin: 0 0 0 26px;
        position: relative;
        top: 0;
        user-select: none;
    }

    &__input {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        
        &:hover ~ .umb-form-check__state .umb-form-check__check {
            border-color: @inputBorderFocus;
        }
        &:checked ~ .umb-form-check__state .umb-form-check__check {
            border-color: @ui-option-type;
        }
        &:checked:hover ~ .umb-form-check__state .umb-form-check__check {
            &::before {
                background: @ui-option-type-hover;
            }
        }
        
        &:checked ~ .umb-form-check__state {
            .umb-form-check__check {
                // This only happens if the state has a radiobutton modifier
                .umb-form-check--radiobutton & {
                    &:before {
                        opacity: 1;
                        transform: scale(1);
                    }
                }
                // This only happens if state has the checkbox modifier
                .umb-form-check--checkbox & {
                    &:before {
                        width: @checkboxWidth;
                        height: @checkboxHeight;
                    }
                }
            }
            // This only happens if state has the checkbox modifier
            .umb-form-check--checkbox & {
                .umb-form-check__icon {
                    opacity: 1;
                }
            }
        }
    }
    
    
    .tabbing-active &.umb-form-check--radiobutton &__input:focus ~ .umb-form-check__state .umb-form-check__check {
        //outline: 2px solid @inputBorderTabFocus;
        border: 2px solid @inputBorderTabFocus;
        margin: -1px;
    }
    .tabbing-active &.umb-form-check--checkbox &__input:focus ~ .umb-form-check__state .umb-form-check__check {
        outline: 2px solid @inputBorderTabFocus;
    }
    .tabbing-active &.umb-form-check--checkbox &__input:checked:focus ~ .umb-form-check__state .umb-form-check__check {
        border-color: white;
    }

    &__state {
        display: flex;
        height: 18px;
        margin-top: 2px;
        position: absolute;
        top: 0;
        left: 0;
    }

    &__check {
        display: flex;
        position: relative;
        background: @white;
        border: 1px solid @inputBorder;
        width: @checkboxWidth;
        height: @checkboxHeight;

        &:before {
            content: "";
            background: @ui-option-type;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            margin: auto;
        }
        // This only happens if state has the radiobutton modifier
        .umb-form-check--radiobutton & {
            border-radius: 100%;

            &:before {
                width: 10px;
                height: 10px;
                border-radius: 100%;
                opacity: 0;
                transform: scale(0);
                transition: .15s ease-out;
            }
        }
        // This only happens if state has the checkbox modifier
        .umb-form-check--checkbox & {
            &:before {
                width: 0;
                height: 0;
                transition: .05s ease-out;
            }
        }
    }

    &__icon {
        color: @white;
        text-align: center;
        font-size: 12px;
        opacity: 0;
        transition: .2s ease-out;

        &:before {
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            margin: auto;
        }
    }

    &.umb-form-check--disabled {
        cursor: not-allowed !important;
        opacity: 0.5;
    }
}

{'fraction_non_alphanumeric': 0.10347762645914396, 'fraction_numerical': 0.01556420233463035, 'mean_word_length': 1.1980224478888295, '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': '4264116', 'n_tokens_mistral': 2466, 'n_tokens_neox': 2269, 'n_words': 528}