/*
 * Copyright 2015-2016 Imply Data, Inc.
 * Copyright 2017-2019 Allegro.pl
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

%input-cont {
  @include border-css-variable('border', 1px, solid, 'border-light');
  background: $white;
  border-radius: $corner;
  cursor: pointer;
  box-shadow: 0 1px 1px 0 hsla(0, 0, 0, 0.1);

  &:hover {
    @include css-variable(border-color, border-medium);
  }
}

%input-selected {
  @include css-variable(background-color, background-light);
  box-shadow: inset 0 1px 1px 0 hsla(0, 0, 0, 0.1);
}

%input-cont-inset {
  @include border-css-variable('border', 1px, solid, 'border-light');
  background: $white;
  border-radius: $corner;
  box-shadow: inset 0 1px 1px 0 hsla(0, 0, 0, 0.1);
}

%input-top-label {
  @include css-variable(color, text-lighterish);
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 5px;
}

%default-input {
  border: 1px solid #d4d4d4;
  border-radius: $corner;
  box-shadow: inset 0 1px 1px rgba($black, 0.13);
  padding-left: 6px;
  padding-right: 6px;
  width: 100%;
  height: $control-height;

  &:hover {
    border-color: #b8b8b8;
  }

  &:focus {
    @include css-variable(border-color, brand);
  }

  &.error {
    @include css-variable(border-color, danger);
  }
}
