﻿.text-input {
  display: inline-block;
  max-width: 37.5rem;
  &.text-input--readOnly {
    border-bottom-color: transparent !important;
    input:focus ~ .bar:before,
    input:focus ~ .bar:after,
    select:focus ~ .bar:before,
    select:focus ~ .bar:after,
    label:focus ~ .bar:before,
    label:focus ~ .bar:after,
    .bar.focused:before,
    .bar.focused:after {
      width: initial;
    }
    input:focus ~ .highlight,
    select:focus ~ .highlight {
      animation: none;
    }
  }
  .text-input__textWrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
  }
  input {
    padding: 5px;
    color: inherit;
    outline: 0;
    border: none;
    flex: 1;
    background-color: transparent;
    text-overflow: ellipsis;
  }
  .text-input__clearButton {
    padding-left: 0;
  }
  .text-input__clearButton--hidden {
    opacity: 0;
    pointer-events: none;
  }
}
