hugo-PaperMod/assets/css/header.css

93 lines
1.4 KiB
CSS
Raw Normal View History

2020-07-21 10:50:35 +02:00
/* Header
-------------------------------------------------- */
.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);
2020-07-21 10:50:35 +02:00
}
.nav a {
display: block;
}
.logo,
.menu {
display: flex;
margin: auto var(--gap);
flex-wrap: inherit;
2020-07-21 10:50:35 +02:00
}
.logo a {
font-size: 24px;
font-weight: 700;
}
.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;
margin-inline-end: 10px;
user-select: none;
cursor: pointer;
}
body.dark #moon {
vertical-align: middle;
display: none;
}
body:not(.dark) #sun {
display: none;
}
2020-07-21 10:50:35 +02:00
.menu {
list-style: none;
word-break: keep-all;
overflow-x: auto;
2020-07-26 15:24:53 +02:00
white-space: nowrap;
2020-07-21 10:50:35 +02:00
}
.menu li+li {
margin-inline-start: var(--gap);
2020-07-21 10:50:35 +02:00
}
.menu a {
font-size: 16px;
}
.menu .active {
font-weight: 500;
border-bottom: 2px solid currentColor;
}
.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;
margin-inline-start: 10px;
}