/// ----------------------------------------------------------------------

/// Inputs

/// ----------------------------------------------------------------------

@use '@lavalogic/scss-lib' as lib;
@use 'spacing';
@use 'corners';
@use 'colours';
@use 'borders';
@use 'typography';
@use 'transitions';
@use 'states';

/// -------------------
/// Input config
/// -------------------

$padding-x: spacing.$sm !default;

/// -------------------
/// Input selectors
/// -------------------

.input {
  @include lib.resets-style;
  @include lib.components-flow($border-width: 1px);
  background: #fff;
  padding-left: $padding-x;
  padding-right: $padding-x;
  border-radius: corners.$base;
  border: borders.$ui-three;
  font-family: typography.$font-family;
  font-weight: typography.$font-regular;
  color: colours.$ui-five;
  transition: all transitions.$ease;

  &:focus {
    @include states.focus;
  }

  &--disabled,
  &:disabled {
    @include states.disabled;
  }
}
