summaryrefslogtreecommitdiff
path: root/sass/_header.scss
blob: 8512a55a768f2db78aaa7b40b42c909055d64589 (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
75
76
77
.site-header {
  border-bottom: var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.8rem;
}

.site-title {
  margin-right: auto;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.nav-list a {
  color: var(--color-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.theme-toggle {
  display: none;
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.75rem;
}

.theme-ready .theme-toggle {
  display: block;
}

@media (max-width: 42rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    padding-block: 0.8rem;
  }

  .site-title {
    flex: 1 1 auto;
  }

  .header-inner nav {
    order: 3;
    width: 100%;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
  }

  .theme-toggle {
    margin-left: auto;
  }
}