/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../custom.less';
@import './vars.less';

@roles-prefix-cls: ~'@{css-prefix}roles';

.@{roles-prefix-cls} {
  .inject-Roles-vars();

  svg {
    margin-left: 2px;
  }

  &__selector {
    &.@{css-prefix}popover.@{css-prefix}popper {
      padding: 8px 0;
    }
  }

  &__selector &__poplist-item {
    padding: 0 8px;
  }

  &__selector-body {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  &__poplist {
    min-width: 180px;
  }

  &__poplist-item {
    min-height: var(--tv-Roles-poplist-item-height);
    line-height: var(--tv-Roles-poplist-item-height);
    max-width: 100%;
    color: var(--tv-Roles-poplist-item-text-color);
    font-size: var(--tv-Roles-poplist-item-font-size);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;

    &:hover {
      background: var(--tv-Roles-poplist-item-hover-bg-color);
    }

  }
}
