@use "../../variables/index" as *;

/**
 * Quick Links Widget - Link list widget for dashboards
 *
 * Note: Uses $component-padding and $size-20 for spacing. Uses drawer color tokens.
 *
 * Intentionally hardcoded values:
 * - Vertical padding (6px): Off-grid fine-tuning for link items
 * - Outline width (2px): Focus indicator
 * - Outline-offset (-2px): Inset positioning
 */

.c8y-quick-links__link {
  display: flex;
  align-items: center;
  width: 100%;
  color: inherit;
  text-align: left;
  padding: 6px $component-padding;
  background-image: none;
  background-color: transparent;
  border: 0;
  &.sticky-top {
    background-color: inherit;
  }
  [class^='dlt-c8y-icon-'],
  [class*=' dlt-c8y-icon-'],
  .c8y-icon {
    font-size: $size-20;
  }

  &:active {
    background-color: $drawer-background-active;
  }

  &:hover,
  &:focus {
    text-decoration: none;
    outline: 2px solid $drawer-border-selected;
    outline-offset: -2px;
    color: $drawer-color;
    [class^='dlt-c8y-icon-'],
    [class*=' dlt-c8y-icon-'],
    .c8y-icon {
      color: $drawer-border-selected;
    }
  }
}
