<commit_before>md-input-container {

  // The asterisk of the select should always use the warn color.
  md-select.md-THEME_NAME-theme .md-select-value {
    span:first-child:after {
      color: '{{warn-A700}}'
    }
  }

  // When the select is blurred and not invalid then the asterisk should use the foreground color.
  &:not(.md-input-focused):not(.md-input-invalid) {
    md-select.md-THEME_NAME-theme .md-select-value {
      span:first-child:after {
        color: '{{foreground-3}}';
      }
    }
  }

  &.md-input-focused:not(.md-input-has-value) {
    md-select.md-THEME_NAME-theme .md-select-value {
      color: '{{primary-color}}';

      &.md-select-placeholder {
        color: '{{primary-color}}';
      }
    }
  }

  &.md-input-invalid {
    md-select.md-THEME_NAME-theme .md-select-value {
      color: '{{warn-A700}}' !important;
      border-bottom-color: '{{warn-A700}}' !important;
    }

    md-select.md-THEME_NAME-theme.md-no-underline .md-select-value {
      border-bottom-color: transparent !important;
    }
  }

  &:not(.md-input-invalid) {
    &.md-input-focused {
      &.md-accent {
        .md-select-value {
          border-color: '{{accent-color}}';
          span {
            color: '{{accent-color}}';
          }
        }
      }
      &.md-warn {
        .md-select-value {
          border-color: '{{warn-A700}}';
          span {
            color: '{{warn-A700}}';
          }
        }
      }
    }
  }

}

md-select.md-THEME_NAME-theme {
  &[disabled] .md-select-value {
    border-bottom-color: transparent;
    background-image: linear-gradient(to right, '{{foreground-3}}' 0%, '{{foreground-3}}' 33%, transparent 0%);
    background-image: -ms-linear-gradient(left, transparent 0%, '{{foreground-3}}' 100%);
  }

  .md-select-value {
    border-bottom-color: '{{foreground-4}}';

    &.md-select-placeholder {
      color: '{{foreground-3}}';
    }

    span:first-child:after {
      color: '{{warn-A700}}'
    }
  }

  &.md-no-underline .md-select-value {
    border-bottom-color: transparent !important;
  }

  &.ng-invalid.ng-touched {
    .md-select-value {
      color: '{{warn-A700}}' !important;
      border-bottom-color: '{{warn-A700}}' !important;
    }

    &.md-no-underline .md-select-value {
      border-bottom-color: transparent !important;
    }
  }

  &:not([disabled]):focus {
    .md-select-value {
      border-bottom-color: '{{primary-color}}';
      color: '{{ foreground-1 }}';
      &.md-select-placeholder {
        color: '{{ foreground-1 }}';
      }
    }

    &.md-no-underline .md-select-value {
      border-bottom-color: transparent !important;
    }

    &.md-accent .md-select-value {
      border-bottom-color: '{{accent-color}}';
    }

    &.md-warn .md-select-value {
      border-bottom-color: '{{warn-color}}';
    }
  }

  &[disabled] {
    .md-select-value {
      color: '{{foreground-3}}';

      &.md-select-placeholder {
        color: '{{foreground-3}}';
      }
    }

    .md-select-icon {
      color: '{{foreground-3}}';
    }
  }

  .md-select-icon {
    color: '{{foreground-2}}';
  }
}

md-select-menu.md-THEME_NAME-theme {
  md-content {
    background-color: '{{background-hue-1}}';

    md-optgroup {
      color: '{{foreground-2}}';
    }

    md-option {
      color: '{{foreground-1}}';

      &[disabled] {
        .md-text {
          color: '{{foreground-3}}';
        }
      }

      &:not([disabled]) {
        &:focus,
        &:hover,
        &.md-focused {
          background-color: '{{background-500-0.18}}'
        }
      }

      &[selected] {
        color: '{{primary-500}}';
        &:focus,
        &.md-focused {
          color: '{{primary-600}}';
        }
        &.md-accent {
          color: '{{accent-color}}';
          &:focus,
          &.md-focused {
            color: '{{accent-A700}}';
          }
        }
      }
    }
  }
}

