@import '../../../global/theme.less';

.root {
  display: inline-flex;
  line-height: 32px;
  .label {
    padding: 0 8px;
    background: @border-color-base;
    .icon {
      margin-right: 4px;
      font-size: 12px;
    }
    .name {
      cursor: pointer;
    }
  }

  .content {
    min-width: 124px;
  }

  .action {
    line-height: 32px;
    padding: 0 6px;
    cursor: pointer;
    transition: 0.3s;
  }
  .edit {
    color: @theme-color;
    background: @theme-color-010;
    &:hover {
      color: @normal-color;
      background: @theme-color;
    }
  }
  .remove {
    color: @delete-color;
    background: fade(@delete-color, 10%);
    &:hover {
      color: @normal-color;
      background: @delete-color;
    }
  }

  :global {
    .@{ant-prefix}-select {
      color: inherit;
    }
    .@{ant-prefix}-select-selection__choice {
      border-color: transparent;
    }
  }

  &.dark {
    .label {
      background: @theme-color-030;
    }
    :global {
      .@{ant-prefix}-select-selection,
      .@{ant-prefix}-input-number {
        color: inherit;
        background: @theme-color-010;
      }
      .@{ant-prefix}-input {
        color: inherit;
      }
    }
  }
}
