summaryrefslogtreecommitdiff
path: root/scss/modules/_link.scss
blob: 2f827c415d162b81193126e8f3759d88fbb779b2 (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
a, .link {
  color: var(--special-text-color);
  text-decoration-line: underline;
  text-decoration-color: var(--special-text-color);
  border: dotted transparent var(--border-width);
  transition:
    color 100ms,
    text-decoration-color 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-style: wavy;
    transition:
      color 300ms,
      text-decoration-color 300ms,
      border-color 300ms;
  }

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