/*
 * Copyright (c) 2019-present Sonatype, Inc.
 * This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License 2.0 which accompanies this
 * distribution and is available at https://www.eclipse.org/legal/epl-2.0/.
 */

.nx-icon-dropdown {
  margin-right: var(--nx-spacing-6x);
  margin-left: var(--nx-spacing-6x);
  width: initial;

  .nx-dropdown-menu {
    right: 0;
  }
}

.nx-icon-dropdown__toggle {
  // remove the button l/r margin and move it to the parent
  margin-right: 0;
  margin-left: 0;

  &.open {
    background-color: var(--nx-color-button-icon-only-background-selected);

    &:hover {
      background-color: var( --nx-color-interactive-background-hover);
    }

    &:focus {
      outline-color: var(--nx-color-interactive-border-focus);
    }

    &:active {
      background-color: var(--nx-color-button-icon-only-background-selected);
    }
  }
}
