/**
 *
 * @ai-apps/angular v2.152.0 | _simple-icon-dropdown.scss
 *
 * Copyright 2014, 2023 IBM
 *
 * 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 '../../globals/vars';

.#{$iot-prefix}--icon-dropdown {
  .#{$prefix}--list-box__menu-item__option {
    margin: 0;
    padding: 0;
    border-top: none;
  }

  .#{$iot-prefix}--icon-dropdown__item {
    display: flex;
    flex-direction: row;
    height: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .#{$iot-prefix}--icon-dropdown__item-border {
    display: flex;
    align-items: center;
  }

  // When showing selected item we must remove the padding and border.
  .#{$prefix}--list-box__label .#{$iot-prefix}--icon-dropdown__item {
    padding-left: 0;
    .#{$iot-prefix}--icon-dropdown__item-border {
      border-color: transparent;
    }
  }
}

.#{$iot-prefix}--color-dropdown__icon-sample {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: $spacing-04;
  flex-shrink: 0;
}

.#{$iot-prefix}--icon-dropdown__icon-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

html[dir='rtl'] {
  .#{$iot-prefix}--icon-dropdown__icon-sample {
    margin-left: $spacing-04;
  }

  .#{$iot-prefix}--icon-dropdown__item {
    padding-right: 2rem;
  }

  // When showing selected item we must remove the padding.
  .#{$prefix}--list-box__label .#{$iot-prefix}--icon-dropdown__item {
    padding-right: 0;
  }
}
