<commit_before>//
// + Input
// =============================================================================


input {
  @include padding(x 16, em);
  border-radius: em($border-radius);
  outline: unset;
  background-color: $white;
  color: $color-first-8;
  box-shadow: $border;

  &[type='text'] {
    &:focus {
      box-shadow: inset 0 0 0 em($border-thickness) remove-alpha($border-color, $color-first-3);
    }
  }

  // Buttons
  &[type='button'],
  &[type='submit'] {
    &:hover,
    &:focus {
      background-color: $color-first-2;
    }

    &:active {
      background-color: $color-first-3;
    }
  }

  @at-root .transparent & {
    background-color: unset;

    &:focus {
      box-shadow: inset 0 0 0 em($border-thickness) layer-colors($border-color, $color-first-2);
    }
  }
}<commit_msg>Improve and add transparency to input button<commit_after>//
// + Input
// =============================================================================


input {
  @include padding(x 16, em);
  height: em(32); // Same height as <button>
  border-radius: em($border-radius);
  outline: unset;
  background-color: $white;
  color: $color-first-8;
  box-shadow: $border;

  &[type='text'] {
    &:focus {
      box-shadow: inset 0 0 0 em($border-thickness) remove-alpha($border-color, $color-first-3);
    }
  }

  // Buttons
  &[type='button'],
  &[type='submit'] {
    &:hover,
    &:focus {
      background-color: remove-alpha($color-first-2, $white);
    }

    &:active {
      background-color: remove-alpha($color-first-3, $white);
    }

    @at-root .transparent & { // THIS COULD BE A PLACEHOLDER?? IT'S ALSO USED IN BUTTON
      &:hover,
      &:focus {
        background-color: $color-first-2;
      }

      &:active {
        background-color: $color-first-3;
      }
    }
  }

  @at-root .transparent & {
    background-color: unset;

    &:focus {
      box-shadow: inset 0 0 0 em($border-thickness) layer-colors($border-color, $color-first-2);
    }
  }
}
{'fraction_non_alphanumeric': 0.24117053481331988, 'fraction_numerical': 0.015136226034308779, 'mean_word_length': 2.777142857142857, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5354685', 'n_tokens_mistral': 715, 'n_tokens_neox': 669, 'n_words': 133}