<commit_before>$input-container-padding: 2px !default;

$input-label-default-offset: 24px !default;
$input-label-default-scale: 1.0 !default;
$input-label-float-offset: 4px !default;
$input-label-float-scale: 0.75 !default;

$input-placeholder-offset: $input-label-default-offset !default;

$input-border-width-default: 1px !default;
$input-border-width-focused: 2px !default;
$input-line-height: 26px !default;
$input-padding-top: 2px !default;

$input-error-font-size: 12px !default;
$input-error-height: 24px !default;

$icon-offset: 36px !default;

md-input-container {
  display: flex;
  position: relative;
  flex-direction: column;

  overflow-x: hidden;
  padding: $input-container-padding;
  padding-bottom: $input-container-padding + $input-error-height;

  > md-icon {
    position: absolute;
    top: 5px;
    left: 2px;
    + input {
      margin-left: $icon-offset;
    }
  }

  textarea,
  input[type="text"],
  input[type="password"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="date"],
  input[type="month"],
  input[type="time"],
  input[type="week"],
  input[type="number"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="tel"],
  input[type="color"] {
    /* remove default appearance from all input/textarea */
    -moz-appearance: none;
    -webkit-appearance: none;
  }

  textarea {
    resize: none;
    overflow: hidden;
  }

  textarea.md-input {
    min-height: 2 * $input-line-height + $input-border-width-focused + $input-padding-top;
    -ms-flex-preferred-size: auto;
  }

  label:not(.md-no-float),
  .md-placeholder:not(.md-select-label) {
    order: 1;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    padding-left: $input-container-padding;
    z-index: 1;
    transform: translate3d(0, $input-label-default-offset, 0) scale($input-label-default-scale);
    transition: transform $swift-ease-out-timing-function 0.25s;

    @include rtl(transform-origin, left top, right top);
  }

  .md-placeholder:not(.md-select-label) {
    position: absolute;
    top: 0;
    opacity: 0;
    transition-property: opacity, transform;
    transform: translate3d(0, $input-placeholder-offset + $baseline-grid * 0.75, 0);
  }

  &.md-input-focused .md-placeholder {
    opacity: 1;
    transform: translate3d(0, $input-placeholder-offset, 0);
  }

  .md-input-has-value .md-placeholder {
    transition: none;
    opacity: 0;
  }

  &:not(.md-input-has-value) input:not(:focus) {
    color: transparent;
  }

  /*
   * The .md-input class is added to the input/textarea
   */
  .md-input {
    flex: 1 1 auto;
    order: 2;
    display: block;

    background: none;
    padding-top: $input-padding-top;
    padding-bottom: $input-border-width-focused - $input-border-width-default;
    padding-left: 2px;
    padding-right: 2px;
    border-width: 0 0 $input-border-width-default 0;
    line-height: $input-line-height;
    -ms-flex-preferred-size: $input-line-height;
    border-radius: 0;

    &:focus {
      outline: none;
    }

    &:invalid {
      outline: none;
      box-shadow: none;
    }
  }

  // TODO: validation messages

  .md-char-counter {
    bottom: $input-container-padding;
    right: $input-container-padding;
  }

  &.md-input-focused,
  &.md-input-has-value {
    label:not(.md-no-float) {
      transform: translate3d(0, $input-label-float-offset, 0) scale($input-label-float-scale);

      &.md-icon-float {
        transform: translate3d(0, $input-label-float-offset, 0) scale($input-label-float-scale);
      }
    }
  }

  // TODO: replace with validation
  &.md-input-focused .md-input,
  .md-input.ng-invalid.ng-dirty {
    padding-bottom: 0px;
    border-width: 0 0 $input-border-width-focused 0;
  }

  .md-input {
    &[disabled],
    [disabled] & {
      background-position: 0 bottom;
      background-size: 3px 1px;
      background-repeat: repeat-x;
    }
  }
}

md-input-container.md-icon-float {

  margin-top: -16px;
  transition: margin-top 0.5s $swift-ease-out-timing-function;

  > label {
    pointer-events: none;
    position: absolute;
    margin-left: $icon-offset;
  }

  > md-icon {
    top: 26px;
    left: 2px;
    + input {
      margin-left: $icon-offset;
    }
  }

  > input {
    padding-top: $input-line-height - $input-container-padding;
  }

  &.md-input-focused,
  &.md-input-has-value {
    margin-top: -8px;

    label {
      transform: translate3d(0, $input-label-float-offset, 0) scale($input-label-float-scale);
      transition: transform $swift-ease-out-timing-function 0.5s;
    }
  }
}

@media screen and (-ms-high-contrast: active) {
  md-input-container > md-icon {
    fill: #fff;
  }
}

<commit_msg>(input) cleanup scss variables<commit_after>$input-container-padding: 2px !default;

