mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
![Aditya Telange](/assets/img/avatar_default.png)
credits for fix with [.IsMenuCurrent](https://gohugo.io/functions/ismenucurrent/): https://stackoverflow.com/a/56454338
46 lines
714 B
CSS
46 lines
714 B
CSS
/* Header
|
|
-------------------------------------------------- */
|
|
.nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
max-width: calc(var(--nav-width) + var(--gap) * 2);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.nav a {
|
|
display: block;
|
|
line-height: var(--header-height);
|
|
}
|
|
|
|
.logo,
|
|
.menu {
|
|
margin: auto var(--gap);
|
|
}
|
|
|
|
.logo a {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.menu {
|
|
display: flex;
|
|
list-style: none;
|
|
word-break: keep-all;
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.menu li+li {
|
|
margin-left: var(--gap);
|
|
}
|
|
|
|
.menu a {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.menu .active {
|
|
font-weight: 500;
|
|
border-bottom: 2px solid currentColor;
|
|
} |