<commit_before>/**
 * MD Checkbox Styles
 */

@import vars

.md-checkbox
  input
    &:checked + .md-checkbox--fake::before
      height: $checkbox-size/2
      border-color: $checkbox-active-color
      border-top-style: none
      border-right-style: none
      transform: rotate(-45deg)

  // animated box
  &--fake
    cursor: pointer
    width: $checkbox-size
    height: $checkbox-size
    &::before,
    &::after
      position: relative
      content: ''

    &::before
      +transition($checkbox-transition)
      display: block
      z-index: 1
      width: 100%
      height: 100%
      border-radius: $checkbox-border-radius
      border: 2px solid $checkbox-inactive-color
    &::after
      position: absolute
      top: 0
      left: 0
      width: 1.1 * $checkbox-size
      height: 1.1 * $checkbox-size
      background: $checkbox-inner-color
      cursor: pointer

    // error class added to hidden input
    &.with--error::before
      border-color: $input-error-border<commit_msg>use mixins within main sass file<commit_after>/**
 * MD Checkbox Styles
 */

@import vars
@import mixins

.md-checkbox
  input
    &:checked + .md-checkbox--fake::before
      height: $checkbox-size/2
      border-color: $checkbox-active-color
      border-top-style: none
      border-right-style: none
      +transform(rotate(-45deg))

  // animated box
  &--fake
    cursor: pointer
    width: $checkbox-size
    height: $checkbox-size
    &::before,
    &::after
      position: relative
      content: ''

    &::before
      display: block
      z-index: 1
      width: 100%
      height: 100%
      border-radius: $checkbox-border-radius
      border: 2px solid $checkbox-inactive-color
      +transition($checkbox-transition)
    &::after
      position: absolute
      top: 0
      left: 0
      width: 1.1 * $checkbox-size
      height: 1.1 * $checkbox-size
      background: $checkbox-inner-color
      cursor: pointer

    // error class added to hidden input
    &.with--error::before
      border-color: $input-error-border
{'fraction_non_alphanumeric': 0.12015693967631191, 'fraction_numerical': 0.016674840608141245, 'mean_word_length': 2.2227488151658767, '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': '3484037', 'n_tokens_mistral': 647, 'n_tokens_neox': 613, 'n_words': 157}