/**
 * @license EUPL-1.2
 * Copyright (c) 2021 The Knights Who Say NIH! B.V.
 * Copyright (c) 2021 Gemeente Utrecht
 */

// Avoid false positive for new CSS function `max()`
/* stylelint-disable scss/no-global-function-names */

@import "~@utrecht/focus-ring-css/src/mixin";
@import "./mixin";

.utrecht-link {
  @include utrecht-link;
}

.utrecht-link:any-link {
  @include utrecht-link--any-link;
}

.utrecht-link--visited {
  @include utrecht-link--visited;
}

/* `:hover` should only apply to links with `href`, not on disabled links */
.utrecht-link--html-a:any-link:hover,
.utrecht-link--hover {
  @include utrecht-link--hover;
}

.utrecht-link--focus {
  @include utrecht-link--focus;
}

.utrecht-link--focus-visible {
  @include utrecht-link--focus-visible;
}

/* The `:focus-visible` styling for the focus should apply disabled links too, in case of `tabindex="0"` */
.utrecht-link--html-span:focus-visible,
.utrecht-link--html-a:focus-visible {
  @include utrecht-link--focus-visible;
}

/* `:focus` should only apply to links with `href`, not on disabled links */
.utrecht-link--html-span:focus,
.utrecht-link--html-a:any-link:focus {
  @include utrecht-link--focus;
}

.utrecht-link--html-span:active,
.utrecht-link--html-a:any-link:active,
.utrecht-link--active {
  @include utrecht-link--active;
}

.utrecht-link--mailto {
  @include utrecht-link--mailto;
}

.utrecht-link--external {
  @include utrecht-link--external;
}

.utrecht-link--telephone {
  @include utrecht-link--telephone;
}

.utrecht-link--alternate-lang {
  @include utrecht-link--alternate-lang;
}

.utrecht-link--current {
  @include utrecht-link--current;
}

.utrecht-link--current-lang {
  @include utrecht-link--current-lang;
}

.utrecht-link--box-content:any-link {
  @include utrecht-link--box-content;
}

.utrecht-link--placeholder {
  @include utrecht-link--placeholder;
}

/**
 * Simulate forced-colors mode.
 */
.utrecht-link--forced-colors {
  @include utrecht-link--forced-colors;
}
