Files
Trilium/apps/website/src/components/Header.css

109 lines
1.8 KiB
CSS
Raw Normal View History

2025-09-26 23:32:09 +03:00
header {
padding: 1em;
position: sticky;
top: 0;
2025-09-26 23:44:07 +03:00
background: var(--header-background-color);
2025-09-26 23:32:09 +03:00
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
2025-09-27 01:40:47 +03:00
backdrop-filter: blur(20px);
2025-09-26 23:32:09 +03:00
z-index: 1000;
2025-09-27 01:40:47 +03:00
--gap: 1.25em;
font-size: 0.8em;
2025-09-26 23:32:09 +03:00
}
header .content-wrapper {
display: flex;
align-items: center;
justify-items: center;
2025-09-27 01:40:47 +03:00
gap: var(--gap);
2025-09-26 23:32:09 +03:00
}
2025-09-26 23:40:05 +03:00
header a.banner {
display: flex;
align-items: center;
justify-items: center;
text-decoration: none;
color: inherit;
}
2025-09-26 23:32:09 +03:00
header > .content-wrapper,
section.hero-section > .content-wrapper {
min-width: 80vw;
}
header img {
width: 32px;
height: 32px;
2025-09-26 23:32:09 +03:00
}
header img+span {
2025-09-27 17:22:34 +03:00
font-size: 1.3em;
2025-09-26 23:32:09 +03:00
}
header nav {
flex-grow: 1;
display: flex;
justify-content: flex-end;
2025-09-27 01:40:47 +03:00
gap: var(--gap);
}
header nav a {
text-decoration: none;
2025-09-27 01:40:47 +03:00
color: inherit;
}
header nav a.active {
color: var(--brand-1);
}
2025-09-27 17:22:34 +03:00
@media (max-width: 719px) {
header .content-wrapper {
display: block;
}
header .first-row {
display: flex;
justify-content: space-between;
align-items: center;
flex-grow: 1;
align-self: stretch;
}
header .menu-toggle {
color: inherit;
}
header nav {
flex-direction: column;
max-height: 0;
overflow: hidden;
transition: max-height 200ms ease-in-out;
}
header nav.mobile-shown {
display: flex;
max-height: 100vh;
padding: 2em 0;
}
header nav a {
font-size: 1.25em;
padding: 0.5em 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
header nav a:last-of-type {
border-bottom: unset;
}
}
@media (min-width: 720px) {
header {
font-size: inherit;
}
header img {
width: 48px;
height: 48px;
}
2025-09-26 23:32:09 +03:00
}