<commit_before>@import '../../stylus/ui-base/palette'

.toggle
    display inline-block
    width   2em
    height  1em

.checkbox
    display none

.label
    position      relative
    display       inline-block
    width         100%
    height        100%
    border-radius 1em
    background    grey-09
    transition    all .2s ease-out

.label:before
    position      absolute
    top           0
    bottom        0
    left          2px
    display       inline-block
    width         .9em
    height        .9em
    margin        auto
    border-radius 50%
    content       ''
    background    white
    transition    all .2s ease-out

.checkbox:checked + .label
    background emerald

    &:before
        left calc(100% - .9em - 2px)<commit_msg>fix: use px values instead of em<commit_after>@import '../../stylus/ui-base/palette'

.toggle
    display inline-block
    width   40px
    height  24px

.checkbox
    display none

.label
    position      relative
    display       inline-block
    width         100%
    height        100%
    border-radius 1em
    background    grey-09
    transition    all .2s ease-out

.label:before
    position      absolute
    top           0
    bottom        0
    left          2px
    display       inline-block
    width         20px
    height        20px
    margin        auto
    border-radius 50%
    content       ''
    background    white
    transition    all .2s ease-out

.checkbox:checked + .label
    background emerald

    &:before
        left 18px
{'fraction_non_alphanumeric': 0.05963302752293578, 'fraction_numerical': 0.033420707732634336, 'mean_word_length': 1.4161392405063291, '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': '628856', 'n_tokens_mistral': 461, 'n_tokens_neox': 437, 'n_words': 131}