/*
 * 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.
 */

@import '../../imports';

.pinboard-measure-tile {
  @extend %module;
  padding-bottom: 12px;
  margin-bottom: 1px;

  .title {
    @include css-variable(color, text-light);
    margin-left: $padding-compact;
    margin-top: 12px;
    font-size: 12px;
    text-transform: uppercase;
  }

  .pinboard-sort-error {
    @include css-variable(color, negative);
    font-size: 10px;
    margin-left: 14px;
    margin-top: 8px;
  }

  .dropdown {
    display: inline-block;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    border-radius: $corner;

    .selected-item {
      @include ellipsis;
      @include css-variable(color, text-light);
      line-height: 19px;
      padding: 2px 22px 2px 7px;
      border: 1px solid transparent;
      max-width: 104px;
      height: auto;
      box-shadow: none;

      .caret-icon {
        position: absolute;
        right: 7px;
        bottom: 6px;

        path {
          @include css-variable(fill, text-lighter);
        }
      }

      &:hover {
        @extend %input-cont;
        @include css-variable(color, text-standard);

        .caret-icon {
          path {
            @include css-variable(fill, text-light);
          }
        }
      }
    }

    .dropdown-menu {
      margin-top: 1px;
      right: 0;
      width: 190px;
      max-height: 600px;
      overflow-y: auto;
    }
  }
}
