mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
fix(website): mobile regression and layout tweaks
This commit is contained in:
parent
2df0763141
commit
5905299331
@ -9,6 +9,12 @@ footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-direction: column-reverse;
|
||||
gap: 2em;
|
||||
|
||||
@media (min-width: 720px) {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,11 +9,12 @@ header {
|
||||
--gap: 1.25em;
|
||||
font-size: 0.8em;
|
||||
|
||||
.content-wrapper {
|
||||
&>.content-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
gap: var(--gap);
|
||||
min-width: 80vw;
|
||||
}
|
||||
|
||||
a.banner {
|
||||
@ -52,15 +53,9 @@ header {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
header > .content-wrapper,
|
||||
section.hero-section > .content-wrapper {
|
||||
min-width: 80vw;
|
||||
}
|
||||
|
||||
@media (max-width: 719px) {
|
||||
:root {
|
||||
--header-height: 35px;
|
||||
--header-height: 60px;
|
||||
}
|
||||
|
||||
header {
|
||||
@ -69,6 +64,7 @@ section.hero-section > .content-wrapper {
|
||||
left: 0;
|
||||
right: 0;
|
||||
min-height: var(--header-height);
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
|
||||
.content-wrapper {
|
||||
|
@ -46,11 +46,14 @@ export function Header() {
|
||||
|
||||
<nav className={`${mobileMenuShown ? "mobile-shown" : ""}`}>
|
||||
{HEADER_LINKS.map(link => (
|
||||
<a
|
||||
<Link
|
||||
href={link.url}
|
||||
className={url === link.url ? "active" : ""}
|
||||
target={link.external && "_blank"}
|
||||
>{link.text}</a>
|
||||
openExternally={link.external}
|
||||
onClick={() => {
|
||||
setMobileMenuShown(false);
|
||||
}}
|
||||
>{link.text}</Link>
|
||||
))}
|
||||
|
||||
<SocialButtons className="mobile-only" withText />
|
||||
|
@ -43,6 +43,7 @@ section.hero-section {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
min-width: 80vw;
|
||||
}
|
||||
|
||||
.title-section {
|
||||
@ -166,9 +167,12 @@ section.final-cta .buttons {
|
||||
}
|
||||
|
||||
.list-with-screenshot {
|
||||
display: flex;
|
||||
gap: 2em;
|
||||
|
||||
@media (min-width: 720px) {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
@ -200,9 +204,12 @@ section.final-cta .buttons {
|
||||
flex-direction: column-reverse;
|
||||
|
||||
ul {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 1em;
|
||||
display: grid;
|
||||
|
||||
@media (min-width: 720px) {
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
|
@ -140,6 +140,7 @@ img {
|
||||
}
|
||||
|
||||
@media (max-width: 719px) {
|
||||
.grid-4-cols > *,
|
||||
.grid-3-cols > *,
|
||||
.grid-2-cols > * {
|
||||
margin-bottom: 1em;
|
||||
|
Loading…
x
Reference in New Issue
Block a user