PaperModX/assets/css/common/header.css

109 lines
1.6 KiB
CSS
Raw Normal View History

2020-07-21 09:50:35 +01:00
.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 09:50:35 +01:00
}
.nav ul {
margin: 0;
padding: 0;
}
2020-07-21 09:50:35 +01:00
.logo a {
display: block;
2020-07-21 09:50:35 +01:00
}
.logo,
#menu {
display: flex;
margin: auto var(--gap);
}
.logo {
flex-wrap: inherit;
2020-07-21 09:50:35 +01: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;
}
2021-06-11 09:04:55 +01:00
button#theme-toggle {
font-size: 26px;
margin: auto 4px;
}
body.dark #moon {
vertical-align: middle;
display: none;
}
body:not(.dark) #sun {
display: none;
}
#menu {
2020-07-21 09:50:35 +01:00
list-style: none;
word-break: keep-all;
overflow-x: auto;
white-space: nowrap;
2020-07-21 09:50:35 +01:00
}
2021-06-11 09:04:55 +01:00
#menu li + li {
margin-inline-start: var(--gap);
2020-07-21 09:50:35 +01:00
}
#menu a {
font-size: 16px;
font-weight: 500;
color: var(--secondary);
display: inline-block;
line-height: 1.5em;
}
#menu a:hover {
color: var(--primary);
}
#menu .active {
color: var(--primary);
box-shadow: 0 2px 0 var(--primary);
}
.lang-switch li,
.lang-switch ul,
.logo-switches {
display: inline-flex;
margin: auto 4px;
}
.lang-switch {
display: flex;
flex-wrap: inherit;
}
.lang-switch a {
margin: auto 3px;
font-size: 16px;
font-weight: 500;
}
.logo-switches {
flex-wrap: inherit;
}