/*
 * Copyright (c) 2010, 2023 BSI Business Systems Integration AG
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 */
.action {
  cursor: pointer;

  &:hover {
    color: @hover-color;
  }

  &:active {
    color: @active-color;
  }

  &:focus {
    // Use inset shadow to ensure it will never be cut if the container uses overflow: hidden or scroll
    #scout.focus-inset-box-shadow();
  }

  &.disabled {
    color: @disabled-color;
    cursor: default;
  }

  &.overflown {
    display: none;
  }

  &.loading {
    & > .text,
    & > .icon,
    & > .submenu-icon {
      opacity: 0;
      transition: opacity @loading-fade-duration;
    }

    & > .loading-indicator {
      #scout.loading-indicator(20px);
    }
  }
}
