blob: b3119926412378bc9c5d47fe206be85d4d0a9e1f (
plain) (
blame)
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
|
#navBar {
display: flex;
font-family: $specialFont;
left: 50%;
max-width: calc($contentWidth + $padding * 2);
padding: $padding;
position: absolute;
top: 0;
transform: translateX(-50%);
width: 100%;
section {
display: flex;
flex: 1 1 0;
gap: $gap;
text-align: center;
&:first-of-type {
justify-content: start;
text-align: left;
}
&:last-of-type {
justify-content: end;
text-align: right;
}
a {
cursor: pointer;
font-weight: bold;
position: relative;
text-decoration: underline;
text-decoration-color: #00000000;
@media not (prefers-reduced-motion) {
transition: text-decoration-color 0.125s;
transition-timing-function: ease-in-out;
}
@media (orientation: portrait) {
&:not(#home, #themeToggler) {
display: none;
}
}
&[aria-current = "page"]::after {
@include separator;
left: 50%;
position: absolute;
top: calc(100% + $separatorWidth);
transform: translateX(-50%);
}
&:hover {
text-decoration-color: var(--textColour);
}
}
}
}
|