2020-07-21 09:50:35 +01:00
|
|
|
/* Header
|
|
|
|
-------------------------------------------------- */
|
|
|
|
.nav {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
max-width: calc(var(--nav-width) + var(--gap) * 2);
|
2020-10-19 10:17:23 +01:00
|
|
|
margin-inline-start: auto;
|
|
|
|
margin-inline-end: auto;
|
2020-10-26 16:49:05 +00:00
|
|
|
line-height: var(--header-height);
|
2020-07-21 09:50:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo,
|
|
|
|
.menu {
|
2020-10-04 16:13:24 +01:00
|
|
|
display: flex;
|
2020-09-20 07:24:41 +01:00
|
|
|
margin: auto var(--gap);
|
2020-10-26 16:49:05 +00:00
|
|
|
flex-wrap: inherit;
|
2020-07-21 09:50:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.logo a {
|
|
|
|
font-size: 24px;
|
|
|
|
font-weight: 700;
|
2020-11-11 05:06:54 +00:00
|
|
|
margin-inline-end: 10px;
|
2020-07-21 09:50:35 +01:00
|
|
|
}
|
|
|
|
|
2020-10-16 19:17:46 +01:00
|
|
|
.logo a img {
|
|
|
|
display: inline;
|
|
|
|
vertical-align: middle;
|
|
|
|
pointer-events: none;
|
|
|
|
transform: translate(0, -10%);
|
|
|
|
border-radius: 6px;
|
2020-10-19 10:17:23 +01:00
|
|
|
margin-inline-end: 8px;
|
2020-10-16 19:17:46 +01:00
|
|
|
}
|
|
|
|
|
2020-10-20 06:08:43 +01:00
|
|
|
.theme-toggle svg {
|
2020-10-04 16:13:24 +01:00
|
|
|
height: 18px;
|
2020-10-20 06:08:43 +01:00
|
|
|
user-select: none;
|
2020-10-26 17:19:27 +00:00
|
|
|
cursor: pointer;
|
2020-10-04 16:13:24 +01:00
|
|
|
}
|
|
|
|
|
2020-10-26 16:49:05 +00:00
|
|
|
body.dark #moon {
|
2020-10-04 16:13:24 +01:00
|
|
|
vertical-align: middle;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
body:not(.dark) #sun {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-07-21 09:50:35 +01:00
|
|
|
.menu {
|
|
|
|
list-style: none;
|
|
|
|
word-break: keep-all;
|
|
|
|
overflow-x: auto;
|
2020-07-26 14:24:53 +01:00
|
|
|
white-space: nowrap;
|
2020-07-21 09:50:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu li+li {
|
2020-10-19 10:17:23 +01:00
|
|
|
margin-inline-start: var(--gap);
|
2020-07-21 09:50:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu a {
|
|
|
|
font-size: 16px;
|
2020-09-20 14:33:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu .active {
|
|
|
|
font-weight: 500;
|
|
|
|
border-bottom: 2px solid currentColor;
|
2020-10-16 19:17:46 +01:00
|
|
|
}
|
2020-10-26 16:49:05 +00:00
|
|
|
|
|
|
|
.lang-switch ul {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.lang-switch a {
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 500;
|
|
|
|
margin: 0 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.lang-switch li {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo-switches {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-wrap: inherit;
|
|
|
|
}
|