mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 22:58:52 +02:00
138 lines
2.6 KiB
CSS
138 lines
2.6 KiB
CSS
header {
|
|
padding: 1em;
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--header-background-color);
|
|
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
|
|
backdrop-filter: blur(20px);
|
|
z-index: 1000;
|
|
--gap: 1.25em;
|
|
font-size: 0.8em;
|
|
|
|
.content-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-items: center;
|
|
gap: var(--gap);
|
|
}
|
|
|
|
a.banner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-items: center;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
|
|
&:hover { text-decoration: none;}
|
|
}
|
|
|
|
img {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
img+span {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
nav {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: var(--gap);
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
|
|
&.active {
|
|
color: var(--brand-1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
header > .content-wrapper,
|
|
section.hero-section > .content-wrapper {
|
|
min-width: 80vw;
|
|
}
|
|
|
|
@media (max-width: 719px) {
|
|
:root {
|
|
--header-height: 35px;
|
|
}
|
|
|
|
header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
min-height: var(--header-height);
|
|
display: flex;
|
|
|
|
.content-wrapper {
|
|
display: block;
|
|
}
|
|
|
|
.first-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
align-self: stretch;
|
|
}
|
|
|
|
.menu-toggle {
|
|
color: inherit;
|
|
}
|
|
|
|
nav {
|
|
flex-direction: column;
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 200ms ease-in;
|
|
|
|
&.mobile-shown {
|
|
display: flex;
|
|
max-height: 100vh;
|
|
padding: 2em 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
header + main {
|
|
margin-top: var(--header-height);
|
|
}
|
|
|
|
header nav a {
|
|
font-size: 1.25em;
|
|
padding: 0.5em 0;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
header .social-buttons {
|
|
justify-content: space-between;
|
|
padding-top: 1em;
|
|
|
|
a {
|
|
border-bottom: unset;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
font-size: 1em;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: 720px) {
|
|
header {
|
|
font-size: inherit;
|
|
|
|
img {
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
}
|
|
} |