<commit_before>
@import '../core.scss';
@import '../override_vars.scss';
@import '../vars.scss';

.stat {
  align-items: center;
  border-left-color: transparent;
  border-left-style: solid;
  border-left-width: 0;
  display: flex;
  justify-content: space-between;
  min-height: 2.5rem; // Leave some space for input element when editing a stat
  width: 100%;
}

.stat-error,
.stat-warning,
.stat-success {
  border-left-width: 4px;
  padding-left: 0.5rem;
}

h5 + .stat {
  margin-top: 0.6rem;
}

.stat-error {
  border-left-color: $color-error;
}

.stat-warning {
  border-left-color: $color-warning;
}

.stat-info {
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.stat-success {
  border-left-color: $color-finish;
}

.stat-primary {
  font-size: 1.25rem;
}

.stat-single_box {
  $v-space: 0.65rem;
  background-color: $color-lightestgray;
  margin: -$v-space 1.8rem;
  padding: $v-space 0;
  text-align: center;

  .stat-info {
    display: inline-block;
    margin-top: 3rem;
    max-width: 5rem;
  }
}

// Double classes to compete with specificity over input elements
.stat-input {
  &.stat-input-text {
    display: inline;
    font-size: 0.75rem;
    margin: 0;
    width: 6rem;
  }<commit_msg>Override error message in stat forms<commit_after>
@import '../core.scss';
@import '../override_vars.scss';
@import '../vars.scss';

$input-font-size: $sans-s2;

.stat {
  align-items: center;
  border-left-color: transparent;
  border-left-style: solid;
  border-left-width: 0;
  display: flex;
  justify-content: space-between;
  min-height: 2.5rem; // Leave some space for input element when editing a stat
  width: 100%;

  .error_message {
    font-size: $input-font-size;
  }
}

.stat-error,
.stat-warning,
.stat-success {
  border-left-width: 4px;
  padding-left: 0.5rem;
}

h5 + .stat {
  margin-top: 0.6rem;
}

.stat-error {
  border-left-color: $color-error;
}

.stat-warning {
  border-left-color: $color-warning;
}

.stat-info {
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.stat-success {
  border-left-color: $color-finish;
}

.stat-primary {
  font-size: 1.25rem;
}

.stat-single_box {
  $v-space: 0.65rem;
  background-color: $color-lightestgray;
  margin: -$v-space 1.8rem;
  padding: $v-space 0;
  text-align: center;

  .stat-info {
    display: inline-block;
    margin-top: 3rem;
    max-width: 5rem;
  }
}

// Double classes to compete with specificity over input elements
.stat-input {
  &.stat-input-text {
    display: inline;
    font-size: $input-font-size;
    margin: 0;
    width: 6rem;
  }
{'fraction_non_alphanumeric': 0.16264591439688716, 'fraction_numerical': 0.027237354085603113, 'mean_word_length': 2.9372128637059722, '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': '1527241', 'n_tokens_mistral': 1062, 'n_tokens_neox': 1007, 'n_words': 216}