summaryrefslogtreecommitdiff
path: root/public/css/modules/link.css
blob: 4d7986a308e739a1c2fd2db8d641a0fd56c858cf (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.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);
  border-radius: calc(3 * var(--relative-eighth-rem));
  transition:
    color 100ms,
    text-decoration-color 100ms,
    text-decoration-thickness 100ms,
    text-underline-offset 100ms,
    border-color 100ms,
    text-shadow 100ms;
}

.link:is(:hover, :focus, :focus-visible, :focus-within),
.group-hover:is(:hover, :focus, :focus-visible, :focus-within) .link {
  text-decoration-color: currentColor;
  text-decoration-thickness: calc(4 * var(--relative-eighth-rem));
  text-underline-offset: calc(3 * var(--relative-eighth-rem));
  text-shadow:
    0 1px 0 currentColor,
    1px 0 0 currentColor,
    1px 0 0 currentColor,
    0 1px 0 currentColor;
  transition:
    color 300ms,
    text-decoration-color 300ms,
    text-decoration-thickness 300ms,
    text-underline-offset 300ms,
    border-color 300ms,
    text-shadow 300ms;
}

.link:focus, .link:focus-visible {
  box-shadow: none;
  outline: none;
  border-color: var(--special-text-color);
}

.link:active {
  font-size: larger;
}