summaryrefslogtreecommitdiff
path: root/public/css/modules/link.css
blob: 71dd753c8bb13800382eed56b04194229e65cf86 (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
.link {
  color: var(--special-text-color);
  text-decoration-line: underline;
  text-decoration-color: var(--special-text-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  border: dotted transparent 2px;
  border-radius: 0.375rem;
  transition:
    color 100ms,
    text-decoration-color 100ms,
    text-decoration-thickness 100ms,
    text-underline-offset 100ms,
    border-color 100ms,
    font-weight 100ms,
    font-size 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: 8px;
  text-underline-offset: 4px;
  font-weight: 700;
  transition:
    color 300ms,
    text-decoration-color 300ms,
    text-decoration-thickness 300ms,
    text-underline-offset 300ms,
    border-color 300ms,
    font-weight 300ms,
    font-size 300ms;
}

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

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