<commit_before>form > div,
fieldset {
    margin-bottom: 1rem;
}

fieldset {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    border: 0;
}

legend {
    color: black;
    display: block;
    font-size: .75em;
    font-weight: 600;
    margin-bottom: .55rem;
}

.input-container {
    position: relative;
    
    label {
        @extend legend;
        position: absolute;
        left: .85rem;
        top: .95rem;
    }
}

.input-container--error label span {
    color: $error; 
}

%form-element {
    border: 2px solid $muted;
    border-radius: 4px;
    box-sizing: border-box;
    padding: .5rem .7rem;
    width: 100%;
}

input[type="text"] {
    @extend %form-element;
    font-family: $font;
    font-size: 1rem;
    padding-top: 2rem;
    -webkit-font-smoothing: antialiased;

    &:focus {
        border-color: $secondary;
        outline: 0;
    }
    
    .input-container--valid & {
        border-color: darken($muted, 15%);
        
        &:focus {
            border-color: $secondary;
        }
    }
    
    .input-container--error & {
        border-color: $error;
        
        &:focus {
            border-color: darken($error, 15%);
        }
    }
}

%pseudo-toggle-input-before {
    background-color: white;
    @include background-image(linear-gradient(#fff 0%, #fff 30%, #fafafa 70%, #fafafa 100%));
    border: 1px solid #bfbfbf;
    box-shadow: 0 0 1px #bfbfbf, 0 0 1px #fff inset;
    content: '';
    display: block;
    position: absolute;
    top: 1.25em;
    left: .75em;
    height: 16px;
    width: 16px;
}

%pseudo-toggle-input-after {
    background-color: #3da1b2;
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 1.5em;
    left: 1em;
}

.option-container {
    position: relative;
    width: 100%;
        
    input {
        display: none;
    }
    
    label {
        @extend %form-element;<commit_msg>Form element position fix<commit_after>form > div,
fieldset {
    margin-bottom: 1rem;
}

fieldset {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    border: 0;
}

legend {
    color: black;
    display: block;
    font-size: .75em;
    font-weight: 600;
    margin-bottom: .55rem;
}

.input-container {
    position: relative;
    
    label {
        @extend legend;
        position: absolute;
        left: .85rem;
        top: .55rem;
    }
}

.input-container--error label span {
    color: $error; 
}

%form-element {
    border: 2px solid $muted;
    border-radius: 4px;
    box-sizing: border-box;
    padding: .5rem .7rem;
    width: 100%;
}

input[type="text"] {
    @extend %form-element;
    font-family: $font;
    font-size: 1rem;
    padding-top: 2rem;
    -webkit-font-smoothing: antialiased;

    &:focus {
        border-color: $secondary;
        outline: 0;
    }
    
    .input-container--valid & {
        border-color: darken($muted, 15%);
        
        &:focus {
            border-color: $secondary;
        }
    }
    
    .input-container--error & {
        border-color: $error;
        
        &:focus {
            border-color: darken($error, 15%);
        }
    }
}

%pseudo-toggle-input-before {
    background-color: white;
    @include background-image(linear-gradient(#fff 0%, #fff 30%, #fafafa 70%, #fafafa 100%));
    border: 1px solid #bfbfbf;
    box-shadow: 0 0 1px #bfbfbf, 0 0 1px #fff inset;
    content: '';
    display: block;
    position: absolute;
    top: 1.45em;
    left: .75em;
    height: 16px;
    width: 16px;
}

%pseudo-toggle-input-after {
    background-color: #3da1b2;
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 1.7em;
    left: 1em;
}

.option-container {
    position: relative;
    width: 100%;
        
    input {
        display: none;
    }
    
    label {
        @extend %form-element;
{'fraction_non_alphanumeric': 0.138860103626943, 'fraction_numerical': 0.03471502590673575, 'mean_word_length': 1.920574886535552, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4219463', 'n_tokens_mistral': 1498, 'n_tokens_neox': 1366, 'n_words': 306}