2020-07-21 04:50:35 -04:00
|
|
|
/* 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 {
|
2020-10-04 11:13:24 -04:00
|
|
|
display: flex;
|
2020-09-20 02:24:41 -04:00
|
|
|
margin: auto var(--gap);
|
2020-07-21 04:50:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.logo a {
|
|
|
|
font-size: 24px;
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
2020-10-16 14:17:46 -04:00
|
|
|
.logo a img {
|
|
|
|
display: inline;
|
|
|
|
vertical-align: middle;
|
|
|
|
pointer-events: none;
|
|
|
|
transform: translate(0, -10%);
|
|
|
|
border-radius: 6px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
2020-10-04 11:13:24 -04:00
|
|
|
.theme-toggle svg{
|
|
|
|
height: 18px;
|
|
|
|
margin: 0 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.dark #moon{
|
|
|
|
vertical-align: middle;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
body:not(.dark) #sun {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-07-21 04:50:35 -04:00
|
|
|
.menu {
|
|
|
|
list-style: none;
|
|
|
|
word-break: keep-all;
|
|
|
|
overflow-x: auto;
|
2020-07-26 09:24:53 -04:00
|
|
|
white-space: nowrap;
|
2020-07-21 04:50:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu li+li {
|
|
|
|
margin-left: var(--gap);
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu a {
|
|
|
|
font-size: 16px;
|
2020-09-20 09:33:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu .active {
|
|
|
|
font-weight: 500;
|
|
|
|
border-bottom: 2px solid currentColor;
|
2020-10-16 14:17:46 -04:00
|
|
|
}
|