.md-checkbox-enabled.md-THEME_NAME-theme {
  @include checkbox-primary('[selected]');

  md-option .md-text {<commit_msg>fix(select): in popup, hover and focus background colors are the same<commit_after>md-input-container {

  // The asterisk of the select should always use the warn color.
  md-select.md-THEME_NAME-theme .md-select-value {
    span:first-child:after {
      color: '{{warn-A700}}'
    }
  }

  // When the select is blurred and not invalid then the asterisk should use the foreground color.
  &:not(.md-input-focused):not(.md-input-invalid) {
    md-select.md-THEME_NAME-theme .md-select-value {
      span:first-child:after {
        color: '{{foreground-3}}';
      }
    }
  }

  &.md-input-focused:not(.md-input-has-value) {
    md-select.md-THEME_NAME-theme .md-select-value {
      color: '{{primary-color}}';

      &.md-select-placeholder {
        color: '{{primary-color}}';
      }
    }
  }

  &.md-input-invalid {
    md-select.md-THEME_NAME-theme .md-select-value {
      color: '{{warn-A700}}' !important;
      border-bottom-color: '{{warn-A700}}' !important;
    }

    md-select.md-THEME_NAME-theme.md-no-underline .md-select-value {
      border-bottom-color: transparent !important;
    }
  }

  &:not(.md-input-invalid) {
    &.md-input-focused {
      &.md-accent {
        .md-select-value {
          border-color: '{{accent-color}}';
          span {
            color: '{{accent-color}}';
          }
        }
      }
      &.md-warn {
        .md-select-value {
          border-color: '{{warn-A700}}';
          span {
            color: '{{warn-A700}}';
          }
        }
      }
    }
  }

}

md-select.md-THEME_NAME-theme {
  &[disabled] .md-select-value {
    border-bottom-color: transparent;
    background-image: linear-gradient(to right, '{{foreground-3}}' 0%, '{{foreground-3}}' 33%, transparent 0%);
    background-image: -ms-linear-gradient(left, transparent 0%, '{{foreground-3}}' 100%);
  }

  .md-select-value {
    border-bottom-color: '{{foreground-4}}';

    &.md-select-placeholder {
      color: '{{foreground-3}}';
    }

    span:first-child:after {
      color: '{{warn-A700}}'
    }
  }

  &.md-no-underline .md-select-value {
    border-bottom-color: transparent !important;
  }

  &.ng-invalid.ng-touched {
    .md-select-value {
      color: '{{warn-A700}}' !important;
      border-bottom-color: '{{warn-A700}}' !important;
    }

    &.md-no-underline .md-select-value {
      border-bottom-color: transparent !important;
    }
  }

  &:not([disabled]):focus {
    .md-select-value {
      border-bottom-color: '{{primary-color}}';
      color: '{{ foreground-1 }}';
      &.md-select-placeholder {
        color: '{{ foreground-1 }}';
      }
    }

    &.md-no-underline .md-select-value {
      border-bottom-color: transparent !important;
    }

    &.md-accent .md-select-value {
      border-bottom-color: '{{accent-color}}';
    }

    &.md-warn .md-select-value {
      border-bottom-color: '{{warn-color}}';
    }
  }

  &[disabled] {
    .md-select-value {
      color: '{{foreground-3}}';

      &.md-select-placeholder {
        color: '{{foreground-3}}';
      }
    }

    .md-select-icon {
      color: '{{foreground-3}}';
    }
  }

  .md-select-icon {
    color: '{{foreground-2}}';
  }
}

md-select-menu.md-THEME_NAME-theme {
  md-content {
    background-color: '{{background-hue-1}}';

    md-optgroup {
      color: '{{foreground-2}}';
    }

    md-option {
      color: '{{foreground-1}}';

      &[disabled] {
        .md-text {
          color: '{{foreground-3}}';
        }
      }

      &:not([disabled]) {
        &:hover {
          background-color: '{{background-500-0.10}}'
        }
        &:focus,
        &.md-focused {
          background-color: '{{background-500-0.18}}'
        }
      }

      &[selected] {
        color: '{{primary-500}}';
        &:focus,
        &.md-focused {
          color: '{{primary-600}}';
        }
        &.md-accent {
          color: '{{accent-color}}';
          &:focus,
          &.md-focused {
            color: '{{accent-A700}}';
          }
        }
      }
    }
  }
}

.md-checkbox-enabled.md-THEME_NAME-theme {
  @include checkbox-primary('[selected]');

  md-option .md-text {
{'fraction_non_alphanumeric': 0.18830769230769231, 'fraction_numerical': 0.016246153846153848, 'mean_word_length': 1.9282882882882884, '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': '6188045', 'n_tokens_mistral': 3033, 'n_tokens_neox': 2845, 'n_words': 408}