<commit_before>@import '@teamleader/ui-colors';
@import '@teamleader/ui-utilities';
@import '@teamleader/ui-animations';

:root {
  --checkbox-border-width: 1px;

  --checkbox-shape-size-small: 18px;
  --checkbox-shape-size-medium: 24px;
  --checkbox-shape-size-large: 30px;

  --checkbox-shape-padding: 2px;
}

.checkbox {
  align-items: flex-start;
  display: flex;
  user-select: none;

  .input {
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    position: absolute;
    margin: 0;
  }

  .shape {
    box-sizing: border-box;
    background-color: var(--color-neutral-lightest);
    border: var(--checkbox-border-width) solid var(--color-neutral-dark);
    border-radius: 4px;
    color: var(--color-white);
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: var(--checkbox-shape-padding);
    cursor: pointer;
    transition: background-color, border-color;
    transition-duration: var(--animation-duration);
    transition-timing-function: var(--animation-curve-default);
  }

  .icon {
    transform: scale(0);
    opacity: 0;
    transition: all var(--animation-duration) var(--animation-curve-default);
  }

  &:hover {
    .shape {
      background-color: var(--color-neutral);
      border-color: var(--color-neutral-darkest);
    }
  }

  &.is-checked {
    .shape {
      background-color: var(--color-mint);
      border-color: var(--color-mint-dark);
    }

    &:hover .shape {
      background-color: var(--color-mint-dark);
      border-color: var(--color-mint-darkest);
    }

    .icon {
      transform: scale(1);
      opacity: 1;
    }

    input:focus + .shape {
      box-shadow: inset 0 0 0 1px var(--color-mint-darkest);
      border-color: var(--color-mint-darkest);
    }

    input:active + .shape {
      box-shadow: inset 0 1px 3px 0 var(--color-mint-darkest);
    }
  }

  &.is-disabled {
    pointer-events: none;

    .shape {
      background-color: var(--color-neutral);
      border-color: transparent;
      color: var(--color-neutral-dark);
    }
  }

  input:focus + .shape {
    border-color: var(--color-neutral-darkest);
    box-shadow: inset 0 0 0 1px var(--color-neutral-darkest);
  }

  input:active + .shape {
    box-shadow: inset 0 1px 3px 0 var(--color-neutral-darkest);
  }

  &.is-small {
    .label {
      margin-left: var(--spacer-smaller);
    }

    .shape {
      width: var(--checkbox-shape-size-small);
      height: var(--checkbox-shape-size-small);
    }
  }

  &.is-medium {
    .label {
      margin-left: var(--spacer-small);
      padding-top: 2px;
    }

    .shape {
      width: var(--checkbox-shape-size-medium);
      height: var(--checkbox-shape-size-medium);
    }
  }

  &.is-large {
    .label {
      margin-left: var(--spacer-small);
      padding-top: 4px;
    }

    .shape {
      width: var(--checkbox-shape-size-large);
      height: var(--checkbox-shape-size-large);
    }
  }
}
<commit_msg>Increase spacing between checkbox and label for small sized variant<commit_after>@import '@teamleader/ui-colors';
@import '@teamleader/ui-utilities';
@import '@teamleader/ui-animations';

:root {
  --checkbox-border-width: 1px;

  --checkbox-shape-size-small: 18px;
  --checkbox-shape-size-medium: 24px;
  --checkbox-shape-size-large: 30px;

  --checkbox-shape-padding: 2px;
}

.checkbox {
  align-items: flex-start;
  display: flex;
  user-select: none;

  .input {
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    position: absolute;
    margin: 0;
  }

  .label {
    margin-left: var(--spacer-small);
  }

  .shape {
    box-sizing: border-box;
    background-color: var(--color-neutral-lightest);
    border: var(--checkbox-border-width) solid var(--color-neutral-dark);
    border-radius: 4px;
    color: var(--color-white);
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: var(--checkbox-shape-padding);
    cursor: pointer;
    transition: background-color, border-color;
    transition-duration: var(--animation-duration);
    transition-timing-function: var(--animation-curve-default);
  }

  .icon {
    transform: scale(0);
    opacity: 0;
    transition: all var(--animation-duration) var(--animation-curve-default);
  }

  &:hover {
    .shape {
      background-color: var(--color-neutral);
      border-color: var(--color-neutral-darkest);
    }
  }

  &.is-checked {
    .shape {
      background-color: var(--color-mint);
      border-color: var(--color-mint-dark);
    }

    &:hover .shape {
      background-color: var(--color-mint-dark);
      border-color: var(--color-mint-darkest);
    }

    .icon {
      transform: scale(1);
      opacity: 1;
    }

    input:focus + .shape {
      box-shadow: inset 0 0 0 1px var(--color-mint-darkest);
      border-color: var(--color-mint-darkest);
    }

    input:active + .shape {
      box-shadow: inset 0 1px 3px 0 var(--color-mint-darkest);
    }
  }

  &.is-disabled {
    pointer-events: none;

    .shape {
      background-color: var(--color-neutral);
      border-color: transparent;
      color: var(--color-neutral-dark);
    }
  }

  input:focus + .shape {
    border-color: var(--color-neutral-darkest);
    box-shadow: inset 0 0 0 1px var(--color-neutral-darkest);
  }

  input:active + .shape {
    box-shadow: inset 0 1px 3px 0 var(--color-neutral-darkest);
  }

  &.is-small {
    .shape {
      width: var(--checkbox-shape-size-small);
      height: var(--checkbox-shape-size-small);
    }
  }

  &.is-medium {
    .label {
      padding-top: 2px;
    }

    .shape {
      width: var(--checkbox-shape-size-medium);
      height: var(--checkbox-shape-size-medium);
    }
  }

  &.is-large {
    .label {
      padding-top: 4px;
    }

    .shape {
      width: var(--checkbox-shape-size-large);
      height: var(--checkbox-shape-size-large);
    }
  }
}

{'fraction_non_alphanumeric': 0.16520566419420094, 'fraction_numerical': 0.012137559002022926, 'mean_word_length': 2.3034521158129175, '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': '908507', 'n_tokens_mistral': 2212, 'n_tokens_neox': 2063, 'n_words': 373}