mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
87 lines
1.3 KiB
CSS
87 lines
1.3 KiB
CSS
.nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
max-width: calc(var(--nav-width) + var(--gap)*2);
|
|
margin-inline-start: auto;
|
|
margin-inline-end: auto;
|
|
line-height: var(--header-height)
|
|
}
|
|
|
|
.nav a {
|
|
display: block
|
|
}
|
|
|
|
.logo,
|
|
.menu {
|
|
display: flex;
|
|
margin: auto var(--gap);
|
|
flex-wrap: inherit
|
|
}
|
|
|
|
.logo a {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
margin-inline-end: 10px
|
|
}
|
|
|
|
.logo a img {
|
|
display: inline;
|
|
vertical-align: middle;
|
|
pointer-events: none;
|
|
transform: translate(0, -10%);
|
|
border-radius: 6px;
|
|
margin-inline-end: 8px
|
|
}
|
|
|
|
.theme-toggle svg {
|
|
height: 18px;
|
|
user-select: none;
|
|
cursor: pointer
|
|
}
|
|
|
|
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-inline-start: var(--gap)
|
|
}
|
|
|
|
.menu a {
|
|
font-size: 16px
|
|
}
|
|
|
|
.menu .active {
|
|
font-weight: 500;
|
|
border-bottom: 2px solid currentColor
|
|
}
|
|
|
|
.lang-switch li,
|
|
.lang-switch ul,
|
|
.logo-switches {
|
|
display: inline-flex
|
|
}
|
|
|
|
.lang-switch a {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
margin: 0 8px
|
|
}
|
|
|
|
.logo-switches {
|
|
flex-wrap: inherit
|
|
}
|