/**
 *
 * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). 
 * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc..  
 * 
 * This source code is licensed under the Apache license.
 * See LICENSE file in the project root for license information.
 *
 */
@import '../../../styles/variables.less';
@import '../../../styles/mixins.less';

.@{ant-prefix}-dropdown-menu {
  min-width: @Spacing-48;
  border: 1px solid @color-line-1;

  &&-submenu {
    border: 0;
    padding: 0;
  }

  &-item,
  &-submenu-title {
    &-selected,
    &-selected > a {
      font-weight: @font-body-medium-Weight;
      color: @color-text-icon-0;
      background-color: @color-primary-bright;
    }

    &:hover {
      background-color: @color-fill-deepen-4;
    }
  }
}

.@{ant-prefix}-dropdown {
  &-menu {
    &-item,
    &-submenu-title {
      &:hover {
        background-color: @dropdown-menu-item-hover-bg;
      }

      &:active {
        & > a {
          color: @dropdown-selected-color;
        }
      }

      &-disabled {
        background-color: @dropdown-menu-item-disabled-bg;
      }
    }
  }
}

.@{ant-prefix}-dropdown-trigger {
  &.@{ant-prefix}-btn-icon-only {
    padding: 2.4px 0;
    min-width: 0;
  }
}
