/**
 *
 * @ai-apps/angular v2.152.0 | _table-view-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}--view-dropdown__container {
  padding: 0 $spacing-05;
  margin: auto 0;
}

.#{$iot-prefix}--view-dropdown__button-prefix {
  display: none;
}
.#{$prefix}--list-box__field .#{$iot-prefix}--view-dropdown__button-prefix {
  display: flex;
  flex-shrink: 0;
  margin-right: $spacing-02;
  svg {
    margin-right: $spacing-03;
  }
}

.#{$iot-prefix}--view-dropdown__edited-text {
  color: $carbon--gray-50;
}

.#{$iot-prefix}--view-dropdown__item {
  display: flex;
  justify-content: space-between;
  span {
    @include text-overflow();
  }
}

.#{$iot-prefix}--view-dropdown__item-link {
  color: $link-01;
  // compensate for carbon selected checkbox space that is not needed since these
  // link-items with custom actions will not actually be
  margin-right: -$spacing-06;
}

.#{$iot-prefix}--view-dropdown__item-link-icon {
  color: $link-01;
  fill: $link-01;
  margin-left: $spacing-03;
  flex-shrink: 0;
}

html[dir='rtl'] {
  .#{$prefix}--list-box__field .#{$iot-prefix}--view-dropdown__button-prefix {
    margin-right: 0;
    margin-left: $spacing-02;
    svg {
      margin-right: 0;
      margin-left: $spacing-03;
    }
  }

  .#{$iot-prefix}--view-dropdown__item-link-icon {
    margin-right: -$spacing-06;
  }

  .#{$iot-prefix}--view-dropdown__item-link {
    justify-content: normal;
    margin-right: 0;
    span {
      order: 2;
    }
  }
}
