<commit_before>// Make sure your checkbox precedes your label element in the markup
@mixin nypr-checkbox($check-color, $border-color, $bg-color) {
  input[type="checkbox"] {
    position: absolute;
    left: -9999px;
    text-indent: -9999px;
  }

  input[type="checkbox"] + label:before {
    content: '';
    display: block;
    flex-shrink: 0;
    margin-top: 3px;
    margin-right: 8px;
    width: 18px;
    height: 18px;
    border: 2px solid $border-color;
    background-color: $bg-color;
  }

  input[type="checkbox"] + label:after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid $check-color;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    position: absolute;
    left: 6px;
    top: 6px;
    opacity: 0;
    transition: opacity 125ms ease, transform 125ms ease;
  }

  input[type="checkbox"]:checked + label:after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}<commit_msg>add usage example for nypr-checkbox, reorg<commit_after>/*  nypr-checkbox() usage:

    Markup:
    - note, make sure your checkbox precedes your label element

      <div class="my-wrapper">
        <input type="checkbox" id="my-checkbox">
        <label for="my-checkbox">Click here</label>
      </div>

    SCSS:

      .my-wrapper {
        @include nypr-checkbox($blue, #333, white);
      }
*/
@mixin nypr-checkbox($check-color, $border-color, $bg-color) {
  input[type="checkbox"] {
    position: absolute;
    left: -9999px;
    text-indent: -9999px;

    & + label {
      &:before {
        content: '';
        display: block;
        flex-shrink: 0;
        margin-top: 3px;
        margin-right: 8px;
        width: 18px;
        height: 18px;
        border: 2px solid $border-color;
        background-color: $bg-color;
      }

      &:after {
        content: '';
        width: 6px;
        height: 10px;
        border: solid $check-color;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg) scale(0);
        position: absolute;
        left: 6px;
        top: 6px;
        opacity: 0;
        transition: opacity 125ms ease, transform 125ms ease;
      }
    }

    &:checked + label:after {
      opacity: 1;
      transform: rotate(45deg) scale(1);
    }
  }
}
{'fraction_non_alphanumeric': 0.13523131672597866, 'fraction_numerical': 0.03603202846975089, 'mean_word_length': 2.2928257686676425, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '4814273', 'n_tokens_mistral': 824, 'n_tokens_neox': 735, 'n_words': 188}