$input-label-default-offset: 24px !default;
$input-label-default-scale: 1.0 !default;
$input-label-float-offset: 4px !default;
$input-label-float-scale: 0.75 !default;

$input-placeholder-offset: $input-label-default-offset !default;

$input-border-width-default: 1px !default;
$input-border-width-focused: 2px !default;
$input-line-height: 26px !default;
$input-padding-top: 2px !default;

$input-error-font-size: 12px !default;
$input-error-height: 24px !default;

$icon-offset: 36px !default;

$icon-float-top: -16px !default;
$icon-float-focused-top: -8px !default;

md-input-container {
  display: flex;
  position: relative;
  flex-direction: column;

  overflow-x: hidden;
  padding: $input-container-padding;
  padding-bottom: $input-container-padding + $input-error-height;

  > md-icon {
    position: absolute;
    top: 5px;
    left: 2px;
    + input {
      margin-left: $icon-offset;
    }
  }

  textarea,
  input[type="text"],
  input[type="password"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="date"],
  input[type="month"],
  input[type="time"],
  input[type="week"],
  input[type="number"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="tel"],
  input[type="color"] {
    /* remove default appearance from all input/textarea */
    -moz-appearance: none;
    -webkit-appearance: none;
  }

  textarea {
    resize: none;
    overflow: hidden;
  }

  textarea.md-input {
    min-height: 2 * $input-line-height + $input-border-width-focused + $input-padding-top;
    -ms-flex-preferred-size: auto;
  }

  label:not(.md-no-float),
  .md-placeholder:not(.md-select-label) {
    order: 1;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    padding-left: $input-container-padding;
    z-index: 1;
    transform: translate3d(0, $input-label-default-offset, 0) scale($input-label-default-scale);
    transition: transform $swift-ease-out-timing-function 0.25s;

    @include rtl(transform-origin, left top, right top);
  }

  .md-placeholder:not(.md-select-label) {
    position: absolute;
    top: 0;
    opacity: 0;
    transition-property: opacity, transform;
    transform: translate3d(0, $input-placeholder-offset + $baseline-grid * 0.75, 0);
  }

  &.md-input-focused .md-placeholder {
    opacity: 1;
    transform: translate3d(0, $input-placeholder-offset, 0);
  }

  .md-input-has-value .md-placeholder {
    transition: none;
    opacity: 0;
  }

  &:not(.md-input-has-value) input:not(:focus) {
    color: transparent;
  }

  /*
   * The .md-input class is added to the input/textarea
   */
  .md-input {
    flex: 1 1 auto;
    order: 2;
    display: block;

    background: none;
    padding-top: $input-padding-top;
    padding-bottom: $input-border-width-focused - $input-border-width-default;
    padding-left: 2px;
    padding-right: 2px;
    border-width: 0 0 $input-border-width-default 0;
    line-height: $input-line-height;
    -ms-flex-preferred-size: $input-line-height;
    border-radius: 0;

    &:focus {
      outline: none;
    }

    &:invalid {
      outline: none;
      box-shadow: none;
    }
  }

  // TODO: validation messages

  .md-char-counter {
    bottom: $input-container-padding;
    right: $input-container-padding;
  }

  &.md-input-focused,
  &.md-input-has-value {
    label:not(.md-no-float) {
      transform: translate3d(0, $input-label-float-offset, 0) scale($input-label-float-scale);
    }
  }

  // TODO: replace with validation
  &.md-input-focused .md-input,
  .md-input.ng-invalid.ng-dirty {
    padding-bottom: 0px;
    border-width: 0 0 $input-border-width-focused 0;
  }

  .md-input {
    &[disabled],
    [disabled] & {
      background-position: 0 bottom;
      background-size: 3px 1px;
      background-repeat: repeat-x;
    }
  }
}

md-input-container.md-icon-float {

  margin-top: $icon-float-top;
  transition: margin-top 0.5s $swift-ease-out-timing-function;

  > label {
    pointer-events: none;
    position: absolute;
    margin-left: $icon-offset;
  }

  > md-icon {
    top: 26px;
    left: 2px;
    + input {
      margin-left: $icon-offset;
    }
  }

  > input {
    padding-top: $input-line-height - $input-container-padding;
  }

  &.md-input-focused,
  &.md-input-has-value {
    margin-top: $icon-float-focused-top;

    label {
      transform: translate3d(0, $input-label-float-offset, 0) scale($input-label-float-scale);
      transition: transform $swift-ease-out-timing-function 0.5s;
    }
  }
}

@media screen and (-ms-high-contrast: active) {
  md-input-container > md-icon {
    fill: #fff;
  }
}


{'fraction_non_alphanumeric': 0.16100064143681847, 'fraction_numerical': 0.01657045114389566, 'mean_word_length': 2.958950486669488, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '7637044', 'n_tokens_mistral': 3541, 'n_tokens_neox': 3313, 'n_words': 613}