@import '../../scss/variables/colors';

$base-class: 'text-field';

.#{$base-class} {
  margin-bottom: 20px;

  &--inline {
    display: flex;
    flex-direction: column;
  }

  &__wrapper--inline {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  &__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 4px;

    label {
      margin-bottom: 0;
    }

    &--inline {
      justify-content: center;
      align-items: center;
      height: 32px;
      margin-right: 10px;
      margin-bottom: 0;
    }

    &--no-text {
      justify-content: flex-end;
      margin-right: 0;
    }
  }

  &__label-wrapper {
    display: flex;
    flex-grow: 1;
  }

  &__label-adornment {
    width: 20px;
    height: 20px;
    margin-left: 4px;
    line-height: 20px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: flex-end;
  }

  &__label-right-node {
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
    flex-shrink: 0;
    font-size: 14px;
    color: $font-primary-color;
    margin-left: 5px;
    line-height: 20px;

    &--inline {
      flex-grow: 1;
      margin-bottom: 4px;
    }
  }

  &__row-break {
    flex-basis: 100%;
    height: 0;
  }

  &__content {
    flex-grow: 1;
  }
}
