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

$icon-width: 37px;

.dimension-list-tile {
  overflow: hidden;

  .items {
    position: absolute;
    top: $title-height;
    bottom: 0;
    width: 100%;
    overflow: auto;
    color: $text-standard;
    transition: height 0.1s ease-in-out;

    .dimension {
      @include pin-top($dimension-height);
      background: $white;
      cursor: pointer;
      overflow: hidden;
      transition: transform 0.1s ease-in-out;

      &:last-child {
        margin-bottom: 12px;
      }

      &.highlight {
        background: $hover;
      }

      &.selected {
        background: $highlight;
      }

      .icon {
        @include pin-left($icon-width);
        top: 4px;
        left: 0;
        width: 19px;

        svg {
          position: absolute;
          left: $padding-compact - 2px;
          width: 19px;

          path {
            fill: hsla(0, 0, 0, 0.35);
          }
        }
      }

      .item-title {
        @include ellipsis;
        position: absolute;
        top: 7px;
        bottom: 0;
        right: 10px;
        left: $icon-width + 1;
      }
    }
  }
}
