mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-25 23:19:28 -05:00
6a9e9e129a
* thanks to https://feathericons.com for svgs * can be disabled in site config Params: disableThemeToggle : true
60 lines
886 B
CSS
60 lines
886 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 {
|
|
display: flex;
|
|
margin: auto var(--gap);
|
|
}
|
|
|
|
.logo a {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.theme-toggle svg{
|
|
height: 18px;
|
|
margin: 0 10px;
|
|
}
|
|
|
|
body.dark #moon{
|
|
vertical-align: middle;
|
|
display: none;
|
|
}
|
|
|
|
body:not(.dark) #sun {
|
|
display: none;
|
|
}
|
|
|
|
.menu {
|
|
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;
|
|
} |