blob: 6d585782a6628aa77ace3de02b8913054e306858 (
plain) (
tree)
|
|
#navBar {
display: flex;
font-family: $specialFont;
padding: $padding;
position: absolute;
top: 0;
width: 100%;
section {
display: flex;
flex: 1 1 0;
gap: $gap;
justify-content: center;
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);
}
}
}
}
|