summaryrefslogtreecommitdiff
path: root/scss/modules/link.scss
blob: 83206d409786ee818a01b9a23e2f15e0e41f1f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
a, .link {
  color: var(--special-text-color);
  text-decoration-line: underline;
  text-decoration-color: var(--special-text-color);
  text-decoration-thickness: var(--relative-eighth-rem);
  text-underline-offset: var(--relative-eighth-rem);
  border: dotted transparent var(--relative-eighth-rem);
  transition:
    color 100ms,
    text-decoration-color 100ms,
    text-decoration-thickness 100ms,
    border-color 100ms;

  &:is(:hover, :focus, :focus-visible, :focus-within),
  .group-hover:is(:hover, :focus, :focus-visible, :focus-within) & {
    text-decoration-color: currentColor;
    text-decoration-thickness: calc(3 * var(--relative-eighth-rem));
    transition:
      color 300ms,
      text-decoration-color 300ms,
      text-decoration-thickness 300ms,
      border-color 300ms;
  }

  &:is(:focus, :focus-visible, :focus-within) {
    box-shadow: none;
    outline: none;
    border-color: var(--special-text-color);
  }
}