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

147 lines
2.7 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
&>.content-wrapper {
2025-09-27 21:02:23 +03:00
display: flex;
align-items: center;
justify-items: center;
gap: var(--gap);
min-width: 80vw;
2025-09-27 21:02:23 +03:00
}
2025-09-26 23:32:09 +03:00
2025-09-27 21:02:23 +03:00
a.banner {
display: flex;
align-items: center;
justify-items: center;
text-decoration: none;
color: inherit;
&:hover { text-decoration: none;}
}
2025-09-26 23:40:05 +03:00
2025-09-27 21:02:23 +03:00
img {
width: 32px;
height: 32px;
}
2025-09-26 23:32:09 +03:00
2025-09-27 21:02:23 +03:00
img+span {
font-size: 1.3em;
}
2025-09-26 23:32:09 +03:00
2025-09-27 21:02:23 +03:00
nav {
flex-grow: 1;
display: flex;
justify-content: flex-end;
gap: var(--gap);
2025-09-26 23:32:09 +03:00
2025-09-27 21:02:23 +03:00
a {
text-decoration: none;
color: inherit;
2025-09-27 21:02:23 +03:00
&.active {
color: var(--brand-1);
}
}
}
}
.repository-button a {
display: flex;
color: currentColor;
&:hover {
color: var(--brand-1);
text-decoration: none;
}
.counter {
margin-inline-start: 4px;
}
}
2025-09-27 17:22:34 +03:00
@media (max-width: 719px) {
:root {
--header-height: 60px;
}
header {
position: fixed;
top: 0;
left: 0;
right: 0;
min-height: var(--header-height);
box-sizing: border-box;
display: flex;
2025-09-27 21:02:23 +03:00
.content-wrapper {
display: block;
}
.first-row {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
2025-09-27 21:02:23 +03:00
}
.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);
}
2025-09-27 17:22:34 +03:00
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;
2025-09-27 21:02:23 +03:00
a {
border-bottom: unset;
display: flex;
flex-direction: column;
align-items: center;
font-size: 1em;
}
2025-09-27 17:22:34 +03:00
}
}
@media (min-width: 720px) {
header {
font-size: inherit;
2025-09-27 21:02:23 +03:00
img {
width: 48px;
height: 48px;
}
}
2025-09-26 23:32:09 +03:00
}