aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/layout/NavBar.module.css
blob: 32827c605888551c8d514d4d9f43cd6378ce12f8 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.navBar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;

  background-color: var(--background-color);

  max-width: 48rem;
  margin-inline: auto;
}

.vertical {
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  padding-top: 1rem;
  gap: 1rem;
  border-top: none;
}

.link {
  flex: 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  padding: 0.25rem 0;
  border-radius: 0.5rem;
  gap: 4px;
}

.iconWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 20px;
  border-radius: 20px;
  transition: background-color 0.2s ease;
}

.link svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke-width: 2;
}

.link span {
  font-size: 11px;
  line-height: 1;
  font-family: var(--font-ui);
}

.active {
  color: var(--button-background-color);
}

.active .iconWrapper {
  background-color: color-mix(
    in oklab,
    var(--button-background-color) 15%,
    transparent
  );
}

[data-theme="dark"] .active .iconWrapper {
  background-color: color-mix(
    in oklab,
    var(--button-background-color) 20%,
    transparent
  );
}